Unity-Technologies / multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
MIT License
429 stars 161 forks source link

[webgl build] exported player will not start when using websockets #148

Open peteMint opened 2 years ago

peteMint commented 2 years ago

Tested this on windows & mac on 2020.3.(multiple) & 2021.2.10.

Create new project set to webgl. Add NetworkManager and set transport to websockets. Build and run project. in browser project freezes at the loader.js and will not initialise the game. We get a stack trace (on windows from within the loader) and ultimately the error

test1.loader.js:69 Invalid function pointer called with signature 'v'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)

I can run the same project in editor no problem and can build a exe and run that.

Im adding nothing else to the project or scene other than the default camera . The only packages installed are netcode (1.0.0) and websockets via github

Problem goes if NetworkManager is deleted.