[GH-ISSUE #3193] [APP BUG]: Crash immediately if geometry_* settings are omitted from config.toml #987

Closed
opened 2026-02-27 21:09:19 +03:00 by kerem · 1 comment
Owner

Originally created by @tomalexander on GitHub (Jul 5, 2025).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3193

Checklist

  • I have searched for a similar issue in this repository and did not find one.
  • I am using an official build obtained from releases or updated one of those builds using its in-app updater.

Describe the Bug

I am attempting to use a minimal config.toml that only contains the settings that I need changed from the defaults, rather than the entire auto-generated config. When I do this, shadps4 crashes immediately upon launch. I have narrowed it down to the geometry_* settings.

Reproduction Steps

  1. Launch shadps4 with no config.toml to populate config.toml with the auto-generated defaults. Then close shadps4.
  2. Open ~/.local/share/shadPS4/config.toml. Under the [GUI] section, delete the lines for geometry_(h|w|x|y).
  3. Launch shadps4 again.

You will get: floating point exception (core dumped) shadps4 and shadps4 fails to launch.

Expected Behavior

When settings are omitted from config.toml, shadps4 should use the same default values that would be written to the auto-generated config.toml. This way, when we encode our configs into our gitops setups (ansible, nix, or just committing your configs to a git repo), we can write only the settings that we've changed rather than including the full auto-generated config containing transient settings like window geometry.

Specify OS Version

NixOS

CPU

AMD Ryzen 7 7840U

GPU

Radeon 780M

Amount of RAM in GB

96

Originally created by @tomalexander on GitHub (Jul 5, 2025). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/3193 ### Checklist - [x] I have searched for a similar issue in this repository and did not find one. - [x] I am using an official build obtained from [releases](https://github.com/shadps4-emu/shadPS4/releases) or updated one of those builds using its in-app updater. ### Describe the Bug I am attempting to use a minimal `config.toml` that only contains the settings that I need changed from the defaults, rather than the entire auto-generated config. When I do this, shadps4 crashes immediately upon launch. I have narrowed it down to the geometry_* settings. ### Reproduction Steps 1. Launch shadps4 with no `config.toml` to populate `config.toml` with the auto-generated defaults. Then close shadps4. 2. Open `~/.local/share/shadPS4/config.toml`. Under the `[GUI]` section, delete the lines for `geometry_(h|w|x|y)`. 3. Launch shadps4 again. You will get: `floating point exception (core dumped) shadps4` and shadps4 fails to launch. ### Expected Behavior When settings are omitted from `config.toml`, shadps4 should use the same default values that would be written to the auto-generated `config.toml`. This way, when we encode our configs into our gitops setups (ansible, nix, or just committing your configs to a git repo), we can write only the settings that we've changed rather than including the full auto-generated config containing transient settings like window geometry. ### Specify OS Version NixOS ### CPU AMD Ryzen 7 7840U ### GPU Radeon 780M ### Amount of RAM in GB 96
kerem closed this issue 2026-02-27 21:09:19 +03:00
Author
Owner

@StevenMiller123 commented on GitHub (Jul 25, 2025):

The crash should be fixed now, since missing config.toml settings are regenerated on emulator startup.
Please let me know if this crash still occurs, and I will reopen the issue.

<!-- gh-comment-id:3117918847 --> @StevenMiller123 commented on GitHub (Jul 25, 2025): The crash should be fixed now, since missing config.toml settings are regenerated on emulator startup. Please let me know if this crash still occurs, and I will reopen the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#987
No description provided.