Closed Snogard closed 11 months ago
Hey I'm having the same issues on NixOS aswell, but I have these error instead
❯ ludusavi
libEGL warning: egl: failed to create dri2 screen
thread 'main' panicked at 'Failed to call XMapRaised: XError { description: "BadDrawable (invalid Pixmap or Window parameter)", error_code: 9, request_code: 147, minor_code: 4 }', /build/ludusavi-0.21.0-vendor.tar.gz/winit/src/platform_impl/linux/x11/window.rs:1028:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: PoisonError { .. }', /build/ludusavi-0.21.0-vendor.tar.gz/winit/src/platform_impl/linux/x11/window.rs:513:34
stack backtrace:
0: 0x5633d8aa6000 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0f67236053551eca
1: 0x5633d8ad5e9f - core::fmt::write::h13a8faf14f1ccf50
2: 0x5633d8a9e027 - std::io::Write::write_fmt::ha1e4f1bb6310f8b3
3: 0x5633d8aa5e05 - std::sys_common::backtrace::print::hda0e459003c3497e
4: 0x5633d8a8ad71 - std::panicking::default_hook::{{closure}}::h9fb0f39f8a4b4896
5: 0x5633d8a8aa0f - std::panicking::default_hook::h74777d9c83f82eb3
6: 0x5633d8a8b219 - std::panicking::rust_panic_with_hook::h5a53706624030272
7: 0x5633d8aa62e7 - std::panicking::begin_panic_handler::{{closure}}::h3941e21c138a8c98
8: 0x5633d8aa60d6 - std::sys_common::backtrace::__rust_end_short_backtrace::h5d3e0e241a65e49e
9: 0x5633d8a8af42 - rust_begin_unwind
10: 0x5633d7c38b43 - core::panicking::panic_fmt::h396c35e980c19b34
11: 0x5633d7c38fd3 - core::result::unwrap_failed::h788e567f8340e094
12: 0x5633d83a96b2 - <winit::window::Window as core::ops::drop::Drop>::drop::hcae3b48a3e84cf8e
13: 0x5633d7e9f5bd - core::ptr::drop_in_place<winit::window::Window>::ha7663fbebb120c55
14: 0x5633d7e982a0 - iced_winit::application::run::{{closure}}::h0843cf3c0b01f12c
15: 0x5633d7dc9faf - winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration::h91adf92b4cb4f4dd
16: 0x5633d7dca78b - winit::platform_impl::platform::x11::EventLoop<T>::run_return::h86fdb6d28c54c5f1
17: 0x5633d7e6ca23 - iced_winit::application::run::h8852d96e0d85bc9b
18: 0x5633d7dc8509 - iced::application::Application::run::he544ecadb1525e0a
19: 0x5633d7f3c70a - ludusavi::gui::run::h68416a04a7288720
20: 0x5633d7daca94 - ludusavi::main::h341e2647d050c622
21: 0x5633d7e71f03 - std::sys_common::backtrace::__rust_begin_short_backtrace::h68a43dd8b10dd4db
22: 0x5633d7d0b779 - std::rt::lang_start::{{closure}}::h7ace8141350a8b79
23: 0x5633d8a7fc27 - std::rt::lang_start_internal::h7910e71d80e7bec3
24: 0x5633d7daef95 - main
25: 0x7fe12a979fce - __libc_start_call_main
26: 0x7fe12a97a089 - __libc_start_main_impl
27: 0x5633d7c39215 - _start
28: 0x0 - <unknown>
thread 'main' panicked at 'panic in a function that cannot unwind', library/core/src/panicking.rs:126:5
stack backtrace:
0: 0x5633d8aa6000 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0f67236053551eca
1: 0x5633d8ad5e9f - core::fmt::write::h13a8faf14f1ccf50
2: 0x5633d8a9e027 - std::io::Write::write_fmt::ha1e4f1bb6310f8b3
3: 0x5633d8aa5e05 - std::sys_common::backtrace::print::hda0e459003c3497e
4: 0x5633d8a8ad71 - std::panicking::default_hook::{{closure}}::h9fb0f39f8a4b4896
5: 0x5633d8a8aa0f - std::panicking::default_hook::h74777d9c83f82eb3
6: 0x5633d8a8b219 - std::panicking::rust_panic_with_hook::h5a53706624030272
7: 0x5633d8aa62a1 - std::panicking::begin_panic_handler::{{closure}}::h3941e21c138a8c98
8: 0x5633d8aa60d6 - std::sys_common::backtrace::__rust_end_short_backtrace::h5d3e0e241a65e49e
9: 0x5633d8a8af42 - rust_begin_unwind
10: 0x5633d7c38b83 - core::panicking::panic_nounwind_fmt::hef637a7d457f403d
11: 0x5633d7c38c27 - core::panicking::panic_nounwind::h23ae16224ab91a02
12: 0x5633d7c38cc3 - core::panicking::panic_cannot_unwind::h7c2525e4b42392b3
13: 0x5633d7e9837f - iced_winit::application::run::{{closure}}::h0843cf3c0b01f12c
14: 0x5633d7dc9faf - winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration::h91adf92b4cb4f4dd
15: 0x5633d7dca78b - winit::platform_impl::platform::x11::EventLoop<T>::run_return::h86fdb6d28c54c5f1
16: 0x5633d7e6ca23 - iced_winit::application::run::h8852d96e0d85bc9b
17: 0x5633d7dc8509 - iced::application::Application::run::he544ecadb1525e0a
18: 0x5633d7f3c70a - ludusavi::gui::run::h68416a04a7288720
19: 0x5633d7daca94 - ludusavi::main::h341e2647d050c622
20: 0x5633d7e71f03 - std::sys_common::backtrace::__rust_begin_short_backtrace::h68a43dd8b10dd4db
21: 0x5633d7d0b779 - std::rt::lang_start::{{closure}}::h7ace8141350a8b79
22: 0x5633d8a7fc27 - std::rt::lang_start_internal::h7910e71d80e7bec3
23: 0x5633d7daef95 - main
24: 0x7fe12a979fce - __libc_start_call_main
25: 0x7fe12a97a089 - __libc_start_main_impl
26: 0x5633d7c39215 - _start
27: 0x0 - <unknown>
thread caused non-unwinding panic. aborting.
[1] 41147 abort (core dumped) ludusavi
Same issues occurs on Flatpak aswell. But strangely enough it works fine on my laptop, the only thing I could possibly point to is something with Nvidia (Since I have that enabled for the desktop). The issue also occurs on X11 and Wayland
Hey, sorry for the late reply on this. I'm not sure about the root cause, but could you try switching to the software renderer and see if that helps?
flatpak run --env ICED_BACKEND=tiny-skia com.github.mtkennerly.ludusavi
Hey, sorry for the late reply on this. I'm not sure about the root cause, but could you try switching to the software renderer and see if that helps?
flatpak run --env ICED_BACKEND=tiny-skia com.github.mtkennerly.ludusavi
Hey running this worked for the flatpak version!
Now the next question is how to get it working on the distro package versions (and even on the flatpak without needing the environment variable). I also tested that variable by exporting it into the system and that also made the NixOS package for it work properly aswell!
Nice!
We can add default environment variables to the Flatpak, but I'd be hesitant to add this one since it also decreases performance and isn't needed on all systems. I can certainly add some info to the README for anyone who needs it, though.
Not sure about the NixOS and AUR packages - I'm not involved in maintaining those.
🤔 I'm actually looking at the documentation.. how it's saying the system needs to support Vulkan. I wonder if there's something going on with how it's detecting Vulkan with Nvidia GPUs? Unsure what GPU OP has but I think it has something to do with the program somehow not detecting Vulkan especially since the laptop (which has an Intel GPU) works fine and the only real difference between the two systems is the GPU
i do have a gtx 1070 ti. The fix you suggested works for the flatpack version on my end and for anyone on the aur package, you can add the env in the desktop file like this:
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Ludusavi
Comment=Tool for backing up your PC video game save data.
Exec=ICED_BACKEND=tiny-skia ludusavi
Icon=ludusavi
Terminal=false
Categories=Game;
thanks @mtkennerly, now i can use ludusavi again
Ludusavi version
v0.21.0
Operating system
Arch Linux X11
Installation method
Standalone or AUR
Description
The program just crashes on start up
Logs