Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Native crash capture on Windows and Linux

Aperta
#623 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
dart, flutter

Direzione di ricerca

Start by reviewing PR #621 and the existing Dart exception-capture path, then define the Windows/Linux native integration points and consent behavior. Add the native integration tests described here using a crashing test plugin or FFI library, and verify next-launch reporting, opt-out behavior, matching symbol artifacts, and documented limitations.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement feature/error-tracking
Problem Statement

PR #621 adds Windows/Linux support but explicitly excludes native crash capture. Dart error hooks cannot reliably observe crashes in the Flutter engine, native plugins, or libraries called through dart:ffi when those failures terminate the process before Dart callbacks execute.

Examples include Windows access violations and Linux segmentation faults or aborts. These failures currently have no desktop native crash-reporting path in the SDK. This is a follow-up feature request, not a blocker for the documented scope of #621.

Solution Brainstorm

Add opt-in native crash capture for Flutter applications on Windows and Linux:

  • Integrate platform-appropriate crash collection for supported native engine/plugin/FFI failures.
  • Persist crash records safely and report them on the next launch when immediate delivery is impossible, respecting consent and SDK configuration.
  • Include native stack addresses, matching loaded-image/debug identifiers, and app/build context. Document the required symbol-upload workflow and supported symbol formats for readable stacks.
  • Document limitations clearly; do not promise capture of every process termination, hang, or out-of-memory failure.
Validation

Add native Windows/Linux integration tests that deliberately trigger a crash in a test plugin or FFI library, restart the application, and verify the resulting $exception event. Cover opt-out behavior and release-build symbolication with matching artifacts.

Keep this distinct from Dart exception capture, background-isolate forwarding, and Dart obfuscated-stack support.

Related
  • Desktop support: #51
  • Initial Windows/Linux implementation: #621
  • Android-native crash tracking: #490 (different platform scope)
Lingua principale
Dart
Stelle
97
Fork
90
Merge medio
1g 21h
PR unite (30g)
44

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PostHog/posthog-flutter

Tutte le issue di PostHog/posthog-flutter

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.