Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash under FreeBSD + Sway #872

Open
iron-udjin opened this issue Jan 2, 2025 · 2 comments
Open

Crash under FreeBSD + Sway #872

iron-udjin opened this issue Jan 2, 2025 · 2 comments

Comments

@iron-udjin
Copy link

OS: FreeBSD 14.2-STABLE
WM: Sway
rio-0.2.2

$ env RUST_BACKTRACE=full rio
thread 'main' panicked at /wrkdirs/usr/ports/x11/rio/work/rio-0.2.2/cargo-crates/wgpu-23.0.0/src/backend/wgpu_core.rs:722:18:
Error in Surface::configure: Validation Error

Caused by:
  Invalid surface

stack backtrace:
   0:      0x2393f9abdf6 - <unknown>
   1:      0x2393f414133 - <unknown>
   2:      0x2393f9af41e - <unknown>
   3:      0x2393f9c3f66 - <unknown>
   4:      0x2393f9c4b37 - <unknown>
   5:      0x2393f9ac458 - <unknown>
   6:      0x2393f9ac3b9 - <unknown>
   7:      0x2393f9c42cc - <unknown>
   8:      0x2393f41727f - <unknown>
   9:      0x2393fbff0cd - <unknown>
  10:      0x2393fbaf427 - <unknown>
  11:      0x2393fbfffd6 - <unknown>
  12:      0x2393fa5e565 - <unknown>
  13:      0x2393faf2f0e - <unknown>
  14:      0x2393f35e98c - <unknown>
  15:      0x2393f35c683 - <unknown>
  16:      0x2393f25e6a7 - <unknown>
  17:      0x2393f336510 - <unknown>
  18:      0x2393f3832bb - <unknown>
  19:      0x2393f2c4093 - <unknown>
  20:      0x2393f387e9f - <unknown>
  21:      0x24162bfaff4 - __libc_start1
  22:      0x2393f2543ad - <unknown>
Abort (core dumped)

Is there a way to fix it?

@raphamorim
Copy link
Owner

Hey @iron-udjin thanks for the issue,

Hmmm weird error from wgpu (I assume it by the description), are you configuring any custom backend? If not could you try with vulkan?

@iron-udjin
Copy link
Author

Hi @raphamorim
Thank you for your fast response.

Here are my settings:

setenv XDG_RUNTIME_DIR /tmp/`id -u`
setenv XDG_CACHE_HOME $HOME/.cache
setenv XDG_CURRENT_DESKTOP sway
setenv XDG_SESSION_DESKTOP sway
setenv XDG_SESSION_TYPE wayland
setenv XWAYLAND_NO_GLAMOR 1
setenv MOZ_ENABLE_WAYLAND 1
setenv MOZ_DBUS_REMOTE 1
setenv MOZ_ACCELERATED 1
setenv GDK_BACKEND wayland
setenv GTK_CSD 0
setenv GTK_THEME Adwaita:dark
setenv QT_QPA_PLATFORM wayland
setenv QT_QPA_PLATFORMTHEME qt5ct
setenv QT_WAYLAND_DISABLE_WINDOWDECORATION 1
setenv QT_WAYLAND_FORCE_DPI physical
setenv SAL_FORCEDPI 140
setenv WLR_RENDERER vulkan
setenv LIBVA_DRIVER_NAME iHD

Do I need to change anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants