I’m getting this odd crash on some Mac OS X machines. Seems like some type of GPU support issue, but i’m not sure why it crashes in string … anyone seen this before?
Stacktrace:
std::__1::char_traits length(char const*) string:640
cocos2d::CCConfiguration gatherGPUInfo() string:2001
cocos2d::CCDirector setOpenGLView(cocos2d::CCEGLView*) CCDirector.cpp:355
AppDelegate applicationDidFinishLaunching() AppDelegate.cpp:60
cocos2d::CCApplication run() CCApplication.mm:51
AppController applicationDidFinishLaunching: AppController.mm:158
energyy
January 20, 2016, 8:34pm
#2
I think it was discussed before, that 2.2.6 version now crashing on El Capitane , there was some quick fix workaround discussed
Thanks, found this thread:
Hi All. I’ve just upgraded one of my macs to El Capitan to see if my game still works…it doesn’t. It crashed immediately after starting. Running it in the debugger (of XCode 6 not 7 yet) I see it crashes at:
void CCConfiguration::gatherGPUInfo()
{
m_pValueDict->setObject( CCString::create( (const char*)glGetString(GL_VENDOR)), "gl.vendor"); <=
....
}
Application Specific Information:
terminating with uncaught exception of type std::logic_error: basic_string::_S_construct NULL not valid
a…
Very odd, because my games have had no problem running on El Capitan until my latest update.
Something must have changed in my build chain, I’m guessing. This is one of the reasons I dislike working with Apple!