Skip to content

firefox: videos stall after a couple of frames on NixOS 25.05 #409093

Description

@talex5

Nixpkgs version

  • Unstable (25.05)

Describe the bug

After upgrading to NixOS 25.05, Firefox (138.0.3) was unable to play videos in YouTube. It would slowly show one or two frames, then stop. The Firefox UI also stopped responding (e.g. can't close the window using the WM). Audio continues for several seconds. It can be stopped with kill (pgrep firefox). Running the version of Firefox from 24.11 under 25.05 has the same problem.

Turning media.hardware-video-decoding.enabled off fixes it, but I'm not convinced it's a decoding problem because https://mozilla.github.io/webrtc-landing/gum_test.html Camera has the same problem and doesn't seem to use the decoder (I think this because it doesn't spew logs with MOZ_LOG="PlatformDecoderModule:5", unlike YouTube).

Alternatively, removing ~/.cache/mozilla fixes the problem for me, but then it fails again after a day or so.

Steps to reproduce

  1. Run firefox "https://www.youtube.com/"
  2. Click on a video

Expected behaviour

Video plays

Screenshots

No response

Relevant log output

Additional context

about:support reports the GPU as AMD Radeon RX 550 Series (radeonsi, polaris11, ACO, DRM 3.61, 6.12.28).

System metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.28, NixOS, 25.05 (Warbler), 25.05.20250517.848e7b5`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.28.3`
 - channels(tal): `""`
 - channels(guest): `""`
 - channels(root): `"nixos-24.11"`
 - nixpkgs: `/nix/store/yis0kim79binlmqcc7hr3xh0ygykmadf-source`

(I'm using flakes, so I don't think the channels mismatch matters, but I'll update it and see)

Notify maintainers

@lovesegfault @mweinelt


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions