android - Fatal signal 11 code 1-Schedule-Cocos2dx -
i have gamemodesimple class inherits layer class.this wrote class:
void gamemodesimple::schedulebreaks() { float dt = getbreakgeneratedeltatime(); layer->schedule(schedule_selector(gamemodesimple::generatebreaks), 3); } void gamemodesimple::generatebreaks(float dt) { repetitioncount--; cclog("name %i", layer->gettag()); }
into "generatebreaks" function,when remove "cclog" works when write crashes.this stack trace:
********** crash dump: ********** build fingerprint: 'samsung/delos3gxx/delos3geur:4.1.2/jzo54k/i8552xxamk2:user/r elease-keys' pid: 7737, tid: 7761, name: thread-23546 >>> com.game.breaker <<< signal 11 (sigsegv), code 1 (segv_maperr), fault addr 00000000 stack frame i/debug ( 4687): #00 pc 00162ebe /data/data/com.game.breaker /lib/libcocos2dcpp.so (gamemodesimple::generatebreaks(float)+17): routine gamemo desimple::generatebreaks(float) @ d:\gamefile\cocos\breaker\proj.android/jni/.. /../classes/gamemodesimple.cpp:29 stack frame i/debug ( 4687): #01 pc 003f0fbc /data/data/com.game.breaker /lib/libcocos2dcpp.so (cocos2d::timertargetselector::trigger()+208): routine coc os2d::timertargetselector::trigger() @ d:\gamefile\cocos\breaker\proj.android/j ni/../../cocos2d/cocos/./base/ccscheduler.cpp:170
Comments
Post a Comment