-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
- cocos2d-x version:4.0
- devices test on:Android
- developing environments
- NDK version:21.1.6352462
Steps to Reproduce:
richText->pushBackElement(RichElementText::create(0, colorFont, 255, CGameFont::getInstance()->a2u(gb2312Text), GAME_FONT, GAME_FONT_SIZE, RichElementText::OUTLINE_FLAG | RichElementText::BOLD_FLAG, "", colorBack, 1));
richText->formatText();
scrollView->setInnerContainerSize(richText->getContentSize());
scrollView->jumpToBottom();
mainText->pushBackElement(RichElementText::create(0, colorFont, 255, CGameFont::getInstance()->a2u(gb2312Text), GAME_FONT, GAME_FONT_SIZE, RichElementText::OUTLINE_FLAG | RichElementText::BOLD_FLAG, "", colorBack, 1));
mainText->formatText(); **<- this is Crash**
mainView->setInnerContainerSize(mainText->getContentSize());
mainView->jumpToBottom();
2020-05-13 11:08:38.136 22900-23158/com.test.hellocpp E/CrashReport: #++++++++++Record By Bugly++++++++++#
2020-05-13 11:08:38.136 22900-23158/com.test.hellocpp E/CrashReport: # You can use Bugly(http:\bugly.qq.com) to get more Crash Detail!
2020-05-13 11:08:38.136 22900-23158/com.test.hellocpp E/CrashReport: # PKG NAME: com.test.hellocpp
2020-05-13 11:08:38.136 22900-23158/com.test.hellocpp E/CrashReport: # APP VER: 20200423
2020-05-13 11:08:38.137 22900-23158/com.test.hellocpp E/CrashReport: # SDK VER: 3.2.1-3.7.1
2020-05-13 11:08:38.137 22900-23158/com.test.hellocpp E/CrashReport: # LAUNCH TIME: 2020-05-13 11:07:49
2020-05-13 11:08:38.137 22900-23158/com.test.hellocpp E/CrashReport: # CRASH TYPE: NATIVE_CRASH
2020-05-13 11:08:38.137 22900-23158/com.test.hellocpp E/CrashReport: # CRASH TIME: 2020-05-13 11:08:38
2020-05-13 11:08:38.137 22900-23158/com.test.hellocpp E/CrashReport: # CRASH PROCESS: com.test.hellocpp
2020-05-13 11:08:38.137 22900-23158/com.test.hellocpp E/CrashReport: # CRASH THREAD: GLThread 3520(3520)
2020-05-13 11:08:38.137 22900-23158/com.test.hellocpp E/CrashReport: # REPORT ID: 628a095b-bafb-4844-9e1b-ef2ecb540c22
2020-05-13 11:08:38.138 22900-23158/com.test.hellocpp E/CrashReport: # CRASH DEVICE: Mi 10 Pro UNROOT
2020-05-13 11:08:38.138 22900-23158/com.test.hellocpp E/CrashReport: # RUNTIME AVAIL RAM:7498371072 ROM:193893257216 SD:193893257216
2020-05-13 11:08:38.138 22900-23158/com.test.hellocpp E/CrashReport: # RUNTIME TOTAL RAM:12194844672 ROM:242848083968 SD:242848083968
2020-05-13 11:08:38.138 22900-23158/com.test.hellocpp E/CrashReport: # EXCEPTION FIRED BY KERNEL UNKNOWN
2020-05-13 11:08:38.138 22900-23158/com.test.hellocpp E/CrashReport: # CRASH STACK:
2020-05-13 11:08:38.138 22900-23158/com.test.hellocpp E/CrashReport: SIGSEGV(SEGV_MAPERR)
0x5f746e65
#00 pc 005752f8 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZNSt6__ndk112__hash_tableINS_17__hash_value_typeIiN7cocos2d7backend11TextureInfoEEENS_22__unordered_map_hasherIiS5_NS_4hashIiEELb1EEENS_21__unordered_map_equalIiS5_NS_8equal_toIiEELb1EEENS_9allocatorIS5_EEE17__deallocate_nodeEPNS_16__hash_node_baseIPNS_11__hash_nodeIS5_PvEEEE+29) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#1 pc 005752cb /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZNSt6__ndk112__hash_tableINS_17__hash_value_typeIiN7cocos2d7backend11TextureInfoEEENS_22__unordered_map_hasherIiS5_NS_4hashIiEELb1EEENS_21__unordered_map_equalIiS5_NS_8equal_toIiEELb1EEENS_9allocatorIS5_EEED2Ev+26) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#2 pc 00571461 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#3 pc 00571991 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d7backend12ProgramStateD1Ev+252) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#4 pc 005719c1 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d7backend12ProgramStateD0Ev+12) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#5 pc 005d7e83 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d3Ref7releaseEv+334) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#6 pc 00450283 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d5Label12BatchCommandD1Ev+50) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#7 pc 0045ae49 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#8 pc 0045ae35 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (ZNSt6__ndk116allocator_traitsINS_9allocatorIN7cocos2d5Label12BatchCommandEEEE9__destroyIS4_EEvNS_17integral_constantIbLb1EEERS5_PT+14) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#9 pc 0045ae1f /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (ZNSt6__ndk116allocator_traitsINS_9allocatorIN7cocos2d5Label12BatchCommandEEEE7destroyIS4_EEvRS5_PT+14) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#10 pc 0045adf9 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#11 pc 0045ad87 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#12 pc 00451e01 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#13 pc 00451c41 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d5LabelD1Ev+328) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#14 pc 00451e4f /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d5LabelD0Ev+12) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#15 pc 005d7e83 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d3Ref7releaseEv+334) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#16 pc 004079cb /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d6VectorIPNS_4NodeEE5clearEv+70) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#17 pc 00497c81 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d13ProtectedNode37removeAllProtectedChildrenWithCleanupEb+180) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#18 pc 00497bc5 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d13ProtectedNode26removeAllProtectedChildrenEv+24) [armeabi-v7a::b6e5dfca9b0829ea8f5e3ee6643f40b9]
#19 pc 00656c65 /data/app/com.test.hellocpp-42KOUUeKqpwLIyEn1WJLAg==/lib/arm/libMirX.so (_ZN7cocos2d2ui8RichText10formatTextEv+48) [armeabi-v7a::b6
2020-05-13 11:08:38.138 22900-23158/com.test.hellocpp E/CrashReport: #++++++++++++++++++++++++++++++++++++++++++#
please help,
thanks.