Repository navigation
Firebase - OOM Limitation #9043
Replies: 1 comment
|
That's a platform limitation, not something RNFB can fix. When the OS kills an app for memory (iOS jetsam, Android's low-memory killer), it sends You can add the same next-launch detection yourself and send it to Crashlytics as a non-fatal: Android 11+ asks the OS why the last process ended: // e.g. in MainApplication.onCreate()
if (Build.VERSION.SDK_INT >= 30) {
val am = getSystemService(ActivityManager::class.java)
am.getHistoricalProcessExitReasons(packageName, 0, 1).firstOrNull()?.let { info ->
if (info.reason == ApplicationExitInfo.REASON_LOW_MEMORY ||
(info.reason == ApplicationExitInfo.REASON_CRASH_NATIVE && info.description?.contains("OutOfMemory") == true)) {
FirebaseCrashlytics.getInstance().recordException(
RuntimeException("Previous session killed: ${info.description} pss=${info.pss}kB rss=${info.rss}kB"))
}
}
}Store iOS has no per-event API. MetricKit's For the root cause, an image list usually OOMs because full-resolution bitmaps are decoded for small cells. Request thumbnails sized to the cell. Keep If this solves it, please mark it as the answer so others with the same problem can find it. |
Uh oh!
There was an error while loading. Please reload this page.
I used FastImage in Flatlist in an un optimized way , After the crash has happened in the application , i am not able to see any crash in the firebase crashlytics dashboard , got to know that Firebase won't report OOM , but other tools like sentry and bugsnag can do , is there any recommended workaround for this OOM crashes .
All reactions