https://bugs.kde.org/show_bug.cgi?id=501381

            Bug ID: 501381
           Summary: Unity Engine games launched with -force-wayland quit
                    immediately.
    Classification: Plasma
           Product: kwin
           Version: 6.3.2
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: fuzzyqu...@scrapyard.link
  Target Milestone: ---

SUMMARY
Attempting to launch a Unity Engine game with `-force-wayland` on engine
versions that support it as an experimental feature fails, with Kwin rejecting
the client connection soon after the game launches. The game will often
coredump after this point in libglapi.so (Backtrace from the Unity game itself
and journalctl attached, I removed the name of the game as it's a project I
have in development that I'd rather not leak details of yet)

kwin_wayland[960]: kwin_core: Cannot grant a token to
KWin::ClientConnection(0x558552dc3a90)
Mar 12 09:39:15 Kirby-MkV-Arch kwin_wayland_wrapper[960]: error in client
communication (pid 5394)
Mar 12 09:39:15 Kirby-MkV-Arch systemd-coredump[5462]: Process 5394 (<game name
removed>) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Mar 12 09:39:16 Kirby-MkV-Arch systemd-coredump[5463]: [🡕] Process 5394 (<Game
name removed>) of user 1000 dumped core.
                                                       Module [dso] without
build-id.
                                                       Module [dso] without
build-id.
                                                       Module [dso] without
build-id.
                                                       Module libglapi.so.0
without build-id.
                                                       Stack trace of thread
5394:
                                                       #0  0x00007f520aec26db
n/a (n/a + 0x0)
                                                       ELF object binary
architecture: AMD x86-64

STEPS TO REPRODUCE
1. Obtain a native Linux build of any Unity Engine game using Unity 2023.1.x or
higher (game in question that crashed here is on Unity 6000.0.38f1)
2. Attempt to launch said game in the Terminal with -force-wayland as a command
line argument.
3. Observe Kwin throwing an error and refusing to grant a token to the Unity
game with `journalctl -f`

OBSERVED RESULT
Game immediately quits, sometimes also coredumping, but not every time.

EXPECTED RESULT
Game launches as it would normally via Xwayland without command line arguments.

SOFTWARE/OS VERSIONS
Linux: 6.12.13-273-tkg-eevdf, Arch Linux
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11
Qt Version: 6.8.2

ADDITIONAL INFORMATION
I attempted the reproduction steps on another Wayland compositor (labwc, aka.
wlroots-based) and Unity Engine game in question launched normally. I am happy
to provide a build of the game in question if the KDE devs aren't able to
obtain a game to test with that meets the reproduction steps' criteria.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to