Game crashes in Linux when leaving a game

  1. Bug description

Game closes when a duel is over and you select the “Leave” button.

  1. Bug reproduction steps

End any match, for any reason, and when you press “Leave” button the game crashes. This is in Linux Mint 21 Cinnamon with AMD RX 6900 XT GPU. I have also reproduced on a laptop with Nvidia runing Linux as well.

  1. Screenshot OR error code

Output in terminal:

[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-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"
Loading in SingleInstance mode
Aborted (core dumped)
  1. Expected behavior

Return to the menu

  1. What OS are you using

Linux Mint 21 Cinnamon (Ubuntu 22.04 LTS base) with 5.15.0-47-generic kernel

I can test or provide any information required.

Not sure if this helps or not, but I pulled a log in Unity, here is what happens each time it crashes at the end of a game.

Unloading 5 Unused Serialized files (Serialized files now loaded: 89)
Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 9150.
Total: 8.952261 ms (FindLiveObjects: 0.266331 ms CreateObjectMapping: 0.200440 ms MarkObjects: 8.476880 ms  DeleteObjects: 0.008340 ms)

Failed to create discord lobby InternalError - 4
Manager.<>c__DisplayClass116_0:<CreateRoomLobby>b__0(Result, Lobby&)
Discord.LobbyManager:CreateLobbyCallbackImpl(IntPtr, Result, Lobby&)
Discord.Discord:RunCallbacks()
Manager.DiscordController:LateUpdate()

munmap_chunk(): invalid pointer

I can help debug or test in anyway. Thanks!

I am having this same problem on arch, I tried to configure boot.config as the console suggested, but that didn’t have any effect.

@PastelRobot @acejavelin This is caused by an Error inside the Discord App’s SDK. Linux does not support munmap_chunk(). Its an invalid memoey map inside the Linux kernel. Use online WebAuth instead of Discord App Auth and this should stop happening.