FlutterJsonBeanFactory icon indicating copy to clipboard operation
FlutterJsonBeanFactory copied to clipboard

[Bug report] Android Studio Ladybug Feature Drop OutOfMemoryError

Open yfming93 opened this issue 8 months ago • 0 comments

Version

5.2.2;5.1.7

Platforms

Android, dart, iOS

Device Model

Android Studio

flutter info

mingo@macdembp-2 ~ % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.27.2, on macOS 14.4.1 23E224 darwin-x64, locale zh-Hans-CN)
    ! Flutter version 3.27.2 on channel [user-branch] at /Users/mingo/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.89.1)
[✓] Connected device (4 available)

How to reproduce?

java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached at java.base/java.lang.Thread.start0(Native Method) at java.base/java.lang.Thread.start(Unknown Source) at java.base/java.lang.System$2.start(Unknown Source) at java.base/jdk.internal.vm.SharedThreadContainer.start(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source) at com.intellij.util.concurrency.AppScheduledExecutorService$BackendThreadPoolExecutor.execute(AppScheduledExecutorService.java:148) at com.intellij.util.concurrency.BoundedTaskExecutor.wrapAndExecute(BoundedTaskExecutor.java:238) at com.intellij.util.concurrency.BoundedTaskExecutor.execute(BoundedTaskExecutor.java:162) at java.base/java.util.concurrent.CompletableFuture.asyncRunStage(Unknown Source) at java.base/java.util.concurrent.CompletableFuture.runAsync(Unknown Source) at com.intellij.internal.statistic.eventLog.LocalStatisticsFileEventLogger.logAsync(LocalStatisticsFileEventLogger.kt:38) at com.intellij.internal.statistic.eventLog.LocalStatisticsFileEventLogger.logAsync(LocalStatisticsFileEventLogger.kt:62) at com.intellij.internal.statistic.eventLog.events.VarargEventId.log(EventId.kt:173) at com.intellij.featureStatistics.fusCollectors.LifecycleUsageTriggerCollector.onError(LifecycleUsageTriggerCollector.java:189) at com.intellij.idea.IdeaLogger.reportToFus(IdeaLogger.java:96) at com.intellij.idea.IdeaLogger.error(IdeaLogger.java:148) at com.intellij.openapi.diagnostic.Logger.error(Logger.java:436) at com.intellij.openapi.editor.impl.DocumentImpl$DelayedExceptions.register(DocumentImpl.java:845) at com.intellij.openapi.editor.impl.DocumentImpl.lambda$beforeChangedUpdate$0(DocumentImpl.java:886) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeNonCancelableSection$3(CoreProgressManager.java:269) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:735) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:691) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$computeInNonCancelableSection$4(CoreProgressManager.java:277) at com.intellij.openapi.progress.Cancellation.computeInNonCancelableSection(Cancellation.java:62) at com.intellij.openapi.progress.impl.CoreProgressManager.computeInNonCancelableSection(CoreProgressManager.java:277) at com.intellij.openapi.progress.impl.CoreProgressManager.executeNonCancelableSection(CoreProgressManager.java:268) at com.intellij.openapi.editor.impl.DocumentImpl.beforeChangedUpdate(DocumentImpl.java:880) at com.intellij.openapi.editor.impl.DocumentImpl.updateText(DocumentImpl.java:819) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:665) at com.intellij.openapi.editor.impl.DocumentImpl.replaceString(DocumentImpl.java:598) at com.intellij.psi.formatter.DocumentBasedFormattingModel.replaceWhiteSpace(DocumentBasedFormattingModel.java:146) at com.intellij.formatting.engine.FormatProcessorUtils.replaceWhiteSpace(FormatProcessorUtils.java:31) at com.intellij.formatting.engine.ApplyChangesState.doIteration(ApplyChangesState.java:162) at com.intellij.formatting.engine.State.iteration(State.java:28) at com.intellij.formatting.engine.StateProcessor.iteration(StateProcessor.java:29) at com.intellij.formatting.FormatProcessor.iteration(FormatProcessor.java:94) at com.intellij.formatting.FormatterImpl$MyFormattingTask.iteration(FormatterImpl.java:682) at com.intellij.formatting.FormatterImpl.execute(FormatterImpl.java:261) at com.intellij.formatting.FormatterImpl.format(FormatterImpl.java:229) at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processRange(CodeFormatterFacade.java:115) at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processElement(CodeFormatterFacade.java:62) at com.intellij.formatting.service.CoreFormattingService.formatElement(CoreFormattingService.java:45) at com.intellij.formatting.service.FormattingServiceUtil.formatElement(FormattingServiceUtil.java:67) at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:82) at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:66) at com.github.zhangruiyu.flutterjsonbeanfactory.utils.VirtualFileExtKt.commitContent$lambda-2$lambda-1$lambda-0(VirtualFileExt.kt:24) at com.intellij.openapi.command.impl.CoreCommandProcessor.runUndoTransparentAction(CoreCommandProcessor.java:383) at com.github.zhangruiyu.flutterjsonbeanfactory.utils.VirtualFileExtKt.commitContent(VirtualFileExt.kt:23) at com.github.zhangruiyu.flutterjsonbeanfactory.file.FileHelpers$generateAllDartEntityHelper$1$1$3.invoke(FileHelpers.kt:151) at com.github.zhangruiyu.flutterjsonbeanfactory.file.FileHelpers$generateAllDartEntityHelper$1$1$3.invoke(FileHelpers.kt:146) at com.github.zhangruiyu.flutterjsonbeanfactory.file.FileHelpers.getEntityHelperFile(FileHelpers.kt:70) at com.github.zhangruiyu.flutterjsonbeanfactory.file.FileHelpers.generateAllDartEntityHelper$lambda-7(FileHelpers.kt:146) at com.intellij.openapi.command.WriteCommandAction.lambda$runWriteCommandAction$4(WriteCommandAction.java:341) at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$doRunWriteCommandAction$1(WriteCommandAction.java:147) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:318) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:890) at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.lambda$doRunWriteCommandAction$2(WriteCommandAction.java:145) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:226) at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:188) at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.doRunWriteCommandAction(WriteCommandAction.java:154) at com.intellij.openapi.command.WriteCommandAction$BuilderImpl.run(WriteCommandAction.java:121) at com.intellij.openapi.command.WriteCommandAction.runWriteCommandAction(WriteCommandAction.java:341) at com.intellij.openapi.command.WriteCommandAction.runWriteCommandAction(WriteCommandAction.java:329) at com.github.zhangruiyu.flutterjsonbeanfactory.file.FileHelpers.generateAllDartEntityHelper(FileHelpers.kt:117) at com.github.zhangruiyu.flutterjsonbeanfactory.action.dart_to_helper.FlutterBeanFactoryAction$Companion$generateAllFile$2.invoke(FlutterBeanFactoryAction.kt:59) at com.github.zhangruiyu.flutterjsonbeanfactory.action.dart_to_helper.FlutterBeanFactoryAction$Companion$generateAllFile$2.invoke(FlutterBeanFactoryAction.kt:44) at com.github.zhangruiyu.flutterjsonbeanfactory.file.FileHelpers.getGeneratedFileRun$lambda-3(FileHelpers.kt:103) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:318) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:890) at com.github.zhangruiyu.flutterjsonbeanfactory.file.FileHelpers.getGeneratedFileRun(FileHelpers.kt:102) at com.github.zhangruiyu.flutterjsonbeanfactory.action.dart_to_helper.FlutterBeanFactoryAction$Companion.generateAllFile(FlutterBeanFactoryAction.kt:44) at com.github.zhangruiyu.flutterjsonbeanfactory.action.dart_to_helper.FlutterBeanFactoryAction.actionPerformed(FlutterBeanFactoryAction.kt:21) at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.kt:345) at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:32) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$actionProcessor$1.performAction(IdeKeyEventDispatcher.kt:496) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner$lambda$4$lambda$3(IdeKeyEventDispatcher.kt:845) at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner$lambda$4(IdeKeyEventDispatcher.kt:845) at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.performWithActionCallbacks(ActionManagerImpl.kt:1168) at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.kt:362) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.doPerformActionInner(IdeKeyEventDispatcher.kt:843) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcherKt.access$doPerformActionInner(IdeKeyEventDispatcher.kt:1) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction$intellij_platform_ide_impl(IdeKeyEventDispatcher.kt:572) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.kt:509) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.kt:448) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.kt:441) at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.kt:303) at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.kt:620) at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$15(IdeEventQueue.kt:582) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:582) at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:73) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1$1.compute(IdeEventQueue.kt:357) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1$1.compute(IdeEventQueue.kt:356) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:843) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.invoke(IdeEventQueue.kt:356) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.invoke(IdeEventQueue.kt:351) at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke$lambda$0(IdeEventQueue.kt:1035) at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24) at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84) at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:910) at com.intellij.openapi.application.WriteIntentReadAction.compute(WriteIntentReadAction.java:55) at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23) at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke(IdeEventQueue.kt:1035) at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke(IdeEventQueue.kt:1035) at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1036) at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114) at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1036) at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$10(IdeEventQueue.kt:351) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:397) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Logs


Example code (optional)

Android Studio Ladybug Feature Drop | 2024.2.2
Build #AI-242.23726.103.2422.12816248, built on December 18, 2024
Runtime version: 21.0.4+-12422083-b607.1 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 14.4.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 6144M
Cores: 12
Metal Rendering is ON
Registry:
  ide.instant.shutdown=false
  debugger.mayBringFrameToFrontOnBreakpoint=false
  documentation.show.toolbar=true
  ide.experimental.ui=true
  i18n.locale=
  terminal.new.ui=true
Non-Bundled Plugins:
  idea.plugin.protoeditor (242.23339.11)
  com.intellij.marketplace (242.24335)
  com.intellij.plugins.monokai.colorscheme (242.20224.159)
  color.scheme.GapStyle (4.1)
  monokai-pro (1.10)
  GrepConsole (13.2.0-IJ2023.3)
  indent-rainbow.indent-rainbow (2.2.0)
  com.tao.getx (3.5.2)
  com.shuzijun.markdown-editor (2.0.5)
  String Manipulation (9.15.0)
  com.joutvhu.intellij.dart-scripts (1.242.0)
  Batch Scripts Support (1.0.13)
  com.markskelton.one-dark-theme (5.13.0)
  com.baidu.comate (3.1.2)
  com.xiaolvpuzi.tool.smartinputpro (2.0.3)
  pl.pszklarska.pubversionchecker (1.3.5)
  zielu.gittoolbox (600.0.9+242)
  com.developerphil.adbidea (1.6.19)
  Dart (242.24931)
  cn.yiiguxing.plugin.translate (3.6.8)
  io.flutter (83.0.3)
  com.ruiyu.ruiyu (5.1.7)
  com.crzsc.FlutterAssetsGenerator (2.4.2)
  shop.itbug.FlutterCheckVersionX (5.2.1.242)
  com.github.dinbtechit.vscodetheme (1.11.0)
  com.nasller.CodeGlancePro (1.9.3)
  izhangzhihao.rainbow.brackets (2024.2.8-241)
  com.aiwan.flutter-kit (2024.1.5)

Contact

No response

yfming93 avatar Feb 10 '25 08:02 yfming93