inworld-ai / inworld-unity-core

This is the core inworld unity package
Other
9 stars 3 forks source link

WebGL.framework.js: buffer is not defined #26

Open jygeer opened 8 months ago

jygeer commented 8 months ago

WebGL target with Inworld microphone enabled browser fails.

WebGL.framework.js:9 Uncaught (in promise) ReferenceError: buffer is not defined at _WebGLInitSamplesMemoryData (WebGL.framework.js:9:138896) at WebGL.wasm:0x13f2cb3 at WebGL.wasm:0x13f3cef at WebGL.wasm:0x1672b11 at WebGL.wasm:0x1d262b8 at WebGL.wasm:0x1d3c5d7 at WebGL.wasm:0x27ab0e3 at invoke_iiii (WebGL.framework.js:9:435124) at WebGL.wasm:0x1d3b5c0 at WebGL.wasm:0x11fff9 at WebGL.wasm:0x26df00e at WebGL.wasm:0x269add0 at WebGL.wasm:0x269319b at WebGL.wasm:0x269b172 at WebGL.wasm:0x269319b at WebGL.wasm:0x270c2a2 at WebGL.wasm:0x1677463 at WebGL.wasm:0x13f26d7 at WebGL.wasm:0x27ab104 at invoke_vii (WebGL.framework.js:9:434649) at WebGL.wasm:0x13f22ea at WebGL.wasm:0x27ab104 at invoke_vii (WebGL.framework.js:9:434649) at WebGL.wasm:0x13f1f6f at WebGL.wasm:0x27ab128 at Object.unityCommand (WebGL.framework.js:9:138517) at InworldMicrophone.setPermissionStatus (InworldMicrophone.js:215:35) at InworldMicrophone.permissionStatusHandler (InworldMicrophone.js:209:22)

Juniverse commented 6 months ago

Hello @jygeer ,

Sorry for the inconvenience, may I know which browser are you using?

jygeer commented 6 months ago

@Juniverse - Chrome (Windows, MacOS and iOS), Safari all throw an error.

Reference: https://github.com/inworld-ai/inworld-unity-core/blob/25d6a4df30d47c161c48afae1994113b797a4985/Runtime/UnityWebSocket/Plugins/WebGL/InworldMicrophoneInterop.jslib#L7