IntelliJ IDEA 2021.2: Flutter app doesn't stop on Android 10 phone, IntelliJ hangs

Answered

Hi,

I'm using IntelliJ IDEA 2021.2 (Ultimate Edition) on macOS with the latest Flutter plugin (59.0.4). In my Flutter project (Channel dev, 2.5.0-1.0.pre), occasionally I can't stop an app that runs on my Android 10 phone. That's why I can't start it again, either. Then IntelliJ hangs, neither a "Quit" or "File - Invalidate Caches - Just Restart" do the trick; I have to force-quit it.

How do I fix this?

The screenshot below shows that:

  1. The app is finished...
  2. ...but the skull shows it's still lingering...
  3. ...and the stop button is also active. I can press it multiple times, but nothing happens.
  4. I can't start the app, either.

 

Here are my details:

  • Build #IU-212.4746.92
  • Runtime version: 11.0.11+9-b1504.13 x86_64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • macOS 11.5.1
  • GC: ParNew, ConcurrentMarkSweep
  • Memory: 6060M
  • Cores: 12
  • Registry: ide.mac.alt.mnemonic.without.ctrl=false, debugger.watches.in.variables=false, ide.allow.merge.buttons=false, ide.balloon.shadow.size=0
  • Non-Bundled Plugins: bundled-intellij-idea-help (212.4746.92), com.dubreuia (2.2.0), com.softwareco.intellij.plugin (2.4.9), google-java-format (1.10.0.0), org.intellij.RegexpTester (1.0.8), PlantUML integration (5.5.1), com.vladsch.idea.multimarkdown (3.0.202.112), com.intellij.plugins.webcomponents (212.4746.57), intellij.prettierJS (212.4746.57), lermitage.intellij.extra.icons (1.59.0.203), JRebelPlugin (2021.3.0), Dart (212.4746.57), io.flutter (59.0.4), pl.pszklarska.pubversionchecker (1.2.5), org.mapstruct.intellij (1.2.4), com.sensei.solutions (2021.2.2), izhangzhihao.rainbow.brackets (6.19), zielu.gittoolbox (212.6.6)
  • Kotlin: 212-1.5.10-release-IJ4746.92
0
9 comments

Hello,

Could you provide the IDE logs after restarting and reproducing the problem? (Help | Collect Logs and Diagnostic Data)

The files can be uploaded at https://uploads.jetbrains.com/ (do not forget to specify the UploadID)

0

Will do the next time that happens.

0

That was quick - just happened again. I collected the logs before and after the restart.

Upload id: 2021_08_03_DxnPkGaZavfa7JEB (file: idea-logs.zip)

0

Please check if the problem reproduces with these plugins disabled:

IntelliJ IDEA Help (212.4746.92), 
Save Actions (2.2.0), 
Code Time (2.4.9), 
google-java-format (1.10.0.0), 
RegexpTester (1.0.8), 
PlantUML integration (5.5.1), 
Markdown Navigator Enhanced (3.0.202.112), 
Polymer & Web Components (212.4746.57), 
Prettier (212.4746.57), 
Extra Icons (1.59.0.203), 
JRebel and XRebel for IntelliJ (2021.3.0), 
Dart (212.4746.57), 
Flutter Pub Version Checker (1.2.5), 
MapStruct Support (1.2.4), 
Sensei by Secure Code Warrior® (2021.2.2), 
Rainbow Brackets (6.19), 
GitToolBox (212.6.6) 
0

I disabled all the ones you mentioned - except for Dart. Flutter uses Dart, so I need that. 😁

0

It happened again. This time the Flutter app ran in a simulator:

Upload id: 2021_08_18_HadmfAsY2kLL8pbu (file: Flutter app does not stop.mp4)

  • IntelliJ IDEA 2021.2 (Ultimate Edition)
  • Build #IU-212.4746.92, built on July 27, 2021
  • Runtime version: 11.0.11+9-b1504.13 x86_64
  • VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • macOS 11.5.2
  • GC: ParNew, ConcurrentMarkSweep
  • Memory: 6060M
  • Cores: 12
  • Registry: ide.mac.alt.mnemonic.without.ctrl=false, debugger.watches.in.variables=false, ide.allow.merge.buttons=false, ide.balloon.shadow.size=0
  • Non-Bundled Plugins: JRebelPlugin (2021.3.1), Dart (212.4746.57), io.flutter (59.0.4)
  • Kotlin: 212-1.5.10-release-IJ4746.92
0

1) Are there any related exceptions in idea.log file after clicking on stop button? (Help | Show Log in ...)

2) Does the IDE hang after a while after reproducing the problem? If so, please capture several thread dumps via jstack before killing the process. (https://intellij-support.jetbrains.com/hc/en-us/articles/206544899-Getting-a-thread-dump-when-IDE-hangs-and-doesn-t-respond)

0

Here's what's in the log file from the incident. I probably stopped the application at 13:05. I have 35 of these "ution.process.OSProcessHandler - Process has been already terminated:" lines over a span of 3 minutes and 18 seconds.

2021-08-18 12:57:53,728 [11840443] INFO - yzer.DartAnalysisServerService - edit_getAssists() took longer than 1000ms, for file /Users/karsten/workspaces/yhigh/apps/y_mobile/lib/shared/util/s_device.dart, Dart SDK version: 2.14.0-377.4.beta
2021-08-18 13:00:51,341 [12018056] INFO - tellij.xml.Html5SchemaProvider - HTML5_SCHEMA_LOCATION = /Applications/IntelliJ IDEA.app/Contents/lib/platform-impl.jar!/resources/html5-schema/html5.rnc
2021-08-18 13:05:44,439 [12311154] INFO - .FlutterAppDaemonEventListener - app shutdown took longer than 100ms
2021-08-18 13:08:03,893 [12450608] WARN - ution.process.OSProcessHandler - Process has been already terminated: /Users/karsten/Applications/flutter/bin/flutter --no-color run --machine --track-widget-creation --device-id=emulator-5554 --start-paused --dart-define=flutter.inspector.structuredErrors=true --devtools-server-address=http://127.0.0.1:9100 lib/main.dart
2021-08-18 13:09:14,830 [12521545] WARN - ution.process.OSProcessHandler - Process has been already terminated: /Users/karsten/Applications/flutter/bin/flutter --no-color run --machine --track-widget-creation --device-id=emulator-5554 --start-paused --dart-define=flutter.inspector.structuredErrors=true --devtools-server-address=http://127.0.0.1:9100 lib/main.dart

I uploaded the full log file:

Upload id: 2021_08_19_V52YoixfbRzfKTKQ (file: idea.log.1.zip)

I'll create the thread dumps next time it happens.

0

Looks like it is a known bug in the Flutter plugin. Please follow https://github.com/flutter/flutter-intellij/issues/5695 for updates.

0

Please sign in to leave a comment.