# تقارير الأعطال

If Volt 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 VDM stopped responding](https://vdm.mikaillab.com/help/images/crash-report.webp)](https://vdm.mikaillab.com/help/images/crash-report.webp)

## ما تراه

- **Volt Download Manager closed unexpectedly**: VDM crashed, or hit an internal error and closed.
- **Volt Download Manager stopped responding**: its window didn't answer for 8 seconds. VDM is still running, frozen. **End and restart VDM** closes the frozen copy and starts a new one. If VDM 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 VDM again.

## ما يحتويه التقرير

- **What happened:** the error and the place in VDM's code where it happened.
- **The stack:** the place in VDM's code where it crashed or froze, and what every other part of it was doing.
- **VDM's recent log:** for example "command AddUrl" or "window opened: add-url".
- **The system:** VDM'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 VDM was running at that moment. It helps the developers most, but it can hold pieces of what VDM had in memory, such as download addresses, cookies and saved passwords. It is only attached when you tick **Also attach the crash data**.

## أين يتم الاحتفاظ بالتقارير

In VDM's data folder:

- `crashes\`: كل تقرير (`.txt`) وبيانات العطل الخاصة به (`.dmp`)؛
- `logs\`: VDM's log (`vdm.log`, with older ones as `vdm.1.log` and so on, 2 MB each).

VDM's data folder is `%APPDATA%\voltdownloadmanager` on Windows, `~/Library/Application Support/voltdownloadmanager` on macOS, and `~/.local/share/voltdownloadmanager` on Linux. In [portable mode](https://vdm.mikaillab.com/ar/help/portable.html) it is the `data` folder next to the program.

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

## للمطورين

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

- **Catching problems.** When VDM 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 VDM 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 VDM or slow to load it from disk, most likely not VDM'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.
- **قراءة ملف التفريغ.** يقرأ عارض الأعطال ملف التفريغ باستخدام `rust-minidump` من Mozilla. ويستخدم رموز Breakpad الخاصة بالإصدار عند توفرها. يمكن للبناء من المصدر أيضا قراءة معلومات التصحيح الأصلية الموجودة بجانبه (ملف `.pdb` الخاص به، DWARF) عند بنائه باستخدام `--features vdm-crash/native-symbols`؛ أما التطبيق المنشور فلا يتضمن هذا القارئ، الذي حجمه عدة ميغابايت. تبقى **بصمة** التقرير (على سبيل المثال `freeze in voltdownloadmanager::winui::combo_edit`) كما هي في تقارير المشكلة نفسها، وتبحث النافذة عن المشكلات الموجودة باستخدامها.
- **الرموز.** تحتفظ إصدارات الإصدار بجداول الأسطر (`debug = "line-tables-only"`)، ولكن لا يتضمن أي تنزيل معلومات التصحيح. يحولها CI إلى `VoltDownloadManager-<version>-symbols-<platform>.zip` (واحد لكل تنزيل يحتوي على برامجه الخاصة: `windows-x64`، `windows-arm64`، `windows-x86`، `linux-x86_64`، `linux-arm64`، `macos-arm64`، `macos-x86_64`) (`tools/installer/symbols.py`، باستخدام `dump_syms` من Mozilla)، ويتم نشرها بجانب ملفات الإصدار الأخرى. تجلب نافذة التقرير ملف zip لإصدارها الخاص عندما يظهر المكدس عناوين مجردة.
- **مقتطف `.dmp` من مشكلة:**

`cargo run -p vdm-crash --bin vdm-symbolicate -- crash.dmp VoltDownloadManager-<version>-symbols-windows-x64.zip`

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

## ذات صلة

- [استكشاف الأخطاء وإصلاحها](https://vdm.mikaillab.com/ar/help/troubleshooting.html)
- [The browser and VDM aren't connected](https://vdm.mikaillab.com/ar/help/browser-help.html)

[تحرير هذه الصفحة على GitHub](https://github.com/mikailhossenimran/voltdownloadmanager/edit/main/docs/crash-reports.md) [الإبلاغ عن مشكلة في هذه الصفحة](https://github.com/mikailhossenimran/voltdownloadmanager/issues/new?template=website.yml&title=Website%3A%20Crash%20reports&page=https%3A//vdm.mikaillab.com/help/crash-reports.html) [سجل الصفحة](https://github.com/mikailhossenimran/voltdownloadmanager/commits/main/docs/crash-reports.md)

مجاني، مفتوح المصدر، بدون إعلانات، بدون فترة تجريبية.

[Download Volt Download Manager](https://vdm.mikaillab.com/ar/download.html)
