[TIMOB-20355] Titanium app with navigation window in a tab crashes when closed on iOS
GitHub Issue | n/a |
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-02-10T19:35:04.000+0000 |
Affected Version/s | Release 5.2.0, Release 5.1.2 |
Fix Version/s | n/a |
Components | iOS, TiAPI |
Labels | n/a |
Reporter | Chris Linseman |
Assignee | Hans Knöchel |
Created | 2016-02-05T16:50:02.000+0000 |
Updated | 2017-03-21T18:37:29.000+0000 |
Description
When a titanium app with a navigation window inside of a tab is closed on iOS it crashes.
*Steps to reproduce:*
1) Create a new mobile app: Alloy -> Two-tabbed Alloy Application
2) Replace index.xml with the one attached to this issue
2) Run the app on iOS Simulator
3) Double tap the home icon to bring up the app selection/multitasking screen
4) Close the app by sliding it up
*Expected result*
App closes normally, without an exception
*Actual result*
Console displays:
[ERROR] Can not close root window of the navWindow. Close this window instead
Attachments
File | Date | Size |
index.xml | 2016-02-05T16:47:28.000+0000 | 228 |
Similar issue - both seen in the same app.
Should be be duplicate of TIMOB-20298, [~bgrantges@appcelerator.com] can you validate with latest 5_2_X or master?
This issue is still occurring when running against 5.2.0.v20160205150103
Ok. First things first: It's not a crash, just a warning with severity "error". The reason is the same as in TIMOB-20298 (related to main thread / kroll thread). We will take a look!
Tested this issue using SDK version
5.2.0.v20160208101502
. The issue is not reproducible with an iOS9.2 simulator. *However, I am able to reproduce the error using on 8.4.* Tested on: Mac OSX El Capitan 10.11.3 (15D21) Ti SDK: 5.2.0.v20160208101502 Appc Studio: 4.5.0.201602070910 Appc NPM: 4.2.3-2 App CLI: 5.2.0-249 Xcode 7.2 Node v4.2.4PR (master): https://github.com/appcelerator/titanium_mobile/pull/7701 PR (5_2_X): https://github.com/appcelerator/titanium_mobile/pull/7702 [~cng] Providing a backport, because the related ticket was also 5_2_X. Please consider taking in both.
Cherry-Picked Hans commits and added willTerminate check. PR(master) : https://github.com/appcelerator/titanium_mobile/pull/7703 PR(5_2_X) : https://github.com/appcelerator/titanium_mobile/pull/7704
Closing ticket as fixed.