ibireme / YYCache

High performance cache framework for iOS.
MIT License
2.37k stars 505 forks source link

YYDiskCache.m line 277 -[YYDiskCache setObject:forKey:] crash #140

Open penglimin opened 5 years ago

penglimin commented 5 years ago

OS Version: 10.0.2 (14A456)

Device: iPad mini 2

RAM Free: 2.2%

Disk Free: 47.4%

0. Crashed: com.apple.main-thread

0 libsystem_kernel.dylib 0x182902014 pthread_kill + 8 1 libsystem_pthread.dylib 0x1829c9460 pthread_kill + 112 2 libsystem_c.dylib 0x1828763f4 abort + 140 3 libsystem_malloc.dylib 0x182946a38 _nano_vet_and_size_of_live + 330 4 libsystem_malloc.dylib 0x182947db8 nano_free + 220 5 CoreFoundation 0x18396a448 __CFBasicHashDrain + 404 6 CoreFoundation 0x1838e3a74 _CFRelease + 216 7 CoreFoundation 0x1838a79b0 CFBinaryPlistWriteOrPresize + 556 8 Foundation 0x18437b458 -[NSKeyedArchiver finishEncoding] + 588 9 Foundation 0x184380b2c +[NSKeyedArchiver archivedDataWithRootObject:] + 184 10 XXXXXXX 0x100aece4c -[YYDiskCache setObject:forKey:] (YYDiskCache.m:277) 11 XXXXXXX 0x100aeb58c -[YYCache setObject:forKey:] (YYCache.m:99) 12 XXXXXXX 0x1002c66b8 +[CDNetAPIClient dealWithResponseObject:cache:cacheKey:urlString:parameters:isJustStoreCache:] (CDNetAPIClient.m:461) 13 XXX 0x1002c4744 129+[CDNetAPIClient requestMethod:urlString:parameters:imageData:cache:cacheKey:isJustUpdateCache:isJustStoreCache:success:failure:]_block_invoke (CDNetAPIClient.m:303) 14 XXX 0x1009ff9d0 116-[AFHTTPSessionManager dataTaskWithHTTPMethod:URLString:parameters:uploadProgress:downloadProgress:success:failure:]_block_invoke.80 (AFHTTPSessionManager.m:292) 15 XXXX 0x100a127ec 72-[AFURLSessionManagerTaskDelegate URLSession:task:didCompleteWithError:]_block_invoke_2.150 (AFURLSessionManager.m:308) 16 libdispatch.dylib 0x1827bd200 _dispatch_call_block_and_release + 24 17 libdispatch.dylib 0x1827bd1c0 _dispatch_client_callout + 16 18 libdispatch.dylib 0x1827c1b30 _dispatch_main_queue_callback_4CF + 428 19 CoreFoundation 0x1838e1f2c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12 20 CoreFoundation 0x1838dfb18 CFRunLoopRun + 1660 21 CoreFoundation 0x18380e048 CFRunLoopRunSpecific + 444 22 GraphicsServices 0x185291198 GSEventRunModal + 180 23 UIKit 0x1897e1628 -[UIApplication _run] + 684 24 UIKit 0x1897dc360 UIApplicationMain + 208 25 XXXXX 0x100920f4c main (main.m:14) 26 (Missing) 0x1827f05b8 (Missing)


crash_info_entry_0 abort() called
crash_info_entry_1 *** error for object 0x178588000: Freeing unallocated pointer
JerryChenly commented 4 years ago

遇到同样的问题,请问有解决方案么

Huanhoo commented 4 years ago

这个nano系列的 是iOS10的系统bug