-
Notifications
You must be signed in to change notification settings - Fork 30.5k
[Linux] High VRAM usage when resizing desktop app on Wayland #182192
Copy link
Copy link
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.35Found to occur in 3.35Found to occur in 3.35found in release: 3.41Found to occur in 3.41Found to occur in 3.41from: performance templateIssues created via a performance issue templateIssues created via a performance issue templateplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-linuxOwned by the Linux platform teamOwned by the Linux platform teamtriaged-linuxTriaged by the Linux platform teamTriaged by the Linux platform team
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.35Found to occur in 3.35Found to occur in 3.35found in release: 3.41Found to occur in 3.41Found to occur in 3.41from: performance templateIssues created via a performance issue templateIssues created via a performance issue templateplatform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyteam-linuxOwned by the Linux platform teamOwned by the Linux platform teamtriaged-linuxTriaged by the Linux platform teamTriaged by the Linux platform team
Type
Fields
Give feedbackNo fields configured for issues without a type.
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