Release mode app not launching. Visual Studio version 17.5.1

This issue has been tracked since 2023-03-17.

When i build my app in release mode and launch the app from the executable. Sometimes it doesn't show any window and sometimes it does show a window. I don't understand what is going on. On debug mode it's okay.

Flutter SDK version: 3.7.6
Windows Build: 18363.418
Windows SDK version: 18362

darshankawar wrote this answer on 2023-03-17

@Lighting123
Please elaborate by providing details as what does Sometimes it doesn't show any window and sometimes it does show a window. mean. Does it render text or not ? Does it show any elements on screen ?
What device does this behavior occur on ?
Can you provide a minimal code sample that replicates the behavior ?
Also, if you build via terminal / command line instead of IDE, do you get same behavior or not ?

FusoraTech wrote this answer on 2023-03-17

Sometimes it doesn't show any window and sometimes it does show a window.

Also, did you mean a possible silent crash? Anything logged at the Windows Event Viewer?

Lighting123 wrote this answer on 2023-03-18

@Lighting123 Please elaborate by providing details as what does Sometimes it doesn't show any window and sometimes it does show a window. mean. Does it render text or not ? Does it show any elements on screen ? What device does this behavior occur on ? Can you provide a minimal code sample that replicates the behavior ? Also, if you build via terminal / command line instead of IDE, do you get same behavior or not ?

Well sometimes it launches as a process in task manager but doesn't display any window while other times it does display a window and building it with command line it also does the same behavior.

Device: HP Probook 650

darshankawar wrote this answer on 2023-03-20

Are you trying release mode on windows desktop platform, like flutter run --release -d windows or flutter build windows ?
The .exe generated you are trying to launch but it is not launching properly ?
Can you provide your pubspec.yaml and also check at your end if any of the plugins might be conflicting ?
For ex: https://stackoverflow.com/questions/73760625/flutter-exe-release-not-running-on-windows

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2023-03-30
Star Count 151602
Watcher Count 3555
Fork Count 25000
Issue Count 11498

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date