Skip to content

Crash reports: minidump, log copy and a chosen folder - #35

Merged
catchouli merged 2 commits into
mainfrom
crash-dumps
Oct 22, 2026
Merged

catchouli merged 2 commits into
mainfrom
crash-dumps

Conversation

@catchouli

Copy link
Copy Markdown
Owner

For tracking down the occasional crash on Windows (especially leaving fullscreen with the zoom-out button).

  • A crash (Rust panic, or a native crash on Windows) now writes a crash-<date-time> folder holding crash.txt (what happened and where), a copy of flex.log and, on Windows, a minidump flex.dmp.
  • Settings → Crash reports folder… chooses where these go. The default is the logs folder, which is also the fallback if the chosen folder can't be reached.
  • flex.exe --test-crash crashes on purpose after 5 seconds, to check the setup.
  • CI keeps flex.pdb (exe size unchanged) with the build artifacts. Tagged releases also attach flex-vX.Y.Z-symbols.zip so the dumps can be read.
  • Version 0.20.1.

Tested on macOS (panic path, default and chosen folder). The Windows build cross-compiles and links MiniDumpWriteDump. The native Windows path and the CI symbol packaging are untested until this runs on Windows.

Not caught: fail-fast aborts (0xC0000409) and some heap corruption skip in-process handlers. Windows Error Reporting LocalDumps covers those.

A crash now writes a crash-<time> folder with crash.txt, a copy of flex.log and, on
Windows, flex.dmp, in Settings → Crash reports folder (or the logs folder). --test-crash
checks it works. CI keeps flex.pdb so the dumps can be read.
@catchouli
catchouli merged commit f4758eb into main Oct 22, 2026
3 checks passed
@catchouli
catchouli deleted the crash-dumps branch October 22, 2026 18:11
@catchouli
catchouli restored the crash-dumps branch October 22, 2026 22:31
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