#deck: Failed to create WebGL context: Could not create a WebGL context.
14 messages · Page 1 of 1 (latest)
Can you share the output of the tauri info command so we know what platform and versions we're talking about?
$ tauri info
[✔] Environment
- OS: Ubuntu 23.10 X64
✔ webkit2gtk-4.1: 2.42.1
✔ rsvg2: 2.54.7
✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 21.6.0
- pnpm: 9.1.0
- yarn: 1.22.19
- npm: 10.5.0
[-] Packages
- tauri [RUST]: 2.0.0-beta.19
- tauri-build [RUST]: 2.0.0-beta.15
- wry [RUST]: 0.39.5
- tao [RUST]: 0.28.0
- @tauri-apps/api [NPM]: 2.0.0-beta.11
- @tauri-apps/cli [NPM]: 2.0.0-beta.17
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
Are you using an nvidia gpu by any chance?
yep
4x NVIDIA GeForce RTX 2080 Ti
NVIDIA-SMI 550.54.15 Driver Version: 550.54.15 CUDA Version: 12.4
hmm, webkitgtk has a few more problems with nvidia. Can you try running it with the WEBKIT_DISABLE_COMPOSITING_MODE=1 env var set? I doubt this'll help with a gl library but it's worth a try.
Or maybe WEBKIT_DISABLE_DMABUF_RENDERER=1
still the same issue:
[Error] deck: Failed to create WebGL context: Could not create a WebGL context. – undefined
(anonymous function) (deck__gl.js:32235)
[Error] Unhandled Promise Rejection: Error: Failed to create WebGL context: Could not create a WebGL context.
(anonymous function) (deck__gl.js:32236)
[Error] deck: Failed to create WebGL context: Could not create a WebGL context. – undefined
(anonymous function) (deck__gl.js:32235)
[Error] Unhandled Promise Rejection: Error: Failed to create WebGL context: Could not create a WebGL context.
(anonymous function) (deck__gl.js:32236)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (}, line 0)
WEBKIT_DISABLE_COMPOSITING_MODE=1 && pnpm tauri dev
^I ran it like this
and the dmabuf env var also didn't help?
nops
then i don't know either :/ I know that there's quite a lot of work going on in webkitgtk's renderers so maybe it at some point gets fixed but for now i'm out of ideas