flutter-intellij
flutter-intellij copied to clipboard
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.
I have the same problem and it's really annoying. Btw, how did you manage to downgrade the flutter plugin?
Hello ! I face the same issue. any solutions ?
@vysotsky
- I downgraded by uninstalling the plugin in Intellij
- Restart Intellij.
- I then went here : https://plugins.jetbrains.com/plugin/9212-flutter/versions
- I downloaded the
76.0.4release. - I then installed the plugin from disk : https://www.jetbrains.com/help/idea/managing-plugins.html#install_plugin_from_disk
But this one has the hot reload issue where it doesn't auto hot reload on save.
It's almost like they're not testing the plugins and don't care enough to fix the issues when they occur.
I have this issue in VSCode but when I downgrade the Flutter extension, the issue remains. Am I downgrading the wrong thing? I went back as far as 3.74.0
Tested and verified freezing still occurs on 76.1.4 with Flutter 3.16.3 and Dart 3.2.3.
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!
I discovered a workaround: after adding new breakpoints, performing a Hot Reload immediately can avoid the application from freezing.
To VSCode users facing a similar issue: https://github.com/Dart-Code/Dart-Code/issues/4926
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)
facing same issue using Flutter 3.16.5, platform windows with VScode
I just tested on May 2023 VS Code Version: 1.79.2, but same result. Add a break point = Flutter freeze instantly on my MacOS project, expecting same on iOS. Using an M2.
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.
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.
Yep, sure am. You think it's related?
@point-source Maybe.. another project I worked on today does not use it and is not freezing this way. What Supabase package version are you on? I am on supabase_flutter: ^2.2.0
We are experiencing this issue and are not using that Supabase package.
A workaround I found yesterday was to use the debugger feature of the Dart DevTools web app...at least setting the breakpoints in there...when was done with my session, I still had to press continue in my IDE (IntelliJ).
Same thing on both IDEA and VSCode
On vscode I removed the checkbox "Uncaught exceptions" and it works little bit better For IDEA there is no solution
This issue has been closed and hot fix has been scheduled. Please follow this thread for more information. https://github.com/Dart-Code/Dart-Code/issues/4926#event-11574741629
Issue fixed! Flutter stable (3.16.9) - checkout https://github.com/dart-lang/sdk/issues/54650#issuecomment-1911005660 Wonderful
Awesome Friday news Thanks a lot