EXC_BAD_ACCESS libpag pag::PAGVideoDecoder::SetMaxHardwareDecoderCount(int) + 244876 (使用的是Firebase上报的crash)
使用版本号如下 pod 'libpag','4.3.57'
iPhone 11 Pro Max iOS16.5.0 crash 信息如下 Crashed: Thread 0 libpag 0x1249d8 pag::PAGVideoDecoder::SetMaxHardwareDecoderCount(int) + 244876 1 libpag 0x9f3a0 pag::PAGDiskCache::RemoveAll() + 109492 2 libpag 0x73188 pag::FileAttributes::FileAttributes(pag::FileAttributes const&) + 265656 3 libpag 0x7bc8c pag::PAGDecoder::renderFrame(std::__1::shared_ptrpag::PAGComposition, int, std::__1::shared_ptrpag::BitmapBuffer) + 340 4 libpag 0x7b44c pag::PAGDecoder::readFrameInternal(int, std::__1::shared_ptrpag::BitmapBuffer) + 584 5 libpag 0x7b82c pag::PAGDecoder::readFrame(int, __CVBuffer*) + 108 6 libpag 0x6c09c pag::FileAttributes::FileAttributes(pag::FileAttributes const&) + 236748 7 libpag 0x6d45c pag::FileAttributes::FileAttributes(pag::FileAttributes const&) + 241804 8 libpag 0x61320 pag::FileAttributes::FileAttributes(pag::FileAttributes const&) + 192336 9 libpag 0x78f80 pag::PAG::SDKVersion() + 3912 10 libpag 0x79cbc pag::PAG::SDKVersion() + 7300 11 libpag 0x1431f4 pag::PAGVideoDecoder::SetMaxHardwareDecoderCount(int) + 369832 12 libpag 0x1435ec pag::PAGVideoDecoder::SetMaxHardwareDecoderCount(int) + 370848 13 libpag 0x14405c pag::PAGVideoDecoder::SetMaxHardwareDecoderCount(int) + 373520 14 libsystem_pthread.dylib 0x16b8 _pthread_start + 148 15 libsystem_pthread.dylib 0xb88 thread_start + 8
com.apple.main-thread
0 libsystem_kernel.dylib 0xc84 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x13b54 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x13e2c mach_msg_overwrite + 540 3 libsystem_kernel.dylib 0x11c8 mach_msg + 24 4 CoreFoundation 0x79024 __CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x7a250 __CFRunLoopRun + 1208 6 CoreFoundation 0x7f3ec CFRunLoopRunSpecific + 612 7 GraphicsServices 0x135c GSEventRunModal + 164 8 UIKitCore 0x39d6e8 -[UIApplication _run] + 888 9 UIKitCore 0x39d34c UIApplicationMain + 340 10 BluedInternational 0x4530 main + 13 (main.m:13) 11 ??? 0x1e1302dec (缺少)
我也遇到同样的崩溃, 崩溃量很大
遇到相同问题,蹲个方案
遇到相同问题,蹲个方案
我也遇到了相同问题,立个标
我在pod 'libpag','4.3.57'下修复了这个错误,我检查了我的podfile.lock,发现尽管我的podfile中是4.3.57,但实际上因为我指定的版本是 pod 'libpag', '~> 4.3.57',导致其最后pod install的是4.3.62版本的pag包。指定为4.3.57后,我删除了本地的项目所有缓存(最好直接从git上重新clone),确认现在的版本是4.3.57后,模拟器上不再报错。