[bug] Run tauri in Linux container over ssh -X fails
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 111k
- Forks
- 4k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 45
Description
Describe the bug
I am building and running it is a Linux Container (incus) using ssh with X forwarding ssh -X name@host.
I have no idea where to look for the problem, every other X application works using X forwarding.
Where do I look for the problem?
Info Watching /home/svvs/tauri-app/src-tauri for changes...
Finished dev profile [unoptimized + debuginfo] target(s) in 8.18s
Gtk-Message: 20:53:51.344: Failed to load module "canberra-gtk-module"
Gtk-Message: 20:53:51.347: Failed to load module "canberra-gtk-module"
libEGL warning: DRI3: failed to query the version
libEGL warning: DRI2: failed to authenticate
(tauri-app:373): Gdk-WARNING **: 20:53:51.413: The program 'tauri-app' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
(Details: serial 282 error_code 1 request_code 155 (unknown) minor_code 1)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Reproduction
I create a incus container
incus init images:debian/12 tauri
I install rust and then tauri according to the directions
Then run $ cargo tauri dev
Expected behavior
I expect to see a tauri window popup
Full tauri info output
svvs@guirust:~$ cargo tauri info
[✔] Environment
- OS: Debian 12.0.0 x86_64 (X64)
✔ webkit2gtk-4.1: 2.46.3
✔ rsvg2: 2.54.7
✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
- node: 18.19.0
- npm: 9.2.0
[-] Packages
- tauri 🦀: 2.1.0
- tauri-build 🦀: 2.0.3
- wry 🦀: 0.47.0
- tao 🦀: 0.30.6
- tauri-cli 🦀: 2.0.4
- @tauri-apps/api : 2.1.0
- @tauri-apps/cli : 2.0.5 (outdated, latest: 2.1.0)
[-] Plugins
- tauri-plugin-shell 🦀: 2.0.2
- @tauri-apps/plugin-shell : 2.0.1
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: Vue.js
- bundler: Vite
Stack trace
No stack trace
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing cargo tauri dev in the Debian 12 Incus container over ssh -X, using the reported Gdk-WARNING and X11 error as the initial evidence. Compare the failing Tauri window with the other X applications that work in the same session; done means identifying a reproducible cause and a clear fix or documented limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100