-
-
Notifications
You must be signed in to change notification settings - Fork 54
How to Capture & Report Linux Crashes
When Command & Conquer: Generals or Zero Hour (GeneralsX) unexpectedly quits, exits immediately on startup without an error window, or crashes with a segmentation fault (SIGSEGV), Linux captures diagnostic logs and stack traces that are critical for identifying the problem.
This guide covers how to troubleshoot silent Flatpak exits, capture terminal logs, obtain backtraces using gdb, check system coredumps, and report actionable bug reports to the developers.
If you installed GeneralsX via Flatpak and clicking the icon in your desktop launcher (GNOME, KDE, etc.) causes the application to immediately close without displaying an error window, this is usually not a crash, but an unfulfilled startup prerequisite.
When applications are launched from desktop menus, standard output (stdout) and error streams (stderr) are suppressed by the desktop environment.
Open your terminal and run the Flatpak command directly:
# For Zero Hour:
flatpak run com.fbraz3.GeneralsXZH
# For the base game:
flatpak run com.fbraz3.GeneralsXIf the terminal output displays:
ERROR: Could not find game data directory inside Flatpak sandbox.
GeneralsX is a native engine replacement and requires the original retail game data files (Big files, INI, maps, etc.) to run.
The Flatpak sandbox is pre-configured with filesystem permissions for the following host paths:
-
Zero Hour:
~/GeneralsX/GeneralsZH/or~/.local/share/GeneralsX/GeneralsZH/ -
Base Game:
~/GeneralsX/Generals/or~/.local/share/GeneralsX/Generals/
Make sure your retail game data is placed in one of these directories. See the Getting the Game Files guide for details.
You can open an interactive Bash shell inside the exact container environment to inspect files, permissions, and environment variables:
flatpak run --command=bash com.fbraz3.GeneralsXZHInside the sandbox shell:
# Check detected install path
echo "$CNC_GENERALS_INSTALLPATH"
# Verify that game assets are visible
ls -la "$CNC_GENERALS_INSTALLPATH"
# Run the binary directly to see raw output
/app/bin/GeneralsXZHTo exit the sandbox shell, type exit.
If the game crashes with a segmentation fault (SIGSEGV / CrashDump), capturing a backtrace with GDB pinpoints the exact line of code that failed.
GDB is included with the Flatpak SDK:
flatpak install org.freedesktop.Sdk//25.08Run the Flatpak using the --devel flag:
flatpak run --devel --command=gdb com.fbraz3.GeneralsXZHInside the GDB prompt, start the game:
(gdb) runReproduce the issue until the game crashes. GDB will intercept the signal and pause execution. Type:
(gdb) bt fullTo capture backtraces across all running threads (render, audio, logic):
(gdb) thread apply all btCopy the terminal output to attach to your bug report.
If you compiled GeneralsX natively from source, you can capture crash logs directly from the system.
On modern Linux distributions running systemd (Ubuntu, Fedora, Arch, Debian), crashes automatically generate a core dump.
- List recent crashes:
coredumpctl list GeneralsXZH
- View detailed crash information and stack trace:
coredumpctl info
- Open the crashed state directly in GDB:
Then run
coredumpctl gdb
bt fullinside GDB.
# Navigate to binary location
cd build/linux64-deploy/GeneralsMD
# Start GDB
gdb --args ./GeneralsXZH -win
# Run inside GDB
(gdb) run
# When it crashes
(gdb) bt fullGeneralsX uses DXVK to translate DirectX 8 calls to native Vulkan. If the game crashes on startup before the window appears, check your Vulkan drivers:
-
Verify Vulkan driver support:
vulkaninfo --summary
Ensure your discrete or integrated GPU is listed and using official drivers (e.g. Mesa RADV, Intel ANV, or NVIDIA proprietary).
-
Check DXVK logs: DXVK automatically writes a log file in the game directory:
- Zero Hour:
GeneralsXZH_d3d8.log - Base Game:
GeneralsX_d3d8.log
- Zero Hour:
-
Wayland vs X11 Display Server: If running under Wayland and experiencing window creation issues, test with the X11 backend:
# Flatpak: SDL_VIDEODRIVER=x11 flatpak run com.fbraz3.GeneralsXZH # Native: SDL_VIDEODRIVER=x11 ./GeneralsXZH -win
-
Flatpak: Missing NVIDIA Driver Extension (Immediate Startup Abort): When running on an NVIDIA GPU, Flatpak requires a matching
org.freedesktop.Platform.GL.nvidia-<version>runtime extension that corresponds exactly to the host kernel driver version (nvidia.ko).Symptom: The game crashes immediately on startup without opening a window, and terminal output shows Vulkan instance initialization followed by an abort before enumerating physical devices:
info: Enabled instance extensions: info: VK_KHR_surface info: VK_KHR_wayland_surface /app/bin/run.sh: line XX: Aborted (core dumped)Diagnosis: Inspect available Vulkan ICDs inside the Flatpak sandbox:
flatpak run --command=bash com.fbraz3.GeneralsXZH -c 'find /usr -name "*icd*.json" 2>/dev/null'If you have an NVIDIA GPU on your host but
nvidia_icd.jsonis missing from the sandbox, the required GL extension is not mounted.Resolution: Run
flatpak updateon the host to let Flatpak detect and download the matching NVIDIA driver extension automatically:flatpak update
If using a bleeding-edge or beta driver (common on rolling distributions like Arch Linux) and the extension is not pulled automatically, query your driver version and install it manually:
flatpak install org.freedesktop.Platform.GL.nvidia-$(nvidia-smi --query-gpu=driver_version --format=csv,noheader | tr . -)
When reporting a Linux crash or launch issue on GitHub:
-
Title: Include platform and symptom (e.g.,
[Linux] Crash on startup in Vulkan swapchainor[Flatpak] Immediate exit after splash screen). -
Environment Information:
- Distribution: e.g., Ubuntu 24.04 LTS / Arch Linux / Fedora 41
- GPU & Driver: e.g., AMD Radeon RX 6700 XT (Mesa 24.1) / NVIDIA RTX 3080 (Driver 550.78)
- Display Server: Wayland or X11
- Installation Method: Flatpak or Native Source Build (Commit hash)
-
Terminal Output / GDB Backtrace: Paste the logs inside a markdown details block:
<details> <summary>Terminal Log / GDB Backtrace</summary> ```text PASTE_LOGS_HERE ``` </details>
-
DXVK Log: Attach
GeneralsXZH_d3d8.logif the issue is graphical or launch-related.