Repository navigation
Open
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: regressionIt was better in the past than it is nowIt was better in the past than it is nowc: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.32Found to occur in 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-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
Description
Steps to reproduce
- run a Flutter Application showing a dialog (containing e.g. some buttons) above a Scaffold
- Move the mouse over the dialog over the buttons
- The screen starts to flicker (see attached video) showing the Scaffold widget and the Dialog widget in alternating way
Expected results
The screen should not flicker
Actual results
Screen is displaying dialog and scaffold behind in an alternating way rather than only the dialog with the Blur background.
The video was recorded on WSL Ubuntu, but the behavior can easily reproduced also on a native Ubuntu system.
Screenshots or Video
Screenshots / Video demonstration
Video_250528090618.mp4
Code Example
Here is an example App, which can be run on Linux demonstrating the problem. Simply open the 'Example Dialog' and then move the mouse over the screen - will show the broken behavior.
import 'package:flutter/material.dart';
import 'dart:ui';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
home: const MyHomePage(title: 'Flutter Linux Rendering Bug'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
void _showExampleDialog() {
showDialog(context: context, barrierDismissible: false, builder: (BuildContext context) {
return AlertDialog(
title: Text("Title"), content: Stack(children: [
BackdropFilter(
filter: ImageFilter.blur(sigmaX: 20.0, sigmaY: 20.0),
child: Container(decoration:
BoxDecoration(
borderRadius: BorderRadius.circular(16),
color: Colors.grey.shade300.withAlpha(128)
))),
Column(children: [
Text("Example Example Example Example Example Example"),
Text("Example Example Example Example Example Example"),
])]), actions: [ElevatedButton(onPressed: () {
Navigator.of(context).pop();
}, child: Text("OK"))]);
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Text('Open the example dialog'),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _showExampleDialog,
tooltip: 'Show Example Dialog',
child: const Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.32.0, on Ubuntu 22.04.4 LTS 5.15.167.4-microsoft-standard-WSL2, locale C.UTF-8)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (1 available)
[✓] Network resources
! Doctor found issues in 3 categories.Reacted by Spiritus2424
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: regressionIt was better in the past than it is nowIt was better in the past than it is nowc: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.32Found to occur in 3.32Found to occur in 3.32found in release: 3.33Found to occur in 3.33Found to occur in 3.33has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-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
Activity
danagbemava-nc commentedon May 28, 2025
Hi @TomKrauss, I just tested your code sample on a ubuntu 24.10 system with stable 3.32 and I can't seem to reproduce the issue. See the recording below. Is there any more information you can provide about your environment? Like the graphics card of your system and any other information you think may be relevant?
Screencast.From.2025-05-28.07-39-31.webm
TomKrauss commentedon May 28, 2025
We can reproduce the behavior on two machines at least:
Host: nb-***-2017 Kernel: 6.8.0-58-generic arch: x86_64 bits: 64
Desktop: Cinnamon v: 6.2.9 Distro: Linux Mint 22 Wilma
Machine:
Type: Laptop System: LENOVO product: 20HH0014GE v: ThinkPad P51
serial:
CPU:
Info: quad core Intel Core i7-7700HQ [MT MCP] speed (MHz): avg: 3099
min/max: 800/3800
Graphics:
Device-1: Intel HD Graphics 630 driver: i915 v: kernel
Device-2: NVIDIA GM107GLM [Quadro M1200 Mobile] driver: nvidia v: 550.120
TomKrauss commentedon May 28, 2025
Hi Daniel,
In the meanwhile I tested on Ubuntu 24.04.2 - same problem.
TomKrauss commentedon May 28, 2025
Found out, that the problem can only be reproduced, when I use Software rendering: LIBGL_ALWAYS_SOFTWARE=1
[-]Flutter Rendering broken on Desktop Linux Platforms since Flutter Version 3.32.0[/-][+][Linux][Regression][3.32.0] Rendering glitches when using backdrop filters and forcing software rendering[/+][-][Linux][Regression][3.32.0] Rendering glitches when using backdrop filters and forcing software rendering[/-][+][Linux][Regression][3.32.0] Rendering glitches when using backdrop filter and forcing software rendering[/+]danagbemava-nc commentedon May 29, 2025
Reproducible using the code sample provided above when LIBGL_ALWAYS_SOFTWARE=1. This works as expected on stable 3.29.3 but not 3.32 onwards. It also doesn't seem to reproduce when the backdrop filter is removed from the dialog in the sample shared above.
Labeling for further investigation
flutter doctor -v
robert-ancell commentedon Jun 15, 2025
If anyone who can reproduce this and is able to build a custom engine please test with #170045 as I think this change might have fixed the issue.
[-][Linux][Regression][3.32.0] Rendering glitches when using backdrop filter and forcing software rendering[/-][+][Linux][Regression][3.32.0] Rendering glitches when using backdrop filter and forcing Mesa software rendering (LIBGL_ALWAYS_SOFTWARE=1)[/+]robert-ancell commentedon Jul 18, 2025
Ah, this is using Mesa software rendering, not the Flutter software renderer. If you need software rendering it is likely to better perform using Flutter (FLUTTER_LINUX_RENDERER=software) rather than Mesa. Using the Mesa software renderer means that Flutter might be using expensive GPU operations that a CPU struggles to perform.
d-loose commentedon Sep 12, 2025
I can reproduce the bug with
LIBGL_ALWAYS_SOFTWARE=1 FLUTTER_LINUX_RENDERER=softwarefor Flutter versions< 3.35. It seems fixed in3.35.[submodules] Update flutter to 3.35.7 (#4441)