Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17005] iOS: Application crashes after relaunching

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-05-21T23:41:41.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.3.0, Release 3.4.0
ComponentsiOS
Labelsmodule_app, qe-3.3.0, qe-testadded, regression
ReporterSatyam Sekhri
AssigneeSabil Rahim
Created2014-05-21T07:42:38.000+0000
Updated2014-07-03T04:59:55.000+0000

Description

Application crashes when relaunched after certain actions. This is a regression. The issue does not exist in 3.2.3 Steps to Reproduce: 1. Create a sample classic application and install it on device Following scenarios tested result in crash: Scenario 1: i) Launch the application ii) Lock and unlock the device with application in focus. The application crashes. Scenario 2: i) Launch the application ii) Change orientation of the device iii) Now background the app to show the home screen. Open the app again. The application crashes Scenario 3: i) Launch the application ii) Background the app to show the home screen. iii) Double click the home button to show recently used apps. iv) Go back to the home screen and open the app again. The application crashes. Actual Result: The application crashes in all above scenarios. The device crash log is attached. Following exception is shown in console:
May 21 15:36:52 AppC-S-iphone5s testCarsh[278] <Error>: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (NSSortDescriptor)'
	*** First throw call stack:
	(0x2fb7af03 0x3a30bce7 0x2fb7ae45 0x305c1371 0x305c2efb 0x2fab6967 0x2fab688b 0x305c2b7d 0x305c12af 0x305c2efb 0x2fab6967 0x2fab688b 0x305c2b7d 0x305c12af 0x305c10c3 0x305c1f65 0x211201 0x2130d1 0x214deb 0x304be64f 0x304ae875 0x30552745 0x3a7f925f 0x3a7fa689 0x3a7fa8dd 0x3a925c17 0x3a925adc)
Expected Result: The application should not crash in any of the above scenarios

Attachments

FileDateSize
CrashLog.txt2014-05-21T07:42:38.000+000040474

Comments

  1. Olga Romero 2014-05-21

    I reproduced all 3 scenarios with: Appcelerator Studio, build: 3.3.0.201405161313 Titanium SDK, build: 3.3.0.v20140521074112 Node.JS Version: v0.10.13 NPM Version: 1.3.2 acs@1.0.14 alloy@1.4.0-alpha2 npm@1.3.2 titanium@3.3.0-alpha5 titanium-code-processor@1.1.1 Xcode 5.1.1 Device:iPhone5S iOS7.1 I noticed the application crashes only once on each scenario.
  2. Sabil Rahim 2014-05-21

    Should be resolved along with TIMOB-16989
  3. Satyam Sekhri 2014-06-09

    The application does not crash anymore with the mentioned scenarios. Verified on: || Component || Version || | Appcelerator Studio | 3.3.0.201405271647 | | Titanium SDK | 3.3.0.v20140606154912 | | Node | 0.10.28 | | acs | 1.0.14 | | alloy | 1.4.0-beta2 | | npm | 1.4.9 | | CLI | 3.3.0-beta2 | | Titanium-code-processor | 1.1.1 | | OS | OSX 10.9.2 | | Device | iPhone 5S (iOS 7.1) |

JSON Source