Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios sgxTextureGetImageRowBytes EXC\u错误\u访问_Ios_Cocoa_Opengl Es - Fatal编程技术网

Ios sgxTextureGetImageRowBytes EXC\u错误\u访问

Ios sgxTextureGetImageRowBytes EXC\u错误\u访问,ios,cocoa,opengl-es,Ios,Cocoa,Opengl Es,我正在为iOS开发OpenGL ES 2应用程序。今天早上(没有更改任何代码),我开始从sgxturegetimagerowbytes抛出EXC\u BAD\u ACCESS #0 0x32979c20 in sgxTextureGetImageRowBytes(GLDTextureRec*, # unsigned int, unsigned int) () #1 0x32979bd2 in CalculateChunkPlaneSizes(GLDTex

我正在为iOS开发OpenGL ES 2应用程序。今天早上(没有更改任何代码),我开始从
sgxturegetimagerowbytes
抛出
EXC\u BAD\u ACCESS

#0      0x32979c20 in sgxTextureGetImageRowBytes(GLDTextureRec*, 
#           unsigned int, unsigned int) ()
#1      0x32979bd2 in CalculateChunkPlaneSizes(GLDTextureRec*, 
#           int, unsigned int*, unsigned int*, unsigned int*, unsigned int*) ()
#2      0x3297c336 in sgxConfigureTexturePrivate(GLDTextureRec*) ()
#3      0x3297af88 in glrUpdateTexture ()
#4      0x341a56c0 in gldLoadFramebuffer ()
#5      0x38387bd4 in gleUpdateDrawFramebufferState ()
#6      0x382ffa60 in glClear_Exec ()
#7      0x001221ea in clear ()
以前有人见过这个错误吗


编辑: 看起来其他人也看到了类似的问题(),但被接受的解决方案对我来说不起作用(听起来也不太有希望)


我已经向苹果开发者技术支持(DTS)提交了一份请求。

我实际上发现了iOS版本的问题。当我升级到6.1.3时,这个用户正在iPad4、iOS 6.1.2上运行,问题就消失了。希望这对别人有帮助

谢谢,
Tim

您需要为您的
MKMapView
创建一个
\u块

__block MKMapView *map = _mapView;
[map addAnnotations:nearbyPlaces];

“我也遇到了同样的问题……有什么新的解决方案吗?”TimWalsh DTS建议,如果出现这种情况,我只需重新启动所有东西(我正在编写代码的iPad和Macbook Pro)。这似乎是iOS或XCode中的一个错误导致的。升级可能需要重新启动。不确定这在6-7个月后有多重要,但6.1.3上也发生了此崩溃。升级到它是不够的,从另一个StackOverflow条目来看,这可能与内存泄漏有关。我的代码没有使用maps API。强制重启iPad(根据DTS的建议)解决了这个问题。