jirihybek / unity-websocket-webgl

Hybrid WebSocket implementation for Unity 3D with support of native and browser client.
Other
248 stars 61 forks source link

Encountering Error in WebSocketConnect #10

Closed HelloKitty closed 4 years ago

HelloKitty commented 4 years ago

I'm not sure why but when I call WebSocketConnect from C# side in the WebGL build it fails. Most relevant stack:

uncaught exception: abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking") at jsStackTrace (WebGL.wasm.framework.unityweb:8:22325) stackTrace (WebGL.wasm.framework.unityweb:8:22496) onAbort@file:///C:/Users/Glader/Documents/Unity%20Projects/Rs317.Unity.WebGL/Build/WebGL/Build/UnityLoader.js:4:11047 abort (WebGL.wasm.framework.unityweb:8:490242) _dlopen (WebGL.wasm.framework.unityweb:8:177090) ... dynCall (WebGL.wasm.framework.unityweb:8:15172) _WebSocketConnect [_WebSocketConnect/instance.ws.onmessage] (WebGL.wasm.framework.unityweb:8:58056)

HelloKitty commented 4 years ago

Opps, I have enabled symbols to investigate. Probably should have posted only the symbols build. If I cannot solve it I'll post the full stack with symbols.

HelloKitty commented 4 years ago

This turned out to just be a general WebGL AOT issue in the stack trace. Issues with event sources used on corefx Types.