Skip to content

nixos/nautilus: artifacts and crash after update to mesa 25.3.0, also affects other GTK4 applications #463220

Closed

Description

@dbdbc

Nixpkgs version

  • Unstable (25.11)

Describe the bug

Black artifacts appear in the Nautilus window, and there are also artifacts in images rendered in nautilus. After a short while, it would stop responding. The error message shown below is displayed in the console.

The bug was probably introduced by the mesa update #461866, as everything works as expected in f3f1a9c, but the bug does appear in db158cd.

Steps to reproduce

Open Nautilus, open folders, keep browsing for a short while

Expected behaviour

Nautilus works as usual

Screenshots

Image

Relevant log output

(org.gnome.Nautilus:8917): Gsk-WARNING **: 15:38:12.304: vkWaitForFences(): The logical or physical device has been lost. (VK_ERROR_DEVICE_LOST) (-4)

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.17.8, NixOS, 25.11 (Xantusia), 25.11.20251115.db158cd
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.31.2
  • nixpkgs: /nix/store/f640ps0hcp7w5jzg18djf8gdhl6r2rnl-source

Notify maintainers

@vcunat @K900


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.

Activity

  1. added
    0.kind: bug
    6.topic: nixos
    on Nov 19, 2025
  2. Rukkhadevata123 commented on Nov 19, 2025

    @Rukkhadevata123

    Title may be '[Mesa 25.3.0] GTK4 applications with Vulkan backend occasionally experience rendering issues, including UI freezes and graphical glitches'

    I can also confirm the issue on Arch Linux (extra-testing repository) with Mesa 25.3.0.

    On nixos 25.11, here is my gpu infomation:

    Image

    For example, when launching gnome-tweaks with GSK_RENDERER=vulkan, the application and shell become unresponsive for about 10 seconds, and menu switching is impossible.

    Image Image

    Some rendering issues:

    Image

    Similarly, gnome-console sometimes hangs on exit and freezes the entire shell temporarily.
    A temporary workaround is to set GSK_RENDERER=gl before launching the application, or as system environment variable

  3. changed the title [-]nixos/nautilus: artifacts and crash[/-] [+]nixos/nautilus: artifacts and crash after update to mesa 25.3.0, also affects other GTK4 applications[/+] on Nov 19, 2025
  4. melvyn2 commented on Nov 19, 2025

    @melvyn2
    Contributor

    Also affects rnote. The above workaround works great, thank you.

  5. nixos-discourse commented on Nov 19, 2025

    @nixos-discourse
  6. twassman commented on Nov 19, 2025

    @twassman
    Contributor

    Also occurring on fractal (freezing, flickering, and also occasionally getting text characters replaced with rectangles en masse); does not occur with OpenGL renderer.

  7. K900 commented on Nov 20, 2025

    @K900
    Contributor

    Do we have an upstream bug report yet?

  8. dbdbc commented on Nov 20, 2025

    @dbdbc
    Author

    I don't think so

  9. dcarosone commented on Nov 21, 2025

    @dcarosone

    I'm seeing this too, on an intel laptop. A system closure from ~a week ago from nixpkgs c5ae371 is fine, ones since are broken.

    mesa 25.2.6 -> 25.3.0 is one of the few graphics-stack related differences across that gap. I was trying to track down the cause of corruption problems in fractal, but it turns out that gnome-system-monitor, which draws constantly-updating graphs, is a really good demonstration of the issue.

    What's odd though, is that I don't see the same issues on identical binaries, running on my amd desktop.

    And it matters where the binary runs: using waypipe to draw from one to the other, things running on the intel laptop still show problems when displayed remotely, and things running on the amd desktop are fine even on the laptop. I have some other machines with different generations of intel chips that I can try later, but anyway, I have an easy reproducer test case.

  10. vcunat commented on Nov 21, 2025

    @vcunat
    Member

    Why is it odd? Mesa will use different code paths on Intel and on AMD GPU.

  11. K900 commented on Nov 21, 2025

    @K900
    Contributor

    Yeah AMD has a workaround for this problem, but also, GTK 4.20.3 supposedly has a fix. Can you try applying https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38373?

  12. dbdbc commented on Nov 21, 2025

    @dbdbc
    Author

    The merge request fixes the problem for me. I assume this was the correct way to test it?

      hardware.graphics.package = pkgs.mesa.overrideAttrs (oldAttrs: {
        rev = "63d7ac51120f13287b47874f2120e8c2679e1ec8";
      });
    
  13. K900 commented on Nov 21, 2025

    @K900
    Contributor

    That's one of the options. Anyway, we'll have a better fix on staging-next, which should be merged in the coming days.

  14. twassman commented on Nov 21, 2025

    @twassman
    Contributor

    The apparent fix is included in GTK 4.20.3 & 4.21.2, the former of which was just merged into staging-next with #463695. (Edit: Whoops, this was already noted. Leaving this here incase the cross-references are useful.)

  15. dcarosone commented on Nov 21, 2025

    @dcarosone

    The gtk 4.20.3 update in staging-next seems to fix it for me

  16. linked a pull request that will close this issuestaging-next 2025-11-14 #461523on Nov 21, 2025
  17. added a commit that references this issue on Nov 24, 2025
  18. nixos-discourse commented on Nov 26, 2025

    @nixos-discourse

    This issue has been mentioned on NixOS Discourse. There might be relevant details there:

    https://discourse.nixos.org/t/graphical-issues-after-update/72408/2

  19. nixos-discourse commented on Dec 22, 2025

    @nixos-discourse
  20. PassiveLemon commented on Jan 1, 2026

    @PassiveLemon
    Contributor

    I'm still experiencing this issue. It affects both my terminal (tym) and some gtk apps like pcmanfm and lxappearance, while others like bottles, helvum, and pwvucontrol are fine. What I could tell (based on package definitions), is that the problematic programs are built with gtk3 while the gtk4 ones are fine. Is there a solution that also fixes gtk3 programs?

    • system: "x86_64-linux"
    • host os: Linux 6.18.2, NixOS, 25.11 (Xantusia), 25.11.20251229.89dbf01
    • multi-user?: yes
    • sandbox: yes
    • version: nix-env (Nix) 2.31.2
    • nixpkgs: /nix/store/rv4z0vd7v0pkadinxd1c1xmd4b850ldr-source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug6.topic: nixos

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions