M. ZAHAN // SENIOR SYSTEMS ARCHITECTURE
01 SYSTEM ENGINEERING
02 ALGO TRADING
03 FULL-STACK
04 AUTOMATION
05 AI SYSTEMS
> INITIALIZING QUANTUM SYSTEMS CORE...
0%
Theme:
Active Currency:
Home Articles & Case Studies Services Products
ZDM Z Download Manager (IDM alternative)
APP
ZDM Overview & Features Download for Windows & Linux Speed Benchmarks vs IDM IDM vs ZDM Comparison Matrix zAds YouTube Blocker (Download ZIP) User Guide & Documentation
Free Web Utility Tools
QuickInvoice Studio CleanReceipt Studio QuickSign & PDF Stamp SquashPix Compressor QuoteCraft Studio PaySlip Pro QRCraft Studio FeeCalc Pro GlassUI Studio MarkdownDocs SEO Audit Checker Keyword Research & Density Viral Hashtag Generator YouTube Tags Generator YouTube Title & Description
Resources Hub
Books & Guides Tools I Use Business Ideas
AI Prompts Vault
Tons of Prompts: AI Image Gen, Midjourney & Dev
Job Board & Marketplace New Contests & Competitions Win Cash
Community & About
Portfolio & Works Community Forum
Live Discussion Hub
Live
About M. Zahan Contact & Hire
Track Order
Sign In / Join Community
ZDM / Help & Docs / Help & Diagnostics / Crash reports

Crash reports

Help & Diagnostics Verified for ZDM v2.0 View source on GitHub

Crash reports

If Zahan Download Manager closes unexpectedly or stops responding, a crash report window opens. It shows what happened, lets you read the whole report, and can send it to the developers on GitHub. Each report helps fix the problem for everyone.

The crash report window after ZDM stopped responding

What you see

  • Zahan Download Manager closed unexpectedly: ZDM crashed, or hit an internal error and closed.
  • Zahan Download Manager stopped responding: its window didn't answer for 8 seconds. ZDM is still running, frozen. End and restart ZDM closes the frozen copy and starts a new one. If ZDM answers again by itself, the window says so.

In the window:

  1. What were you doing when it happened? is optional. A few words, such as "I opened Add URL", help a lot.
  2. The report shows everything that would be sent. Read it first if you like.
  3. Send on GitHub opens GitHub's Crash report form in your browser, already filled in, along with the folder that holds the report. Drag the report's file into the form, check it, and submit. You need a GitHub account. Nothing is sent by itself.
  4. If someone already reported the same problem, the window says so (Already reported as issue #…). Open the reported issue opens it and puts your report on the clipboard, so you can add it as a comment.

The other buttons copy the report, open its folder, or start ZDM again.

What a report contains

  • What happened: the error and the place in ZDM's code where it happened.
  • The stack: the place in ZDM's code where it crashed or froze, and what every other part of it was doing.
  • ZDM's recent log: for example "command AddUrl" or "window opened: add-url".
  • The system: ZDM's version and how you installed it, your operating system and its version, the processor, the language and theme, and how many downloads and queues you have. These are counts only.

It does not contain:

  • your download addresses or file names;
  • your user name, which shows as ~ in folder paths.

If an error message quotes something you typed, that text is in the report, so read it before sending.

The crash data file (.dmp) is a snapshot of what ZDM was running at that moment. It helps the developers most, but it can hold pieces of what ZDM had in memory, such as download addresses, cookies and saved passwords. It is only attached when you tick Also attach the crash data.

Where reports are kept

In ZDM's data folder:

  • crashes\: each report (.txt) and its crash data (.dmp);
  • logs\: ZDM's log (zdm.log, with older ones as zdm.1.log and so on, 2 MB each).

ZDM's data folder is %APPDATA%\zdm on Windows, ~/Library/Application Support/zdm on macOS, and ~/.local/share/zdm on Linux. In portable mode it is the data folder next to the program.

The log records what ZDM does, so a report can show what led to a problem. To log more detail, start ZDM with the environment variable ZDM_LOG=debug.

For developers

How it works: a second copy of ZDM, the monitor, starts beside it with --crash-monitor. The crash code lives in crates/crash and crates/app/src/crash.rs.

  • Catching problems. When ZDM crashes (a Windows exception, a signal on Linux, a Mach exception on macOS), panics, or freezes, it asks the monitor for a dump. A freeze is a frame of the window running more than 8 s, seen by a watchdog thread that ignores time spent asleep and the first minute after the computer wakes, while its disk, network and screen come back: a stall then is written to the log, and reported only if it lasts past that minute. It times both parts of a frame: what ZDM handles (the commands that come in, the clock of downloads, queues and the Scheduler), which runs minimized too, and the drawing; never the wait between frames, nor, on macOS, the time a system Open or Save dialog is open (macOS runs it on the window's thread, which waits there for your answer). The watchdog also measures how much processor time the window thread got meanwhile, and the report says what that means: it ran all along (a loop), it waited in a lock or on I/O (a deadlock), or it hardly ran in ordinary code, which is a computer too busy to run ZDM or slow to load it from disk, most likely not ZDM's bug (those share one signature, freeze while the computer was busy). Each report also names what the frame was doing when it stopped (the tray icon, the downloads' progress, drawing the main window). When the window thread is already back in the event loop, or in the pause after a frame of a hidden window, by the time the dump is written, the freeze was over before the snapshot, so its stack can't explain it; those reports say so and share the signature freeze over before the snapshot. macOS doesn't measure it yet. The monitor then writes a minidump of every thread from outside, through minidumper and crash-handler. A crashed process never writes its own dump, which is how Firefox, Crashpad and Sentry do it too.

  • Reading the dump. The monitor reads the dump with Mozilla's rust-minidump. It uses the release's Breakpad symbols when they are found. A build from source can also read the native debug info beside it (its .pdb, DWARF) when built with --features zdm-crash/native-symbols; the shipped app goes without that reader, several MB. The report's Signature (for example freeze in zdm::winui::combo_edit) stays the same across reports of one problem, and the window searches existing issues for it.

  • Symbols. Release builds keep line tables (debug = "line-tables-only"), but no download includes the debug info. CI turns it into ZDM-<version>-symbols-<platform>.zip (one per download that has programs of its own: windows-x64, windows-arm64, windows-x86, linux-x86_64, linux-arm64, macos-arm64, macos-x86_64) (tools/installer/symbols.py, using Mozilla's dump_syms), published beside the release's other files. The report window fetches the zip for its own version when a stack shows bare addresses.

  • A .dmp from an issue:

    cargo run -p zdm-crash --bin zdm-symbolicate -- crash.dmp ZDM-<version>-symbols-windows-x64.zip
    
  • Testing it. cargo test -p zdm-crash runs a real freeze, panic and crash (examples/crashy.rs) and checks each report's signature. To try it in the app, start ZDM with ZDM_CRASH_TEST=1, then run zdm /show crash-test:freeze (a deadlock; or spin, 12 s of a busy window thread, panic, crash, abort). cargo test -p zdm-app --test freeze_report -- --ignored does that in a copy of the app off the screens, its window visible and minimized.