Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-1915

iOS: Analytics crash (SIGABRT) when using featureEvent

    Details

    • Sprint:
      Release 3.0.0

      Description

      {html}<div><p>SDK 1.4.1.1 on iOS SDK 4.1. I figured I'd use Ti.Analytics
      custom events to get more info out of my app. So, I added a number
      of them around my codebase, using syntax such as:</p>
      <p>Ti.Analytics.featureEvent("myevent1");<br>
      Ti.Analytics.featureEvent("myevent2", {extraData: "test"});<br>
      (seems pretty sane, along what the docs say).</p>
      <p>However, when I start my app up, after the first analytics call
      the app will predictably crash within 30 seconds with EXC_CRASH
      (SIGABRT) and a reason of "NSMutableArray insertObject:atIndex:]:
      attempt to insert nil object at 0'". This crash happens in both the
      simulator, and on a device (both iOS 3.1.3 and 4.1). Removing just
      these calls and deleting/reinstalling the app on the
      phone/simulator makes the app run fine without crashes, and adding
      them back in starts the crashes again.</p>
      <p>I've tried removing the build directory and regenerating it, and
      am going from a fresh install of Titanium that works fine with
      everything else.</p>
      <p>A full trace of the crashes is at: <a href=
      "http://pastebin.com/Gvf39NLg">http://pastebin.com/Gvf39NLg</a></p>
      <p>P.S. Looking at AnalyiticsModule.m (<a href=
      "http://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/AnalyticsModule.m">http://github.com/appcelerator/titanium_mobile/blob/master/iphone/C...</a>)
      line 164 could be the culprit...if for some reason what's coming
      back in line 163 is nil (as no validation is done to it).</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              mstepanov Max Stepanov
              Reporter:
              robby Robby
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1704
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration