在Couch2d应用程序中通过调试在EAGLContext renderbufferStorage处的EXC_BAD_ACCESS:fromDrawable: [英] EXC_BAD_ACCESS at lauch for EAGLContext renderbufferStorage: fromDrawable: in Cocos2d app whie debugging

查看:76
本文介绍了在Couch2d应用程序中通过调试在EAGLContext renderbufferStorage处的EXC_BAD_ACCESS:fromDrawable:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用默认的cocos2d-swift应用程序时,我在iPad Mini 2上收到以下错误消息EXC_BAD_ACCESS:

Using default cocos2d-swift app I'm receiving the error EXC_BAD_ACCESS on my iPad Mini 2 at the line:

BOOL rb_status = [_context renderbufferStorage:GL_RENDERBUFFER fromDrawable:layer];

但是,如果我尝试在不调试的情况下启动应用程序,则一切正常.如果我在任何虚拟设备上使用调试,我也不会收到任何错误. 为什么不起作用?如何清除此错误?

But if I try to launch the app without debug all works fine. If I use debug on any virtual device I receive no error too. Why it doesn't work? How to remove this error?

推荐答案

这似乎是iOS 8.3+上某些设备上的问题.它适用于几乎所有设备,但iPad mini 2也无法使用.简短的是,通话本身没有错.由于某些原因,似乎是这些设备的Xcode错误.您可以通过以下方法解决该问题(直到Apple对其进行修复):

Looks like this is an issue on certain devices on iOS 8.3+. It works for me on almost all devices but the iPad mini 2 fails for me as well. The short of it is that there's nothing wrong with the call itself. Seems to be an Xcode bug with those devices for some reason. You can get around it (until Apple fixes it) by:

在Xcode中,转到产品"->方案"->编辑方案" ... 对于运行调试"配置(在左侧),选择选项"(在右侧),并将"GPU帧捕获"配置为已禁用".

In Xcode, go to Product -> Scheme -> Edit Scheme ... And for the Run Debug configuration (on left side) choose "Options" (on right side) and configure "GPU Frame Capture" as Disabled.

有关更多信息,请查看此线程: https://github.com/BradLarson/GPUImage/issues/2022#issuecomment-118943746

For more information, check out this thread: https://github.com/BradLarson/GPUImage/issues/2022#issuecomment-118943746

这篇关于在Couch2d应用程序中通过调试在EAGLContext renderbufferStorage处的EXC_BAD_ACCESS:fromDrawable:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆