libpag icon indicating copy to clipboard operation
libpag copied to clipboard

iOS v4.2.90 makeSnapshot 崩溃

Open liyanhongCN opened this issue 2 years ago • 1 comments

【版本信息】

4.2.90

【平台信息】

iOS 原生

【预期的表现】

PAGView makeSnapshot 实现截图功能

【实际的情况】

调用PAGView 的 makeSnapshot 线上出现少量崩溃

【Demo及附件】

Thread 0 name: Thread 0 Crashed: 0 libsystem_platform.dylib 0x00000001cdac2184 _platform_memmove + 164 1 AGXMetalA10 0x00000001ceb388bc AGX::Texture<(AGXTextureMemoryLayout)1, AGX::G9::Encoders, AGX::G9::Classes>::readRegion(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned i... + 864 (agxa_texture_template.hpp:2122) 2 AGXMetalA10 0x00000001ceb1a0b0 -[AGXA10FamilyTexture getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:] + 84 (agxa_texture_objc.mm:649) 3 AppleMetalGLRenderer 0x00000001cdfe0750 gldReadFramebufferData + 1272 (glr_framebuffer.mm:552) 4 GLEngine 0x00000001b6b9a044 glReadPixels_Exec + 924 (gl_read_pixels.c:329) 5 libpag 0x0000000103ee63cc 0x103e7c000 + 435148 6 libpag 0x0000000103f42180 pag::PAGSurface::readPixels(pag::ColorType, pag::AlphaType, void*, unsigned long) + 268 7 libpag 0x0000000103f43cc8 0x103e7c000 + 818376 8 poetry 0x00000001014cf0ec CustomImagePAGView.makePlaceholderImage() + 116 (PAGManager.swift:342) 9 poetry 0x000000010144a5cc CourtyardAutumnView.makeSnapshots() + 28 (CourtyardAutumnView.swift:746) 10 poetry 0x000000010140ad7c closure #1 in closure #1 in TabBarsController.kitView.getter + 236 (TabBarsController.swift:1065) 11 poetry 0x00000001012bd070 CourtyardFloatingView.tapClick(tap:) + 688 (CourtyardFloatingView.swift:33) 12 poetry 0x00000001012bd0d0 @objc CourtyardFloatingView.tapClick(tap:) + 52 (:0) 13 UIKitCore 0x000000018769f3fc -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 52 (UIGestureRecognizer.m:136) 14 UIKitCore 0x00000001876a8970 _UIGestureRecognizerSendTargetActions + 112 (UIGestureRecognizer.m:1545) 15 UIKitCore 0x00000001876a55f8 _UIGestureRecognizerSendActions + 352 (UIGestureRecognizer.m:1584) 16 UIKitCore 0x00000001876a4bc0 -[UIGestureRecognizer updateGestureForActiveEvents] + 668 (UIGestureRecognizer.m:0) 17 UIKitCore 0x0000000187699150 UIGestureEnvironmentUpdate + 2068 (UIGestureEnvironment.m:206) 18 UIKitCore 0x00000001876984e0 -[UIGestureEnvironment updateForEvent:window:] + 728 (UIGestureEnvironment.m:1320) 19 UIKitCore 0x0000000187b5c4cc -[UIWindow sendEvent:] + 3796 (UIWindow.m:3070) 20 UIKitCore 0x0000000187b37b0c -[UIApplication sendEvent:] + 744 (UIApplication.m:11240) 21 UIKitCore 0x0000000187bba078 __dispatchPreprocessedEventFromEventQueue + 1032 (UIEventDispatcher.m:2214) 22 UIKitCore 0x0000000187bbe818 __processEventQueue + 6440 (UIEventDispatcher.m:2518) 23 UIKitCore 0x0000000187bb5afc __eventFetcherSourceCallback + 156 (UIEventDispatcher.m:2588) 24 CoreFoundation 0x000000018522ebf0 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24 (CFRunLoop.c:1967) 25 CoreFoundation 0x000000018522eaf0 __CFRunLoopDoSource0 + 204 (CFRunLoop.c:2011) 26 CoreFoundation 0x000000018522de38 __CFRunLoopDoSources0 + 256 (CFRunLoop.c:2048) 27 CoreFoundation 0x00000001852283e0 __CFRunLoopRun + 776 (CFRunLoop.c:2925) 28 CoreFoundation 0x0000000185227ba0 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3242) 29 GraphicsServices 0x000000019bf8d598 GSEventRunModal + 160 (GSEvent.c:2259) 30 UIKitCore 0x0000000187b192f4 -[UIApplication run] + 1052 (UIApplication.m:3253) 31 UIKitCore 0x0000000187b1e874 UIApplicationMain + 164 (UIApplication.m:4707) 32 libswiftUIKit.dylib 0x00000001989a5b54 UIApplicationMain(::::) + 100 (UIKit.swift:528) 33 poetry 0x0000000100ee2a68 specialized static UIApplicationDelegate.main() + 80 (:24) 34 poetry 0x0000000100ee2a68 static AppDelegate.$main() + 92 (ClassifyContentVC.swift:0) 35 poetry 0x0000000100ee2a68 main + 108 36 libdyld.dylib 0x0000000184f06568 start + 4 (:-1)

liyanhongCN avatar Dec 18 '23 06:12 liyanhongCN

因为用户近期没有反馈,所以暂时关闭当前issue,如果后续有问题再重新打开

CodeJhF avatar May 08 '26 03:05 CodeJhF