{ "id": "62928", "key": "TIMOB-2296", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:40.000+0000", "created": "2011-04-15T03:15:57.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "analytics", "defect", "ios", "ipad", "iphone", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:40.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

See this ticket for description and code. Crash happens on iOS\n4.1 and 1.5

\n

HD Ticket:
\nhttp://developer.appcelerator.com/helpdesk/view/52971

\n

Console output:
\n[ERROR] The application has crashed with an\nunhandled exception. Stack trace: 0 CoreFoundation 0x03834b7c\nexceptionPreprocess + 156
\n1 libobjc.A.dylib 0x0398440e objc_exception_throw + 47
\n2 CoreFoundation 0x0382e7a1 -[
NSArrayM\ninsertObject:atIndex:] + 225
\n3 CoreFoundation 0x03829bf4 -[NSArrayM addObject:] + 68
\n4 nrapp 0x00105666 -[AnalyticsModule flushEventQueue] + 2206
\n5 Foundation 0x005c776c -[NSThread main] + 81
\n6 Foundation 0x005c76f8
NSThreadmain +\n1387
\n7 libSystem.B.dylib 0x91d0681d pthread_start + 345
\n8 libSystem.B.dylib 0x91d066a2 thread_start + 34
\n2010-11-07 18:50:58.203 nrapp[30829:6f17] Terminating\napp due to uncaught exception 'NSInvalidArgumentException', reason:\n' -[NSMutableArray insertObject:atIndex:]: attempt to\ninsert nil object at 0'
\n*** Call stack at first throw: ( 0 CoreFoundation 0x03834b99\nexceptionPreprocess + 185
\n1 libobjc.A.dylib 0x0398440e objc_exception_throw + 47
\n2 CoreFoundation 0x0382e7a1 -[
NSArrayM\ninsertObject:atIndex:] + 225
\n3 CoreFoundation 0x03829bf4 -[NSArrayM addObject:] + 68
\n4 nrapp 0x00105666 -[AnalyticsModule flushEventQueue] + 2206
\n5 Foundation 0x005c776c -[NSThread main] + 81
\n6 Foundation 0x005c76f8
NSThreadmain +\n1387
\n7 libSystem.B.dylib 0x91d0681d
pthread_start + 345
\n8 libSystem.B.dylib 0x91d066a2 thread_start + 34
\n) terminate called after throwing an instance of 'NSException'

{html}", "attachment": [], "flagged": false, "summary": "Analytics causes app to crash", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128070", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:15:58.000+0000", "updated": "2011-04-15T03:15:58.000+0000" }, { "id": "128071", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

ipog 4gt, sim 3.2 1.5.0.fb4b340

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:15:59.000+0000", "updated": "2011-04-15T03:15:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }