steipete / Aspects

Delightful, simple library for aspect oriented programming in Objective-C and Swift.
https://twitter.com/steipete
MIT License
8.4k stars 1.26k forks source link

We always crash here #119

Open Winter-Yang opened 7 years ago

Winter-Yang commented 7 years ago

libobjc.A.dylib objc_retain + 3 1 LaiFenQi -[NSInvocation(Aspects) aspect_argumentAtIndex:] (Aspects.m:683) 2 LaiFenQi -[NSInvocation(Aspects) aspects_arguments] (Aspects.m:743) 3 LaiFenQi -[AspectInfo arguments] (Aspects.m:885) 4 LaiFenQi 36-[AppDelegate(Logging) setupLogging]_block_invoke_2.516 (AppDelegate+Logging.m:248) 5 libdispatch.dylib dispatch_call_block_and_release + 11 6 libdispatch.dylib dispatch_queue_override_invoke + 537 7 libdispatch.dylib dispatch_root_queue_drain + 327 8 libdispatch.dylib __dispatch_worker_thread3 + 107 9 libsystem_pthread.dylib _pthread_wqthread + 1040

Hank-Zhong commented 5 years ago

检查是否在子线程中调用了.arguments,arguments是懒加载,有block时首次调用应在主线程执行