繁体   English   中英

glReadPixels 在 iOS 上崩溃

[英]glReadPixels crash on iOS

当在线用户刚刚打开应用程序时,即使现在它也会崩溃,我们无法复制自己。 崩溃信息:

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)

看起来您的 glReadPixel() 调用的维度很重要。 就我而言,似乎如果我采用小于 32 的整数作为高度参数,就会发生这种崩溃。 你可以试一试。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM