RetroDECK icon indicating copy to clipboard operation
RetroDECK copied to clipboard

PCXS2: Wayland Crash - Manjaro Gnome

Open 0chroma opened this issue 1 year ago • 9 comments

when using gnome on wayland on manjaro linux, I get the following crash when trying to launch pcsx2:

*************** Unhandled SIGSEGV at 0x7fbe7a625853 ***************
  0x0056017475d607
  0x0056017477a290
  0x007fbe7f83f0ff
  0x007fbe7a625853 _ZN19QAdwaitaDecorations12forceRepaintEv [/run/build/qadwaitadecorations/src/qadwaitadecorations.cpp:728]
  0x007fbe7a6294d6 _ZN19QAdwaitaDecorations17initConfigurationEv [/run/build/qadwaitadecorations/src/qadwaitadecorations.cpp:158]
  0x007fbe801b7df1
  0x007fbe81789675
  0x007fbe80165249
  0x007fbe80168d80
  0x007fbe8042c156
  0x007fbe7f70dd3a
  0x007fbe7f763257
  0x007fbe7f70b3e2
  0x007fbe8042ba4d
  0x007fbe801718ca
  0x007fbe8016dbb5
  0x0056017434f0fd
  0x007fbe7f829589
  0x007fbe7f82964a
  0x00560173c8ed24
  0xffffffffffffffff
*******************************************************************
/app/tools/configurator.sh: line 438:   365 Aborted                 (core dumped) pcsx2-qt

0chroma avatar Feb 07 '24 02:02 0chroma

https://github.com/XargonWan/RetroDECK/issues/420

I have "linked" this issue with the bigger issue above also added the Wayland 🍂 tag to all related issues.

And we will look into it in the new mini project post 0.8b:

Wheyland 🥛 project <---- Now that is a good name!

Lazorne avatar Feb 07 '24 06:02 Lazorne

Actually we might have found the problem with a missing QT variable, my guess it will work on certain emulators but not all. We have updated issue #420 and you you want to help us test it out you can just comment on the discord and be promoted to Beta Tester

Lazorne avatar Feb 07 '24 11:02 Lazorne

new error:

qt.qpa.plugin: Could not find the Qt platform plugin ""wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb"" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, xcb.

/app/tools/configurator.sh: line 454:   396 Aborted                 (core dumped) pcsx2-qt

looks like you just need to remove the quotes from that change haha

my discord is the same as my github username ^^

0chroma avatar Feb 07 '24 12:02 0chroma

new error:

qt.qpa.plugin: Could not find the Qt platform plugin ""wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb"" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: wayland-egl, wayland, xcb.

/app/tools/configurator.sh: line 454:   396 Aborted                 (core dumped) pcsx2-qt

looks like you just need to remove the quotes from that change haha

my discord is the same as my github username ^^

Hopefully this commit fix it then.

However what is wayland-egl is worth to adding it?

XargonWan avatar Feb 07 '24 12:02 XargonWan

it's the egl version of wayland that doesn't pull in any X dependencies, see: https://wayland.freedesktop.org/faq.html#heading_toc_j_12

I think excluding it would only break really exotic setups that have no X11 support, kind of unthinkable in 2024 though. Including it may lead to better performance in some way, at a minimum less memory usage. Not entirely sure though since I've never experimented with it.

0chroma avatar Feb 08 '24 01:02 0chroma

ah, QT recommends it, so I'd say yea it's worth including: https://doc.qt.io/qt-6/qtwaylandcompositor-index.html#running-the-wayland-compositor

0chroma avatar Feb 08 '24 01:02 0chroma

still sadly back to the same crash on latest build:

*************** Unhandled SIGSEGV at 0x7fe688cb3853 ***************
  0x0055b93b991607
  0x0055b93b9ae290
  0x007fe68de3f0ff
  0x007fe688cb3853 _ZN19QAdwaitaDecorations12forceRepaintEv [/run/build/qadwaitadecorations/src/qadwaitadecorations.cpp:728]
  0x007fe688cb74d6 _ZN19QAdwaitaDecorations17initConfigurationEv [/run/build/qadwaitadecorations/src/qadwaitadecorations.cpp:158]
  0x007fe68e7b7df1
  0x007fe68fd89675
  0x007fe68e765249
  0x007fe68e768d80
  0x007fe68ea2c156
  0x007fe68dd0dd3a
  0x007fe68dd63257
  0x007fe68dd0b3e2
  0x007fe68ea2ba4d
  0x007fe68e7718ca
  0x007fe68e76dbb5
  0x0055b93b5830fd
  0x007fe68de29589
  0x007fe68de2964a
  0x0055b93aec2d24
  0xffffffffffffffff
*******************************************************************
/app/tools/configurator.sh: line 452:   386 Aborted                 (core dumped) pcsx2-qt

0chroma avatar Feb 08 '24 07:02 0chroma

Added: https://github.com/XargonWan/RetroDECK/commit/04585d859f6b5cb5c25a18966b6df867cf0371ae

XargonWan avatar Feb 08 '24 11:02 XargonWan

Can you check the latest cooker build? I did some manifest tweaks regarding wayland and x11 support @0chroma

XargonWan avatar Mar 28 '24 12:03 XargonWan