iOS 崩溃,项目引入后,创建pagview后就崩溃,日志如下 #1000
-
thread #15, queue = 'PAGView.art.pag (QOS: UNSPECIFIED)', stop reason = EXC_BAD_ACCESS (code=2, address=0x1034d37f8) ** **frame #1: 0x00000001052b20e0 libpag`___lldb_unnamed_symbol3506 + 180 ** **frame #2: 0x00000001052b1fd4 libpag`___lldb_unnamed_symbol3505 + 240 ** **frame #3: 0x00000001052bb220 libpag`___lldb_unnamed_symbol3699 + 204 ** **frame #4: 0x00000001052bb08c libpag`___lldb_unnamed_symbol3698 + 152 ** **frame #5: 0x00000001052b6358 libpag`___lldb_unnamed_symbol3583 + 48 ** **frame #6: 0x0000000105287e3c libpag`___lldb_unnamed_symbol2545 + 44 ** **frame #7: 0x0000000105324dec libpag`pag::PAGSurface::lockContext() + 36 ** frame #8: 0x0000000105325084 libpag`pag::PAGSurface::draw(pag::RenderCache, std::__1::shared_ptrpag::Graphic, pag::BackendSemaphore, bool) + 76 ** *frame #9: 0x000000010531cdc0 libpag`pag::PAGPlayer::flushInternal(pag::BackendSemaphore) + 148 ** **frame #10: 0x000000010531ccb8 libpag`pag::PAGPlayer::flush() + 140 ** **frame #11: 0x000000010532c03c libpag`___lldb_unnamed_symbol6341 + 36 ** **frame #12: 0x000000019c463f14 Foundation`NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 24 ** **frame #13: 0x000000019c438020 Foundation`-[NSBlockOperation main] + 104 ** **frame #14: 0x000000019c437fb0 Foundation`NSOPERATION_IS_INVOKING_MAIN + 16 ** **frame #15: 0x000000019c3f94d8 Foundation`-[NSOperation start] + 708 ** **frame #16: 0x000000019c3f920c Foundation`NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION + 16 ** **frame #17: 0x000000019c3fe89c Foundation`__NSOQSchedule_f + 172 ** **frame #18: 0x0000000105143158 libdispatch.dylib`_dispatch_block_async_invoke2 + 148 ** **frame #19: 0x0000000105132038 libdispatch.dylib`_dispatch_client_callout + 20 ** **frame #20: 0x00000001051351b4 libdispatch.dylib`_dispatch_continuation_pop + 792 ** **frame #21: 0x0000000105134404 libdispatch.dylib`_dispatch_async_redirect_invoke + 680 ** **frame #22: 0x000000010514643c libdispatch.dylib`_dispatch_root_queue_drain + 408 ** **frame #23: 0x0000000105146e34 libdispatch.dylib`_dispatch_worker_thread2 + 196 ** **frame #24: 0x0000000201ea4da0 libsystem_pthread.dylib`_pthread_wqthread + 228
反馈 crash 问题建议将发下版本号,未解析出来的内容通过 dsym 文件解析出具体内容
EXC_BAD_ACCESS (SIGBUS) Exception Subtype: KERN_PROTECTION_FAILURE at 0x0000000103a337d8 Exception Codes: 0x0000000000000002, 0x0000000103a337d8 VM Region Info: 0x103a337d8 is in 0x103a2c000-0x103a34000; bytes after start: 30680 bytes before end: 2087 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL __DATA 103840000-103a2c000 [ 1968K] rw-/rw- SM=COW ---> __DATA 103a2c000-103a34000 [ 32K] rw-/rw- SM=PRV __LINKEDIT 103a34000-10410c000 [ 7008K] r--/r-- SM=COW Termination Reason: SIGNAL 10 Bus error: 10 Terminating Process: exc handler [54445] Triggered by Thread: 1r Thread 0: 0 libsystem_kernel.dylib 0x1e1063c84 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1e1076e2c mach_msg_overwrite + 540 2 libsystem_kernel.dylib 0x1e10641c8 mach_msg + 24 3 CoreFoundation 0x1a2170024 __CFRunLoopServiceMachPort + 160 4 CoreFoundation 0x1a2171250 __CFRunLoopRun + 1208 5 CoreFoundation 0x1a21763ec CFRunLoopRunSpecific + 612 6 GraphicsServices 0x1dd63b35c GSEventRunModal + 164 7 UIKitCore 0x1a45036e8 -[UIApplication _run] + 888 8 UIKitCore 0x1a450334c UIApplicationMain + 340 10 dyld 0x1c1676dec start + 2220 Thread 1 Crashed: 0 ??? 0x103a337d8 glGetStringi + 0 1 libpag 0x1196d1f70 0x119674000 + 384880 2 libpag 0x1196db1c4 0x119674000 + 422340 3 libpag 0x1196db030 0x119674000 + 421936 4 libpag 0x1196d62f4 0x119674000 + 402164 5 libpag 0x1196a7dd8 0x119674000 + 212440 6 libpag 0x119744de0 pag::PAGSurface::lockContext() + 36 7 libpag 0x119745078 pag::PAGSurface::draw(pag::RenderCache*, std::__1::shared_ptrpag::Graphic, pag::BackendSemaphore*, bool) + 76 8 libpag 0x11973cdb4 pag::PAGPlayer::flushInternal(pag::BackendSemaphore*) + 148 9 libpag 0x11973ccac pag::PAGPlayer::flush() + 140 10 libpag 0x11974c030 0x119674000 + 884784 11 Foundation 0x19c463f14 NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 24 12 Foundation 0x19c438020 -[NSBlockOperation main] + 104 13 Foundation 0x19c437fb0 NSOPERATION_IS_INVOKING_MAIN + 16 14 Foundation 0x19c3f94d8 -[NSOperation start] + 708 15 Foundation 0x19c3f920c NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION + 16 16 Foundation 0x19c3fe89c __NSOQSchedule_f + 172 17 libdispatch.dylib 0x1a95d5fc4 _dispatch_block_async_invoke2 + 148 18 libdispatch.dylib 0x1a95c6eac _dispatch_client_callout + 20 19 libdispatch.dylib 0x1a95ca330 _dispatch_continuation_pop + 504 20 libdispatch.dylib 0x1a95c9998 _dispatch_async_redirect_invoke + 584 21 libdispatch.dylib 0x1a95d8944 _dispatch_root_queue_drain + 396 22 libdispatch.dylib 0x1a95d9158 _dispatch_worker_thread2 + 164 23 libsystem_pthread.dylib 0x201ea4da0 _pthread_wqthread + 228 24 libsystem_pthread.dylib 0x201ea4b7c start_wqthread + 8 通过symbolicatecrash方式解析后的日志,解不出具体的类和方法,使用项目的版本号:4.2.92
找到必现步骤了,podfile中引入 pod 'BaiduMapKit/Map', '6.0.0',官方demo也会崩溃,依赖的各个库的版本号
辛苦帮忙看下在pag-ios的demo项目中引入 pod 'BaiduMapKit/Map', '6.0.0' 只是创建pagview,就会出上面的崩溃
感谢反馈,问题已经定位到,本周会发布一个版本修改该问题 同时也可以给百度地图反馈这个问题,他们暴露了不需要的符号: kevingpqi@KEVINGPQI-MC3 ios % nm -g /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base| grep glGetStringi /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:gif_loader.o: no symbols /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:image_encoder_png.o: no symbols /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:gif_decoder.o: no symbols /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:glesw.o: no symbols /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:bitmap_iterator.o: no symbols /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:image_encoder_jpeg.o: no symbols /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:Mem.o: no symbols /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:gif_frame.o: no symbols 0000000000000008 C _glGetStringi /Users/kevingpqi/Documents/04Develop/github/pag-ios/sample/Pods/BaiduMapKit/BaiduMapKit/BaiduMapAPI_Base.framework/BaiduMapAPI_Base:data_block.o: no symbols
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The above content was transferred from a legacy post on the PAG forum |
Beta Was this translation helpful? Give feedback.
-
请问这个修复版本号是多少?我们现在用的4.2.110,是否已经带了修复的?目前我这边debug的时候出现一次,不确定是否同样问题 |
Beta Was this translation helpful? Give feedback.
The above content was transferred from a legacy post on the PAG forum
以上内容搬运来自 PAG 论坛的历史帖子