-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug] Tabs turn into about:blank pages #5478
Comments
I wonder if this was a process kill or a crash. 🤔 And I'm also curious whether the tabs restored when selecting them? Also see this issue: #3170 - I think we are not really handling situations where tab(s) crash while we are not in the browser screen yet (We do not look at |
for me, they didn't. When I clicked on them |
@pocmo I believe that's correct, yes. I'm going to put a needs group triage on this so we can make sure it's visible to product. |
Confirmed in group triage that this is a high priority bug. Let's listen to the AC hook that Sebastian mentioned 😄 |
This is a GeckoView bug but we can potentially fix it in AC. |
In the similar bug, @liuche said:
Wouldn't that affect this as well? What is the hook that @sblatz mentioned? |
@darkwing my guess is that he was referring to I tried reproducing it by going to Sidenote: process kill for the tab, the app or both does nothing for me, the tabs are recreated correctly, so my guess is the problem comes from a crash |
Hi! |
I just had this same issue, the tabs are all about:blank and tapping on a tab doesn't bring back the actual page. I think it happened after Fenix was killed by the Android memory manager:- I was doing other stuff on my phone, went back to Fenix, Fenix opened on the tabs tray, everything was about:blank. Galaxy A40, Android 9.0.0, today's Fenix Nightly. |
I had this issue shortly (hours) after migrating from Fennec to Fenix. I didn't close Fenix, but after a few hours I came back to it and several (but not all) of my tabs had turned into about:blank tabs with no way to recover them (no history left in the tabs). |
I found a semi-consistent way to turn tabs into about:blank or empty tabs.
Actual behaviorThis bug only triggers randomly. Moto G5 Plus, NightlyTab has the right URL, but displays a white screen. Switching to other tabs causes them to display a white screen as well, and the thumbnail to turn white. Reloading any tab causes the progress bar to appear and disappear quickly, and the page remains white. Focusing the address bar and pressing Enter fixes the issue. I think (not 100% sure) this is different from #12593, because in that bug, switching tabs fixes the issue. Samsung SM-T510 tablet, FirefoxThe focused tab will have the right URL, but display a white screen (white thumbnail). The previous tab has a URL of about:blank, with a white screen, but the proper thumbnail. Refreshing does nothing (no progress bar appears). Pressing Enter in the address bar does nothing. Saving all tabs in a collection, closing all tabs, then reloading the collection, partially resolves the problem. The first tab you activate loads properly. The second tab you activate loads to a white screen, where refreshing is a no-op (progress bar sometimes flickers for a very short time), but pressing Enter in the address bar fixes the issue. Samsung SM-T510 tablet, Firefox (take 2)Instead of a tab, the tab tray appears. Some tabs load, others are white screens. All have the proper URL and are fixed by pressing Enter in the address bar (but not reloading). Saving all tabs in a collection, closing all tabs, then reloading the collection, does not help. The tabs that loaded still load, and the tabs with a white screen are still a white screen exactly like before. Samsung SM-T510 tablet, NightlyActive tab turns into about:blank with a white screen. One other tab loads, and another tab has the right URL but a white screen. Reloading "URL + white screen" turns it into a dark screen (I'm on dark theme). Pressing Enter in the URL bar fixes it. Navigating away and back to about:blank causes the issue to spontaneously fix itself. In previous runs, I've seen it load on about:blank and fix itself within 1 second, or fix itself after tapping the URL bar. Saving all tabs in a collection, closing all tabs, then reloading the collection, causes all tabs to load except for "URL + white screen" which behaves exactly like before. (Nightly recently changed the Collection UI. I dislike how no tabs are selected by default, for the use case of "save all tabs before I close them". I like how you check them in the existing tab tray. I dislike how the tabs are saved/restored in the order of your taps, not the original order... even though tap order is not indicated on the UI.) (EDIT) Samsung SM-T510 tablet, Git buildI got a tab with the right URL in the address bar. However, it behaved more similarly to about:blank, in that pressing Enter in the address bar did not load the page, but switching to a different tab and back did. I redid the test, got an about:blank tab after a few iterations. Link to logcat (taken at INFO level).
This does not work for "URL present" tabs where pressing Enter in the URL bar doesn't work. (EDIT) Potential root causesOn m SM-T510 tablet, on all 3 browsers, I checked the About dialog's crash listing. I do not see any crashes that occurred during the same time as my tests. Device informationMoto G5 Plus on Android 8.1.0:
Samsung SM-T510 on unofficial LineageOS 9:
|
Just FYI I haven't had this issue for a long time, maybe several months. I used to get it a lot. Galaxy A40, today's Fenix. |
The "Don't keep activities" checkbox causes significant changes in Fenix's behavior when you navigate away from the app. I discovered this by running my self-built Firefox Preview, connecting my tablet to Android Studio, then taking logcats at Debug level, but filtered to messages containing "Don't keep activities" unchecked (activities survive closing Fenix)Going to the Android home screen causes Fenix to fully shut down (though with some noisy errors). Logcat at https://gist.github.com/nyanpasu64/f32e9c5899e6033a0d36d70b454ac4df#file-keep-activities-press-home (I only took logcat once) "Don't keep activities" checkedGoing to the Android home screen causes Fenix to enter an endless loop of At first, you may get one or two CrashOne time, on each cycle, zerdatime was followed 400ms later with a GeckoSession message. Pressing Fenix as soon as zerdatime appeared caused the app to crash.
The link is https://crash-stats.mozilla.org/report/index/bp-b7d80c0a-1df9-4c46-95aa-138ba0200830. ZombieI forgot how I entered this state... I think I swiped the browser from my recent apps, after opening the Socorro link. I got Firefox into a state where existing tabs don't load... and new tabs don't load any pages either. I get no |
What causes the logcat messages?I took some notes at https://docs.google.com/document/d/1jx80AjOFmDRUpr5ePtBawwK5oXA_zEZWqbRRH5h7_uo . My "Developer options" reproduction mechanism produces unusual log messages. I think they are caused by repeated "GeckoView:ContentKill" messages from an unknown source to GeckoSession. Switching away from Firefox causes Firefox to reloadI decided to run some experiments on my Moto G5 Plus phone, using a "normal" Android environment with "Don't keep activities" and "Background process limit" set to their default values. I was unable to reproduce about:blank or unloaded tabs, but did discover strange behavior: Switching away from Firefox would usually cause only a single I tried switching back to Firefox after seeing I tried running this experiment again with a debugger, and found that this reloading behavior was triggered by a "GeckoView:ContentKill" message in the wild, just like my synthetic environment. |
Hi all, I think it's worth opening a new [Meta] issue to capture all the different flavours of this bug, including this one, #12382 and #14180 and any other relevant ones. Whilst the cause (and the fix) may be the same, the symptoms are different which means that the fix may not be the same. FWIW I can add micromag.cc to the list of sites which always show as the "URL+white screen" bug (#14180 - that bug should really not have been closed) and github.com is sometimes in this category but not always. To revive from the "URL+white screen" state I need to press return in the address bar or force refresh; normal refresh is not guaranteed to work. Cheers 🙂 |
Samsung Galaxy s20+ 512GB 79.0.5 (Build #2015758619) tl;dr clearing 100k addresses from browsing history banished this bug for me I debated saying anything, but saw this bug was still open after a long time, so... This about:blank issue was constant for me on upgrading. Every other time I left 79.0.5 running in the background and came back to it, I would be presented with most or all tabs displaying about:blank, and I would be unable to recover them, despite all the tricks listed in this and linked issues. I'd end up closing all tabs. It happened every time I left even a dozen tabs open overnight. Here's the thing, it stopped happening two days ago. What changed? The only thing that changed is I finally broke down and deleted "Browsing history and site data", which had been accumulating (in Fennec) for five months up until then. At the time I cleared it, there were 110,000+ addresses. I'm not knowledgeable enough to begin verifying if browsing history is even possibly related, but I can state without hesitation that's the only change in my install/profile. I had no outward evidence of crashes, duplicate tasks, hangs, etc. related to this use case. No private tabs usage, no PWA, tabs could have been opened from collections, bookmarks. Never messed with "don't keep activities". Curious if others who consistently experienced this also had the habit of only deleting cache and/or cookies, but keeping browsing history for weeks or months. I mean, I can't be the only one, right?! Tough to reproduce in a hurry, I know 🙄 |
I can confirm that with "Don't keep activities" checked, as suggested by @nyanpasu64 , I also don't get the about:blank issue... obviously not a solution, but an interesting data point. I tried clearing my browser history, as suggested by @bgibney3 , and this does seem to make the issue less frequent, but doesn't get rid of the issue entirely for me. Stu |
AC mozilla-mobile/android-components#8320 has landed, should be in the next nightly But we will likely continue investigating/figuring out what's going on. |
Tested on Nightly 9/10 following the steps provided in this bug and we couldn't reproduce the issue. We did encounter about:blank page on Huawei P20 lite, A9 (tab was opened for more than 1 day and refresh wasn't working) but we couldn't reproduce it anymore.
@liuche should we close this bug and follow up on other related? |
Did the fix go in on the nightly 9/9 or 9/10? as I managed to reproduce the issue on 9/9 (Galaxy S8, stock). Stu |
On the 9/11 build of Nightly. I set "Don't keep activities" enabled and "Background process limit" to "No background processes". In this setup, switching away from Firefox used to cause Firefox to enter the 3-second loop. It no longer happens; I instead get:
And no further zerdatime messages until I reopen Nightly. I haven't gotten about:blank yet either. |
I've not seen the issue for 72 hours now, having previously had the issue multiple times a day. Starting with the build on the 10th. Might be premature to say it's fixed, but it's certainly at least a lot better. Thanks folks! I appreciate the effort! Stu |
I'm also very happy to report that I haven't encountered this issue with the nightlies on my Galaxy S9. Thanks a lot for all the effort and I'll update if the issue reoccurs. |
Closing this one as fixed. I'll keep #15046 open which is another way to trigger |
Steps to reproduce
This is similar or the same as #1577.
Logged it based on @agi90 comment on Slack and one other user reports that it still sees this issue: #1577 (comment)
Expected behavior
Tabs show pages.
Actual behavior
Tabs turn into about:blank after a while, with no history saved.
Device information
📦: 12.0.0, 9fecd17d3
🦎: 71.0a1-20190909095540
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: