Closed JoshuaFern closed 2 years ago
@JoshuaFern Do games that do not need the launcher work as expected?
Also, if you go into the area where the compatibility tool is installed and run ./luxtorpeda mgmt, what happens? That should launch a management tool listing all of the games you've run in the past.
@JoshuaFern Also it works on the same system but with x11 instead of wayland?
@JoshuaFern I just tried on my laptop with amd/intel with wayland and it worked fine, this was with arch linux.
Hi, thanks for the quick response. I'm using Nvidia drivers, which recently added GBM support. I have been using Sway full time for a little over a week now with good success. Luxtorpeda was previously working fine on the same system with X11.
Testing games that launch directly, Blake Stone: Planet Strike works fine.
Running mgmt seems to have the exact same behavior:
[📦 com.valvesoftware.Steam luxtorpeda]$ ./luxtorpeda mgmt
update_packages_json. found hash: babc70f0b8716cad93a81170fae1549756a39bad
update_packages_json. found hash and remote hash: babc70f0b8716cad93a81170fae1549756a39bad babc70f0b8716cad93a81170fae1549756a39bad
0 joysticks available
window is on display_index: 0
found dpi: (81.18885, 81.28, 80.68235)
using dpi scaling of 1.0571465
Aborted (core dumped)
A solution to the crashing seems to be launching mgmt
with SDL_VIDEODRIVER=wayland
, I have this set globally however I don't think it's getting passed to applications running in the flatpak environment. I could manually tweak this for my system but that would only fix the issue for myself.
@JoshuaFern I think I have a fix with this: https://github.com/luxtorpeda-dev/luxtorpeda/commit/a0a95bdb5007d3fb335493e28045cb7fcfe24c9a
Version 49 has this fix in it. It looks like the painter, part of the window system was being freed after the window was closed and freed, causing a crash. Moving the painter to the top of the object seems to have caused it to be freed first, fixing the issue.
Let me know if you continue to have issues.
Linux Distribution
Flatpak/NixOS
Luxtorpeda Version
45-48
Bug description
Luxtorpeda will crash on the engine selection screen.
Steps To Reproduce
Expected Behavior
Luxtorpeda should not crash.
Additional Context
I have changed my display server from x11 to Wayland recently.
Version 40 does not crash.
Relevant log output