Repository navigation
[Linux] High VRAM usage when resizing desktop app on Wayland #182192
Description
Activity
- addedfrom: performance templateIssues created via a performance issue templateIssues created via a performance issue template
on Feb 11, 2026 We also observed a memory leak on Linux Desktop with Wayland on embedded ARM cpu and an OpenGL ES driver.
Any animation causes an increase in memory. We are not sure if it's the same issue as the one reported above but is suspiciously similar.P.S. Running in software rendering mode (FLUTTER_LINUX_RENDERER=software) solves the memory leak.
Thank you for your comment, but the error reported here does not seem to be related to animations, as it can be replicated with the counter example.
Other things to add: impeller does not solve it, nor does switching from gtk to libhandy. The only way to solve it is by forcing the use of x11 or xwayland, or, as you mention, by forcing software rendering. This error even affects 3.41.2. The only version where it does not occur is 3.35.7, but it is a bit old. I would like to be able to edit the report to add the indicated tags, but I cannot find the options😅.- addedplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.in triagePresently being triaged by the triage teamPresently being triaged by the triage teamteam-linuxOwned by the Linux platform teamOwned by the Linux platform teamc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 3.41Found to occur in 3.41Found to occur in 3.41found in release: 3.35Found to occur in 3.35Found to occur in 3.35
on Mar 5, 2026 Hi @Seom1177 , thanks for reporting.
Since this is isolated to the Linux Wayland, I am routing this to the Linux team for investigation.
Reacted by Seom88- removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on Mar 6, 2026 - addedP1High-priority issues at the top of the work listHigh-priority issues at the top of the work listtriaged-linuxTriaged by the Linux platform teamTriaged by the Linux platform team
on Mar 11, 2026 - added a commit that references this issue
on Mar 11, 2026 - added a commit that references this issue
on Mar 13, 2026 - added a commit that references this issue
on Mar 17, 2026 - added a commit that references this issue
on Mar 18, 2026 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Mar 31, 2026 - added a commit that references this issue
on Apr 14, 2026 - added a commit that references this issue
on Sep 28, 2026
Steps to reproduce
Create a new project, use Flutter 3.38 or later (also available in master), you need to launch the application with Wayland, change the window size multiple times (you can see this with resources, mission, or KDE monitor by enabling the video memory option), this only happens if the app is launched with Wayland, xon xwayland/x11 works fine.
On Gnome
https://github.com/user-attachments/assets/a81969e3-990a-4e3f-a5e8-06b98840ad26
On KDE wayland with x11 workarround
https://github.com/user-attachments/assets/8f112518-5d0e-4c8c-aeeb-3ab481df74b0
I am currently using 3.35.7 as it is the latest stable version without the memory leak.
Code sample
Use default flutter counter app or any project with latest flutter like snap-store on Ubuntu 25.04 (snap-store works fine on 24.04, but if you update to edge channel the error appears).
What target platforms are you seeing this bug on?
Linux
OS/Browser name and version | Device information
I tested on
OS: Fedora 43, Almalinux 10.1, CachyOS, Ubuntu 24.04/20.10
DE: Gnome/KDE Wayland
CPU: AMD Ryzen™ 7 7735HS / Intel i5 12450H
GPU: AMD Radeon™ 680M / intel graphics / Nvidia gtx 1650
RAM: 32 GB
Does the problem occur on emulator/simulator as well as on physical devices?
Unknown
Logs
Logs
Flutter Doctor output
Doctor output