Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26222] Android: App crashes when trying to re-open a closed window

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-07-31T18:08:19.000+0000
Affected Version/sRelease 7.3.0
Fix Version/sRelease 7.2.1
ComponentsAndroid
Labelstableview
ReporterRene Pot
AssigneeGary Mathews
Created2018-07-20T13:28:50.000+0000
Updated2018-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

FileDateSize
crashlog.txt2018-07-20T13:28:04.000+000037841

Comments

  1. Gary Mathews 2018-07-26

    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
  2. Marian Kucharcik 2018-08-01

    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
  3. Gary Mathews 2018-08-01

    [~max87] Thanks for your feedback, that issue will be fixed by https://github.com/appcelerator/titanium_mobile/pull/10221
  4. Lokesh Choudhary 2018-08-08

    Verified the fix in SDK 7.4.0.v20180807122127, 7.3.0.v20180807095741 & 7.2.1.v20180726150551. Closing.

JSON Source