Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I get an error in browser:

panicked at src/lib.rs:56:21: Error: Failed to acquire adapter

Error at imports.wbg.__wbg_new_abda76e883ba8a5f (blob:https://html-classic.itch.zone/4c703f83-12e7-404c-992a-39da139ad17f:419:21) at engine_demo.wasm.console_error_panic_hook::hook::h4150eac16ea3f9bc (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[3863]:0x78cd7a) at engine_demo.wasm.core::ops::function::Fn::call::h7a0e4d0f9cadb115 (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[24982]:0xb5a556) at engine_demo.wasm.std::panicking::rust_panic_with_hook::h6731baa78621a747 (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[10527]:0xa502d8) at engine_demo.wasm.std::panicking::begin_panic_handler::{{closure}}::hb6cd8464ed39ae71 (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[12208]:0xaa508b) at engine_demo.wasm.std::sys_common::backtrace::__rust_end_short_backtrace::hbdf3ddeb21a1e747 (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[24930]:0xb5a37f) at engine_demo.wasm.rust_begin_unwind (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[16352]:0xb16249) at engine_demo.wasm.core::panicking::panic_fmt::h5c7ce52813e94bcd (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[16957]:0xb1f98e) at engine_demo.wasm.engine_demo::run::{{closure}}::{{closure}}::h7788e4588d165c92 (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[612]:0xc2254) at engine_demo.wasm.engine_demo::run::{{closure}}::h7c61492b0e18defc (wasm://wasm/engine_demo.wasm-04255cde:wasm-function[2590]:0x65996a)

Thanks for the bug report!

It looks like some versions of Chrome say that WebGPU is supported, but then fail when you try to use it. For now, the only real option is to use a browser that either has WebGPU enabled, or that doesn’t support WebGPU. Firefox should work, and recent versions of browsers on Windows should work. (My guess is that Chrome on Linux is the main browser that has this issue?)

I’ve patched it locally, but unfortunately I can’t upload the fixed build until the review period ends.