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