Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20355] Titanium app with navigation window in a tab crashes when closed on iOS

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-02-10T19:35:04.000+0000
Affected Version/sRelease 5.2.0, Release 5.1.2
Fix Version/sn/a
ComponentsiOS, TiAPI
Labelsn/a
ReporterChris Linseman
AssigneeHans Knöchel
Created2016-02-05T16:50:02.000+0000
Updated2017-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

FileDateSize
index.xml2016-02-05T16:47:28.000+0000228

Comments

  1. Bert Grantges 2016-02-05

    Similar issue - both seen in the same app.
  2. Hans Knöchel 2016-02-07

    Should be be duplicate of TIMOB-20298, [~bgrantges@appcelerator.com] can you validate with latest 5_2_X or master?
  3. Chris Linseman 2016-02-08

    This issue is still occurring when running against 5.2.0.v20160205150103
  4. Hans Knöchel 2016-02-08

    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!
  5. Harry Bryant 2016-02-08

    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.4
  6. Hans Knöchel 2016-02-10

    PR (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.
  7. Angel Petkov 2016-02-10

    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
  8. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source