flutter-intellij: App freezes after hitting breakpoint.
Steps to Reproduce
I have a piece of code in which I put a breakpoint on. I then run my app via the debugger, tap something in the app, and the breakpoint is correctly triggered. I then continue off of that breakpoint but my app is now frozen. I’m also unable to hotreload or restart the app. It just hangs.
I loaded up VSCode just to make sure it’s not Flutter specific and the error doesn’t happen there.
It’s also happening on Android Studio
I tried downgrading to 76.0.4 and the issue isn’t happening on that version.
Version info
[√] Flutter (Channel stable, 3.16.0, on Microsoft Windows [Version 10.0.22621.2715], locale en-US)
• Flutter version 3.16.0 on channel stable at C:\Users\daniel\fvm\versions\3.16.0
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision db7ef5bf9f (13 days ago), 2023-11-15 11:25:44 -0800
• Engine revision 74d16627b9
• Dart version 3.2.0
• DevTools version 2.28.2
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\daniel\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Users\daniel\AppData\Local\Programs\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.3)
• Android Studio at C:\Users\daniel\AppData\Local\Programs\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
[√] IntelliJ IDEA Ultimate Edition (version 2023.2)
• IntelliJ at C:\Users\daniel\AppData\Local\Programs\IntelliJ IDEA Ultimate
• Flutter plugin version 76.3.4
• Dart plugin version 232.10248
[√] VS Code (version 1.84.2)
• VS Code at C:\Users\daniel\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.76.0
[√] Connected device (4 available)
• Pixel 4 XL (mobile) • 9B221FFBA000WF • android-arm64 • Android 13 (API 33)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.2715]
• Chrome (web) • chrome • web-javascript • Google Chrome 119.0.6045.160
• Edge (web) • edge • web-javascript • Microsoft Edge 119.0.2151.72
[√] Network resources
• All expected network resources are available.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 12
- Comments: 21
Tested and verified freezing still occurs on 76.1.4 with Flutter 3.16.3 and Dart 3.2.3.
Issue fixed! Flutter stable (3.16.9) - checkout https://github.com/dart-lang/sdk/issues/54650#issuecomment-1911005660 Wonderful
This has been making life super hard, on all of my projects. We need a solution urgently. As soon as a breakpoint is added, it freezes. If it just showed an error or something it would help, but completely blank, no information, error or indication of what could be causing it.
Flutter 3.16.7 Framework • revision ef1af02aea Engine • revision 4a585b7929 Tools • Dart 3.2.4 • DevTools 2.28.5 VSCode: November 2023 (version Update 1.85.1)
Are any of you guys using the Supabase package? I have this in common between my projects that are freezing. If not, let me know so I can count it out please.
I have the same problem and it’s really annoying. Btw, how did you manage to downgrade the flutter plugin?
On vscode I removed the checkbox “Uncaught exceptions” and it works little bit better For IDEA there is no solution
We are experiencing this issue and are not using that Supabase package.
I discovered a workaround: after adding new breakpoints, performing a Hot Reload immediately can avoid the application from freezing.
I’m experiencing this (or something very similar) on macOS (developing for macOS). When I set a breakpoint, my app freezes so bad I can’t even hot restart. This occurs intermittently but frequently enough that, well, here I am.
Output of `flutter doctor -v`
[✓] Flutter (Channel stable, 3.16.3, on macOS 14.1.2 23B92 darwin-arm64, locale en-US) • Flutter version 3.16.3 on channel stable at /Users/…/Documents/Code/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision b0366e0a3f (7 days ago), 2023-12-05 19:46:39 -0800 • Engine revision 54a7145303 • Dart version 3.2.3 • DevTools version 2.28.4
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/…/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/…/Library/Android/sdk • Java binary at: /Users/…/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15A507 • CocoaPods version 1.14.3
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.1) • Android Studio at /Users/…/Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3) • IntelliJ at /Users/…/Applications/IntelliJ IDEA Ultimate.app • Flutter plugin version 77.0.1 • Dart plugin version 233.11799.172
[✓] Connected device (5 available) … • macOS (desktop) • macos • darwin-arm64 • macOS 14.1.2 23B92 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.71
[✓] Network resources • All expected network resources are available.
• No issues found!