Skip to main content

Module crash

Module crash 

Source
Expand description

A GUI binary with panic = "abort" has nowhere to print, so a panic would be a vanished window and an offset into a stripped exe. The hook runs before the abort: it writes where and why into the run log, and tells the user in their language where that is, offering to show the file.

Staticsยง

LOG ๐Ÿ”’
Until the wizard knows the run logโ€™s file; a panic before that goes beside the exe.
QUIET ๐Ÿ”’
Writes the report but shows no window, for --selftest-panic, which has nobody to click.

Functionsยง

be_quiet
fallback ๐Ÿ”’
pacenotes-installer-crash.log next to the exe.
install_panic_hook
log_to
Points later panics at this runโ€™s log file.
record ๐Ÿ”’
Where text was appended, if anywhere; best effort, since failing to write a panic must not become a second one.
tell_the_user ๐Ÿ”’
A plain message and the file to send; the technical line is only shown when there is no file to hold it.