How to fix X-Plane 12 crashing on launch with NVIDIA and Wayland
I had an issue with X-Plane 12 crashing on launch in my NVIDIA and Wayland setup. I checked the log file, but it didn't indicate any specific problem. Everything looked normal until:
--=={This application has crashed!}==--
I want to share a solution that I found.
Here's the full log:
Log.txt for X-Plane 12.1.2-r4-0f2fea01 (build 121212 Intel 64-bit, Vulkan c2701fba1094d73ee8d04bb77a09f4127a1bcf47)
Compiled on Oct 7 2024 19:32:52
X-Plane Started on Fri Dec 27 12:53:58 2024
This log file is generated automatically by Laminar Research applications and contains diagnostics about your graphics hardware, installation, and any error conditions.
If you need to contact tech support or file a bug, please send us this file. NOTE: this file is rewritten every time you start ANY of your X-System applications.
Linux kernel version: Linux version 6.12.6-arch1-1 (linux@archlinux) (gcc (GCC) 14.2.1 20240910, GNU ld (GNU Binutils) 2.43.0) #1 SMP PREEMPT_DYNAMIC Thu, 19 Dec 2024 21:29:01 +0000
Linux release info:
PRETTY_NAME: "Steam Runtime 2 (soldier)"
NAME: "Steam Runtime"
VERSION: "2 (soldier)"
CPU type: : Intel Core i7-14700K - Speed: 0.0-0.4 GHz - Cores: 28
MemTotal: 32617828 kB
X-System folder:'/home/aleksei/.local/share/Steam/steamapps/common/X-Plane 12/', case sensitive=1
0:00:00.000 D/TRN: Unable to determine default language. May need to prompt the user to select.
--=={This application has crashed!}==--
--=={FILE: /home/aleksei/.local/share/Steam/steamapps/common/X-Plane 12/Log_ATC.txt}==--
With no explanation whatsoever! Fortunately, I found a solution on forums.x-plane.org. My uneducated guess is that the libGL that comes with my system or Steam itself doesn't satisfy X-Plane 12 for some reason. Therefore, the post recommends adding the following to the launch options to override it:
LD_PRELOAD=./Resources/dlls/64/gl/libGL.so %command% --zink
With that, the game no longer crashes. The only downside I noticed is that Steam overlay no longer works, which means you'll lose an FPS counter, hotkeys for taking screenshots and video clips, in-game chats, etc. But to me that isn't critical.