Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2296] Analytics causes app to crash

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:40.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsanalytics, defect, ios, ipad, iphone, rplist
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T03:15:57.000+0000
Updated2011-04-17T01:58:40.000+0000

Description

See this ticket for description and code. Crash happens on iOS 4.1 and 1.5

HD Ticket:
http://developer.appcelerator.com/helpdesk/view/52971">http://developer.appcelerator.com/helpdesk/view/52971

Console output:
[ERROR] The application has crashed with an unhandled exception. Stack trace: 0 CoreFoundation 0x03834b7c exceptionPreprocess + 156
1 libobjc.A.dylib 0x0398440e objc_exception_throw + 47
2 CoreFoundation 0x0382e7a1 -[
NSArrayM insertObject:atIndex:] + 225
3 CoreFoundation 0x03829bf4 -[NSArrayM addObject:] + 68
4 nrapp 0x00105666 -[AnalyticsModule flushEventQueue] + 2206
5 Foundation 0x005c776c -[NSThread main] + 81
6 Foundation 0x005c76f8
NSThreadmain + 1387
7 libSystem.B.dylib 0x91d0681d pthread_start + 345
8 libSystem.B.dylib 0x91d066a2 thread_start + 34
2010-11-07 18:50:58.203 nrapp[30829:6f17] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSMutableArray insertObject:atIndex:]: attempt to insert nil object at 0'
*** Call stack at first throw: ( 0 CoreFoundation 0x03834b99 exceptionPreprocess + 185
1 libobjc.A.dylib 0x0398440e objc_exception_throw + 47
2 CoreFoundation 0x0382e7a1 -[
NSArrayM insertObject:atIndex:] + 225
3 CoreFoundation 0x03829bf4 -[NSArrayM addObject:] + 68
4 nrapp 0x00105666 -[AnalyticsModule flushEventQueue] + 2206
5 Foundation 0x005c776c -[NSThread main] + 81
6 Foundation 0x005c76f8
NSThreadmain + 1387
7 libSystem.B.dylib 0x91d0681d
pthread_start + 345
8 libSystem.B.dylib 0x91d066a2 thread_start + 34
) terminate called after throwing an instance of 'NSException'

Comments

  1. Jeff Haynie 2011-04-15

    (from [8336096168ff1e3867de48d45c6b6cd0e0e9b9dc]) [#2296 state:fixed-in-qa] Analytics no longer panic-crashes on unparsable JSON, but logs an error. https://github.com/appcelerator/titanium_mobile/commit/8336096168ff1e3867de48d45c6b6cd0e0e9b9dc"> https://github.com/appcelerator/titanium_mobile/commit/8336096168ff...

  2. Thomas Huelbert 2011-04-15

    ipog 4gt, sim 3.2 1.5.0.fb4b340

JSON Source