Closed Bug 1741297 Opened 3 years ago Closed 3 years ago

Tab content is blank until changing windows

Categories

(Core :: Widget: Win32, defect)

x86_64
Windows 10
defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr91 --- unaffected
firefox94 --- unaffected
firefox95 --- unaffected
firefox96 --- affected

People

(Reporter: birtles, Assigned: sotaro)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached file about:support

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.

(Sorry, forgot to clarify that this is on Nightly.)

Version: unspecified → Trunk
Assignee: nobody → sotaro.ikeda.g

: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.

Flags: needinfo?(brian)
See Also: → 1732736
Blocks: 1732736
See Also: 1732736
No longer blocks: 1732736
Regressed by: 1732736
Has Regression Range: --- → yes

(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.

Flags: needinfo?(brian)

Thank you:) After the symptom happens, about:support might have error log.

:birtles, can you also take screenshot when the problem happens?

Flags: needinfo?(brian)
Depends on: 1741349
Attached image Screenshot
Flags: needinfo?(brian)

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.

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.

Hmm, Attachment 9250872 [details] did not have gfx error log.

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".

Flags: needinfo?(brian)

(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.

Flags: needinfo?(brian)

Set release status flags based on info from the regressing bug 1732736

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.

Unlike last time I didn't have multiple windows open, nor was 1Password active, nor was there a pending update.

(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.

Flags: needinfo?(brian)

(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 🤞

Flags: needinfo?(brian)

Thank you! I am going to try to add an easier way to visually check if window is currently fully occluded or not.

See Also: → 1742131

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.

See Also: 1742131
See Also: → 1742241
Depends on: 1742440

Bug 1742241 might be caused by Bug 1687926.

See Also: 1742241

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].

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!

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.)

(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.

It seems that when the problem happened, select background app by Alt+Tabbing did not trigger ScheduleOcclusionCalculationIfNeeded().

: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.

Flags: needinfo?(brian)
Depends on: 1743057

D132206 of Bug 1743057 addressed the problem of STR of comment 22 for me.

(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.

Flags: needinfo?(brian)

Thank you for the confirmation.

:birtles, can you check if the problem is addressed with latest nightly?

Flags: needinfo?(brian)

It hasn't occurred yet today so I think it might be fixed! I will let you know if it happens again. Thank you!

Flags: needinfo?(brian)

Good! Thank you for the confirmation.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: