TwitchLib / TwitchLib.Unity

TwitchLib repository representing all code belonging to the implementation of TwitchLib for Unity. Maintained primarily by LuckyNoS7evin.
164 stars 33 forks source link

Pubsub webgl issue #65

Open jorisatabix opened 2 years ago

jorisatabix commented 2 years ago

I'm having an issue when I build for WebGL on my Mac, when I call the following line inside a MonoBehaviour:

var connection = new PubSub();

The following messages are shown in the console. Any help would be welcome.

exception thrown: RuntimeError: indirect call signature mismatch,il2cpp::vm::MetadataCache::ExecuteModuleInitializers()@http://localhost:49696/Build/MyProject.wasm:wasm-function[1551]:0xac924
dynCall_v@http://localhost:49696/Build/MyProject.wasm:wasm-function[71034]:0x1584bed
unityFramework/createExportWrapper/<@http://localhost:49696/Build/MyProject.framework.js:1036:20
invoke_v@http://localhost:49696/Build/MyProject.framework.js:14911:12
main@http://localhost:49696/Build/MyProject.wasm:wasm-function[66481]:0x137e0eb
unityFramework/createExportWrapper/<@http://localhost:49696/Build/MyProject.framework.js:1036:20
callMain@http://localhost:49696/Build/MyProject.framework.js:17022:26
doRun@http://localhost:49696/Build/MyProject.framework.js:17065:29
run@http://localhost:49696/Build/MyProject.framework.js:17077:3
runCaller@http://localhost:49696/Build/MyProject.framework.js:17005:18
removeRunDependency@http://localhost:49696/Build/MyProject.framework.js:991:4
unityFramework/</unityFileSystemInit</<@http://localhost:49696/Build/MyProject.framework.js:144:12
doCallback@http://localhost:49696/Build/MyProject.framework.js:4496:11
done@http://localhost:49696/Build/MyProject.framework.js:4507:15
reconcile@http://localhost:49696/Build/MyProject.framework.js:3845:11
unityFramework/syncfs/</<@http://localhost:49696/Build/MyProject.framework.js:3634:11
@http://localhost:49696/Build/MyProject.framework.js:3723:14
Uncaught RuntimeError: index out of bounds
    createExportWrapper http://localhost:49696/Build/MyProject.framework.js:1036
    JS_ScreenOrientation_eventHandler http://localhost:49696/Build/MyProject.framework.js:1910
[MyProject.wasm:21623484:1](http://localhost:49696/Build/MyProject.wasm)
    OrientationChangeHandler(int, int, int) http://localhost:49696/Build/MyProject.wasm:21623484
    dynCall_viii http://localhost:49696/Build/MyProject.wasm:22563899
    createExportWrapper http://localhost:49696/Build/MyProject.framework.js:1036
    JS_ScreenOrientation_eventHandler http://localhost:49696/Build/MyProject.framework.js:1910