当在线用户刚刚打开应用程序时,即使现在崩溃了,我们也无法重现自己。崩溃信息:
libsystem_platform.dylib 0x183223b40 _sigtramp + 36 (sigtramp.c:109)
AGXMetalA10 0x1a2ce15d8
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 int, unsigned int, void*, unsigned long, unsigned long) + 904 (agxa_texture_template.hpp:1038)
AGXMetalA10 0x1a2ce15d8
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 int, unsigned int, void*, unsigned long, unsigned long) + 904 (agxa_texture_template.hpp:1038)
AGXMetalA10 0x1a2ccaa7c -[AGXA10FamilyTexture getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:] + 84 (agxa_texture_objc.mm:355)
AppleMetalGLRenderer 0x1a2d3e8a0 gldReadFramebufferData + 1260 (glr_framebuffer.mm:549)
GLEngine 0x1a3a98074 glReadPixels_Exec + 1124 (gl_read_pixels.c:329)
答案 0 :(得分:1)
5 libsystem_platform.dylib 0x0000000181f3bb40 _sigtramp + 36
6 AGXMetalA9 0x00000001a1ba47b0 AGXMetalA9 + 280496
7 AGXMetalA9 0x00000001a1ba47b0 AGXMetalA9 + 280496
8 AGXMetalA9 0x00000001a1b8dc54 AGXMetalA9 + 187476
9 AppleMetalGLRenderer 0x00000001a1c308a0 gldReadFramebufferData + 1260
10 GLEngine 0x00000001a298b074 glReadPixels_Exec + 1124
&#13;
我也碰到这个,不知道怎么解
答案 1 :(得分:0)
看起来glReadPixel()调用的维度很重要。对于我的情况,似乎如果我采用小于32的整数作为高度参数,则会发生此崩溃。你可以试试看。