我从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(代码= EXC_I386_BPT,子代码= 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]];
关于可能出错的任何想法? 非常感谢您的帮助, 谢谢!
P.S。:这是使用Zombies工具运行时检测到的僵尸。
# 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:]