intellij-openshift-connector icon indicating copy to clipboard operation
intellij-openshift-connector copied to clipboard

Closing and reopening Intellij project breaks Run tool window

Open martinszuc opened this issue 1 year ago • 0 comments

[kind/bug]

What versions of software are you using?

  • Operating System: Fedora 38
  • IntelliJ version: 2023.2 Ultimate
  • OpenShift version: 1.7.0 SNAPSHOT

Bug

Closing and reopening IJ project somehow blocks Run tool window, which is for example called by About button on openshift cluster: 03-ONLYTHIS-About-doesnt-work-after-reopening-project

And this tool window should show up. run

Steps to reproduce

  • runIde
  • Create Ide project
  • Close project
  • Open project
  • Click About button on openshift cluster in tree => doesnt show up

Fixes itself by

  • Restart ide (exit and ./gradlew runIde)
  • We login to cluster again, and reopen Ide project

Any logs, error output, etc?

2023-11-09 20:01:37 62431] INFO - #c.i.u.g.s.GistStorageImpl - Cleaning old huge-gists dirs from [/home/mszuc/projects/martin/intellij-openshift-connector/build/idea-sandbox/system/caches/huge-gists] ...

  • According to timestamps here I clicked the About button (2023-11-09 20:02:10) but the next logs are from closing the IDE. So i believe this bug did not leave much in stacktrace.

2023-11-09 20:02:44,619 [ ,499 [ 129551] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files 2023-11-09 20:02:44,753 [ 129685] INFO - #c.i.u.s.SvgCacheManager - SVG icon cache is closed 2023-11-09 20:02:44,756 [ 129688] INFO - #c.i.i.s.e.u.EventLogExternalUploader - Started external process for uploading event log 2023-11-09 20:02:44,847 [ 129779] INFO - #c.j.r.f.FollowMeManager - Unregister user with id: 0 (name: 'mszuc', clientId: Host) 2023-11-09 20:02:44,848 [ 129780] INFO - #c.i.o.w.i.WindowManagerImpl - === Release(true) frame on closed project === 2023-11-09 20:02:44,852 [ 129784] INFO - #com.android.tools.idea.adblib.AndroidAdbChannelProvider - Unregistering project from adblib channel provider: Project(name=untitled5, containerState=DISPOSE_IN_PROGRESS, componentStore=/home/mszuc/IdeaProjects/untitled5) (disposed) 2023-11-09 20:02:44,861 [ 129793] INFO - #o.j.k.i.s.r.KotlinCompilerReferenceIndexStorage - KCRI storage is closed (didn't exist) 2023-11-09 20:02:44,862 [ 129794] INFO - #c.i.c.b.CompilerReferenceServiceBase - backward reference index reader is closed (didn't exist) 2023-11-09 20:02:44,871 [ 129803] INFO - c.j.r.f.u.RdCoroutineScope - RdCoroutineHost has been reset 2023-11-09 20:02:44,872 [ 129804] INFO - c.j.r.f.u.RdCoroutineScope - RdCoroutineHost disposed 2023-11-09 20:02:44,890 [ 129822] INFO - #c.i.o.v.i.l.NativeFileWatcherImpl - Watcher terminated with exit code 0 2023-11-09 20:02:44,892 [ 129824] INFO - #o.j.i.BuiltInServer - web server stopped 2023-11-09 20:02:44,896 [ 129828] INFO - #c.j.r.p.c.p.w.s.WireStorage - Terminate Wire Storage lifetime 2023-11-09 20:02:44,896 [ 129828] INFO - #c.i.o.f.i.FileTypeDetectionService - 1 auto-detected files. Detection took 12 ms 2023-11-09 20:02:44,900 [ 129832] INFO - #c.i.u.i.FileBasedIndexImpl - Index dispose started 2023-11-09 20:02:44,935 [ 129867] INFO - #c.i.p.s.StubIndexImpl - StubIndexExtension-s were unloaded 2023-11-09 20:02:44,935 [ 129867] INFO - #c.i.p.s.SerializationManagerImpl - Start shutting down /home/mszuc/projects/martin/intellij-openshift-connector/build/idea-sandbox/system/index/rep.names 2023-11-09 20:02:44,936 [ 129868] INFO - #c.i.p.s.SerializationManagerImpl - Finished shutting down /home/mszuc/projects/martin/intellij-openshift-connector/build/idea-sandbox/system/index/rep.names 2023-11-09 20:02:44,937 [ 129869] INFO - #c.i.u.i.FileBasedIndexImpl - Index dispose completed in 37ms. 2023-11-09 20:02:44,954 [ 129886] INFO - #c.i.o.v.n.p.PersistentFSImpl - VFS dispose started 2023-11-09 20:02:44,956 [ 129888] INFO - #c.i.o.v.n.p.PersistentFSImpl - VFS dispose completed in 2ms. 2023-11-09 20:02:44,984 [ 129916] SEVERE - #c.i.o.u.ObjectTree - Memory leak detected: 'com.intellij.terminal.TerminalExecutionConsole@1397eea3' (class com.intellij.terminal.TerminalExecutionConsole) was registered in Disposer as a child of 'ROOT_DISPOSABLE' (class com.intellij.openapi.util.Disposer$2) but wasn't disposed. Register it with a proper parentDisposable or ensure that it's always disposed by direct Disposer.dispose call. See https://jetbrains.org/intellij/sdk/docs/basics/disposers.html for more details. The corresponding Disposer.register() stacktrace is shown as the cause:

java.lang.RuntimeException: Memory leak detected: 'com.intellij.terminal.TerminalExecutionConsole@1397eea3' (class com.intellij.terminal.TerminalExecutionConsole) was registered in Disposer as a child of 'ROOT_DISPOSABLE' (class com.intellij.openapi.util.Disposer$2) but wasn't disposed. Register it with a proper parentDisposable or ensure that it's always disposed by direct Disposer.dispose call. See https://jetbrains.org/intellij/sdk/docs/basics/disposers.html for more details. The corresponding Disposer.register() stacktrace is shown as the cause:

at com.intellij.openapi.util.ObjectNode.assertNoChildren(ObjectNode.java:45)
at com.intellij.openapi.util.ObjectTree.assertIsEmpty(ObjectTree.java:218)
at com.intellij.openapi.util.Disposer.assertIsEmpty(Disposer.java:278)
at com.intellij.openapi.util.Disposer.assertIsEmpty(Disposer.java:272)
at com.intellij.openapi.application.impl.ApplicationImpl.disposeContainer(ApplicationImpl.java:223)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$doExit$5(ApplicationImpl.java:660)
at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.computeWithSpanIgnoreThrows(trace.kt:73)
at com.intellij.platform.diagnostic.telemetry.helpers.TraceUtil.computeWithSpanThrows(TraceUtil.java:18)
at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:646)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:595)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:584)
at com.intellij.openapi.application.ex.ApplicationEx.exit(ApplicationEx.java:77)
at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.quitApp(CloseProjectWindowHelper.kt:67)
at com.intellij.openapi.wm.impl.CloseProjectWindowHelper.windowClosing(CloseProjectWindowHelper.kt:47)
at com.intellij.openapi.wm.impl.ProjectFrameHelper.windowClosing(ProjectFrameHelper.kt:439)
at com.intellij.openapi.wm.impl.WindowCloseListener.windowClosing(ProjectFrameHelper.kt:459)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
at java.desktop/java.awt.Window.processWindowEvent(Window.java:2113)
at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
at java.desktop/java.awt.Window.processEvent(Window.java:2072)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2808)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4855)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:791)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:740)
at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:734)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:764)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:762)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:685)
at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:589)
at com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(ApplicationImpl.java:1485)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:589)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:992)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:113)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:992)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)

Caused by: java.lang.Throwable at com.intellij.openapi.util.ObjectNode.(ObjectNode.java:24) at com.intellij.openapi.util.ObjectNode.findOrCreateChildNode(ObjectNode.java:140) at com.intellij.openapi.util.ObjectTree.register(ObjectTree.java:51) at com.intellij.openapi.util.Disposer.register(Disposer.java:161) at com.intellij.terminal.TerminalConsoleContentHelper.(TerminalConsoleContentHelper.java:32) at com.intellij.terminal.TerminalExecutionConsole.(TerminalExecutionConsole.java:55) at com.intellij.terminal.TerminalExecutionConsole.(TerminalExecutionConsole.java:68) at com.intellij.terminal.TerminalExecutionConsole.(TerminalExecutionConsole.java:62) at com.redhat.devtools.intellij.common.utils.ExecHelper.linkProcessToTerminal(ExecHelper.java:363) at com.redhat.devtools.intellij.common.utils.ExecHelper.executeWithTerminalInternal(ExecHelper.java:303) at com.redhat.devtools.intellij.common.utils.ExecHelper.executeWithTerminal(ExecHelper.java:436) at com.redhat.devtools.intellij.common.utils.ExecHelper.executeWithTerminal(ExecHelper.java:447) at org.jboss.tools.intellij.openshift.utils.odo.OdoCli.about(OdoCli.java:741) at org.jboss.tools.intellij.openshift.tree.application.ApplicationRootNodeOdo.about(ApplicationRootNodeOdo.java:240) at org.jboss.tools.intellij.openshift.actions.cluster.AboutAction.lambda$actionPerformed$1(AboutAction.java:39) at org.jboss.tools.intellij.openshift.actions.ActionUtils$1.run(ActionUtils.java:65) at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:428) at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:115) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$6(CoreProgressManager.java:478) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:251) at com.intellij.openapi.progress.ProgressManager.lambda$runProcess$0(ProgressManager.java:71) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:186) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679) at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173) at com.intellij.openapi.progress.ProgressManager.runProcess(ProgressManager.java:71) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$5(ProgressRunner.java:251) at com.intellij.openapi.progress.impl.ProgressRunner.lambda$launchTask$18(ProgressRunner.java:465) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) at java.base/java.lang.Thread.run(Thread.java:833) 2023-11-09 20:02:44,986 [ 129918] SEVERE - #c.i.o.u.ObjectTree - IntelliJ IDEA 2023.2 Build #IU-232.8660.185 2023-11-09 20:02:44,987 [ 129919] SEVERE - #c.i.o.u.ObjectTree - JDK: 17.0.7; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 2023-11-09 20:02:44,987 [ 129919] SEVERE - #c.i.o.u.ObjectTree - OS: Linux 2023-11-09 20:02:44,987 [ 129919] SEVERE - #c.i.o.u.ObjectTree - Plugin to blame: OpenShift Toolkit by Red Hat version: 1.7.0-SNAPSHOT 2023-11-09 20:02:44,992 [ 129924] INFO - #c.i.i.AppStarter - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------

martinszuc avatar Nov 09 '23 19:11 martinszuc