Memory Profiler load failure in IDEA
See original GitHub issueWhat happened
- Create a new Flutter Project using IntelliJ Ultimate
- Open Android Emulator (haven’t tried iOS)
- Run/Debug Flutter project
- Builds fine, then deployed to app
- When app is launched, see Exception pop up in IntelliJ.
- Perhaps related? Unable to see the Widget tree in the Flutter Inspector.
Solutions Tried / Other bits
- I tried disabling the
--track-widget-creation
option. No effect. - Everything seems to be working, except the Widget tree (setting break points, performance view, etc).
- No errors received in Android Studio, Widget tree shown.
- Tried Beta / Dev / Master branches, none worked.
Overall, I’d love to use IntelliJ Ultimate instead of Android Studio, since I work in a few different languages and it’s a pain to constantly switch IDEs / reconfigure all settings / etc.
Version information
IntelliJ IDEA 2018.2.5
• Flutter plugin io.flutter 30.0.2
• Dart plugin 182.4999
Flutter 0.10.2 • channel dev • https://github.com/flutter/flutter.git Framework • revision d8cbb80206 (11 days ago) • 2018-10-26 01:30:21 -0400 Engine • revision 6c2ade9fa2 Tools • Dart 2.1.0-dev.8.0.flutter-bf26f760b1
Exception
null
java.lang.NoClassDefFoundError: com/android/tools/adtui/model/updater/Updatable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:278)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:274)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:243)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:142)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:74)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at io.flutter.view.InspectorMemoryTab.<init>(InspectorMemoryTab.java:65)
at io.flutter.view.FlutterView.addMemoryTab(FlutterView.java:343)
at io.flutter.view.FlutterView.addInspectorViewContent(FlutterView.java:236)
at io.flutter.view.FlutterView.debugActiveHelper(FlutterView.java:409)
at io.flutter.view.FlutterView.lambda$debugActive$2(FlutterView.java:369)
at io.flutter.utils.AsyncUtils.lambda$null$0(AsyncUtils.java:35)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:447)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:431)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:415)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:722)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ClassNotFoundException: com.android.tools.adtui.model.updater.Updatable PluginClassLoader[io.flutter, 30.0.2] com.intellij.ide.plugins.cl.PluginClassLoader@8f3db52
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 39 more
Flutter Doctor
[✓] Flutter (Channel dev, v0.10.2, on Mac OS X 10.14.1 18B75, locale en-US)
• Flutter version 0.10.2 at /Users/phillywiggins/lab/flutter
• Framework revision d8cbb80206 (11 days ago), 2018-10-26 01:30:21 -0400
• Engine revision 6c2ade9fa2
• Dart version 2.1.0-dev.8.0.flutter-bf26f760b1
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/phillywiggins/Library/Android/sdk
• Android NDK at /Users/phillywiggins/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/phillywiggins/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.5)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 30.0.2
• Dart plugin version 182.4999
[✓] IntelliJ IDEA Community Edition (version 2018.2.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.4129.13
[!] VS Code (version 1.28.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android P (API 27) (emulator)
! Doctor found issues in 1 category.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Reporting performance problems
Memory Leak or High Memory Consumption. If you can continue working with the ... Check idea.log to ensure that profiler agent was loaded....
Read more >Scanning for memory issues in your data pipelines - Medium
A CPU struggling to keep up with the load typically appears as your system 'slowing down'. However, memory issues like leaks and high...
Read more >Memray is a memory profiler for Python - GitHub
Memray is a memory profiler for Python. It can track memory allocations in Python code, in native extension modules, and in the Python...
Read more >Improve memory usage with the Memory Profiler in Unity ...
Check out the Memory Profiler documentation here: https://docs.unity3d.com/Packages/com.unity. memoryprofiler @latestDownload the assets here: ...
Read more >memory-profiler | Substrate_ Docs - Substrate Documentation
During analysis the whole data file has to be loaded into memory. If you don't have enough RAM and you'll try to load...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well, it shouldn’t crash like that so actually, thanks for the catch!
We should rule this out as a general issue, or address in the M31 timeframe.