Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20298] Classic Titanium app with tabs crashes when closed on iOS

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-02-05T17:42:03.000+0000
Affected Version/sRelease 5.1.2
Fix Version/sRelease 5.2.0
ComponentsiOS, TiAPI
Labelsn/a
ReporterChris Linseman
AssigneeAngel Petkov
Created2016-02-01T20:21:04.000+0000
Updated2016-02-05T22:52:18.000+0000

Description

When a classic titanium app with tabs is closed on iOS it crashes. *Steps to reproduce:* 1) Create a new mobile app: Classic -> Tabbed Application 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 tab. Use removeTab instead It seems like the problem is occurring [here](https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUITabProxy.m#L275)

Comments

  1. Angel Petkov 2016-02-04

    PR pending: https://github.com/appcelerator/titanium_mobile/pull/7676/files
  2. Bert Grantges 2016-02-04

    Anyway we can get this into 5.2 would make huge strides for the customer. +1 from my side to do so!
  3. Chris Linseman 2016-02-04

    Great!
  4. Chee Kiat Ng 2016-02-05

    [~apetkov] We need this in 5.2.0 so please do a back port as well.
  5. Hans Knöchel 2016-02-05

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/7686 PR (5_2_X): https://github.com/appcelerator/titanium_mobile/pull/7685 Cherry-picked Angel's commits and added one to ensure a proper logging while running on kroll thread.
  6. Eric Wieber 2016-02-05

    Verified fixed, using: MacOS 10.11.3 (15D21) Studio 4.5.0.201602050824 Ti SDK 5.2.0.v20160205071936 Appc NPM 4.2.3-1 Ti CLI 5.0.6 Alloy 1.7.33 Xcode 7.2 (7C68) Tabbed applications can be closed/killed without throwing an error or warning. Tested with several sample app templates.

JSON Source