8 Replies Latest reply: Feb 21, 2012 7:22 AM by James Nicholas RSS

Crashes for iOS5.0 (EXC_BAD_ACCESS)

Newbie

Hi,

 

I integrated Webtrends Analytics (version 1.1.0.375) in our iOS mobile app and it works fine for iOS versions 4.0-4.3 (inclusive). However for iOS 5.0, the app crashes with an EXC_BAD_ACCESS error. I contacted support already but they also suggested to post the problem here.

 

I isolated the problem and found that in our app delegate, we have the following:

 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

    [[NSURLCache sharedURLCache] setDiskCapacity:0]; // line1

 

    // More code

}

 

If line1 is commented removed, Webtrends does not crash in iOS 5.0; however, we require that line for our app. Just wondering if anyone else has a similar issue or if there's a fix for it.

 

This is the stack trace:

 

#0  0x019b490e in dispatch_resume ()

#1  0x01c4b3af in AddCacheTask ()

#2  0x01ce07b1 in CFURLCacheRemoveCachedResponseForRequest ()

#3  0x00d5acea in -[NSURLCache removeCachedResponseForRequest:] ()

#4  0x000082d4 in -[WTDCManager postEventToDC:] (self=0x6b27c10, _cmd=0x13b8e, event=0x6b1ae20) at /Users/mbuilder/VSTS/Mobile/Data Collection/IPhone/release/1.1/WTDC/WTDCManager.m:859

#5  0x0000a2f1 in -[WTDCManager realSendEvents] (self=0x6b27c10, _cmd=0x13c4f) at /Users/mbuilder/VSTS/Mobile/Data Collection/IPhone/release/1.1/WTDC/WTDCManager.m:507

#6  0x0000777e in -[WTDCManager startSendTimer:] (self=0x6b27c10, _cmd=0x13cc4, info=0x0) at /Users/mbuilder/VSTS/Mobile/Data Collection/IPhone/release/1.1/WTDC/WTDCManager.m:390

#7  0x00c6e4e6 in -[NSThread main] ()

#8  0x00c6e457 in __NSThread__main__ ()

#9  0x90031259 in _pthread_start ()

#10 0x900310de in thread_start ()

 

 

Thanks,