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
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&)

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.