renzifeng / ZFDownload

断点下载,支持后台下载,再次打开程序、异常退出记录下载进度
MIT License
408 stars 112 forks source link

调用startLoad方法会出现此bug #15

Open Henry519 opened 7 years ago

Henry519 commented 7 years ago

Trapped uncaught exception 'NSGenericException', reason: '*** Collection <NSArrayM: 0x60000044a860> was mutated while being enumerated.' [ 0 CoreFoundation 0x000000010df5ed4b exceptionPreprocess + 171, 1 libobjc.A.dylib 0x0000000112cde21e objc_exception_throw + 48, 2 CoreFoundation 0x000000010dfc7f6c NSFastEnumerationMutationHandler + 124, 3 WLMaster 0x000000010c46f6f5 -[ZFDownloadManager startLoad] + 1493, 4 WLMaster 0x000000010c46c895 -[ZFDownloadManager downFileUrl:filename:videoId:completeBlock:] + 2229, 5 WLMaster 0x000000010c563acd -[WLVideoCacheManager downloadWithData:completeBlock:] + 1325, 6 WLMaster 0x000000010c562fa5 63-[WLVideoCacheManager addDownTaskToDispatchSemaphoreWithModle:]_block_invoke + 261, 7 libdispatch.dylib 0x000000011437f978 _dispatch_call_block_and_release + 12, 8 libdispatch.dylib 0x00000001143a90cd _dispatch_client_callout + 8, 9 libdispatch.dylib 0x0000000114388312 _dispatch_queue_override_invoke + 1426, 10 libdispatch.dylib 0x000000011438a385 _dispatch_root_queue_drain + 720, 11 libdispatch.dylib 0x000000011438a059 _dispatch_worker_thread3 + 123, 12 libsystem_pthread.dylib 0x0000000114758712 _pthread_wqthread + 1299, 13 libsystem_pthread.dylib 0x00000001147581ed start_wqthread + 13 ]

ghost commented 7 years ago

自己改改了,for循环改改