[TIMOB-26222] Android: App crashes when trying to re-open a closed window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-07-31T18:08:19.000+0000 |
Affected Version/s | Release 7.3.0 |
Fix Version/s | Release 7.2.1 |
Components | Android |
Labels | tableview |
Reporter | Rene Pot |
Assignee | Gary Mathews |
Created | 2018-07-20T13:28:50.000+0000 |
Updated | 2018-08-08T21:37:37.000+0000 |
Description
When trying to re-open a window previously closed the app crashes. This didn't happen on 7.2.0.GA.
As per example above, click the button, close the window then click the button again.
var win2 = Ti.UI.createWindow({backgroundColor: 'red'});
var win1 = Ti.UI.createWindow({backgroundColor: 'white'});
var button = Ti.UI.createButton({title: "Click me", color: "#000"});
button.addEventListener('click', function(){
win2.open();
});
win1.add(button);
win1.open();
Question is. Which behaviour is the expected behaviour. Not being able to reopen a window, or being able to reopen a window
Attachments
File | Date | Size |
---|---|---|
crashlog.txt | 2018-07-20T13:28:04.000+0000 | 37841 |
master: https://github.com/appcelerator/titanium_mobile/pull/10195 7_3_X: https://github.com/appcelerator/titanium_mobile/pull/10203 7_2_X: https://github.com/appcelerator/titanium_mobile/pull/10197
Hi guys, I tested this with latest 7.3.0RC and app still can crash - not so often, but can(I tested it with three rows in tableview, each row opens separate window, I closed each window using back button). I can open single window 15 times in a row but if I switch quickly between all of them(1-2-1-2-3-1-2-1 f.e), app crash. Crash log is here: [crashlog](https://1drv.ms/t/s!AqYLRbx94HRJmhMXtJUMXYQNtd6A) Tested on Nexus 5X, Android 7.0.1, Ti SDK 7.3.0.v20180731101200, macOS High Sierra. Thanks
[~max87] Thanks for your feedback, that issue will be fixed by https://github.com/appcelerator/titanium_mobile/pull/10221
Verified the fix in SDK 7.4.0.v20180807122127, 7.3.0.v20180807095741 & 7.2.1.v20180726150551. Closing.