You are not logged in.

#1 2025-02-01 23:45:29

Waffleleroo
Member
Registered: 2025-02-01
Posts: 4

Firefox freezing when focused + other odd behavior | hyprland

Hello everybody,
I recently reinstalled hyprland on my system, but upon launching Firefox instantly noticed something wrong. Firefox was freezing and unfreezing at random it seemed. After a while I managed to figure out that if I unfocused Firefox the screen would unfreeze. I could still type and perform most actions, but the gui wouldn’t update. Other gui applications seemed to work fine. Firefox would also send me back to the tty if I tried to change setting via the menu or change tabs. Booting Firefox in safe mode, I got this repsonse:

[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
[Parent 3437, Main Thread] WARNING: failed to duplicate file descriptor : Bad file descriptor: file /usr/src/debug/firefox/firefox-134.0.2/ipc/glue/SharedMemory_posix.cpp:56
[Parent 3437, Main Thread] WARNING: failed to duplicate file descriptor : Bad file descriptor: file /usr/src/debug/firefox/firefox-134.0.2/ipc/glue/SharedMemory_posix.cpp:56
[ERROR glean_core::metrics::ping] Invalid reason code active for ping usage-reporting
[Parent 3437, Main Thread] WARNING: failed to duplicate file descriptor : Bad file descriptor: file /usr/src/debug/firefox/firefox-134.0.2/ipc/glue/SharedMemory_posix.cpp:56
[Parent 3437, Main Thread] WARNING: failed to duplicate file descriptor : Bad file descriptor: file /usr/src/debug/firefox/firefox-134.0.2/ipc/glue/SharedMemory_posix.cpp:56
[Parent 3437, Main Thread] WARNING: failed to duplicate file descriptor : Bad file descriptor: file /usr/src/debug/firefox/firefox-134.0.2/ipc/glue/SharedMemory_posix.cpp:56

After researching multiple sources on an alternate device, I couldn’t find anything that worked. I’ve tried reinstalling hyprland again, reinstalling Firefox a few times, and deleting cache and config files.

Output of firefox —full-version:

 Mozilla Firefox 134.0.2 20250121220303 20250121220303 

I don’t know what else to put here as it is my first time posting, but if anyone would I like to see command outputs, I would be glad to provide them.

Offline

#2 2025-02-02 15:17:06

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,476

Re: Firefox freezing when focused + other odd behavior | hyprland

Works fine here.  Posting from FF in Hyprland.   What GPU is your system using?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2025-02-02 16:32:39

Waffleleroo
Member
Registered: 2025-02-01
Posts: 4

Re: Firefox freezing when focused + other odd behavior | hyprland

I’m using the AMD ATI Radeon RX 6650 XT

Offline

#4 2025-02-02 16:51:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,476

Re: Firefox freezing when focused + other odd behavior | hyprland

I am on Intel Iris.  I would expect the Radeon to be well supported by Hyprland.   And you only have one GPU?

Perhaps Firefox is running under Xwayland.  Check to see if it is by, while firefox is running, open a shell and check the output of xlsclients.  We are hoping fit does not show Firefox.

Also, when FF is acting up, what is the output of free   ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2025-02-02 21:25:51

Waffleleroo
Member
Registered: 2025-02-01
Posts: 4

Re: Firefox freezing when focused + other odd behavior | hyprland

I do only have one gpu. I've been using hyprland for months with no problem at all, and all my other applications are acting normally.

xlsclients shows nothing about firefox, only showing electron and my hostname whenever discord is enabled.

output of free:

               total        used        free      shared  buff/cache   available
Mem:        15726536     3487252    10401284      271248     2382728    12239284
Swap:       52428796           0    52428796

I'm also using a chromium browser right now to send this, so I guess that works fine

Offline

#6 2025-02-02 22:30:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,476

Re: Firefox freezing when focused + other odd behavior | hyprland

That all looks good.  Had Firefox been working well and then stopped working well recently?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2025-02-02 23:43:44

Waffleleroo
Member
Registered: 2025-02-01
Posts: 4

Re: Firefox freezing when focused + other odd behavior | hyprland

It had been working until I reinstalled hyprland.

I've also just noticed something interesting. I was opening a link from discord, and it opened a perfectly funtional firefox window (it took me about 2 minutes to notice). After that, I could open another working window using the terminal. As long as I had one working window, I could open another. Another thing I noticed was that running firefox from the terminal with another working window (with and without safe mode) opens a working firefox window but doesn't seem to run firefox in the terminal, as there was no output, my zsh prompt was shown, and I could enter another command. I believe this is caused by firefox using the same process and just adding another window. After deleting all of the windows and trying to run firefox again, I would sometimes get an error message telling me that I can't have multiple instances of firefox at the same time. The window has the text "Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile."

Offline

#8 2025-02-06 20:32:15

romch007
Member
From: France
Registered: 2023-02-08
Posts: 6

Re: Firefox freezing when focused + other odd behavior | hyprland

I believe I'm having the same issue on GNOME with Wayland. Firefox randomly freezes and unfocusing the window brings it back to normal. My Firefox version is

Mozilla Firefox 135.0 20250204154141 20250204154141

and I have an integrated AMD graphics card (AMD Ryzen 7 PRO 4750U with Renoir). I initially thought the issue was caused by the upgrade from 134 to 135 but it looks like the issue is happening on 134 too.

Offline

#9 2025-02-10 01:21:21

auspicacious
Member
Registered: 2022-12-07
Posts: 5

Re: Firefox freezing when focused + other odd behavior | hyprland

I've been seeing very similar symptoms for the last couple of days with Firefox on KDE + Wayland: Firefox will freeze until the window is unfocused or 10+ seconds pass. A quick search through Mozilla's Bugzilla didn't find anything that looked similar yet.

Edit: Intel integrated graphics.

Last edited by auspicacious (2025-02-10 01:30:13)

Offline

#10 2025-02-11 23:27:33

4javier
Member
From: Italia
Registered: 2010-12-01
Posts: 118

Re: Firefox freezing when focused + other odd behavior | hyprland

Same issue here but just since Firefox 135, on two different systems: old intel integrated and recent nvidia integrated under nouveau.
Both Gnome on Wayland.
Everything in firefox page freezes, and it doesn't even need an unfocus of the whole window, just move the pointer to the tab bar and the page will rerender showing the thing you typed or the section you had scrolled to during  freezing.
The fact that Waffleleroo suffer the same issue downgrading to 134 and he didn't notice that before, make me suspect there's some other lib updated together with FF 135 that's the real culprit.

Same bug reported on Debian
https://forums.debian.net/viewtopic.php?t=161779

Last edited by 4javier (2025-02-11 23:32:37)

Offline

#11 2025-04-26 16:22:19

LucidComplex
Member
Registered: 2014-08-21
Posts: 14

Re: Firefox freezing when focused + other odd behavior | hyprland

Sorry to bump this months in, but any of you found a solution to this?

I'm on Librewolf but the same issues happen to me. The temporary fix of moving the cursor to the tab bar/unfocusing also fixes the hang for me.

I'm on Hyprland with an RX 6600 but my laptop on Sway + Intel iGPU doesn't exhibit this problem. And if I remember correctly, my other laptop on Sway + AMD iGPU also hangs, which leads me to believe the issue is with AMD software or something.

Wonder what it could be.

Offline

#12 2025-04-26 20:16:02

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,308

Re: Firefox freezing when focused + other odd behavior | hyprland

This Fedora thread could also be related: https://discussion.fedoraproject.org/t/ … /128838/19

which led me to https://bugzilla.mozilla.org/show_bug.cgi?id=1951249 and looks like they have a fix that will go into Firefox 138.

The full list of fixes for 138 is at https://bugzilla.mozilla.org/buglist.cg … ed&limit=0 and includes the fix for the above bug report. It is expected that 138 will be released tomorrow.

Last edited by mcloaked (2025-04-28 09:58:17)


Mike C

Offline

#13 2025-04-30 15:11:13

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,308

Re: Firefox freezing when focused + other odd behavior | hyprland

I have been using Firefox 138 today after it was released to the repos - and I am still getting 'freezes' - so it looks like the  commits that were supposed to fix the problem have not fixed it for me.


Mike C

Offline

#14 2025-05-06 08:40:22

LucidComplex
Member
Registered: 2014-08-21
Posts: 14

Re: Firefox freezing when focused + other odd behavior | hyprland

mcloaked wrote:

I have been using Firefox 138 today after it was released to the repos - and I am still getting 'freezes' - so it looks like the  commits that were supposed to fix the problem have not fixed it for me.

I'm on the update now and can say that it's solved my freezes. You might have more luck with Firefox Nightly/Developer Edition?

Offline

#15 2025-10-17 00:09:22

tlhunter
Member
From: San Francisco, CA
Registered: 2012-05-14
Posts: 2
Website

Re: Firefox freezing when focused + other odd behavior | hyprland

I've been having this same issue for the past few months and have always used the Developer Edition of Firefox. The version that I'm currently using is:
145.0b2 (64-bit)

Specifically, sometimes when switching focus to Firefox, the app will appear to be entirely frozen. For example, clicking and scrolling will have no effect, clicking buttons in the window chrome / menus also has no effect. However if I switch focus away and back again the screen will have redrawn based on whatever inputs I made, e.g. if I scrolled up while the window was frozen the scroll position will update upon returning. Firefox doesn't appear to be using a lot of CPU during this time.

So I wouldn't say that Firefox freezes but would instead say Firefox doesn't redraw the window upon regaining focus.

I use Debian, currently kernel 6.11.5-1~bpo12+1, KDE 5.27.5, Wayland.

Offline

Board footer

Powered by FluxBB