MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
967 stars 133 forks source link

IDEA Plugin: Reopening Project give IDE Error #630

Closed LordTylus closed 1 year ago

LordTylus commented 2 years ago

Please ensure you have given all the following requested information in your report.

Issue details

Today I have tried out RoboVM on a M1 Mac (freshly installed) along with the latest Apple Silicon Build of IDEA (2021.3.2)

I am loading a multi module project (<=100 Modules) in, and was able to perform normal gradle build without issue.

When closing and opening project I get a whole lot of com.intellij.serviceContainer.AlreadyDisposedException: Already disposed exceptions.

About 15000 of them

According to @dkimitsa its deprecated code and should only really happen when not starting freshly.

Reproduction steps/code

Freshly start IDEA Select your project Close Project reopen your project. shows bubble with errors.

Configuration

Please provide the build system, version(s), and targets affected.

IDEA: 2021.3.2 (Apple Silicon) OS: macOS Monterey (12.2.1)

Build Tools:

Versions:

Please provide the version of RoboVM, XCode and JDK used

Build Targets:

Please provide the build targets this issue is seen on if applicable. e.g. iPhone 4s Simulator 32bit


Stacktrace

{\rtf1\ansi\ansicpg1252\cocoartf2636
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0

\f0\fs24 \cf0 2022-03-11 12:46:56,590 [ 151695]   INFO - indexing.UnindexedFilesUpdater - Cancelled indexing of cmtoolkit \
2022-03-11 12:46:56,592 [ 151697]   INFO - ij.psi.search.LogFileTypeIndex - File type index snapshot dropped \
2022-03-11 12:46:56,746 [ 151851]  ERROR - pplication.impl.LaterInvocator - Already disposed: Project(name=cmtoolkit, containerState=DISPOSE_COMPLETED, componentStore=/Users/m.roekker/cmtoolkit) (disposed) \
com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=cmtoolkit, containerState=DISPOSE_COMPLETED, componentStore=/Users/m.roekker/cmtoolkit) (disposed)\
    at com.intellij.serviceContainer.ComponentManagerImpl.checkState(ComponentManagerImpl.kt:184)\
    at com.intellij.serviceContainer.ComponentManagerImpl.getComponent(ComponentManagerImpl.kt:533)\
    at com.intellij.openapi.module.ModuleManager.getInstance(ModuleManager.java:33)\
    at org.robovm.idea.components.RoboVmSdkUpdateComponent.lambda$updateModule$0(RoboVmSdkUpdateComponent.java:66)\
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:947)\
    at org.robovm.idea.components.RoboVmSdkUpdateComponent.lambda$updateModule$1(RoboVmSdkUpdateComponent.java:63)\
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:214)\
    at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)\
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:196)\
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)\
    at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:348)\
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:82)\
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:131)\
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)\
    at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:187)\
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)\
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)\
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)\
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)\
    at java.base/java.security.AccessController.doPrivileged(Native Method)\
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)\
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)\
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:891)\
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:760)\
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:447)\
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:818)\
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:446)\
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:805)\
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:492)\
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)\
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)\
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)\
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)\
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)\
2022-03-11 12:46:56,746 [ 151851]  ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 2021.3.2  Build #IC-213.6777.52 \
2022-03-11 12:46:56,746 [ 151851]  ERROR - pplication.impl.LaterInvocator - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. \
2022-03-11 12:46:56,746 [ 151851]  ERROR - pplication.impl.LaterInvocator - OS: Mac OS X \
2022-03-11 12:46:56,746 [ 151851]  ERROR - pplication.impl.LaterInvocator - Plugin to blame: MobiVM version: 2.3.15 \
2022-03-11 12:46:56,746 [ 151851]  ERROR - pplication.impl.LaterInvocator - Last Action:  \
2022-03-11 12:46:56,748 [ 151853]  ERROR - pplication.impl.LaterInvocator - Exception 'com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=cmtoolkit, containerState=DISPOSE_COMPLETED, componentStore=/Users/m.roekker/cmtoolkit) (disposed)' was reported 10 times \
2022-03-11 12:46:56,748 [ 151853]  ERROR - pplication.impl.LaterInvocator - Exception 'com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=cmtoolkit, containerState=DISPOSE_COMPLETED, componentStore=/Users/m.roekker/cmtoolkit) (disposed)' was reported 20 times \
2022-03-11 12:46:56,749 [ 151854]  ERROR - pplication.impl.LaterInvocator - Exception 'com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=cmtoolkit, containerState=DISPOSE_COMPLETED, componentStore=/Users/m.roekker/cmtoolkit) (disposed)' was reported 30 times \
2022-03-11 12:46:56,749 [ 151854]  ERROR - pplication.impl.LaterInvocator - Exception 'com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=cmtoolkit, containerState=DISPOSE_COMPLETED, componentStore=/Users/m.roekker/cmtoolkit) (disposed)' was reported 40 times \
2022-03-11 12:46:56,749 [ 151854]  ERROR - pplication.impl.LaterInvocator - Exception 'com.intellij.serviceContainer.AlreadyDisposedException: Already disposed: Project(name=cmtoolkit, containerState=DISPOSE_COMPLETED, componentStore=/Users/m.roekker/cmtoolkit) (disposed)' was reported 50 times \
}