Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

Workaround to avoid the crash in the CrashReporter #1395

Closed javifernandez closed 4 months ago

javifernandez commented 4 months ago

The runtime must be created in the UI process but the CrashReporterService is not allowed to run on it, as it's explained in commit 63f474a.

This PR provides a workaround by creating a dummy CrashReportIntent if the runtime instance has not been created.

It's important to consider that this change discovers an underlying issue we already had, due to the way Gecko starts the CrashReportService: context.startForegroundService(intent);It seems that if the Service doesn't call to startForegound() in a short period of time, android raises a ForegroundServiceDidNotStartInTimeException: