Skip to content

fix: delete corrupted autosave on load failure to prevent crash loops#809

Open
zysftd wants to merge 1 commit into
chrxh:developfrom
zysftd:pr/autosave-fix-v1
Open

fix: delete corrupted autosave on load failure to prevent crash loops#809
zysftd wants to merge 1 commit into
chrxh:developfrom
zysftd:pr/autosave-fix-v1

Conversation

@zysftd

@zysftd zysftd commented Jul 13, 2026

Copy link
Copy Markdown

Summary

When the autosave file contains a simulation too large for the available GPU memory, the program crashes on every subsequent startup in an unrecoverable loop. This fix deletes the corrupted autosave files on load failure so the program can start fresh.

Changes

  • Delete autosave directory (resources/autosave/) when loading the default simulation fails
  • Wrapped in try-catch to avoid secondary failures from filesystem operations

Note: Generated by opencode (agent tool) with model deepseek-v4-flash-free. Reviewed by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant