Closed Bug 1927187 Opened 1 year ago Closed 1 year ago

[Linux] 131.0.3 on Fedora KDE Wayland leaks "video-playing" preventing screen lock/sleep

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 131
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: arcadiy, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

I've noticed my laptop refused to fall asleep/suspend screen. The culprit is as follows: 156 applications have been prevented from blocking sleep and screen locking: Firefox: video-playing.

Actual results:

It seems that recent versions of Firefox (130+) started leaking some sort of video decoder-related handle which keep accumulating and prevent sleep/screen lock until all Firefox processes are killed.

Expected results:

All resources acquired by video playing/er should be released when video is no longer playing.

I know this is not much to go on, but I'll be happy to attach whatever logging other information you may request.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

Can you still reproduce with 132.0? It seems to be gone for me.

(In reply to Kostadin Shishmanov from comment #3)

Can you still reproduce with 132.0? It seems to be gone for me.

Never mind, the bug still happens.

No 132 on Fedora 40 yet, even in updates-testing, so can't tell you. It's some handle the browser is leaking.

I confirm it's the same issue on 132.0 on Fedora Linux 40.

I can confirm the bug in Firefox 131.0.3 and 132.0. At first I thought the bug was in KDE Plasma, but the bug appears in Gnome as well. Downgrading Firefox to 124.0.1 fixed the problem.

Discussion here: https://discuss.kde.org/t/twitter-videos-block-sleep-mode-since-plasma-6-2/24878/21

Please try latest nightly first with clean profile:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_binaries

If you still see it please run Firefox on terminal with MOZ_LOG="LinuxWakeLock:5" env variable, like:

MOZ_LOG="LinuxWakeLock:5" firefox > log.txt 2>&1

reproduce the issue and attach the log.txt here.
Thanks.

Blocks: wakelock
Flags: needinfo?(arcadiy)
Priority: -- → P3
Summary: 131.0.3 on Fedora KDE Wayland leaks "video-playing" preventing screen lock/sleep → [Linux] 131.0.3 on Fedora KDE Wayland leaks "video-playing" preventing screen lock/sleep

The bug is not present in Firefox Nightly in Fedora 40 KDE Wayland.

Okay, Thanks. I think it's fixed in 133.0.

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
Flags: needinfo?(arcadiy)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: