游戏UI卡死 cpu 内存都正常 bgm也正常播放 web正常

  • Creator 版本:1.9.3

  • 目标平台: iOS / Android

  • 详细报错信息,包含调用堆栈:

  • 重现方式:

  • 出现概率:复现无规律 玩的时间长一点就会卡死

我们做的一个捕鱼游戏 用的龙骨动画 我怀疑是websocket导致的死锁 但是看打印应该也没问题 改成try_lock也还是会卡
请各位大神帮忙看看有可能是什么问题 感激不尽
这个是CCSchedule.cpp里update加的打印



2020-06-29 12:29:35.240 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Receiving data:index:45970, len=58 2020-06-29 12:29:35.240 16714-17210/org.ninthtime.leshen D/cocos2d-x: AAAAAA 2020-06-29 12:29:35.240 16714-17210/org.ninthtime.leshen D/cocos2d-x: BBBB 2020-06-29 12:29:35.240 16714-17210/org.ninthtime.leshen D/cocos2d-x: CCCCC 2020-06-29 12:29:35.242 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 27 2020-06-29 12:29:35.243 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.268 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 自己打中 1000 R613 undefined 2020-06-29 12:29:35.269 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Safely done, msg(39350)! 2020-06-29 12:29:35.269 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: msg(39350) append: 0 + 84 = 84 2020-06-29 12:29:35.269 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: msg(39350) was totally sent! 2020-06-29 12:29:35.269 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: ----------------------------------------------------------- 2020-06-29 12:29:35.270 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.270 16714-16913/org.ninthtime.leshen D/cocos2d-x: IIIIII 2020-06-29 12:29:35.270 16714-16913/org.ninthtime.leshen D/cocos2d-x: JJJJJJ 2020-06-29 12:29:35.270 16714-16913/org.ninthtime.leshen D/cocos2d-x: KKKKK 2020-06-29 12:29:35.270 16714-16913/org.ninthtime.leshen D/WebSocket.cpp: Notify data len 58 to Cocos thread. 2020-06-29 12:29:35.270 16714-16913/org.ninthtime.leshen D/jswrapper: JS: onmessage2222 2020-06-29 12:29:35.270 16714-16913/org.ninthtime.leshen D/jswrapper: JS: onData2222 2020-06-29 12:29:35.270 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 开火 {"code":200,"bullet":1000,"strawberry":9984678000} 2020-06-29 12:29:35.273 16714-16913/org.ninthtime.leshen D/cocos2d-x: MMMMM 2020-06-29 12:29:35.279 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 27 2020-06-29 12:29:35.279 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.284 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048737, ir: 0.000000 2020-06-29 12:29:35.299 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.304 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 27 2020-06-29 12:29:35.305 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.336 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Receiving data:index:45971, len=75 2020-06-29 12:29:35.336 16714-17210/org.ninthtime.leshen D/cocos2d-x: AAAAAA 2020-06-29 12:29:35.336 16714-17210/org.ninthtime.leshen D/cocos2d-x: BBBB 2020-06-29 12:29:35.336 16714-17210/org.ninthtime.leshen D/cocos2d-x: CCCCC 2020-06-29 12:29:35.338 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.338 16714-16913/org.ninthtime.leshen D/cocos2d-x: IIIIII 2020-06-29 12:29:35.338 16714-16913/org.ninthtime.leshen D/cocos2d-x: JJJJJJ 2020-06-29 12:29:35.338 16714-16913/org.ninthtime.leshen D/cocos2d-x: KKKKK 2020-06-29 12:29:35.338 16714-16913/org.ninthtime.leshen D/WebSocket.cpp: Notify data len 75 to Cocos thread. 2020-06-29 12:29:35.338 16714-16913/org.ninthtime.leshen D/jswrapper: JS: onmessage2222 2020-06-29 12:29:35.339 16714-16913/org.ninthtime.leshen D/jswrapper: JS: onData2222 2020-06-29 12:29:35.339 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 自己打中 {"code":200,"kill":false,"addStrawberry":0,"strawberry":9984678000} 2020-06-29 12:29:35.339 16714-16913/org.ninthtime.leshen D/cocos2d-x: MMMMM 2020-06-29 12:29:35.344 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 27 2020-06-29 12:29:35.348 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.351 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 销毁后现有鱼数量: 67 2020-06-29 12:29:35.367 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.372 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 28 2020-06-29 12:29:35.373 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.374 16714-16913/org.ninthtime.leshen D/jswrapper: JS: -------->机器人攻击 2020-06-29 12:29:35.425 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.430 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 28 2020-06-29 12:29:35.430 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 开火 2020-06-29 12:29:35.431 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Safely done, msg(39351)! 2020-06-29 12:29:35.431 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: msg(39351) append: 0 + 55 = 55 2020-06-29 12:29:35.431 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: msg(39351) was totally sent! 2020-06-29 12:29:35.431 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: ----------------------------------------------------------- 2020-06-29 12:29:35.431 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.444 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048676, ir: 0.000000 2020-06-29 12:29:35.454 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.459 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 28 2020-06-29 12:29:35.460 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.470 604-604/? I/SurfaceFlinger: FPS: 31 2020-06-29 12:29:35.484 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.488 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 28 2020-06-29 12:29:35.489 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.510 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.515 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 28 2020-06-29 12:29:35.516 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.516 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 机器人开火 81425 0 2020-06-29 12:29:35.517 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Safely done, msg(39352)! 2020-06-29 12:29:35.517 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: msg(39352) append: 0 + 75 = 75 2020-06-29 12:29:35.517 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: msg(39352) was totally sent! 2020-06-29 12:29:35.517 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: ----------------------------------------------------------- 2020-06-29 12:29:35.517 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 机器人开火 76061 3 2020-06-29 12:29:35.518 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Safely done, msg(39353)! 2020-06-29 12:29:35.518 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: msg(39353) append: 0 + 75 = 75 2020-06-29 12:29:35.518 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: msg(39353) was totally sent! 2020-06-29 12:29:35.518 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: ----------------------------------------------------------- 2020-06-29 12:29:35.552 16714-16913/org.ninthtime.leshen D/cocos2d-x: HHHHHH 2020-06-29 12:29:35.557 16714-16913/org.ninthtime.leshen D/jswrapper: JS: fishpool size = 28 2020-06-29 12:29:35.558 16714-16913/org.ninthtime.leshen D/jswrapper: JS: 11111111111111111111111111111111111 2020-06-29 12:29:35.605 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048721, ir: 0.000000 2020-06-29 12:29:35.663 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Receiving data:index:45972, len=58 2020-06-29 12:29:35.663 16714-17210/org.ninthtime.leshen D/cocos2d-x: AAAAAA 2020-06-29 12:29:35.663 16714-17210/org.ninthtime.leshen D/cocos2d-x: BBBB 2020-06-29 12:29:35.663 16714-17210/org.ninthtime.leshen D/cocos2d-x: CCCCC 2020-06-29 12:29:35.710 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Receiving data:index:45973, len=111 2020-06-29 12:29:35.710 16714-17210/org.ninthtime.leshen D/cocos2d-x: AAAAAA 2020-06-29 12:29:35.710 16714-17210/org.ninthtime.leshen D/cocos2d-x: BBBB 2020-06-29 12:29:35.710 16714-17210/org.ninthtime.leshen D/cocos2d-x: CCCCC 2020-06-29 12:29:35.711 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Receiving data:index:45974, len=56 2020-06-29 12:29:35.711 16714-17210/org.ninthtime.leshen D/cocos2d-x: AAAAAA 2020-06-29 12:29:35.711 16714-17210/org.ninthtime.leshen D/cocos2d-x: BBBB 2020-06-29 12:29:35.711 16714-17210/org.ninthtime.leshen D/cocos2d-x: CCCCC 2020-06-29 12:29:35.766 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048691, ir: 0.000000 2020-06-29 12:29:35.798 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Receiving data:index:45975, len=56 2020-06-29 12:29:35.798 16714-17210/org.ninthtime.leshen D/cocos2d-x: AAAAAA 2020-06-29 12:29:35.798 16714-17210/org.ninthtime.leshen D/cocos2d-x: BBBB 2020-06-29 12:29:35.798 16714-17210/org.ninthtime.leshen D/cocos2d-x: CCCCC 2020-06-29 12:29:35.927 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048691, ir: 0.000000 2020-06-29 12:29:36.060 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Receiving data:index:45976, len=167 2020-06-29 12:29:36.060 16714-17210/org.ninthtime.leshen D/cocos2d-x: AAAAAA 2020-06-29 12:29:36.060 16714-17210/org.ninthtime.leshen D/cocos2d-x: BBBB 2020-06-29 12:29:36.060 16714-17210/org.ninthtime.leshen D/cocos2d-x: CCCCC 2020-06-29 12:29:36.088 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048706, ir: 0.000000 2020-06-29 12:29:36.248 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048721, ir: 0.000000 2020-06-29 12:29:36.409 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048752, ir: 0.000000 2020-06-29 12:29:36.453 2468-6301/? I/_V_RMS-Reclaim: available=549244KB, current watermark=409600KB, last watermark=563200KB, current stopline=451, last stopline=500 curlevel=2 2020-06-29 12:29:36.453 2468-6301/? I/_V_RMS-Reclaim: curlevel = 2 while lowmemory level=3 2020-06-29 12:29:36.455 2468-6301/? I/_V_RMS-Reclaim: Reclaiming took : 2ms 2020-06-29 12:29:36.570 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048721, ir: 0.000000 2020-06-29 12:29:36.731 578-721/? E/qti_sensors_hal: processReportInd: lux: 169.000000, photopic: 0.048706, ir: 0.000000 2020-06-29 12:29:36.750 16714-17210/org.ninthtime.leshen D/WebSocket.cpp: Receiving data:index:45977, len=111 2020-06-29 12:29:36.750 16714-17210/org.ninthtime.leshen D/cocos2d-x: AAAAAA 2020-06-29 12:29:36.750 16714-17210/org.ninthtime.leshen D/cocos2d-x: BBBB 2020-06-29 12:29:36.750 16714-17210/org.ninthtime.leshen D/cocos2d-x: CCCCC