Tab content is blank until changing windows
Categories
(Core :: Widget: Win32, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox94 | --- | unaffected |
firefox95 | --- | unaffected |
firefox96 | --- | affected |
People
(Reporter: birtles, Assigned: sotaro)
References
(Regression)
Details
(Keywords: regression)
Attachments
(4 files)
Since about one week ago (i.e. roughly Nov 8 or thereabouts) I frequently encounter a case where the content of all tabs are blank (dark black, but not solid black, presumably because that's the default background color for the theme I've applied).
This persists until I Alt+Tab to another window and back.
I've filed this under Widget: Win 32 because I wonder if it's related to the window occlusion work. Actually, given the timeframe, this is quite likely due to bug 1732736 landing.
Reporter | ||
Comment 1•3 years ago
|
||
(Sorry, forgot to clarify that this is on Nightly.)
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
:birtles, thank you for reporting! Do you have any ideas about STR to cause the problem? I also use nightly on Windows, but I did not saw the problem.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Reporter | ||
Comment 3•3 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #2)
:birtles, thank you for reporting! Do you have any ideas about STR to cause the problem? I also use nightly on Windows, but I did not saw the problem.
Not yet. I see it about twice every day. I think there may be a short hang before it happens. It might also happen when I am using DevTools a lot.
I will update this bug next time it happens.
Assignee | ||
Comment 4•3 years ago
•
|
||
Thank you:) After the symptom happens, about:support might have error log.
Assignee | ||
Comment 5•3 years ago
|
||
:birtles, can you also take screenshot when the problem happens?
Assignee | ||
Updated•3 years ago
|
Reporter | ||
Comment 6•3 years ago
|
||
Reporter | ||
Comment 7•3 years ago
|
||
This reproduced for me just now. Before it happened, the browser hung for a few seconds.
I could reproduce the hang fairly consistently but not the tabs going blank effect.
For the hang, generally, the STR was to focus on a number field on https://www.makeshop.jp/ssl/plural_order.html#plural_anchor (need to be actually buying something I think, however), then Alt+Tab to another app (Excel) and back. That would reproduce fairly often, particularly when DevTools was open.
Simply Alt+Tab'ing to another app and back again would resolve the hang.
I managed to take a profile of the hang on one occasion but the tabs didn't go blank afterwards. I will send it to Sotaro directly since it contains private information.
I also checked about:support after the hang but did not see any errors.
Reporter | ||
Comment 8•3 years ago
|
||
Reporter | ||
Comment 9•3 years ago
|
||
Also, I should mention that taking the screenshot caused the tab to render (since it brought up the SnagIt snapshot tool which renders an overlay over the entire screen). Fortunately it captured the screen before triggering the render.
Assignee | ||
Comment 10•3 years ago
|
||
Hmm, Attachment 9250872 [details] did not have gfx error log.
Assignee | ||
Comment 11•3 years ago
|
||
For the hang, generally, the STR was to focus on a number field on https://www.makeshop.jp/ssl/plural_order.html#plural_anchor (need to be actually buying something I think, however), then Alt+Tab to another app (Excel) and back. That would reproduce fairly often, particularly when DevTools was open.
:birtles, was DevTools shown as separate window? Or dock to window?
Simply Alt+Tab'ing to another app and back again would resolve the hang.
I wonder if "Alt+Tab'ing" is related to the problem, since window occlusion has a code that is specific to "Alt+Tab'ing".
Reporter | ||
Comment 12•3 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #11)
For the hang, generally, the STR was to focus on a number field on https://www.makeshop.jp/ssl/plural_order.html#plural_anchor (need to be actually buying something I think, however), then Alt+Tab to another app (Excel) and back. That would reproduce fairly often, particularly when DevTools was open.
:birtles, was DevTools shown as separate window? Or dock to window?
Docked to the side of the window. I encountered the problem without DevTools showing, however, so it is not necessarily related. (The hang seemed to be more frequent when DevTools was open but that might be coincidence.)
Simply Alt+Tab'ing to another app and back again would resolve the hang.
I wonder if "Alt+Tab'ing" is related to the problem, since window occlusion has a code that is specific to "Alt+Tab'ing".
Yes, it seemed like Alt+Tab'ing would resolve the hang and also resolve the "all tabs are blank" problem.
Comment 13•3 years ago
|
||
Set release status flags based on info from the regressing bug 1732736
Reporter | ||
Comment 14•3 years ago
|
||
This happened again just now and I didn't notice any hang before it happened.
Interestingly as I cycled between the different tabs, they were all blank except the about:newtab page.
Reporter | ||
Comment 15•3 years ago
|
||
Unlike last time I didn't have multiple windows open, nor was 1Password active, nor was there a pending update.
Assignee | ||
Comment 16•3 years ago
|
||
(In reply to Brian Birtles (:birtles) from comment #14)
This happened again just now and I didn't notice any hang before it happened.
Interestingly as I cycled between the different tabs, they were all blank except the about:newtab page.
I wonder if the window was nsWindow::mIsFullyOccluded was kept true when the problem happened.
:birtles, can you get moz log out put when the problem happens?
moz log could be saved from about:networking#logging with "WinOcclusionTracker:3,WinOcclusionCalculator:3,Widget:3".
When I tested, the moz log was written when Firefox was closed.
The following could be used for local build.
MOZ_LOG=WinOcclusionTracker:3,WinOcclusionCalculator:3,Widget:3 ./mach run > log.txt 2>&1
Thank you.
Reporter | ||
Comment 17•3 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #16)
(In reply to Brian Birtles (:birtles) from comment #14)
This happened again just now and I didn't notice any hang before it happened.
Interestingly as I cycled between the different tabs, they were all blank except the about:newtab page.
I wonder if the window was nsWindow::mIsFullyOccluded was kept true when the problem happened.
:birtles, can you get moz log out put when the problem happens?
moz log could be saved from about:networking#logging with "WinOcclusionTracker:3,WinOcclusionCalculator:3,Widget:3".
When I tested, the moz log was written when Firefox was closed.
Thanks! I am trying that now.
Unfortunately the problem only occurs 1~2 times a day.
I set the logging parameters yesterday but when the problem occurred today, I noticed the logging parameters had been reset so there was no information.
I have re-set the logging parameters. Hopefully the problem will occur again soon 🤞
Assignee | ||
Comment 18•3 years ago
|
||
Thank you! I am going to try to add an easier way to visually check if window is currently fully occluded or not.
Comment 19•3 years ago
|
||
I've been experiencing the same problem lately. (See bug 1742131)
Here's my about:config if it helps: https://pastebin.mozilla.org/4Yx0kaoh
And I rarely use DevTools, so I don't think it's the culprit.
Assignee | ||
Comment 21•3 years ago
|
||
Bug 1742241 might be caused by Bug 1687926.
Assignee | ||
Comment 22•3 years ago
•
|
||
I seemed to find the STR to cause the problem with patch of Bug 1742440. D131807 could be used to check an occlusion state visually.
- [1] Open Firefox
- [2] Cover the Firefox by other window like chrome browser
- [3] Push Windows]+ D several times
- [4] Choose the Firefox by Alt+Tab and check the occlusion state
On [4], if Occlusion is not "is_fully_occluded:true"(red), return to [2].
There was a case that the Firefox's occlusion state was still "is_fully_occluded:true" on [4].
Reporter | ||
Comment 23•3 years ago
|
||
Thank you!
Do you still need me to generate logs for this? I'm sorry I haven't been able to yet--I have to reset the log parameters each time I restart Firefox and the bug generally reproduces before I remember!
Reporter | ||
Comment 24•3 years ago
|
||
Today I was performing a lot of edits in a Google Doc while Alt+Tabbing between that doc and another (Firefox) window. I noticed that the Google Doc would sometimes appear unresponsive. However, if I Alt+Tab to the other window and back it would be fixed.
I suspect this is a variant of this bug where the Google Doc was actually being updated but the changes were not being rendered. (FWIW, this particular Google Doc was in the new canvas-mode.)
Assignee | ||
Comment 25•3 years ago
|
||
(In reply to Brian Birtles (:birtles) from comment #23)
Thank you!
Do you still need me to generate logs for this? I'm sorry I haven't been able to yet--I have to reset the log parameters each time I restart Firefox and the bug generally reproduces before I remember!
Thank you very much. I do not need the log for now.
Assignee | ||
Comment 26•3 years ago
|
||
It seems that when the problem happened, select background app by Alt+Tabbing did not trigger ScheduleOcclusionCalculationIfNeeded().
Assignee | ||
Comment 27•3 years ago
•
|
||
:birtles, can you check window visibility state when the problem happens with latest nightly?
window visibility state could be checked with pref "gfx.webrender.debug.window-visibility:true". It enables debug overlay.
When window state is fully occluded, the overlay shows "is_fully_occluded:true" with red color.
Assignee | ||
Comment 28•3 years ago
|
||
D132206 of Bug 1743057 addressed the problem of STR of comment 22 for me.
Reporter | ||
Comment 29•3 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #27)
:birtles, can you check window visibility state when the problem happens with latest nightly?
window visibility state could be checked with pref "gfx.webrender.debug.window-visibility:true". It enables debug overlay.
When window state is fully occluded, the overlay shows "is_fully_occluded:true" with red color.
The problem just occurred for me an I can confirm that the overlay was red for the window in question.
Assignee | ||
Comment 30•3 years ago
|
||
Thank you for the confirmation.
Assignee | ||
Comment 31•3 years ago
|
||
:birtles, can you check if the problem is addressed with latest nightly?
Reporter | ||
Comment 32•3 years ago
|
||
It hasn't occurred yet today so I think it might be fixed! I will let you know if it happens again. Thank you!
Assignee | ||
Comment 33•3 years ago
|
||
Good! Thank you for the confirmation.
Description
•