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

    Spoiler
    dev@box ~/games/ygo-omega $ ./YGO\ Omega.x86_64 
    [UnityMemory] Configuration Parameters - Can be set up in boot.config
     "memorysetup-bucket-allocator-granularity=16"
     "memorysetup-bucket-allocator-bucket-count=8"
     "memorysetup-bucket-allocator-block-size=4194304"
     "memorysetup-bucket-allocator-block-count=1"
     "memorysetup-main-allocator-block-size=16777216"
     "memorysetup-thread-allocator-block-size=16777216"
     "memorysetup-gfx-main-allocator-block-size=16777216"
     "memorysetup-gfx-thread-allocator-block-size=16777216"
     "memorysetup-cache-allocator-block-size=4194304"
     "memorysetup-typetree-allocator-block-size=2097152"
     "memorysetup-profiler-bucket-allocator-granularity=16"
     "memorysetup-profiler-bucket-allocator-bucket-count=8"
     "memorysetup-profiler-bucket-allocator-block-size=4194304"
     "memorysetup-profiler-bucket-allocator-block-count=1"
     "memorysetup-profiler-allocator-block-size=16777216"
     "memorysetup-profiler-editor-allocator-block-size=1048576"
     "memorysetup-temp-allocator-size-main=4194304"
     "memorysetup-job-temp-allocator-block-size=2097152"
     "memorysetup-job-temp-allocator-block-size-background=1048576"
     "memorysetup-job-temp-allocator-reduction-small-platforms=262144"
     "memorysetup-allocator-temp-initial-block-size-main=262144"
     "memorysetup-allocator-temp-initial-block-size-worker=262144"
     "memorysetup-temp-allocator-size-background-worker=32768"
     "memorysetup-temp-allocator-size-job-worker=262144"
     "memorysetup-temp-allocator-size-preload-manager=262144"
     "memorysetup-temp-allocator-size-nav-mesh-worker=65536"
     "memorysetup-temp-allocator-size-audio-worker=65536"
     "memorysetup-temp-allocator-size-cloud-worker=32768"
     "memorysetup-temp-allocator-size-gfx=262144"
     Segmentation fault
    

    Errors from Player.log:

    Spoiler
    dev@box ~/.config/unity3d/Duelists Unite/YGO Omega $ cat Player.log 
    Preloaded 'discord_game_sdk.so'
    Preloaded 'lib_burst_generated.so'
    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.