Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Analytics IOS v2(beta) crash under ARC
    text
    copied!<p>I get the following crash from Google Analytics v2.0 beta 3: It's started by:</p> <pre><code> __45-[GAIDispatcher queueDispatch:url:timestamp:]_block_invoke_0 + 119 at GAIDispatcher.m:633 </code></pre> <p>Followed by:</p> <pre><code> -[GAIDispatcher persistAndDispatch:url:timestamp:] + 427 at GAIDispatcher.m:525 </code></pre> <p>The error is:</p> <pre><code>** -[__NSDictionaryM setObject:forKey:]: message sent to deallocated instance 0xb68c690 </code></pre> <p>My setup is as follows: I have an app that uses ARC (the limited one.. from ios 4.3) My app supports a minimum SDK of 4.3, developed under SDK 6.0. The crash appears only on the simulator (works fine on device) and it's a EXC_BREAKPOINT(code=EXC_I386_BPT, subcode=0x0)</p> <p>All I have in my code is this, in applicationDidFinishLaunching:</p> <pre><code> [GAI sharedInstance].trackUncaughtExceptions = NO; // Optional: set Google Analytics dispatch interval to e.g. 20 seconds. [GAI sharedInstance].dispatchInterval = 5; // Optional: set debug to YES for extra debugging information. [GAI sharedInstance].debug = YES; // Create tracker instance. id&lt;GAITracker&gt; tracker = [[GAI sharedInstance] trackerWithTrackingId:UA_NUMBER]; [tracker trackEventWithCategory:@"TestV1" withAction:@"ActionV1" withLabel:@"LabelV1" withValue:[NSNumber numberWithInt:10]]; </code></pre> <p>Any ideas on what might be wrong? Your help is greatly appreciated, Thanks!</p> <p>P.S.: This is the Zombie detected when running with the Zombies tool.</p> <pre><code># Address Category Event Type RefCt Timestamp Size Responsible Library Responsible Caller 0 0xd18fe30 __NSDictionaryM Malloc 1 00:20.889.002 32 PostcodeGazette -[GAIDispatcher queueDispatch:url:] 1 0xd18fe30 __NSDictionaryM Autorelease 00:20.889.015 0 PostcodeGazette -[GAIDispatcher queueDispatch:url:] 2 0xd18fe30 __NSDictionaryM Release 0 00:24.832.529 0 UIKit _UIApplicationHandleEvent 3 0xd18fe30 __NSDictionaryM Zombie -1 00:25.067.003 0 PostcodeGazette -[GAIDispatcher persistAndDispatch:url:timestamp:] </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload