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

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

问题描述

使用默认的 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 中,转到 Product -> Scheme -> Edit Scheme ...对于运行调试配置(左侧)选择选项"(右侧)并将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

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

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