Repository navigation
v1.2.6 - crash-hardening pass
v1.2.6 — crash-hardening pass
A full audit of the addon for crashes across varied machines, software and hardware, and fixes for everything found. This release is entirely stability — no user-facing behavior changes.
The character-select crash (the one people were hitting)
The upload thread parsed the dps.report response with throwing accessors and no exception guard. An unexpected 200 body — a rate-limit or HTML page, a log with no encounter object, a truncated payload — threw, unwound off the worker thread, and crashed the game with 0xc0000409 at character select, writing no crash log. Worse, the failing log was never marked done, so it was retried and re-crashed on every launch. The response is now parsed defensively and can never throw out of the thread, and a log that can't be processed is marked so it is not retried.
Everything else the audit found and fixed
- No exception can cross arcdps' C ABI. Every callback (
mod_init,mod_imgui,mod_wnd,mod_combat, options) is exception-guarded. A failed initialization now disables the addon instead of crashing the game at load. - Buffer overflows removed. Every copy of a stored string into a fixed buffer (user token, webhook name/URL/filter) is bounds-checked and always NUL-terminated. An over-long stored value can no longer overflow.
- Thread-safety. The single SQLite connection was being used from the imgui, upload, and refresh threads simultaneously; it is now serialized. The webhook list, user token, and the settings the worker threads read are synchronized, fixing intermittent, timing- and machine-dependent crashes.
- Filesystem robustness. The log-folder scan no longer throws on an unreadable directory (permissions, OneDrive placeholders, a folder that changes mid-scan) or on an unusually named log file.
- Clean shutdown. Closed a wakeup race that could hang the game on exit, and a use-after-free if a combat event arrived during teardown.
- UI edge cases. Non-ASCII account names in a webhook filter, an empty filter entry, and deleting a webhook while the list is in use are all handled safely.
Testing
The headless smoke test now feeds the response parser a dozen malformed/hostile bodies every run and asserts none of them crash, alongside the existing allocator, encounter-routing, and version-compare checks.