Repository navigation
Description
Steps to reproduce
- Do not have Chrome installed
flutter run -d macos- Press the 'v' key to launch devtools
Expected results
The flutter tool would gracefully handle the lack of Chrome availability without crashing,
Actual results
Eagle eyed flutter repo followers may notice this sounds a lot like issue #154940 and PR #154941, also both filed by me about this exact crash in September of 2024.
The issue back then being unawaited(Chrome.start(<String>[devToolsUrl])); in a function to launch devtools that
// This must be guaranteed not to return a Future that fails.
@override
bool launchDevToolsInBrowser({required List<FlutterDevice?> flutterDevices}) {
//[...]
}This fix even made it to master in January of 2025, after some delays with pubspec.lock changes after removing the browser_launcher pkg dependency since the flutter tool had another way to launch Chrome without needing that package.
I saw the new flutter release yesterday and checked https://ismyprinflutteryet.com/#/pr/framework/154941 to see my fix had made it to stable. Imagine my surprise when I updated to the latest stable to see the same crash!
Looks like my fix (and tests) got dropped during a refactor in PR #174580 in September of 2025
The current behavior is back to
import 'package:browser_launcher/browser_launcher.dart';
[....]
unawaited(Chrome.start(<String>[devToolsUri!.toString()]));Code sample
- flutter create -e bug
- flutter run -d macos
- 'v'
Screenshots or Video
Logs
Logs
Launching Flutter DevTools for macOS at
http://127.0.0.1:54443/5kHdg0GPYcA=/devtools/?uri=ws://127.
0.0.1:54443/5kHdg0GPYcA=/ws
Oops; flutter has exited unexpectedly: "ProcessException:
No such file or directory
Command: /Applications/Google
Chrome.app/Contents/MacOS/Google Chrome
http://127.0.0.1:54443/5kHdg0GPYcA=/devtools/?uri=ws://12
7.0.0.1:54443/5kHdg0GPYcA=/ws".Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.41.0, on macOS 26.2 25C56 darwin-x64, locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 26.2)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Connected device (2 available)
Activity
puneetkukreja98 commentedon Feb 13, 2026
Reproduced this on
Flutter stable 3.41.0andmaster 3.42.0-1.0.pre-104Thank you for the report.Flutter doctor - stable
Flutter doctor - latest master
bkonyi commentedon Feb 23, 2026
Thanks for catching this! #174580 was a pretty major refactor, and unfortunately the regression test for your fix was part of a test suite that was no longer relevant.
I'll try and get this fixed soon and cherrypicked into stable.
saltedpotatos commentedon Feb 23, 2026
Thanks Ben! I remember seeing your TODOs about the rewrite.
I can also submit a PR if that's easier! Might try and get a test exemption though :')
flutter-triage-bot commentedon Jun 29, 2026
This issue is assigned to @bkonyi but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
[flutter_tools] Catch exceptions when starting Chrome to launch DevTo…
github-actions commentedon Sep 1, 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.