Repository navigation
Windows Flutter apps crash silently on some machines after 3.27.4 #169178
Copy link
Copy link
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolec: fatal crashCrashes that terminate the processCrashes that terminate the processe: device-specificOnly manifests on certain devicesOnly manifests on certain devicesplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-windowsOwned by the Windows platform teamOwned by the Windows platform team
Description
Steps to reproduce
Create a new Flutter app:
1-
flutter create test_app
Build the Windows executable:
2-
cd test_app
3-
flutter build windows
Run the generated executable on multiple Windows machines:
Machines with Flutter version 3.27.4 and below → app works normally.
Machines with Flutter 3.29.0 and above → app may crash immediately on some computers without showing a window or error.
Expected results
The app should open and display the counter UI on all machines, as it does on version 3.27.4 and below.
Actual results
On Flutter 3.29.4:
On some Windows machines, the app crashes silently on launch (nothing appears).
No error logs are shown.
This happens even with the default counter app generated by flutter create.
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple)),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
int _counter = 0;
void _incrementCounter() {
setState(() {
_counter++;
});
}
@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('You have pushed the button this many times:'),
Text('$_counter', style: Theme.of(context).textTheme.headlineMedium),
],
),
),
floatingActionButton: FloatingActionButton(onPressed: _incrementCounter, tooltip: 'Increment', child: const Icon(Icons.add)),
);
}
}
Screenshots or Video
Video demonstration
Logs
Logs
I used Process Monitor (Procmon) to capture detailed logs on Windows during app launch. The logs show the differences in behavior between Flutter 3.27.4 (working) and 3.29.0+ (failing on some machines). I've attached the .PML files to help with further analysis.Flutter 3.27.4 (working):
Flutter 3.29.3 (crashing on some machines):
Flutter Doctor output
Doctor output
❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.3, on Microsoft Windows [versÆo 10.0.26100.4061], locale pt-BR)
[✓] Windows Version (Windows 11 or higher, 24H2, 2009)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.13.5)
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.100.2)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
[3_27_4.zip](https://github.com/user-attachments/files/20358327/3_27_4.zip)
[3_29_3.zip](https://github.com/user-attachments/files/20358328/3_29_3.zip)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolec: fatal crashCrashes that terminate the processCrashes that terminate the processe: device-specificOnly manifests on certain devicesOnly manifests on certain devicesplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-windowsOwned by the Windows platform teamOwned by the Windows platform team
Activity
krll-kov commentedon May 21, 2025
Same , 3.32 also crashing
danagbemava-nc commentedon May 21, 2025
Hi @krll-kov, @eduardohr-muniz, can we get some details about the devices that you are experiencing the crashes on?
eduardohr-muniz commentedon May 21, 2025
So the computers are from the company's clients. So I don't have an environment with Flutter and Dart installed on their machines to test: flutter run -d windows
What I can tell you is that both the build with --release or --debug don't work.
We have a significant percentage of clients with the same problem, which prevents us from updating Flutter to 3.29.0 or higher.
Device Name DESKTOP-D1TMT6L
Processor Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz 3.20 GHz
Installed RAM 4.00 GB (useable: 3.87 GB)
Graphics card Intel(R) HD Graphics (64MB)
Device ID 63E64EF3-361D-4E33-8D08-AA741288575D
Product ID 00327-60000-00000-AA263
Type of system 64-bit operating system, x64-based processor
Pen and touch No pen or touch input available for this video
Edition Windows 10 Home Single Language
Version 2009
Installed in 04/01/2025
Build OS 19045.5854
jhecksonSa commentedon May 21, 2025
I have the same problem here.
Gustavo-Murdiga88 commentedon May 21, 2025
I have the same problem 3.32 here, I thought the problem was on the client's machine, after viewing the issue I downgraded to 3.27.4 and it actually worked
krll-kov commentedon May 21, 2025
Same as @eduardohr-muniz , this is not my pc, but one of the app users, so i can not install flutter there to check that, but here are system details
GPU is Geforce 9400gt
danagbemava-nc commentedon May 22, 2025
Hi all, can you check if running a dart hello world app works as expected on the devices in question? This seems related to #165272
mraleph commentedon May 23, 2025
Looking at Procmon recording - there is a
CreateProcessstartingWerFault.exeat the very end of the recording. This looks indeed like crash. WER should be able to generate a minidump for you to look at so that we could narrow it down. Could you ask your users to configure WER to collect crash dumps for you? You can see details here.DumpTypeshould be at least1. Once you have the dump take a look at it in WinDBG and get some details (for current threadkb, for all threads~*kb, finally!analyze -v). That should give some info.krll-kov commentedon May 26, 2025
@danagbemava-nc i tried to build .exe of Dart project and it launches without crash
(compiled with dart compile exe bin/main.dart -o hello_world.exe on my pc, then moved to users' pc )
@mraleph
Here is dump
test_project.exe.7328.dmp
krll-kov commentedon May 26, 2025
I also decided to install VisualStudio to users machine to get more informative crash info, here are some extra logs:
Full crash dump file (170mb):
https://drive.google.com/file/d/1gBmODKnCCUNoP40LS3SOh-XE_2Oi2Q0K/view?usp=sharing
And last logs lead to thread.cc which is for some reason empty in my filles
You can make sure that these are default projects without any packages and modifications, attaching project files:
Desktop.zip
danagbemava-nc commentedon May 27, 2025
Labeling this based on the crash report shared above. Seems related to #165272
31 remaining items
[Windows] Use ANGLE blit extension on GLES 2.0 (#170298)
loic-sharma commentedon Jun 13, 2025
Hello, this is now fixed in the
mainchannel. You can try this using:Could folks confirm that this issue is fixed for apps built on the
mainchannel? If so, I'll move forward with a cherry pick to stable.BanhmiDev commentedon Jun 19, 2025
@loic-sharma I can confirm that our app now works on the affected device with the fix on the main channel.
[Windows] Use ANGLE blit extension on GLES 2.0 (flutter#170298)
[CP-stable][Windows] Use ANGLE blit extension on GLES 2.0 (#170924)
loic-sharma commentedon Jun 26, 2025
Hello, the fix landed on today's 3.32.5 release! Please
flutter upgrade. If you run into any issues, please file a new issue and tag me on it. Thanks everyone for the help fixing this issue :)eduardohr-muniz commentedon Jun 26, 2025
Great news, I will update here, thank you very much!
jhecksonSa commentedon Jun 26, 2025
Thanks, team. This fix is going to help me
[CP-stable][Windows] Use ANGLE blit extension on GLES 2.0 (#170924)
github-actions commentedon Jul 10, 2025
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.[Windows] Use ANGLE blit extension on GLES 2.0 (flutter#170298)
[Windows] Use ANGLE blit extension on GLES 2.0 (#170298)