Repository navigation
Description
Hex version: 3.2.0-1, installed from the .deb. Also reproduced on 3.1.1-1.
Platform: Linux Wayland
System details: Ubuntu 26.04.1 LTS, kernel 7.0.0-42, GNOME Shell 50.1 / Mutter 50.1, Xwayland 24.1.10. NVIDIA GeForce RTX 4060 Laptop GPU with no other GPU, nvidia-driver-595-open 595.99.02.
What happened?
The Hex window never appears. Clicking the dock icon does nothing. About 0.2 seconds after Hex starts, the main thread panics in Surface::configure, and the window and the overlays stop. The service keeps running.
hex window show still prints Opened the window and exits 0. hex status can also show Window open after the panic.
I expected the window to open. If an overlay cannot get a surface, I expected Hex to lose only that overlay.
INFO hex::linux::rune_hud: HUD shows on XWayland: compositor has no layer-shell
rune: GPU "NVIDIA GeForce RTX 4060 Laptop GPU" (wgpu; Vulkan, DiscreteGpu, 0000:01:00.0): the compositor's GPU; compositor on 0000:01:00.0
ERROR hex::app_paths: panic: panicked at wgpu-30.0.1/src/backend/wgpu_core.rs:3981:18:
wgpu error: Validation Error
Caused by:
In Surface::configure
Invalid surface
ERROR hex::linux::app: the Hex window failed; Hex keeps running without it
WARN hex::linux::rune_hud: HUD unavailable: Rune could not open the overlay (no reason given); dictation still works
Steps to reproduce
- Use GNOME on Wayland with an NVIDIA GPU and no layer-shell, so that the HUD uses XWayland.
- Start Hex, or run
hex restart. - Click the dock icon, or run
hex window show. No window appears. - Run
journalctl --user -u hexto see the panic.
Additional context
I stopped hex.service and ran hex service in the foreground with each setting:
| Launch setting | Result |
|---|---|
| Default | Panic |
WAYLAND_DISPLAY unset (XWayland only) |
Panic |
WGPU_BACKEND=gl |
Panic, and Rune still logs Vulkan |
WAYLAND_DISPLAY unset, VK_DRIVER_FILES set to Mesa lvp_icd.json |
No panic in an 8-second run |
DISPLAY unset (Wayland only), then hex window show |
No panic, and Rune logs the NVIDIA GPU |
These results point to the Vulkan surface on XWayland with the NVIDIA driver. I do not know why the surface is invalid.
With DISPLAY unset, the overlays log can't show: the platform could not create its window or surface, and the HUD is unavailable. This matches the layer-shell gap in #814. The service runs without a panic in this mode, so it is a usable workaround.
Timing of the panic in the logs:
- On a first install (3.1.1), the window opened and onboarding completed. The panic came 3 seconds after the dictation listener started.
- In a later run with
live_text=false, the panic came about 7 minutes after startup. - Every run with
live_text=truepanics at startup. This suggests that the Live Text overlay opens early, but I did not test it directly.
Other checks:
XAUTHORITYinsession.envand in the service environment matches the auth file of the running Xwayland, so the stale value in GNOME Wayland: recording HUD never appears (no layer-shell); XWayland fallback breaks portal hotkeys #465 does not apply here.DISPLAY,WAYLAND_DISPLAYandXDG_RUNTIME_DIRare correct in the service environment.- Xwayland is running, but after the panic the log says
XWayland is not runningon 3.1.1.
Possible changes:
- Catch a surface failure for one overlay, so that it does not stop the main window.
- Make
hex window showandhex statusreport the failed window.
Activity
adelekeogunsona commentedon Nov 2, 2026
Confirmed: with
DISPLAYunset, the Hex window opens and renders normally.thdxr commentedon Nov 2, 2026
run_windowin src/linux/app.rs already wraps the whole rune app in catch_unwind, so the panic only ends the window and hud, not hex. but the window and the xwayland hud share one rune event loop and gpu device, so a failed surface configure on the x11 overlay takes the window down with it, and we can't drop just one overlay from hex's side. after that,hex window showstill answers ok becauseshow_windowonly queues onto a channel nobody reads anymore, andhex statusreads a stale window_visible closure.the panic is inside rune's wgpu surface setup, so keeping the window alive while losing only the hud needs a change in rune, not hex.
we have no gnome wayland + nvidia machine to confirm it's the xwayland hud surface and not the main wayland window failing on its own.
would be useful to have the full panic line from the log and your nvidia driver version.
if you can try with the indicator position set to hidden, or with DISPLAY unset for hex so the hud never goes to xwayland, does the window open then?
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊
adelekeogunsona commentedon Nov 2, 2026
Results from the affected machine:
NVIDIA driver: 595.99.02 (
nvidia-driver-595-open). This is the only GPU in the machine.Full panic line:
DISPLAYunset: the window opens and renders, with no panic. Rune logs the same NVIDIA GPU, so the main Wayland window works on this driver.WAYLAND_DISPLAYunset,DISPLAYset: panics with the same error.DISPLAYset, window opened:The startup panic comes from Live Text. On 3.2.0,
src/rune_ui/live_text.rssetsprewarm: crate::labs::live_text()on a non-interactive overlay, which uses XWayland on GNOME.show()insrc/rune_hud.rsreturns early forHidden, so a hidden HUD does not panic. TheHUD shows on XWaylandlog line comes from an environment check and does not show that a surface exists.So the Wayland window works, and any overlay surface on XWayland panics: Live Text at startup, or the HUD at its first show. I don't know why the XCB Vulkan surface is invalid on this driver.
Rune 53c0c9ac: an overlay surface the GPU refuses fails alone, overla…
Rune 53c0c9ac: an overlay surface the GPU refuses fails alone, overla…
thdxr commentedon Nov 2, 2026
thanks for the digging, the live text / hidden hud table nailed it to the xwayland overlays.
fixed in #986 (rune 53c0c9ac), in the next dev build:
hex window showerrors andhex statussays so instead of claiming it's opennot tested on nvidia, we don't have one. the containment is covered by a test on a fake gpu backend. if you can try the next dev build with DISPLAY set and live text on, that'd confirm it. if the hud still doesn't show, the log should now have a real reason instead of "no reason given"
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊
linux: keep Hex running when the window can't start
linux: keep Hex running when the window can't start
linux: keep Hex running when the window can't start
macos, windows: take rune's startup error instead of exiting
docs: overlays wait for swap-chain room on windows since rune #985
Bump Rune to 1899e64: overlays pace frames with the swap chain on Win…
Bump Rune to 1899e64: overlays pace frames with the swap chain on Win…