Closed MagicLinuxRing closed 5 years ago
Hi @MagicLinuxRing, It seems called [UIView setAnimationsEnabled:]
in non-main thread. So can you tell me how to reproduce it ? or more infomations?
It seems like my demo, can you tell me what you have changed?
应该是LLStorageManager里面的代码有问题!!
2019-10-23 10:50:28.045400+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.046195+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.046259+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.046321+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.046464+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.046541+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.046974+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.047026+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.047209+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.049058+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.049262+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.049989+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.050107+0800 LLDebugToolDemo[11751:3047158] [Assert] Cannot be called with asCopy = NO on non-main thread. 2019-10-23 10:50:28.061746+0800 LLDebugToolDemo[11751:3047158] [Animation] +[UIView setAnimationsEnabled:] being called from a background thread. Performing any operation from a background thread on UIView or a subclass is not supported and may result in unexpected and insidious behavior. trace=( 0 UIKitCore 0x00000001a6e4bc10 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 15129616 1 libdispatch.dylib 0x000000010501ac04 _dispatch_client_callout + 16 2 libdispatch.dylib 0x000000010501c4f4 _dispatch_once_callout + 84 3 UIKitCore 0x00000001a6e4bb74 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 15129460 4 UIKitCore 0x00000001a6e4bcfc 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 15129852 5 UIKitCore 0x00000001a6d7439c 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 14246812 6 UIKitCore 0x00000001a6d742f0 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 14246640 7 UIKitCore 0x00000001a6013f90 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 221072 8 UIKitCore 0x00000001a60133f0 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 218096 9 UIKitCore 0x00000001a60022a8 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 148136 10 UIKitCore 0x00000001a5fff990 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 137616 11 UIKitCore 0x00000001a5fffa64 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 137828 12 UIKitCore 0x00000001a6029ad4 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 309972 13 UIKitCore 0x00000001a6049570 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 439664 14 UIKitCore 0x00000001a604878c 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 436108 15 UIKitCore 0x00000001a6048718 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 435992 16 UIKitCore 0x00000001a6032864 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 346212 17 UIKitCore 0x00000001a63c1890 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4077712 18 UIKitCore 0x00000001a63c1f94 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4079508 19 UIKitCore 0x00000001a63d76c4 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4167364 20 UIKitCore 0x00000001a63d04d4 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4138196 21 UIKitCore 0x00000001a63d1e54 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4144724 22 UIKitCore 0x00000001a63d43c0 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4154304 23 UIKitCore 0x00000001a63d48bc 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4155580 24 UIKitCore 0x00000001a63d4310 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4154128 25 UIKitCore 0x00000001a63d4578 82C949DD-37F6-35F7-B3EF-62BA342F6BF5 + 4154744 26 LLDebugToolDemo 0x0000000104cd6314 __29-[ViewController viewDidLoad]_block_invoke_3.68 + 1200 27 CFNetwork 0x00000001a5bd82cc CFNetServiceBrowserSearchForServices + 93016 28 CFNetwork 0x00000001a5be8800 _CFHTTPMessageSetResponseProxyURL + 9540 29 Foundation 0x00000001a2d8561c 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 1132060 30 Foundation 0x00000001a2c8f3d8 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 123864 31 Foundation 0x00000001a2d878a4 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 1140900 32 Foundation 0x00000001a2c8f070 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 122992 33 Foundation 0x00000001a2d8829c 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 1143452 34 Foundation 0x00000001a2d87d68 0DF2911E-80CB-3289-8A1E-ED0913D55A12 + 1142120 35 libdispatch.dylib 0x0000000105029298 _dispatch_block_async_invoke2 + 104 36 libdispatch.dylib 0x000000010501ac04 _dispatch_client_callout + 16 37 libdispatch.dylib 0x000000010501d808 _dispatch_continuation_pop + 524 38 libdispatch.dylib 0x000000010501cc88 _dispatch_async_redirect_invoke + 624 39 libdispatch.dylib 0x000000010502c168 _dispatch_root_queue_drain + 376 40 libdispatch.dylib 0x000000010502ca90 _dispatch_worker_thread2 + 156 41 libsystem_pthread.dylib 0x00000001a26ddf64 _pthread_wqthread + 212 42 libsystem_pthread.dylib 0x00000001a26e0ae0 start_wqthread + 8 )