flutter / flutter-intellij

Flutter Plugin for IntelliJ
https://flutter.dev/using-ide
BSD 3-Clause "New" or "Revised" License
1.98k stars 319 forks source link

DevTools window makes AS freeze completely #7597

Open deakjahn opened 3 months ago

deakjahn commented 3 months ago

Steps to Reproduce

  1. Open Android Studio
  2. Locate the new DevTools window (or add the icon from the three-point menu)
  3. Try to start DevTools
  4. The window appears with "Nothing to show" and Android Studio freezes completely. Completely unresponsive, the only way out is to kill it from Windows Task Manager.

Log

There's no idea.log. All that appears is this new threadDumps-freeze folder, if this helps anything: threadDumps-freeze-20240807-212340-AI-241.18034.62.2411.12071903.zip

Version info

Please paste the output of running flutter doctor -v here (available from the command line or from Tools > Flutter > Flutter Doctor). It will provide the version of the Flutter framework as well as of the IntelliJ plugin.

P:\Flutter\bin\flutter.bat doctor --verbose [√] Flutter (Channel stable, 3.24.0, on Microsoft Windows [Version 10.0.22631.3880], locale en-US) • Flutter version 3.24.0 on channel stable at P:\Flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 80c2e84975 (8 days ago), 2024-07-30 23:06:49 +0700 • Engine revision b8800d88be • Dart version 3.5.0 • DevTools version 2.37.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 P:/Android_SDK • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = P:/Android_SDK • ANDROID_SDK_ROOT = p:\Android_SDK • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314) • All Android licenses accepted.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.5) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.10.35122.118 • Windows 10 SDK version 10.0.22621.0 X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components: MSVC v142 - VS 2019 C++ x64/x86 build tools

[√] Android Studio (version 2024.1) • Android Studio at C:\Program Files\Android\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.11+0--11852314)

[√] Connected device (2 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3880] • Edge (web) • edge • web-javascript • Microsoft Edge 127.0.2651.86

[√] Network resources • All expected network resources are available.

! Doctor found issues in 2 categories. Process finished with exit code 0

helin24 commented 2 months ago

@deakjahn can you send your logs to my email? The logs are located at Help > Show log in finder > File called idea.log. My email is helinx@google.com.

deakjahn commented 2 months ago

@helin24 As I said above, there's no log. I mean, there is one if I normally use the program but if I delete the log, start AS fresh, cause it to freeze immediately and kill it from Windows, there will be no idea.log written, the program probably doesn't get any chance to flush it. The only thing that appears is the folder above.

OK, that was yesterday, today I could create a log but only before the actual issue. I'll describe it in the mail.

helin24 commented 2 months ago

Sorry I missed that! I'm looking at the thread dumps now.

Are you able to remove all of the Flutter windows from your sidebar, and then only open the Flutter inspector?

Screenshot 2024-08-08 at 10 54 55 AM

The process for opening the inspector differs a bit from the other tool windows, so I'm wondering if this one also crashes.

deakjahn commented 2 months ago

Yes, that works. With no running application it does nothing (small wonder) but it doesn't crash, either.