cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.24k stars 7.06k forks source link

Android app crashes with websockets #17709

Open div5yesh opened 7 years ago

div5yesh commented 7 years ago

Steps to Reproduce:

  1. cocos new testproject -l js
  2. cocos compile -p android --ap android-21 --android-studio --ndk-mode debug
  3. just add this.soc = new WebSocket("ws://echo.websocket.org"); to app.js

04-15 23:08:22.018 3205-3224/org.cocos2dx.libcocos D/cocos2d-x debug info: app 04-15 23:08:22.019 3205-3224/org.cocos2dx.libcocos D/WebSocket.cpp: [WebSocket::init] _host: echo.websocket.org, _port: 80, _path: / 04-15 23:08:22.019 3205-3375/org.cocos2dx.libcocos D/WebSocket.cpp: WebSocket thread start, helper instance: 0x92f8aec0 04-15 23:08:22.019 3205-3375/org.cocos2dx.libcocos D/libwebsockets: NOTICE: Initial logging level 967 04-15 23:08:22.019 3205-3375/org.cocos2dx.libcocos D/libwebsockets: NOTICE: Libwebsockets version: 1.6.0 3ca4bac 04-15 23:08:22.019 3205-3375/org.cocos2dx.libcocos D/libwebsockets: NOTICE: IPV6 compiled in and enabled 04-15 23:08:22.019 3205-3375/org.cocos2dx.libcocos D/libwebsockets: NOTICE: libev support not compiled in 04-15 23:08:22.020 3205-3375/org.cocos2dx.libcocos A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x9175fffc in tid 3375 (GLThread 163)

[ 04-15 23:08:22.020 1284: 1284 W/ ] debuggerd: handling request: pid=3205 uid=10071 gid=10071 tid=3375

Rubonnek commented 7 years ago

This issue could have been fixed by #17440 which is not included in v3.14.1.