{ "id": "62547", "key": "TIMOB-1915", "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": "14169", "description": "2012 Sprint 22 Core", "name": "2012 Sprint 22 Core", "archived": true, "released": true, "releaseDate": "2012-11-05" }, { "id": "14274", "description": "2012 Sprint 22", "name": "2012 Sprint 22", "archived": true, "released": true, "releaseDate": "2012-11-05" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-10-31T00:29:40.000+0000", "created": "2011-04-15T03:05:29.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T23:59:56.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}

SDK 1.4.1.1 on iOS SDK 4.1. I figured I'd use Ti.Analytics\r\ncustom events to get more info out of my app. So, I added a number\r\nof them around my codebase, using syntax such as:

\r\n

Ti.Analytics.featureEvent(\"myevent1\");
\r\nTi.Analytics.featureEvent(\"myevent2\", {extraData: \"test\"});
\r\n(seems pretty sane, along what the docs say).

\r\n

However, when I start my app up, after the first analytics call\r\nthe app will predictably crash within 30 seconds with EXC_CRASH\r\n(SIGABRT) and a reason of \"NSMutableArray insertObject:atIndex:]:\r\nattempt to insert nil object at 0'\". This crash happens in both the\r\nsimulator, and on a device (both iOS 3.1.3 and 4.1). Removing just\r\nthese calls and deleting/reinstalling the app on the\r\nphone/simulator makes the app run fine without crashes, and adding\r\nthem back in starts the crashes again.

\r\n

I've tried removing the build directory and regenerating it, and\r\nam going from a fresh install of Titanium that works fine with\r\neverything else.

\r\n

A full trace of the crashes is at: http://pastebin.com/Gvf39NLg

\r\n

P.S. Looking at AnalyiticsModule.m (http://github.com/appcelerator/titanium_mobile/blob/master/iphone/C...)\r\nline 164 could be the culprit...if for some reason what's coming\r\nback in line 163 is nil (as no validation is done to it).

{html}", "attachment": [], "flagged": false, "summary": "iOS: Analytics crash (SIGABRT) when using featureEvent", "creator": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "126971", "author": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Wanted to add that the crashes will begin after I've hit one of\nthose fireEvent lines. If I actually remove the calls, I need to\ndelete and reinstall the app on my phone to get rid of the SQL\ndatabase that Analytics has. Otherwise, I'll just start it up again\nand it will crash again within 20-30 seconds. With a fresh install\non the device then, things work fine as long as I don't hit a\nfireEvent line.

{html}", "updateAuthor": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:29.000+0000", "updated": "2011-04-15T03:05:29.000+0000" }, { "id": "126972", "author": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Marshall: Just wanted to make this ticket aware to you guys, as\nsome other folks have created some analytics-crashing related\ntickets. Analytics may need some TLC. :)

{html}", "updateAuthor": { "name": "robby", "key": "robby", "displayName": "Robby", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:29.000+0000", "updated": "2011-04-15T03:05:29.000+0000" }, { "id": "126973", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Probably fixed along with many other analytics bugs.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:30.000+0000", "updated": "2011-04-15T03:05:30.000+0000" }, { "id": "209614", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed SDK 2.2.0.014b86f. Code snippet alone is enough to reproduce on simulator.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T10:55:20.000+0000", "updated": "2012-07-26T10:55:20.000+0000" }, { "id": "225636", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was able to reproduce with build 014b86f. Cannot reproduce on master/3_0_X/2_1_X branches.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T00:29:40.000+0000", "updated": "2012-10-31T00:29:40.000+0000" }, { "id": "410022", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T23:59:56.000+0000", "updated": "2017-03-08T23:59:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }