GolinksPRO Download Manager
  1. Головна
  2. Довідка
  3. Звіти про збої

Звіти про збої

If GolinksPRO 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 GDM stopped responding

Що ви бачите

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

У вікні:

  1. Що ви робили, коли це сталося? є необов'язковим. Кілька слів, наприклад «Я відкрив Додати URL-адресу», дуже допомагають.
  2. Звіт показує все, що буде надіслано. Прочитайте його спочатку, якщо бажаєте.
  3. Надіслати на GitHub відкриває у вашому браузері форму Звіт про збій на GitHub, вже заповнену, разом із папкою, що містить звіт. Перетягніть файл звіту у форму, перевірте його та надішліть. Вам потрібен обліковий запис GitHub. Нічого не надсилається самостійно.
  4. Якщо хтось вже повідомив про ту саму проблему, вікно повідомляє про це (Вже повідомлено як проблема #…). Відкрити повідомлену проблему відкриває її та поміщає ваш звіт у буфер обміну, щоб ви могли додати його як коментар.

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

Що містить звіт

  • What happened: the error and the place in GDM's code where it happened.
  • The stack: the place in GDM's code where it crashed or froze, and what every other part of it was doing.
  • GDM's recent log: for example "command AddUrl" or "window opened: add-url".
  • The system: GDM'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.

Він не містить:

  • ваші адреси завантажень або імена файлів;
  • ваше ім'я користувача, яке відображається як ~ у шляхах до папок.

Якщо повідомлення про помилку цитує щось, що ви ввели, цей текст міститься у звіті, тому прочитайте його перед надсиланням.

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

Де зберігаються звіти

In GDM's data folder:

  • crashes\: кожен звіт (.txt) та його дані про збій (.dmp);
  • logs\: GDM's log (mdm.log, with older ones as mdm.1.log and so on, 2 MB each).

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

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

Для розробників

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

  • Catching problems. When GDM 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. It times both parts of a frame: what GDM 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. 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 GDM or slow to load it from disk, most likely not GDM's bug (those share one signature, freeze while the computer was busy). When the window thread is already back in the event loop 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.
  • Читання дампу. Монітор читає дамп за допомогою rust-minidump від Mozilla. Він використовує символи Breakpad із випуску, якщо їх знайдено. Збірка з вихідного коду також може читати розташовану поруч власну налагоджувальну інформацію (.pdb, DWARF), якщо її зібрано за допомогою --features mdm-crash/native-symbols; у готовій програмі цього засобу читання немає, оскільки він займає кілька МБ. Підпис звіту (наприклад, freeze in misterdownloadmanager::winui::combo_edit) однаковий у звітах про ту саму проблему, і вікно шукає за ним наявні проблеми.
  • Символи. Збірки випуску містять таблиці рядків (debug = "line-tables-only"), але до жодного завантаження не входить налагоджувальна інформація. CI перетворює її на MisterDownloadManager-<version>-symbols-<platform>.zip (tools/installer/symbols.py, використовуючи dump_syms від Mozilla) і публікує поруч з іншими файлами випуску. Коли в стеку відображаються лише адреси, вікно звіту завантажує ZIP-архів для своєї версії.
  • .dmp з обговорення проблеми:

cargo run -p mdm-crash --bin mdm-symbolicate -- crash.dmp MisterDownloadManager-<version>-symbols-windows-x64.zip

  • Testing it. cargo test -p mdm-crash runs a real freeze, panic and crash (examples/crashy.rs) and checks each report's signature. To try it in the app, start GDM with MDM_CRASH_TEST=1, then run misterdownloadmanager /show crash-test:freeze (a deadlock; or spin, 12 s of a busy window thread, panic, crash, abort). cargo test -p mdm-app --test freeze_report -- --ignored does that in a copy of the app off the screens, its window visible and minimized.

Безкоштовно, з відкритим кодом, без реклами, без пробного періоду.

Download GolinksPRO Download Manager