Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

cocos2dx-js中websocket断开链接,触发gc时程序崩溃问题

$
0
0

@111456 写道:

使用的是pomelo-js,执行以下两行代码
pomelo.disconnect();
cc.sys.garbageCollect();
之后,触发gc时程序崩溃了,日志如下
websocket (1F632358) connection closed by client
[94430:7145] NOTICE: libwebsocket_context_destroy
JS: close:{"type":"close"}
JS: disconnect
JS: disconnect:{"type":"close"}
JS: ERROR : socket close: { type: 'close' }
JS: disconnect
JS: loadGame:==
C8:E7:D8:DD:02:49
JS: uuid is:C8:E7:D8:DD:02:49
ccjs(0x00030600).win32(0x00030106).160830203809
JS: game version:ccjs(0x00030600).win32(0x00030106).160830203809
gcCallback:0-76982:863934
jsbindings: finalizing JS object 0AA9C140 (WebSocket)
jsbindings: finalizing JS object 0AA9C160 (WebSocket)
jsbindings: finalizing JS object 18EEB4A0 (WebSocket)
jsbindings: finalizing JS object 18EEB4C0 (WebSocket)
gcCallback:1-76986:341644

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>