Skip to content

Conversation

@melekr
Copy link
Collaborator

@melekr melekr commented Nov 14, 2025

Context

Crashpad writes native crashes to its database when offline but does not automatically retry them on Android.
This PR adds CrashReportUploadThread that runs at startup and uploads any pending reports.

Changes

  • Start CrashReportUploadThread during Crashpad initialization.
  • Enable watch_pending_reports so all pending native crashes are retried.
  • Stop/restart the thread when Crashpad is disabled or re-enabled.
  • No behaviour changes when online or during direct crash handling.

Native crashes that occur offline are now correctly uploaded when the app restarts with network connectivity.
Sample Reports

implements: backtrace-labs/crashpad#75

ref: BT-6268

- Start a CrashReportUploadThread during Crashpad initialization.
- Enable watch_pending_reports so pending native crashes from previous runs are retried automatically.
- Store Backtrace URL and pass it to the upload thread.
- Update DisableCrashpad()/ReEnableCrashpad() to stop/start the thread.
@melekr melekr merged commit c59118b into master Nov 17, 2025
7 of 9 checks passed
@melekr melekr deleted the offline_db branch November 17, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants