iOS v4.2.90 makeSnapshot 崩溃
【版本信息】
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 (
因为用户近期没有反馈,所以暂时关闭当前issue,如果后续有问题再重新打开