Udara Pathirage
ย ยทย Founder of Deep Lab

Flutter Web Debug Fails to Launch Chrome/Edge on Windows - Temp Folder Issue

Troubleshooting

Environment:

  • OS: Windows

  • Chrome/Edge: Latest versions (both tested)

  • Works fine on: MacBook (same project)

Issue: Flutter web debug suddenly stopped working yesterday on Windows. The browser fails to launch after 3 attempts with temp folder-related paths.

Error Message:

Launching lib\main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             27.6s
Failed to launch browser after 3 tries. Command used to launch it: C:\Program Files\Google\Chrome\Application\chrome.exe --user-data-dir=C:\Users\UDARAP~1\AppData\Local\Temp\flutter_tools.2759b917\flutter_tools_chrome_device.bd2d2eb4 --remote-debugging-port=53265 --disable-background-timer-throttling --disable-extensions --disable-popup-blocking --bwsi --no-first-run --no-default-browser-check --disable-default-apps --disable-translate --disable-search-engine-choice-screen http://localhost:53254
Failed to launch browser. Make sure you are using an up-to-date Chrome or Edge. Otherwise, consider using -d web-server instead and filing an issue at https://github.com/flutter/flutter/issues.
What have you tried so far?

What I've Tried:

  • โœ… Confirmed latest Chrome and Edge versions installed

  • โœ… Deleted all temp folders (including Flutter tools temp directories)

  • โœ… Reset Chrome to default settings

  • โœ… Cleared browser cache and settings

  • โœ… Tried both Chrome and Edge

  • โœ… Verified same project works perfectly on MacBook

Observation: The issue appears to be related to Flutter's temp folder path generation (C:\Users\UDARAP~1\AppData\Local\Temp\flutter_tools.xxxxx\flutter_tools_chrome_device.xxxxx). The browser launch command looks correct, but something in the temp folder creation or browser profile setup is failing.

Additional Context: This started happening suddenly yesterday - no system updates or Flutter updates were performed. The same codebase works fine on macOS, suggesting a Windows-specific issue with temp folder handling or browser profile creation.

Did you check FlutterFlow's Documentation for this topic?
No
3
6 replies