-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
wasm panic in Firefox because of missing getGamePads API #4431
Copy link
Copy link
Closed
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-StartupA crash that occurs when first attempting to run a Bevy appA crash that occurs when first attempting to run a Bevy appP-CrashA sudden unexpected crashA sudden unexpected crash
Description
Bevy version
main f907d67d7ed5cfd8b11b2ad78e9dfd6eeb913cea
Operating system & version
macOS 12.3
What you did
Run the lighting example
What you expected to happen
The example runs.
What actually happened
The example panics.
Additional information
panicked at 'error getting gamepads: JsValue(TypeError: getObject(...).getGamepads is not a function
init/imports.wbg.__wbg_getGamepads_125e8440ea7a98c8/<@http://0.0.0.0:8000/target/wasm_example.js:1071:35
handleError@http://0.0.0.0:8000/target/wasm_example.js:260:18
init/imports.wbg.__wbg_getGamepads_125e8440ea7a98c8@http://0.0.0.0:8000/target/wasm_example.js:1070:74
web_sys::features::gen_Navigator::Navigator::get_gamepads::h38f15820bcd54585@http://0.0.0.0:8000/target/wasm_example_bg.wasm:wasm-function[17624]:0x9e4430
gilrs_core::platform::platform::gamepad::Gilrs::next_event::ha502708d74993467@http://0.0.0.0:8000/target/wasm_example_bg.wasm:wasm-function[659]:0x24484f
gilrs_core::Gilrs::next_event::h1def7b279c39043e@http://0.0.0.0:8000/target/wasm_example_bg.wasm:wasm-function[25101]:0xa1cd38
gilrs::gamepad::Gilrs::next_event_priv::h581e4e4191b9fd6b@http://0.0.0.0:8000/target/wasm_example_bg.wasm:wasm-function[719]:0x272637
gilrs::gamepad::Gilrs::next_event::h795f889b0d271268@http:/…
wasm_example.js:420:21
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-StartupA crash that occurs when first attempting to run a Bevy appA crash that occurs when first attempting to run a Bevy appP-CrashA sudden unexpected crashA sudden unexpected crash