mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 18:51:12 +02:00
Ignores out of memory exceptions because the stack trace is irrelevant in those cases.
This commit is contained in:
@@ -33,8 +33,11 @@ class UnexpectedCrashSaver(
|
||||
t: Thread,
|
||||
e: Throwable,
|
||||
) {
|
||||
scope.launch {
|
||||
cache.writeReport(ReportAssembler().buildReport(e))
|
||||
if (e !is OutOfMemoryError) {
|
||||
// OOM reports are junk
|
||||
scope.launch {
|
||||
cache.writeReport(ReportAssembler().buildReport(e))
|
||||
}
|
||||
}
|
||||
defaultUEH!!.uncaughtException(t, e)
|
||||
}
|
||||
|
Reference in New Issue
Block a user