Hi,
I am facing a wired problem with CCLabelTTF. The code written in C++ is running fine on IOS , but when i try to run it on Android i am getting this crash
I have other screens with the same line of code working fine.
CLabelTTF::create(CCString::createWithFormat("%d",value)->getCString(),kGameFont,25);
where kGameFont is ‘flubber.ttf’
********** Crash dump: ********** Build fingerprint: 'google/occam/mako:4.4.2/KOT49H/937116:user/release-keys' pid: 31058, tid: 31075, name: Thread-2274 >>> com.russ.boogercrush <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad Stack frame #00 pc 000117a4 /system/lib/libc.so (dlfree+1191) Stack frame #01 pc 0000dcdb /system/lib/libc.so (free+10) Stack frame #02 pc 001c2835 /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCImage::~CCImage()+20): Routine ~CCImage at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/platform/CCImageCommon_cpp.h:107 (discriminator 2) Stack frame #03 pc 001c2851 /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCImage::~CCImage()+4): Routine ~CCImage at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/platform/CCImageCommon_cpp.h:111 Stack frame #04 pc 0019fe6f /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCObject::release()+86): Routine cocos2d::CCObject::release() at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/cocoa/CCObject.cpp:86 (discriminator 1) Stack frame #05 pc 001d5313 /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCTexture2D::initWithString(char const*, cocos2d::_ccFontDefinition*)+458): Routine cocos2d::CCTexture2D::initWithString(char const*, cocos2d::_ccFontDefinition*) at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/textures/CCTexture2D.cpp:608 (discriminator 1) Stack frame #06 pc 001adcab /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCLabelTTF::updateTexture()+42): Routine cocos2d::CCLabelTTF::updateTexture() at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/label_nodes/CCLabelTTF.cpp:304 Stack frame #07 pc 001ae0f5 /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCLabelTTF::setString(char const*)+88): Routine cocos2d::CCLabelTTF::setString(char const*) at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/label_nodes/CCLabelTTF.cpp:182 Stack frame #08 pc 001ad93f /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCLabelTTF::initWithString(char const*, char const*, float, cocos2d::CCSize const&, cocos2d::CCTextAlignment, cocos2d::CCVerticalTextAlignment)+126): Routine cocos2d::CCLabelTTF::initWithString(char const*, char const*, float, cocos2d::CCSize const&, cocos2d::CCTextAlignment, cocos2d::CCVerticalTextAlignment) at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/label_nodes/CCLabelTTF.cpp:143 Stack frame #09 pc 001ad9cf /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCLabelTTF::create(char const*, char const*, float, cocos2d::CCSize const&, cocos2d::CCTextAlignment, cocos2d::CCVerticalTextAlignment)+48): Routine cocos2d::CCLabelTTF::create(char const*, char const*, float, cocos2d::CCSize const&, cocos2d::CCTextAlignment, cocos2d::CCVerticalTextAlignment) at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/label_nodes/CCLabelTTF.cpp:90 (discriminator 1) Stack frame #10 pc 001ada0f /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (cocos2d::CCLabelTTF::create(char const*, char const*, float)+14): Routine cocos2d::CCLabelTTF::create(char const*, char const*, float) at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../cocos2dx/label_nodes/CCLabelTTF.cpp:76 Stack frame #11 pc 00142d9b /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so: Routine LevelSelectLayer::init() at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../projects/BoogerCrush/Classes/LevelSelectLayer.cpp:170 (discriminator 3) Stack frame #12 pc 0014515f /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (LevelSelectLayer::init()+14): Routine LevelSelectLayer::init() at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../projects/BoogerCrush/Classes/LevelSelectLayer.cpp:33 Stack frame #13 pc 001451ab /data/app-lib/com.russ.boogercrush-1/libcocos2dcpp.so (LevelSelectLayer::create()+70): Routine LevelSelectLayer::create() at /Users/niteshpurohit/Desktop/COCOS2D/projects/BoogerCrush/proj.android/../../../projects/BoogerCrush/Classes/LevelSelectLayer.h:26 (discriminator 2)