alvr-org / ALVR

Stream VR games from your PC to your headset via Wi-Fi
MIT License
5.52k stars 488 forks source link

I got this error with all versions of ALVR: XDG_RUNTIME_DIR is invalid or not set in the environment. #1608

Closed fabtimus closed 1 year ago

fabtimus commented 1 year ago

Hello, it´s been already few days and I can´t launch any Alvr versions of the latest 19 or the nightly ones. I will be thanksfull for any help :+1:

PS edit 10 hours later: I format and reinstall Fedora 38 again and still have the same error

Environment

Fedora 38 xorg

Hardware

[hw-probe -all -upload] https://linux-hardware.org/?probe=cdb842cc09

Description

When I launch any ALVR versions, I have this error in console when I run it with sudo :

error: XDG_RUNTIME_DIR is invalid or not set in the environment. error: XDG_RUNTIME_DIR is invalid or not set in the environment. error: XDG_RUNTIME_DIR is invalid or not set in the environment. error: XDG_RUNTIME_DIR is invalid or not set in the environment. error: XDG_RUNTIME_DIR is invalid or not set in the environment. [2023-05-06T08:47:32Z ERROR winit::platform_impl::platform] X11 error: XError { description: "BadAccess (attempt to access private resource denied)", error_code: 10, request_code: 130, minor_code: 1, } [2023-05-06T08:47:32Z ERROR winit::platform_impl::platform] X11 error: XError { description: "BadDrawable (invalid Pixmap or Window parameter)", error_code: 9, request_code: 147, minor_code: 4, } [2023-05-06T08:47:32Z ERROR winit::platform_impl::platform] X11 error: XError { description: "BadAccess (attempt to access private resource denied)", error_code: 10, request_code: 130, minor_code: 1, } [2023-05-06T08:47:32Z ERROR winit::platform_impl::platform] X11 error: XError { description: "BadDrawable (invalid Pixmap or Window parameter)", error_code: 9, request_code: 147, minor_code: 4, } [2023-05-06T08:47:32Z ERROR winit::platform_impl::platform] X11 error: XError { description: "BadAccess (attempt to access private resource denied)", error_code: 10, request_code: 130, minor_code: 1, } [2023-05-06T08:47:32Z ERROR winit::platform_impl::platform] X11 error: XError { description: "BadDrawable (invalid Pixmap or Window parameter)", error_code: 9, request_code: 147, minor_code: 4, } thread 'main' panicked at 'Failed to translate window coordinates: XError { description: "BadDrawable (invalid Pixmap or Window parameter)", error_code: 9, request_code: 147, minor_code: 4 }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.27.5/src/platform_impl/linux/x11/util/geometry.rs:290:18 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

fabtimus commented 1 year ago

Nobody can help ? I am refreshing this page frequently

Vixea commented 1 year ago

first: github isn't really the right place to get help instead join our discord/matrix chat second: if I remember the previous discussion on it, we kinda need it, it seems like your distro isn't setting it automatically possibly because its immutable?

fabtimus commented 1 year ago

ah ok I would like to join the Discord then. I downloaded and install Fedora Workstation 38 normally. Nothing different than with another distro.

galister commented 1 year ago

XDG_RUNTIME_DIR is set by your desktop environment and usually points to /run/user/1000. If you don't have that available, you'll most likely encounter issues with other applications, not just ALVR. Are you using a container of some sort?

parkerlreed commented 1 year ago

I have this error in console when I run it with sudo

DO NOT RUN ALVR WITH SUDO

That is why you are having those issues. Run at as your user.

Vixea commented 1 year ago

@parkerlreed thanks missed that completely yea there are many other reasons NOT to run gui apps with sudo, but the error is because of that yea.

fabtimus commented 1 year ago

Thanks for your replies guys but unfortunately it doesn´t solve ALVR. I have a new error now:

./nightly0509.AppImage

[01:16:38.524465988 ERROR alvr_server_io] Error while extrapolating session. Old session.json is stored as session_old.json. At alvr/session/src/lib.rs:188 warning: queue 0x5567109bc8f0 destroyed while proxies still attached: wl_display@1 still attached thread 'main' panicked at 'Error in Surface::configure: Validation Error

Caused by: Requested usage is not supported ', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.16.0/src/backend/direct.rs:734:18 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace warning: queue 0x556710cce170 destroyed while proxies still attached: wl_display@1 still attached warning: queue 0x5567107bcbe0 destroyed while proxies still attached: wl_buffer@42 still attached wl_buffer@41 still attached wl_buffer@39 still attached wl_buffer@40 still attached wl_subsurface@34 still attached wl_surface@33 still attached wl_subsurface@32 still attached wl_surface@31 still attached wl_subsurface@30 still attached wl_surface@29 still attached wl_subsurface@28 still attached wl_surface@27 still attached wl_subsurface@26 still attached wl_surface@25 still attached xdg_wm_base@23 still attached wl_output@15 still attached wl_output@14 still attached xdg_activation_v1@13 still attached zwp_text_input_manager_v3@12 still attached zwp_pointer_constraints_v1@11 still attached zwp_relative_pointer_manager_v1@10 still attached wl_seat@9 still attached wp_fractional_scale_manager_v1@8 still attached wp_viewporter@7 still attached wl_subcompositor@6 still attached wl_shm@5 still attached wl_compositor@4 still attached wl_registry@2 still attached

fabtimus commented 1 year ago

All right I manage to solve the problem alone : I install a new distro: Nobara. It is based on Fedora with all the necessary for gaming.