Skip to content

saveCacheData iOS 4.3 crash #63

Closed
raissetto opened this Issue Feb 24, 2012 · 2 comments

4 participants

@raissetto

This crash is only on iOS 4.3

I get signal SiGABRT on this method: NSString *filePath = [[self cacheDirectoryName] stringByAppendingPathComponent:lastKey];


2012-02-24 16:52:52.763 [13399:18e0b] -[NSDate length]: unrecognized selector sent to instance 0x677b760
2012-02-24 16:52:52.765 [13399:18e0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDate length]: unrecognized selector sent to instance 0x677b760'
*** Call stack at first throw:
(
0 CoreFoundation 0x023375a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x01e02313 objc_exception_throw + 44
2 CoreFoundation 0x023390bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x022a8966 ___forwarding_
+ 966
4 CoreFoundation 0x022a8522 _CF_forwarding_prep_0 + 50
5 Foundation 0x018581ad -[NSPathStore2 stringByAppendingPathComponent:] + 211
6 0x0002622b -[MKNetworkEngine saveCacheData:forKey:] + 1003
7 0x00024101 -[MKNetworkEngine cachedDataForOperation:] + 577
8 0x00024665 __48-[MKNetworkEngine enqueueOperation:forceReload:]_block_invoke_0 + 309
9 libdispatch_sim.dylib 0x01da6289 _dispatch_call_block_and_release + 16
10 libdispatch_sim.dylib 0x01da958a _dispatch_worker_thread2 + 252
11 libsystem_c.dylib 0x9ae38b24 _pthread_wqthread + 346
12 libsystem_c.dylib 0x9ae3a6fe start_wqthread + 30
)
terminate called throwing an exception(lldb)
(lldb)
(lldb) po lastKey
(NSString *) $5 = 0x0677b760 2012-02-10 11:13:29 +0000
(lldb) po self cacheMemoryCost $6 = 10
(lldb) po self cacheDirectoryName $7 = 0x0718e220 /Users/Rudy/Library/Application Support/iPhone Simulator/4.3.2/Applications/BEB6D1D9-6A32-4FCD-8EA8-E156C6835FA1/Library/Caches/MKNetworkKitCache
(lldb) po [[self cacheDirectoryName] stringByAppendingPathComponent:lastKey]
2012-02-24 16:54:20.508 [13399:18e0b] -[__NSDate length]: unrecognized selector sent to instance 0x677b760
(id) $8 = 0x00000000
(lldb) po lastKey
(NSString *) $9 = 0x0677b760 2012-02-10 11:13:29 +0000
(lldb)

@lucabartoletti

I have this problem to in iOS 4.3.3

@zakdances

I'm having this problem in iOS 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.