Omega Fails to Launch on XWayland

  1. Bug description
    [Describe what the bug is in your own words.]
    I’m using Gentoo linux, here is some information about the system:
dev@box ~ $ uname -a
Linux box 6.6.32-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sun Jun 23 17:52:28 EDT 2024 x86_64   AMD Ryzen 9 5950X 16-Core Processor AuthenticAMD GNU/Linux
 dev@box ~ $ lspci -nnk | grep -iA3 vga
    0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon    RX 6800/6800 XT / 6900 XT] [1002:73bf] (rev c3)
	Subsystem: Sapphire Technology Limited Pulse Radeon RX 6800 [1da2:e437]
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

I’m launching the game from sway window manager. YGO works when sway is compiled without XWayland support. However, the game fails to start when launching YGO from sway with XWayland enabled

  1. Bug reproduction steps

    [Write the exact steps to reproduce the bug. Provide a replay code if you can. You can attach replay codes, or use a pastebin link or you can even use a spoiler tag using]

    ./YGO\ Omega.x86_64

  2. Screenshot OR error code

    dev@box ~/games/ygo-omega $ ./YGO\ Omega.x86_64 
    [UnityMemory] Configuration Parameters - Can be set up in boot.config
     Segmentation fault

    Errors from Player.log:

    dev@box ~/.config/unity3d/Duelists Unite/YGO Omega $ cat Player.log 
    Preloaded ''
    Preloaded ''
    Display 0 'DP-3 32"': 1536x864 (primary device).
    [Physics::Module] Initialized MultithreadedJobDispatcher with 31 workers.
    Unable to load player prefs
    Desktop is 1536 x 864 @ 144 Hz
    [ Vulkan init] extensions: count=20
    **... (lots of Vulcan output)**
    Caught fatal signal - signo:11 code:1 errno:0 addr:(nil)
    Obtained 5 stack frames.
    #0  0x007fde6d5c7c8a in PlayerMain(int, char**)
    #1  0x007fde6d5c0207 in (Unknown)
    #2  0x007fde6c5799d0 in __sigaction
    #3             (nil) in (Unknown)
    #4  0x007fde6d6f1cc8 in PlayerMain(int, char**)
  3. Expected behavior
    [Tell us what should have happened when the bug occurred.]
    The game should have launched

  4. What OS are you using
    [Windows-10 / Linux / Android]
    Linux (Gentoo)

    Something extra (although probably not that helpful):
    running sudo -E ./YGO\ Omega.x86_64 actually launches the gui but it freezes on the title screen.