Closed Bug 1791938 Opened 2 years ago Closed 2 years ago

Browser hang while watching video in PiP

Categories

(Core :: Panning and Zooming, defect)

Firefox 107
defect

Tracking

()

RESOLVED DUPLICATE of bug 1798099

People

(Reporter: 1justinpeter, Unassigned)

References

Details

Attachments

(5 files)

Attached file about:support

4 or 5 times in the last two weeks I've had Nightly hang (Windows states "not responding", user input does nothing for at least tens of minutes) while watching video. In all cases, I was watching a youtube video at 3x speed (give or take) in picture-in-picture. However, I can't conclusively link any of those to the issue, as that describes most of the time I'm watching media in Firefox. (It describes a significant portion of the time I'm browsing, as well.) I attempted to get a stack trace and whatnot (I asked on Matrix for some direction), which I'll attach, but I really have no idea what's useful and what's not. about:support is also attached.

During the hang, video hangs like the rest of the browser but audio continues playing until some buffer runs out.

Attached image stack trace

We have a little utility that will crash firefox and generate a crash report you can access from about:crashes. Would you mind trying to catch this hang with that if you can?

https://github.com/b0bh00d/crash-firefox

Another option would be to try and catch this in the profiler, but you'd need to be able to reliably reproduce. Visit https://profiler.firefox.com/ for more information. When capturing, please select the Media profile in the drop down.

I can't reliably reproduce but I'll try that utility next time I run across the issue. I can't say when that'll be (again, not reliably reproducible) but I'm guessing based on its frequency in the past that it'll be sometime in the next few days.

I think I ran into this this morning (it happened right at the beginning of the video, rather than in the middle, but otherwise all of the symptoms were identical) and ran that tool, but nothing showed up in about:crashes afterward. Perhaps this is because I just went with the process it defaulted to and then checked the box to kill all processes with the same name; next time I'll try getting the PID from task manager (which appears to be the main process) and specifically killing that one.

Ah, per https://github.com/bsmedberg/crashfirefox-intentionally this probably defaults to the most recently created process, and per bug 1600145 this no longer works for content processes, so it may work better if I set the PID to the parent process.

In all of these the main thread appears to be sitting in a waitforsyncnotify call related to apz. Maybe apz folks can help diagnose here.

Flags: needinfo?(jmathies)
Component: Audio/Video: Playback → Panning and Zooming

Indeed, I just had this happen while not watching video. (It served as a great reminder to save things and not leave a half-dozen tabs open in the middle of stuff for a couple days, because data loss. In hindsight, I should've seen that coming.)

(As a side note: it seems more frequent when opening tabs, but happens without interaction as well.)

The severity field is not set for this bug.
:botond, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(botond)
See Also: → 1798099

(In reply to Jim Mathies [:jimm] from comment #11)

In all of these the main thread appears to be sitting in a waitforsyncnotify call related to apz. Maybe apz folks can help diagnose here.

The parent process main thread performing a sync IPC call during event dispatch is expected. (It asks the GPU process to hit-test the event to determine, among other things, which content process needs to handle it.)

Is there a way to see in the crash report what the GPU process (in particular its main thread and RenderBackend thread) is doing at this time, i.e. why it's not responding to the message?

Flags: needinfo?(botond) → needinfo?(jmuizelaar)

No, we'd need a separate crash report for the GPU process to see that.

Flags: needinfo?(jmuizelaar)
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1798099
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: