mozilla-mobile / fenix

⚠️ Fenix (Firefox for Android) moved to a new repository. It is now developed and maintained as part of: https://github.com/mozilla-mobile/firefox-android
https://github.com/mozilla-mobile/firefox-android
Mozilla Public License 2.0
6.47k stars 1.27k forks source link

[Bug] OOM|Small Crash after opening over 30 tabs #4151

Closed lobontiumira closed 3 years ago

lobontiumira commented 5 years ago

Steps to reproduce

  1. Open over 30 most common pages (the first 30 something pages from https://www.alexa.com/topsites).

Expected behavior

The app shouldn't crash.

Actual behavior

The app crashed. Happened 2/2.

Device information

logcat (2).txt

┆Issue is synchronized with this Jira Task

sblatz commented 5 years ago

This seems like a pretty bad crash. That being said, I'm not able to reproduce on my Galaxy S9. Perhaps it's device specific or related to memory running out?

ekager commented 5 years ago

According to the logcat this is a native code crash

ekager commented 4 years ago

@softvision-miralobontiu could you retest in the same way?

AndiAJ commented 4 years ago

Hi, I've managed to reproduce the crash on the latest Nightly Build #20310607 from 1/31 using a Google Pixel 3a (Android 9)

I've opened 30 tabs, the last opened tab was twitter.com and afterwards Fenix crashed.

Please find attached the Logcat with the entire run. Logcat

Logcat fragment right after Fenix froze and crashed (dropdown)

```kotlin 2020-01-31 10:29:57.195 28103-28277/? E/Adreno-GSL: : GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 2020-01-31 10:29:57.196 28103-28277/? W/Adreno-GSL: : sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory 2020-01-31 10:29:57.196 28103-28277/? E/Adreno-GSL: : GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 2020-01-31 10:29:57.222 28103-28277/? W/google-breakpad: ExceptionHandler::GenerateDump cloned child 2020-01-31 10:29:57.222 28103-28277/? W/google-breakpad: 30432 2020-01-31 10:29:57.222 28103-28277/? W/google-breakpad: ExceptionHandler::SendContinueSignalToChild sent continue signal to child 2020-01-31 10:29:57.222 30432-28277/? W/google-breakpad: ExceptionHandler::WaitForContinueSignal waiting for continue signal... 2020-01-31 10:29:57.866 788-788/? I/lowmemorykiller: Killing to reclaim 478296kB, reclaimed 0kB, cache(262560kB) and free(104052kB)-reserved(95948kB) below min(333528kB) for oom_adj 900 2020-01-31 10:29:57.866 788-788/? I/lowmemorykiller: Suppressed 8 failed kill reports 2020-01-31 10:29:57.867 1184-1193/? I/system_server: Background concurrent copying GC freed 120420(6MB) AllocSpace objects, 6(136KB) LOS objects, 42% free, 17MB/31MB, paused 241us total 130.352ms 2020-01-31 10:29:58.290 28103-28103/? I/Choreographer: Skipped 59 frames! The application may be doing too much work on its main thread. 2020-01-31 10:29:58.555 1184-1245/? I/ActivityManager: Start proc 30437:org.mozilla.fenix.nightly:mozilla.components.lib.crash.CrashHandler/u0a251 for service org.mozilla.fenix.nightly/mozilla.components.lib.crash.handler.CrashHandlerService 2020-01-31 10:29:58.574 1184-1245/? I/ActivityManager: Start proc 30442:com.google.android.apps.messaging/u0a108 for service com.google.android.apps.messaging/.shared.datamodel.action.execution.ActionJobService 2020-01-31 10:29:58.579 30442-30442/? E/.apps.messagin: Not starting debugger since process cannot load the jdwp agent. 2020-01-31 10:29:58.581 30437-30437/? E/sh.CrashHandle: Not starting debugger since process cannot load the jdwp agent. 2020-01-31 10:29:58.618 30442-30442/? I/.apps.messagin: The ClassLoaderContext is a special shared library. 2020-01-31 10:29:58.664 30442-30442/? I/MultiDex: VM with version 2.1.0 has multidex support 2020-01-31 10:29:58.664 30442-30442/? I/MultiDex: install 2020-01-31 10:29:58.664 30442-30442/? I/MultiDex: VM has multidex support, MultiDex support library is disabled. 2020-01-31 10:29:58.664 30442-30442/? I/MultiDex: install 2020-01-31 10:29:58.664 30442-30442/? I/MultiDex: VM has multidex support, MultiDex support library is disabled. 2020-01-31 10:29:58.681 30442-30442/? I/FirebaseInitProvider: FirebaseApp initialization successful 2020-01-31 10:29:58.691 28205-28448/? I/Gecko: Exiting due to channel error. 2020-01-31 10:29:58.693 1184-1415/? W/InputDispatcher: channel '2620130 org.mozilla.fenix.nightly/org.mozilla.fenix.nightly.App (server)' ~ Consumer closed input channel or an error occurred. events=0x9 2020-01-31 10:29:58.694 1184-1415/? E/InputDispatcher: channel '2620130 org.mozilla.fenix.nightly/org.mozilla.fenix.nightly.App (server)' ~ Channel is unrecoverably broken and will be disposed! 2020-01-31 10:29:58.701 30442-30442/? I/xzb: SslGuard completed installation. 2020-01-31 10:29:58.703 30442-30474/? I/Bugle: GServicesValues: bugle_enable_primes_crash_metrics: true bugle_max_telemetry_upload_retries: 10 bugle_sticker_set_list_version: 3 2020-01-31 10:29:58.704 30442-30442/? W/PrimesInit: Primes instant initialization 2020-01-31 10:29:58.711 30442-30478/? W/Primes: background initialization 2020-01-31 10:29:58.717 30437-30437/? I/sh.CrashHandle: The ClassLoaderContext is a special shared library. 2020-01-31 10:29:58.729 30442-30442/? I/BugleRcsEngine: [2] szm.: Initializing SimStateTracker with multi-sim support 2020-01-31 10:29:58.732 30442-30442/? W/BugleRcsEngine: Trying to log through cs.apk when it has not been initialized yet 2020-01-31 10:29:58.733 30442-30442/? I/BugleRcsEngine: [2] szs.: Initializing SimStateTracker for single-sim device 2020-01-31 10:29:58.733 30442-30442/? W/BugleRcsEngine: Trying to log through cs.apk when it has not been initialized yet 2020-01-31 10:29:58.741 30442-30479/? I/BugleRcsEngine: [1567] shm.b: Reinitialize CSLib Flags: com.google.android.ims.library 2020-01-31 10:29:58.757 30442-30442/? I/Bugle: BugleApplicationBase: Bugle version: 5.2.062 (pegasus_rc17_xxhdpi.arm64-v8a.phone) 2020-01-31 10:29:58.764 30442-30476/? I/Bugle: Initializing EmojiCompat 2020-01-31 10:29:58.769 30442-30478/? I/PrimesTesting: GserviceFlagsSupplier.get() 2020-01-31 10:29:58.772 30442-30442/? I/Bugle: DarkModeUtilBase: Setting system dark mode to off 2020-01-31 10:29:58.780 2316-3111/? I/FontsContentProvider: Received query Noto Color Emoji Compat, URI content://com.google.android.gms.fonts 2020-01-31 10:29:58.780 2316-3111/? I/FontsContentProvider: Query [Noto Color Emoji Compat] resolved to {Noto Color Emoji Compat, wdth 100.0, wght 400, ital 0.0, bestEffort false} 2020-01-31 10:29:58.781 2316-3111/? I/FontsContentProvider: Fetch {Noto Color Emoji Compat, wdth 100.0, wght 400, ital 0.0, bestEffort false} end status Status{statusCode=SUCCESS, resolution=null} 2020-01-31 10:29:58.799 1184-5742/? W/ActivityManager: Background start not allowed: service Intent { cmp=com.google.android.apps.messaging/.shared.datamodel.action.execution.ActionExecutorImpl$EmptyService } to com.google.android.apps.messaging/.shared.datamodel.action.execution.ActionExecutorImpl$EmptyService from pid=30442 uid=10108 pkg=com.google.android.apps.messaging startFg?=false 2020-01-31 10:29:58.799 30442-30442/? I/BugleAction: ActionSchedulerImpl: class com.google.android.apps.messaging.shared.datamodel.action.CountryCodeDetectorAction-CountryCodeDetectorAction:5829373003 deferred since it was started from unsafe context 2020-01-31 10:29:58.808 2316-6890/? I/FontsContentProvider: Pulling font file for id = 73, cache size = 12 2020-01-31 10:29:58.823 30442-30488/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2020-01-31 10:29:58.828 1184-5408/? I/ActivityManager: Process org.mozilla.fenix.nightly:tab (pid 28205) has died: fore TOP 2020-01-31 10:29:58.828 1184-1246/? W/libprocessgroup: kill(-28205, 9) failed: No such process 2020-01-31 10:29:58.829 1184-5408/? W/ActivityManager: Exception when unbinding service org.mozilla.fenix.nightly/org.mozilla.gecko.gfx.SurfaceAllocatorService android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:1127) at android.app.IApplicationThread$Stub$Proxy.scheduleUnbindService(IApplicationThread.java:1100) at com.android.server.am.ActiveServices.removeConnectionLocked(ActiveServices.java:2894) at com.android.server.am.ActiveServices.killServicesLocked(ActiveServices.java:3293) at com.android.server.am.ActivityManagerService.cleanUpApplicationRecordLocked(ActivityManagerService.java:20202) at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:5898) at com.android.server.am.ActivityManagerService.appDiedLocked(ActivityManagerService.java:6093) at com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied(ActivityManagerService.java:1891) at android.os.BinderProxy.sendDeathNotice(Binder.java:1193) 2020-01-31 10:29:58.829 1184-5408/? W/ActivityManager: Scheduling restart of crashed service org.mozilla.fenix.nightly/org.mozilla.gecko.process.GeckoServiceChildProcess$tab in 14342ms 2020-01-31 10:29:58.832 30442-30482/? I/BugleRcsEngine: [1570] szm.a: register Carrier Config Changed event 2020-01-31 10:29:58.837 1184-1246/? W/libprocessgroup: kill(-28205, 9) failed: No such process 2020-01-31 10:29:58.839 688-688/? I/Zygote: Process 28205 exited cleanly (0) 2020-01-31 10:29:58.841 30442-30442/? I/BugleDataModel: ParticipantRefresh: ContactContentObserver created 2020-01-31 10:29:58.849 1184-3242/? W/ActivityManager: Background start not allowed: service Intent { cmp=com.google.android.apps.messaging/.shared.datamodel.action.execution.ActionExecutorImpl$EmptyService } to com.google.android.apps.messaging/.shared.datamodel.action.execution.ActionExecutorImpl$EmptyService from pid=30442 uid=10108 pkg=com.google.android.apps.messaging startFg?=false 2020-01-31 10:29:58.853 30437-30494/? E/mozac/CrashReporter: CrashHandlerService received native code crash 2020-01-31 10:29:58.853 1184-1246/? W/libprocessgroup: kill(-28205, 9) failed: No such process 2020-01-31 10:29:58.853 1184-1246/? I/libprocessgroup: Successfully killed process cgroup uid 10251 pid 28205 in 24ms 2020-01-31 10:29:58.855 30437-30494/? I/mozac/CrashReporter: Received crash: NativeCodeCrash(minidumpPath=/data/user/0/org.mozilla.fenix.nightly/files/mozilla/36s9i8jl.default/minidumps/381fbbcf-b282-0953-63fb-95766191994d.dmp, minidumpSuccess=false, extrasPath=/data/user/0/org.mozilla.fenix.nightly/files/mozilla/36s9i8jl.default/minidumps/381fbbcf-b282-0953-63fb-95766191994d.extra, isFatal=true, breadcrumbs=[]) 2020-01-31 10:29:58.855 30437-30494/? I/mozac/CrashReporter: Showing prompt 2020-01-31 10:29:58.856 1184-5408/? I/ActivityManager: START u0 {flg=0x10018000 cmp=org.mozilla.fenix.nightly/mozilla.components.lib.crash.prompt.CrashReporterActivity (has extras)} from uid 10251 2020-01-31 10:29:58.861 1184-5408/? W/ActivityManager: Exception thrown during pause android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:1127) at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:1777) at android.app.servertransaction.ClientTransaction.schedule(ClientTransaction.java:129) at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:47) at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:69) at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1460) at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3745) at com.android.server.am.TaskRecord.performClearTaskAtIndexLocked(TaskRecord.java:1359) at com.android.server.am.TaskRecord.performClearTaskLocked(TaskRecord.java:1372) at com.android.server.am.ActivityStarter.setTaskFromIntentActivity(ActivityStarter.java:2030) at com.android.server.am.ActivityStarter.startActivityUnchecked(ActivityStarter.java:1397) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:1257) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:879) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:551) at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1156) at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:490) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5126) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5100) at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:5091) at android.app.IActivityManager$Stub.onTransact$startActivity$(IActivityManager.java:10088) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:122) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3297) at android.os.Binder.execTransact(Binder.java:731) 2020-01-31 10:29:58.863 30442-30442/? W/BugleRcsEngine: [2] szm.b: Unexpected action: android.intent.action.ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED 2020-01-31 10:29:58.865 30442-30491/? I/BugleRcsEngine: [1578] szo.b: do not delay first event 2020-01-31 10:29:58.874 767-767/? D/android.hardware.power@1.3-service.bonito-libperfmgr: LAUNCH ON 2020-01-31 10:29:58.882 30442-30482/? I/BugleRcsEngine: [1570] shm.b: Reinitialize CSLib Flags: com.google.android.ims.library 2020-01-31 10:29:58.889 2316-6890/? I/FontsContentProvider: Pulling font file for id = 73, cache size = 12 2020-01-31 10:29:58.889 30442-30490/? D/StrictMode: StrictMode policy violation: android.os.strictmode.DiskReadViolation at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1504) at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:251) at java.io.File.exists(File.java:815) at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:605) at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:596) at android.app.ContextImpl.getPreferencesDir(ContextImpl.java:552) at android.app.ContextImpl.getSharedPreferencesPath(ContextImpl.java:747) at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:400) at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:174) at oxt.a(PG:9) at oxs.b(PG:4) at tgj.b(PG:57) at tgj.a(PG:51) at ivg.a(PG:98) at ivg.v(PG:83) at hpz.run(PG:3) at zit.run(PG:3) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at acgw.b(PG:6) at acfw.run(PG:17) at acgx.run(PG:13) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at yws.run(PG:4) at java.lang.Thread.run(Thread.java:764) 2020-01-31 10:29:58.890 30437-30494/? I/sh.CrashHandle: System.exit called, status: 0 2020-01-31 10:29:58.890 30437-30494/? I/AndroidRuntime: VM exiting with result code 0, cleanup skipped. 2020-01-31 10:29:58.894 30442-30491/? I/BugleRcsEngine: [1578] szm.k: Processing an intent 2020-01-31 10:29:58.897 30442-30490/? D/StrictMode: StrictMode policy violation: android.os.strictmode.DiskReadViolation at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1504) at android.app.SharedPreferencesImpl.awaitLoadedLocked(SharedPreferencesImpl.java:256) at android.app.SharedPreferencesImpl.contains(SharedPreferencesImpl.java:334) at oxq.a(PG:2) at oxs.b(PG:4) at tgj.b(PG:57) at tgj.a(PG:51) at ivg.a(PG:98) at ivg.v(PG:83) at hpz.run(PG:3) at zit.run(PG:3) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458) at acgw.b(PG:6) at acfw.run(PG:17) at acgx.run(PG:13) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at yws.run(PG:4) at java.lang.Thread.run(Thread.java:764) 2020-01-31 10:29:58.900 30442-30498/? I/BugleRcsEngine: [1580] szo.b: SIM delay is not enabled 2020-01-31 10:29:58.900 30442-30498/? W/BugleRcsEngine: [1580] szm.c: process intent: android.intent.action.SIM_STATE_CHANGED 2020-01-31 10:29:58.902 30442-30491/? I/BugleRcsEngine: [1578] szm.a: SIM state ABSENT 2020-01-31 10:29:58.903 30082-30144/? I/CarrierServices: [1560] cmn.a: Received Provisioning Event: [Bugle information (100)] 2020-01-31 10:29:58.903 30082-30144/? I/CarrierServices: [1560] cmn.a: JibeService is running, passing event to provisioning engine. 2020-01-31 10:29:58.903 30082-30144/? I/CarrierServices: [1560] cdj.a: Handling Provisioning Event: [Bugle information (100)] 2020-01-31 10:29:58.904 30082-30144/? I/CarrierServices: [1560] cev.a: RcsAvailabilityManager: Calculating Rcs Availability 2020-01-31 10:29:58.904 1184-7096/? I/ActivityManager: Process org.mozilla.fenix.nightly:mozilla.components.lib.crash.CrashHandler (pid 30437) has died: prcp FGS 2020-01-31 10:29:58.905 1184-7096/? W/ActivityManager: Scheduling restart of crashed service org.mozilla.fenix.nightly/mozilla.components.lib.crash.handler.CrashHandlerService in 24267ms ```

I'll remove the QA needed label until further notice.

severinrudie commented 4 years ago

I'm able to reproduce this on a Pixel 2 if I open these tabs AND individually load each one.

All of the linked stack traces include low memory warnings.

onTrimMemory is being called when I reproduce. We're currently telling the SessionManager to ~remove old sessions in that callback~ (EDIT: looks like we're just nulling out their thumbnails), but as a user I notice that previously opened tabs are still immediately loaded when I select them. I suspect there's something in Gecko that we should be calling in onTrimMemory.

severinrudie commented 4 years ago

PR opened at https://github.com/mozilla-mobile/android-components/pull/5919

severinrudie commented 4 years ago

Opened discussion on how to solve the problem here https://github.com/mozilla-mobile/android-components/issues/5933.

AndiAJ commented 4 years ago

Reproducible on Fenix Beta 4.0.0-beta.4 using a OnePlus A3 (Android 6.0.1)

► Log

--------- beginning of crash
03-06 14:16:18.100 22651-22651/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: org.mozilla.fenix.beta, PID: 22651
    java.lang.OutOfMemoryError: Failed to allocate a 6635532 byte allocation with 873976 free bytes and 853KB until OOM
        at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
        at android.graphics.Bitmap.nativeCreate(Native Method)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:831)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:808)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:775)
        at org.mozilla.geckoview.GeckoDisplay$ScreenshotBuilder.capture(GeckoDisplay.java:21)
        at org.mozilla.geckoview.GeckoDisplay.capturePixels(GeckoDisplay.java:1)
        at org.mozilla.geckoview.GeckoView$Display.capturePixels(GeckoView.java:3)
        at org.mozilla.geckoview.GeckoView.capturePixels(GeckoView.java:1)
        at mozilla.components.browser.engine.gecko.GeckoEngineView.captureThumbnail(GeckoEngineView.kt:3)
        at org.mozilla.fenix.components.toolbar.DefaultBrowserToolbarController.handleTabCounterClick(BrowserToolbarController.kt:11)
        at org.mozilla.fenix.components.toolbar.DefaultToolbarIntegration$tabsAction$1.invoke(ToolbarIntegration.kt:3)
        at -$$LambdaGroup$js$QYY6x8xlXquP7EfVuMVbZgw1g5I.onClick(java-style lambda group:211)
        at android.view.View.performClick(View.java:5233)
        at android.view.View$PerformClick.run(View.java:21209)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:152)
        at android.app.ActivityThread.main(ActivityThread.java:5507)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
03-06 14:16:18.100 22651-22651/? D/AppTracker: App Event: crash
AndiAJ commented 4 years ago

Reproducible on Fenix Beta 4.0.0-beta.5 using a OnePlus A3 (Android 6.0.1)

Fenix - Open tabs and collections before the crash (dropdown) ## Open tabs: YouTube Music https://music.youtube.com/ The Box by Roddy Ricch on SoundCloud - Hear the world’s sounds https://m.soundcloud.com/roddyricch/the-box SPORT.RO - Stiri din sport https://m.sport.ro/ 90min Football News https://www.90min.com/ Google https://www.google.com/?gws_rd=ssl#spf=1583747030528 Home - YouTube https://m.youtube.com/ 天猫TMALL https://www.tmall.com/ 腾讯网-QQ.COM https://xw.qq.com/?f=qqcom 手机搜狐网 https://m.sohu.com/?pvid=000115_3w_index&jump=front 淘宝网触屏版 https://main.m.taobao.com/?sprefer=sypc00 360公司官网 - 360安全软件 - 360智能硬件 - 360智能家居 - 360企业服务 https://m.360.cn/ 京东全球版-专业的综合网上购物商城 https://global.jd.com/ Yahoo face parte acum din Verizon Media https://consent.yahoo.com/collectConsent?sessionId=3_cc-session_5241ff95-aea4-4992-8836-122aa4a590c9&lang=ro-RO&inline=false Wikipedia https://www.wikipedia.org/ Amazon.com: Online Shopping for Electronics, Apparel, Computers, Books, DVDs & more https://www.amazon.com/ 手机新浪网 https://sina.cn/?from=wap 微博 https://m.weibo.cn/?jumpfrom=weibocom reddit: the front page of the internet https://www.reddit.com/ VK mobile version https://m.vk.com/ Outlook – free personal email and calendar from Microsoft https://outlook.live.com/owa/ Netflix Romania - Watch TV Shows Online, Watch Movies Online https://www.netflix.com/ro-en/ okezone - Căutare Google https://www.google.com/search?q=okezone&ie=utf-8&oe=utf-8&client=firefox-b-m Blogger.com - Create a unique and beautiful blog. It’s easy and free. https://www.blogger.com/about/?r=1-null_user alipay - Căutare Google https://www.google.com/search?q=alipay&ie=utf-8&oe=utf-8&client=firefox-b-m Office 365 Login | Microsoft Office https://www.office.com/ Instagram https://www.instagram.com/ Bing https://www.bing.com/?toWww=1&redig=88BD412752DA498893583A868FB977F8 https://m.twitch.tv/ Microsoft – Pagina de pornire oficială https://www.microsoft.com/ro-ro/ Create an Ecommerce Website and Sell Online! Ecommerce Software by Shopify http://myshopify.com/ Electronics, Cars, Fashion, Collectibles & More | eBay https://www.ebay.com/ Stack Overflow - Where Developers Learn, Share, & Build Careers https://stackoverflow.com/ 战旗直播 https://m.zhanqi.tv/ 妈妈网_官方网站,妈妈信赖的的育儿、生活等交流互动社区 https://m.mama.cn/ Twitter. It’s what’s happening / Twitter https://mobile.twitter.com/ ## Collections: ### 1st Collection containing: ▶ The Box by Roddy Ricch https://m.soundcloud.com/roddyricch/the-box YouTube Music https://music.youtube.com/ ### 2nd Collection containing: 90min Football News https://www.90min.com/ SPORT.RO - Stiri din sport https://m.sport.ro/

► Log


 --------- beginning of crash
03-09 11:48:30.600 2710-2710/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: org.mozilla.fenix.beta, PID: 2710
    java.lang.OutOfMemoryError: Failed to allocate a 6635532 byte allocation with 2313664 free bytes and 2MB until OOM
        at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
        at android.graphics.Bitmap.nativeCreate(Native Method)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:831)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:808)
        at android.graphics.Bitmap.createBitmap(Bitmap.java:775)
        at org.mozilla.geckoview.GeckoDisplay$ScreenshotBuilder.capture(GeckoDisplay.java:21)
        at org.mozilla.geckoview.GeckoDisplay.capturePixels(GeckoDisplay.java:1)
        at org.mozilla.geckoview.GeckoView$Display.capturePixels(GeckoView.java:3)
        at org.mozilla.geckoview.GeckoView.capturePixels(GeckoView.java:1)
        at mozilla.components.browser.engine.gecko.GeckoEngineView.captureThumbnail(GeckoEngineView.kt:3)
        at org.mozilla.fenix.components.toolbar.DefaultBrowserToolbarController.handleTabCounterClick(BrowserToolbarController.kt:11)
        at org.mozilla.fenix.components.toolbar.DefaultToolbarIntegration$tabsAction$1.invoke(ToolbarIntegration.kt:3)
        at -$$LambdaGroup$js$QYY6x8xlXquP7EfVuMVbZgw1g5I.onClick(java-style lambda group:211)
        at android.view.View.performClick(View.java:5233)
        at android.view.View$PerformClick.run(View.java:21209)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:152)
        at android.app.ActivityThread.main(ActivityThread.java:5507)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
03-09 11:48:30.600 2710-2710/? D/AppTracker: App Event: crash```
ekager commented 4 years ago

We added memory management in AC in mid March https://github.com/mozilla-mobile/android-components/issues/5933 that might address this issue.

lobontiumira commented 4 years ago

Hi, I was able to reproduce the crash again. Had 34 tabs opened, opened each tab individually, and Fenix crashed: https://crash-stats.mozilla.org/report/index/a4474300-25ed-4c7e-a9f2-5a07f0200612 Tested on the latest Nightly build from 6/12 with GV 79.0a1-20200609092134, AS 60.0.0, using HTC 10 (Android 8). I'll remove the qa:needed label for now.

mstange commented 4 years ago

Capturing screenshots is a fallible operation, because screenshots can be quite big. Shouldn't some method in the call stack that's pasted above be responsible for catching the exception?

lobontiumira commented 3 years ago

I was not able to reproduce the crash. I had over 30 tabs opened, I left Fenix in the background for a day, then browsed again through all the tabs. No crash. Environment: 12/30 Nightly build, HTC 10 (Android 8), Google Pixel (Android 10) I'll close this issue.

lobontiumira commented 3 years ago

I'll reopen this issue because Firefox RC 84.1.3 just crashed. I had about 28 tabs opened, uBlock origin add-on installed, and I was signed in with an old account. Device: Sony Xperia Z5 Premium (Android 7.1.1)

b0dbe666-d614-4850-b24a-20e1955dde2e java.lang.OutOfMemoryError: Failed to allocate a 36876 byte allocation with 8808 free bytes and 8KB until OOM

lobontiumira commented 3 years ago

I reproduced the crash on the Beta 85.0.0-beta.8 build with Sony Xperia Z5 Premium (Android 7.1.1).

556538a8-b039-4525-9720-e5c884f0ad3e java.lang.OutOfMemoryError: Failed to allocate a 1249932 byte allocation with 1197536 free bytes and 1169KB until OOM

lobontiumira commented 3 years ago

I reproduced this crash on the Beta 87.0.0-beta.6 build with Samsung Galaxy Tab A6 (Android 5.1.1). I had about 18 tabs opened, signed in with an old account, had uBlock origin add-on installed.

95a1137c-8ea3-4e59-930b-3d2d4644e6ee

* Socorro: https://crash-stats.mozilla.org/report/index/bp-fb4f50d2-8165-4fb1-8a85-cf5330210316 ----
stale[bot] commented 3 years ago

See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.