Skip to content

Instantly share code, notes, and snippets.

@spin6lock
Created May 10, 2013 07:09
Show Gist options
  • Save spin6lock/5552879 to your computer and use it in GitHub Desktop.
Save spin6lock/5552879 to your computer and use it in GitHub Desktop.
cocos-2dx HelloLua demo core dump
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./HelloLua'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007fea6fbc5c82 in cocos2d::CCGLProgram::initWithVertexShaderByteArray (this=0x21e9900,
vShaderByteArray=0x7fea6fce18f8 '\t' <repeats 13 times>, "\nattribute vec4 a_position;\t\t\t\t\t\t\t\nattribute vec2 a_texCoord;\t\t\t\t\t\t\t\nattribute vec4 a_color;\t\t\t\t\t\t\t\t\n", '\t' <repeats 13 times>, "\n#ifdef GL_ES\t\t\t\t\t\t\t\t\t\t\nvarying lowp vec4 v_fragmentColor;\t\t\t\t\t\nvarying m"...,
fShaderByteArray=0x7fea6fce1b00 '\t' <repeats 11 times>, "\n#ifdef GL_ES\t\t\t\t\t\t\t\t\nprecision lowp float;\t\t\t\t\t\t\n#endif\t\t\t\t\t\t\t\t\t\t\n", '\t' <repeats 11 times>, "\nvarying vec4 v_fragmentColor;\t\t\t\t\nvarying vec2 v_texCoord;\t\t\t\t\t\nuniform sampler2D CC_Texture0;\t\t\t\t\n", '\t' <repeats 11 times>...)
at ../shaders/CCGLProgram.cpp:84
#2 0x00007fea6fbc9344 in cocos2d::CCShaderCache::loadDefaultShader (this=0x21e98a0, p=0x21e9900, type=0) at ../shaders/CCShaderCache.cpp:217
#3 0x00007fea6fbc8a39 in cocos2d::CCShaderCache::loadDefaultShaders (this=0x21e98a0) at ../shaders/CCShaderCache.cpp:89
#4 0x00007fea6fbc89cc in cocos2d::CCShaderCache::init (this=0x21e98a0) at ../shaders/CCShaderCache.cpp:81
#5 0x00007fea6fbc882a in cocos2d::CCShaderCache::sharedShaderCache () at ../shaders/CCShaderCache.cpp:53
#6 0x00007fea6fb8ad94 in cocos2d::CCSprite::initWithTexture (this=0x21e9660, pTexture=0x0, rect=..., rotated=false) at ../sprite_nodes/CCSprite.cpp:157
#7 0x00007fea6fb8af99 in cocos2d::CCSprite::initWithTexture (this=0x21e9660, pTexture=0x0, rect=...) at ../sprite_nodes/CCSprite.cpp:205
#8 0x00007fea6fb8ad3f in cocos2d::CCSprite::init (this=0x21e9660) at ../sprite_nodes/CCSprite.cpp:147
#9 0x00007fea6fb4ab52 in cocos2d::CCLabelTTF::initWithString (this=0x21e9660, string=0x7fea6fce3836 "00.0", fontName=0x7fea6fce3830 "Arial", fontSize=0, dimensions=...,
hAlignment=cocos2d::kCCTextAlignmentCenter, vAlignment=cocos2d::kCCVerticalTextAlignmentTop) at ../label_nodes/CCLabelTTF.cpp:117
#10 0x00007fea6fb4a9e3 in cocos2d::CCLabelTTF::create (string=0x7fea6fce3836 "00.0", fontName=0x7fea6fce3830 "Arial", fontSize=0, dimensions=...,
hAlignment=cocos2d::kCCTextAlignmentCenter, vAlignment=cocos2d::kCCVerticalTextAlignmentTop) at ../label_nodes/CCLabelTTF.cpp:87
#11 0x00007fea6fb4a934 in cocos2d::CCLabelTTF::create (string=0x7fea6fce3836 "00.0", fontName=0x7fea6fce3830 "Arial", fontSize=0) at ../label_nodes/CCLabelTTF.cpp:73
#12 0x00007fea6fbd4113 in cocos2d::CCDirector::createStatsLabel (this=0x21e8af0) at ../CCDirector.cpp:825
#13 0x00007fea6fbd2968 in cocos2d::CCDirector::setOpenGLView (this=0x21e8af0, pobOpenGLView=0x21d1040) at ../CCDirector.cpp:314
#14 0x0000000000401667 in AppDelegate::applicationDidFinishLaunching (this=0x7fffdce814d0) at ../Classes/AppDelegate.cpp:27
#15 0x00007fea6fb7fbe3 in cocos2d::CCApplication::run (this=0x7fffdce814d0) at ../platform/linux/CCApplication.cpp:45
#16 0x00000000004014ad in main (argc=1, argv=0x7fffdce815e8) at main.cpp:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment