@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