steipete / Aspects

Delightful, simple library for aspect oriented programming in Objective-C and Swift.

Home Page:https://twitter.com/steipete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

We always crash here

Winter-Yang opened this issue · comments

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

commented

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