Crash reports and logs
Crash and hang reports
Section titled “Crash and hang reports”KryoDesk writes a report when:
| Report title | When |
|---|---|
| Internal error (panic) | Code in KryoDesk failed an internal check. The report has the thread, the source location, the message and a backtrace. |
| KryoDesk stopped responding | The main thread (window events, menus, native dialogs) did not respond for 5 s. macOS: /usr/bin/sample <pid> 3 -mayDie -file <id>.sample.txt records the stacks of all threads for 3 s (Windows: no sample). The report gets the duration once the app responds again. |
| Window page stopped responding | A focused window’s page sent no heartbeat for 10 s while the main thread worked. A dialog KryoDesk: window not responding offers Reload or Wait. |
| Window page crashed | macOS only: macOS ended the WebKit process of a window (memory shortage, a WebKit crash, a kill). The window reloads by itself, up to 3 times in 5 minutes; after that the same dialog asks. |
| KryoDesk crashed / KryoDesk did not quit normally | Found at the next start: the previous run did not quit (crash, force quit, kill, restart, power loss). |
A Reload closes the window’s sessions (their output had nowhere to go) and opens its tabs again from the saved layout.
What a report contains
Section titled “What a report contains”- KryoDesk version, system version, process id, start time of the run;
- memory at the time: memory pressure, RAM, swap use, KryoDesk’s resident memory;
- for a run that did not quit: the time of the last check (every 10 s); on macOS also the crash report
of that process if there is one (
~/Library/Logs/DiagnosticReports/kryodesk-*.ipsor/Library/Logs/DiagnosticReports/: exception, termination reason, the crashed thread’s stack), memory shortage (Jetsam) events during the run with the largest processes, and other reports of the same run; - for a hang: the
sampleoutput as a separate file.
Reports are built from the items above; KryoDesk adds no session contents or terminal output. A panic message is the text of the failed check and can contain the value it was about (a path, a host name). Read a report before you pass it on.
Where they are
Section titled “Where they are”~/Library/Application Support/pl.kryodesk/crashes/<id>.json report~/Library/Application Support/pl.kryodesk/crashes/<id>.sample.txt thread sample of a hang~/Library/Application Support/pl.kryodesk/crashes/running/<pid>.json marker of the running app%APPDATA%\pl.kryodesk\crashes\<id>.json report%APPDATA%\pl.kryodesk\crashes\running\<pid>.json marker of the running appThe folder is 0700, the files 0600 (on Windows the profile folder’s permissions). The
newest 30 reports are kept; older ones are deleted with their samples. System crash reports are never deleted by KryoDesk.
Sending
Section titled “Sending”At the next start Pan Spinacz lists new reports with Show, Send and Don’t send.
Show opens the Crash reports window (list, full text, Copy); Help → Crash Reports…
opens it at any time. Send only marks a
report as queued: nothing is sent, because there is no report endpoint yet. To report a
problem, copy the text from Crash reports and attach the .sample.txt file.
Application log
Section titled “Application log”KryoDesk writes its log (tracing, level info) to standard output; there is no log file. An
app started from Finder, the Dock or the Start menu has no visible output, so to read the log
start it from a terminal:
/Applications/KryoDesk.app/Contents/MacOS/kryodeskRUST_LOG=debug /Applications/KryoDesk.app/Contents/MacOS/kryodesk # more detailRUST_LOG=info,kryodesk_lib::ssh=debug /Applications/KryoDesk.app/Contents/MacOS/kryodesk > ~/kryodesk.logStarted this way, the app is a child of Terminal: macOS may apply Terminal’s Local Network
permission to it, and SSH_AUTH_SOCK comes from that shell.
The release build is a GUI program without a console, so its output goes to a file (PowerShell):
$exe = Get-ChildItem "$env:LOCALAPPDATA\KryoDesk\*.exe" | Where-Object Name -ne "uninstall.exe" | Select-Object -First 1$env:RUST_LOG = "debug" # optional: more detailStart-Process $exe.FullName -RedirectStandardOutput "$env:USERPROFILE\kryodesk.log" -RedirectStandardError "$env:USERPROFILE\kryodesk.err.log"Started this way, the app gets SSH_AUTH_SOCK and RUST_LOG from that PowerShell.
RUST_LOG takes the usual filter syntax (level or module=level, comma-separated). Debug and
trace events of the FTP library and of the RDP login (suppaftp, sspi,
ironrdp_connector::credssp, ironrdp_async::connector, picky) are always dropped, whatever
RUST_LOG says, because they can contain passwords.
For each connection, the tab’s own log (terminal or connection log) is usually more useful than the application log: see Find where a connection stops.