fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Fenix reloads every page after being backgrounded

Open Cheap-Skate opened this issue 6 years ago • 67 comments

Steps to reproduce

Restart phone so plenty of free memory Close all Fenix tabs Open arstechnica.com in Tab 1 Open mozilla.org in Tab 2 (mozilla.org page is visible) put Fenix into background using Android home button bring Fenix to foreground by tapping its icon (mozilla.org page is visible) switch to arstechnica.com tab by tapping tab counter & arstechnica tab blank screen, arstechnica.com tab reloads which takes ~1-2 seconds ---> incorrect behavior, IMHO tabs should not need to reload when there is plenty of spare memory, they should be instantly visible

Device information

  • Android device: Galaxy A40, Android 9
  • Fenix version: Today's

┆Issue is synchronized with this Jira Task

Cheap-Skate avatar Mar 07 '20 17:03 Cheap-Skate

I've been noticing this also.

mattcoz avatar Mar 07 '20 19:03 mattcoz

I have the same issue. Android 10, Pixel 3 XL

Mentis avatar Mar 12 '20 18:03 Mentis

cc @pocmo could this have anything to do with https://github.com/mozilla-mobile/android-components/pull/6170 ?

ekager avatar Mar 12 '20 22:03 ekager

Moreover, it happens to me on switching between tabs also.

Mentis avatar Mar 12 '20 22:03 Mentis

still having the issue, it really bugs me :-/

itzXian avatar Apr 06 '20 17:04 itzXian

cc @pocmo I don't think https://github.com/mozilla-mobile/android-components/issues/5529 / https://github.com/mozilla-mobile/android-components/pull/6381 are related here since those were specifically tab collections. Is it possible we aren't restoring correctly somewhere else? And that this problem could have started with https://github.com/mozilla-mobile/android-components/pull/6170?

ekager avatar Apr 06 '20 18:04 ekager

@sblatz adding this to AC top 10 - not sure what's causing this but seems likely something from AC, and needs some investigation.

liuche avatar Apr 07 '20 01:04 liuche

Having the same issue on Samsung Note 10+ with plenty of memory available. The problem doesn't happen instantly when switching tabs. What I did notice is that Firefox Preview is already using over 2 GB memory although only a few tabs are open.

Maxnor avatar Apr 13 '20 06:04 Maxnor

I see this in r-b as well. Seems like the page is getting unloaded when I'm switching between many tabs.

jonalmeida avatar Apr 13 '20 18:04 jonalmeida

Experiencing the same problem on my SM-G970F with OS 10, it works fine on incognito mode.

bayasdev avatar Apr 14 '20 13:04 bayasdev

I have the same bug with Android 7.0 Oukitel c5 firefox nightly

joelocandol avatar Apr 21 '20 07:04 joelocandol

Have the same bug. In fact, there are similar problems when fenix being used in the foreground. When a tab is placed in the foreground for a long time, switching to another tab will cause a reload. Change 'browser.cache.memory.capacity' to -1 seems to help. But it doesn't work after being background.

ccboxes avatar Apr 24 '20 08:04 ccboxes

same. one plus 5t

andreicristianpetcu avatar May 02 '20 16:05 andreicristianpetcu

This bug is quite annoying and makes multitasking between multiple tabs impossible. Hope this will be fixed once Fenix will be promoted to stable

Mentis avatar May 02 '20 21:05 Mentis

@psymoon Have you already looked into this? Otherwise I can help too. We landed a patch in AC that correctly restores the engine session. But I assume this is a different bug if it still reproduces in the latest Nightly.

pocmo avatar May 04 '20 11:05 pocmo

@pocmo I haven't had the chance to look at this yet. Feel free!

psymoon avatar May 04 '20 14:05 psymoon

We landed a patch for this in AC and it should make it into the next Nightly. I'll add the QA label.

pocmo avatar May 08 '20 08:05 pocmo

@pocmo it does not seem fixed in the current fennec nightly :(

andreicristianpetcu avatar May 08 '20 22:05 andreicristianpetcu

Same shit.. not fixed yet Version Nightly 200509 06:01 But now if you disable internet connection - firefox will be restore tabs from cache

xsikor avatar May 09 '20 08:05 xsikor

@pocmo Fenix is still unusable for me, the patch seems to only make it restore tabs faster but it stills unload those tabs from RAM when you switch to other app.

bayasdev avatar May 09 '20 11:05 bayasdev