Skip to content

Reporting Bug: Android Studio crashes when opening inspector #8043

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

Closed
pndychrg opened this issue Mar 25, 2025 · 16 comments
Closed

Reporting Bug: Android Studio crashes when opening inspector #8043

pndychrg opened this issue Mar 25, 2025 · 16 comments

Comments

@pndychrg
Copy link

When I open Flutter inspector in android studio, it crashes and requires a full restart of android studio
Android Studio Version : 2024.2.2 Patch 2
Linux Mint Version : Linux Mint 22.1 Cinnamon
Flutter Version : 3.27.4

@kenzieschmoll
Copy link
Member

@jwren @elliette

@jwren
Copy link
Member

jwren commented Mar 25, 2025

If you can, attach any logs from Android Studio or DevTools.

@elliette
Copy link
Member

Thanks for the report @pndychrg! Does it crash when you open any of the other DevTools panels, or only the Inspector? Thanks!

@elliette elliette added the waiting for customer response Auto-close if no response label Mar 25, 2025
@Ahmadajami
Copy link

DevTools Wont Give You Any Logs But Android Studio Does ?

@pndychrg
Copy link
Author

@elliette, Only flutter inspector is causing issues

@github-actions github-actions bot removed the waiting for customer response Auto-close if no response label Mar 26, 2025
@pndychrg
Copy link
Author

Crash Report :
plugins.txt
Extra plugins:
me.x150.intellij-code-screenshots (1.4.8)
com.github.catppuccin.jetbrains (3.4.1)
com.github.peppy.ppyjetbrainstheme (0.0.6)
com.markskelton.one-dark-theme (5.13.0)
org.kratosgado.tabout (1.2)
Dart (242.24931)
some.awesome (1.16)
com.intellij.plugins.vscodekeymap (242.20224.385)
io.flutter (83.0.3)

@elliette elliette added the P2 label Apr 2, 2025
@kenzieschmoll kenzieschmoll transferred this issue from flutter/devtools Apr 10, 2025
@HappiePlant
Copy link

HappiePlant commented Apr 15, 2025

I have the same issue with only the Dart and Flutter (latest version) plugin installed, I'm also on Linux (Fedora)

@jwren
Copy link
Member

jwren commented Apr 15, 2025

Please update to the latest Flutter SDK stable or beta, as well as the Flutter IJ plugin and confirm that the issue is still happening. Is it just that a restart is required, or that DevTools doesn't work at all. Any logs would be helpful.

@jwren jwren added this to the On Deck milestone Apr 15, 2025
@HappiePlant
Copy link

HappiePlant commented Apr 15, 2025

I've tried the latest versions of the Flutter SDK on stable and beta. Currently on

Flutter 3.32.0-0.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision eeb81b9a8a (4 days ago) • 2025-04-11 12:11:52 -0700
Engine • revision 72ee26e314 (6 days ago) • 2025-04-09 15:57:49 -0700
Tools • Dart 3.8.0 (build 3.8.0-278.1.beta) • DevTools 2.45.0

Opening any Flutter plugin page (Inspector, DevTools, DevTools Extensions and Deep Links) shows "Nothing to show" and then immediately freezes the IDE, crashing a few seconds later. So they are unusable for me :/
I've attached the Android Studio crash report below. Are there any more logs I can provide?

@jwren
Copy link
Member

jwren commented Apr 15, 2025

FYI @elliette @kenzieschmoll

@strangedreamsNY
Copy link

Getting this same problem, confirmed non-issue in Ladybug if that helps.

Flutter

Flutter 3.29.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ea121f8859 (4 days ago) • 2025-04-11 19:10:07 +0000
Engine • revision cf56914b32
Tools • Dart 3.7.2 • DevTools 2.42.3

System

Android Studio Meerkat | 2024.3.1 Patch 1
Build #AI-243.24978.46.2431.13208083, built on March 13, 2025
Runtime version: 21.0.5+-13047016-b750.29 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 5.15.0-122-generic
Linux Mint 21.2; glibc: 2.35
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 36
Registry:
  ide.experimental.ui=true
Non-Bundled Plugins:
  Dart (243.23654.44)
  IdeaVIM (2.20.0)
  io.flutter (83.0.4)
Current Desktop: X-Cinnamon

@HappiePlant
Copy link

Also wanted to confirm that these tools do work for me in VS Code

@strangedreamsNY
Copy link

Getting this same problem, confirmed non-issue in Ladybug if that helps.
...

Loaded up this morning, thought to check the plugin version of Flutter in my AS installation. It was at 83.0.4 and now, after the update, it's at 83.0.1 and the inspector is working? So rollback for the win?

Tried to edit/delete this comment. I was still on Ladybug when I tried to upgrade and didn't realize it. Ladybug is still fine. Upgraded the Flutter plugin to 85.2.3, but still having the same issue.

@strangedreamsNY
Copy link

Any updates or comments from the team on this? In case it wasn't clear from the description, this issue renders the flutter plugin completely inoperable for debugging/inspecting UI and more which basically means Android Studio Lovebug is a non-starter for doing any Flutter development on these Linux platforms.

@Rextrus
Copy link

Rextrus commented May 1, 2025

Can confirm this bug. Doesn't work with neither Android Studio, nor VSCode.

Using following flutter version on linux mint:
Flutter is already up to date on channel stable
Flutter 3.29.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ea121f8859 (3 weeks ago) • 2025-04-11 19:10:07 +0000
Engine • revision cf56914b32
Tools • Dart 3.7.2 • DevTools 2.42.3

Not sure if these logs may help (they appear when restarting the IDE):
``
--------------- S U M M A R Y ------------

Command Line: abort vfprintf -XX:ErrorFile=/home/username/java_error_in_studio_%p.log -XX:HeapDumpPath=/home/username/java_error_in_studio.hprof -Xms256m -Xmx2048m -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:CICompilerCount=2 -XX:+IgnoreUnrecognizedVMOptions -ea -Dsun.io.useCanonCaches=false -Dsun.java2d.metal=true -Djbr.catch.SIGABRT=true -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Djdk.nio.maxCachedBufferSize=2097152 -Djava.util.zip.use.nio.for.zip.file.access=true -Dkotlinx.coroutines.debug=off -XX:+UnlockDiagnosticVMOptions -XX:TieredOldPercentage=100000 -Dsun.tools.attach.tmp.only=true -Dawt.lock.fair=true -Djb.vmOptionsFile=/opt/android-studio/bin/studio64.vmoptions -Djava.system.class.loader=com.intellij.util.lang.PathClassLoader -Didea.vendor.name=Google -Didea.paths.selector=AndroidStudio2024.3 -Djna.boot.library.path=/opt/android-studio/lib/jna/amd64 -Dpty4j.preferred.native.folder=/opt/android-studio/lib/pty4j -Djna.nosys=true -Djna.noclasspath=true -Dintellij.platform.runtime.repository.path=/opt/android-studio/modules/module-descriptors.jar -Didea.platform.prefix=AndroidStudio -XX:FlightRecorderOptions=stackdepth=256 --add-opens=java.base/sun.net.www.protocol.https=ALL-UNNAMED -Djava.security.manager=allow -Dij.startup.error.report.url=https://issuetracker.google.com/issues/new?component=192708 -XX:CompileCommand=exclude,org.jetbrains.kotlin.serialization.deserialization.TypeDeserializer::simpleType -XX:CompileCommand=exclude,org.jetbrains.kotlin.serialization.deserialization.TypeDeserializer::toAttributes -Dsplash=true -Daether.connector.resumeDownloads=false -Dcompose.swing.render.on.graphics=true --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.ref=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED --add-opens=java.base/sun.net.dns=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/sun.nio.fs=ALL-UNNAMED --add-opens=java.base/sun.security.ssl=ALL-UNNAMED --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.desktop/com.sun.java.swing=ALL-UNNAMED --add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED --add-opens=java.desktop/java.awt=ALL-UNNAMED --add-opens=java.desktop/java.awt.dnd.peer=ALL-UNNAMED --add-opens=java.desktop/java.awt.event=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED --add-opens=java.desktop/java.awt.image=ALL-UNNAMED --add-opens=java.desktop/java.awt.peer=ALL-UNNAMED --add-opens=java.desktop/javax.swing=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text=ALL-UNNAMED --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED --add-opens=java.desktop/sun.awt=ALL-UNNAMED --add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED --add-opens=java.desktop/sun.awt.datatransfer=ALL-UNNAMED --add-opens=java.desktop/sun.awt.image=ALL-UNNAMED --add-opens=java.desktop/sun.font=ALL-UNNAMED --add-opens=java.desktop/sun.java2d=ALL-UNNAMED --add-opens=java.desktop/sun.swing=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED --add-opens=jdk.jdi/com.sun.tools.jdi=ALL-UNNAMED -Dide.native.launcher=true com.android.tools.idea.MainWrapper

Host: AMD Ryzen 7 3700X 8-Core Processor, 32 cores, 15G, Linux Mint 22.1 Xia
Time: Thu May 1 09:54:27 2025 CEST elapsed time: 107.997606 seconds (0d 0h 1m 47s)

--------------- T H R E A D ---------------

Current thread (0x00005600db17b720): JavaThread "IPC Server Thread" daemon [_thread_in_native, id=5335, stack(0x0000798243400000,0x0000798243500000) (1024K)]

Stack: [0x0000798243400000,0x0000798243500000], sp=0x00007982434fe090, free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libc.so.6+0x9eb2c] pthread_kill+0x11c
C [libc.so.6+0x4527e] gsignal+0x1e
C [libc.so.6+0x288ff] abort+0xdf
C [libc.so.6+0x297b6]
C [libc.so.6+0xa8ff5]
C [libc.so.6+0xab38c]
C [libc.so.6+0xaddae] _libc_free+0x7e
C [libipc.so+0xdfc81] platinum::ipc::SharedMemoryChannel::SharedMemoryChannel(base::Pickle const&)+0x2d1
C [libipc.so+0xdfe7b] platinum::ipc::SharedMemoryInputChannel::SharedMemoryInputChannel(base::Pickle const&)+0x3b
C [libipc.so+0xe0a6a] platinum::ipc::SharedMemoryTransport::SharedMemoryTransport(base::Pickle const&, platinum::ipc::TransportMode)+0x19a
C [libipc.so+0xb24f8] ClientConnection::ClientConnection(base::Pickle const&)+0x248
C [libipc.so+0xb47d0] JavaClientConnection::JavaClientConnection(JNIEnv
, _jobject, _jobject*, base::Pickle const&)+0x30
C [libipc.so+0xb4515] Java_com_teamdev_jxbrowser_internal_rpc_transport_IpcLibrary_openConnection+0x95
j com.teamdev.jxbrowser.internal.rpc.transport.IpcLibrary.openConnection([BLcom/teamdev/jxbrowser/internal/rpc/transport/SharedMemoryObserver;Ljava/lang/ThreadGroup;)Ljava/lang/String;+0
j com.teamdev.jxbrowser.internal.rpc.transport.SharedMemoryTransport.([B)V+24
j com.teamdev.jxbrowser.internal.rpc.transport.ConnectionServer$AcceptConnections.acceptConnection(Ljava/net/Socket;)Lcom/teamdev/jxbrowser/internal/rpc/transport/Connection;+19
j com.teamdev.jxbrowser.internal.rpc.transport.ConnectionServer$AcceptConnections.run()V+42
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 [email protected]
j java.lang.Thread.run()V+19 [email protected]
v ~StubRoutines::call_stub 0x000079830db38cc6
V [libjvm.so+0xaa6a3b] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x2db
V [libjvm.so+0xaa5d06] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x136
V [libjvm.so+0xaa5dc2] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x52
V [libjvm.so+0xbafb6b] thread_entry(JavaThread*, JavaThread*)+0x9b
V [libjvm.so+0xabc330] JavaThread::thread_main_inner()+0x90
V [libjvm.so+0x10110ce] Thread::call_run()+0xae
V [libjvm.so+0xe5e434] thread_native_entry(Thread*)+0x114
C [libc.so.6+0x9caa4]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.teamdev.jxbrowser.internal.rpc.transport.IpcLibrary.openConnection([BLcom/teamdev/jxbrowser/internal/rpc/transport/SharedMemoryObserver;Ljava/lang/ThreadGroup;)Ljava/lang/String;+0
j com.teamdev.jxbrowser.internal.rpc.transport.SharedMemoryTransport.([B)V+24
j com.teamdev.jxbrowser.internal.rpc.transport.ConnectionServer$AcceptConnections.acceptConnection(Ljava/net/Socket;)Lcom/teamdev/jxbrowser/internal/rpc/transport/Connection;+19
j com.teamdev.jxbrowser.internal.rpc.transport.ConnectionServer$AcceptConnections.run()V+42
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 [email protected]
j java.lang.Thread.run()V+19 [email protected]
v ~StubRoutines::call_stub 0x000079830db38cc6
``

@jwren
Copy link
Member

jwren commented May 20, 2025

Closing as a duplicate of #8010

@jwren jwren closed this as completed May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants