[TIMOB-11240] iOS: App crashes on changing orientation while opening photogallery from modal window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-08T23:43:30.000+0000 |
Affected Version/s | Release 2.1.3 |
Fix Version/s | Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20 |
Components | iOS |
Labels | api, media, qe-ios090112, qe-review, qe-testadded |
Reporter | Shyam Bhadauria |
Assignee | Vishal Duggal |
Created | 2012-10-03T11:24:37.000+0000 |
Updated | 2019-07-24T10:41:45.000+0000 |
Description
This is not a regression. It exists as far as 2.0.1.
This seems to be an ipad issue. It works fine on iPHONE 3G S(iOS 5.0.1) and iPhone 4S(iOS 5.1)
Steps to reproduce
1. Use the app below in app.js
var win = Ti.UI.createWindow();
win.modal = true;
var button = Titanium.UI.createButton({
title: "Push me"
});
button.addEventListener('click', function() {
Titanium.Media.openPhotoGallery({
});
});
win.add(button);
win.open();
2. Run the app and press button 'Push me'
3. Rotate the device to different orientation now.
Expected result
2. After step 2, the photo gallery should get displayed.
3. App should rotate to different orientations without crash.
Actual result:
2. After step 2, the photo gallery is not displayed.
3. App crashes on rotating to different orientation.
Attachments
File | Date | Size |
---|---|---|
timob11240 10-3-12 9-32 AM.crash | 2012-10-03T16:36:01.000+0000 | 32225 |
Able to reproduce. Attached Crash log. Console output:
Comment out "win.modal = true;" and the app does not crash.
Pull pending https://github.com/appcelerator/titanium_mobile/pull/3104
Use this code for testing Every app should have a base window. Trying to open app directly from a model window is an unsupported behavior.
Closing as fixed. Tested and verified on: Titanium Studio, build: 3.0.0.201210220122 Titanium SDK, build: 3.0.0.v20121025171611 Device: iPad 2G (4.3.5)