Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliJ freezes #7968

Open
mossmana opened this issue Mar 12, 2025 · 3 comments
Open

IntelliJ freezes #7968

mossmana opened this issue Mar 12, 2025 · 3 comments
Assignees
Labels
Milestone

Comments

@mossmana
Copy link
Contributor

After installing the plugin from disk, when opening a Flutter project, IntelliJ freezes (i.e. becomes non-responsive to keyboard/mouse).

Though this has been reported in a non-virtualized environment, I have found this issue reliably reproduces in a UTM virtualized environment - aarch64 mac, with 8 GB of memory and a 30 GB HD.

  1. Install IntelliJ 2025.1
  2. Install the release_85 | 2025.1 plugin from disk
  3. Open any flutter project (I just opened a newly created project using flutter create)
  4. IDE freezes
@mossmana
Copy link
Contributor Author

Could be related to:
at io.flutter.pub.PubRoot.forDirectory(PubRoot.java:148) at io.flutter.pub.PubRootCache.getRoots(PubRootCache.java:71) at io.flutter.utils.FlutterModuleUtils.declaresFlutter(FlutterModuleUtils.java:328) at io.flutter.utils.FlutterModuleUtils$$Lambda/0x00000008012d27b0.test(Unknown Source) at java.util.stream.MatchOps$1MatchSink.accept([email protected]/MatchOps.java:90)

or

https://b.corp.google.com/issues/303127400?pli=1

@jwren
Copy link
Member

jwren commented Mar 12, 2025

After spending some time myself looking at the issue, my current hypothesis is that it is related to the PubRoot stacktrace that you listed above, it was the only Flutter stack trace that I found in a profiler from the Flutter IJ plugin when the IDE was frozen. Uninstalling the Flutter IJ plugin yielded the IDEA platform not locking up.

I witnessed the behavior in 2023.3, 2024.1, 2024.2, and 2024.3 as well, since these are compiled with the other version of Java (before your recent PR), you have successfully ruled out the idea of upgrading Java as solution here.

@mossmana mossmana self-assigned this Mar 14, 2025
@mossmana mossmana added the P0 label Mar 14, 2025
@jwren jwren added this to the M85 milestone Mar 17, 2025
@jwren jwren added the bug label Mar 17, 2025
@AlexV525
Copy link
Member

AlexV525 commented Mar 19, 2025

I do have a similar behavior when using my built plugin on Windows during my work in #7949 (comment). I don't have a stack trace about PubRoot though.

EDIT: The issue seems only reproducible when opening the flutter-intellij project on my side, other projects seem unaffected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants