我从 Google Analytics v2.0 beta 3 收到以下崩溃:它的开始是:
__45-[GAIDispatcher queueDispatch:url:timestamp:]_block_invoke_0 + 119 at GAIDispatcher.m:633
其次是:
-[GAIDispatcher persistAndDispatch:url:timestamp:] + 427 at GAIDispatcher.m:525
错误是:
** -[__NSDictionaryM setObject:forKey:]: message sent to deallocated instance 0xb68c690
我的设置如下:我有一个使用 ARC 的应用程序(来自 ios 4.3 的有限应用程序)我的应用程序支持在 SDK 6.0 下开发的最低 SDK 4.3。崩溃仅出现在模拟器上(在设备上工作正常),它是 EXC_BREAKPOINT(code=EXC_I386_BPT, subcode=0x0)
我的代码中只有这个,在 applicationDidFinishLaunching 中:
[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<GAITracker> tracker = [[GAI sharedInstance] trackerWithTrackingId:UA_NUMBER];
[tracker trackEventWithCategory:@"TestV1"
withAction:@"ActionV1"
withLabel:@"LabelV1"
withValue:[NSNumber numberWithInt:10]];
关于什么可能是错的任何想法?非常感谢您的帮助,谢谢!
PS:这是使用 Zombies 工具运行时检测到的 Zombie。
# 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:]