Skip to content
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

Slow operations in EDT #232

Open
KUGDev opened this issue Jan 31, 2025 · 1 comment
Open

Slow operations in EDT #232

KUGDev opened this issue Jan 31, 2025 · 1 comment
Assignees
Labels
priority-low Will be resolved when no other critical things ongoing severity-low A bug that makes the usage of the Zowe less convenient but doesn't impact key use cases
Milestone

Comments

@KUGDev
Copy link
Contributor

KUGDev commented Jan 31, 2025

java.lang.Throwable: Slow operations are prohibited on EDT. See SlowOperations.assertSlowOperationsAreAllowed javadoc.
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
at com.intellij.util.SlowOperations.assertSlowOperationsAreAllowed(SlowOperations.java:114)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.convertToNioFileAndCheck(LocalFileSystemBase.java:83)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemBase.getInputStream(LocalFileSystemBase.java:344)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.getInputStream(PersistentFSImpl.java:896)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.getInputStream(VirtualFileImpl.java:101)
at org.zowe.explorer.zowe.service.ZoweConfigServiceImpl.scanForZoweConfig(ZoweConfigServiceImpl.kt:133)
at org.zowe.explorer.zowe.service.ZoweConfigServiceImpl.getZoweConfigState(ZoweConfigServiceImpl.kt:474)
at org.zowe.explorer.zowe.service.ZoweConfigService$DefaultImpls.getZoweConfigState$default(ZoweConfigService.kt:78)
at org.zowe.explorer.zowe.ZoweStartupActivityKt.showNotificationForAddUpdateZoweConfigIfNeeded(ZoweStartupActivity.kt:43)
at org.zowe.explorer.zowe.ZoweStartupActivity.runActivity(ZoweStartupActivity.kt:116)
at com.intellij.ide.startup.impl.StartupManagerImpl.runOldActivity(StartupManagerImpl.kt:340)
at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities$lambda$6$lambda$5(StartupManagerImpl.kt:301)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:107)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:101)
at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
at com.intellij.openapi.project.SmartModeScheduler.addLast$lambda$1(SmartModeScheduler.kt:81)
at com.intellij.openapi.project.SmartModeScheduler.addLast$lambda$2(SmartModeScheduler.kt:81)
at com.intellij.openapi.project.SmartModeScheduler$RunnableDelegate.run(SmartModeScheduler.kt:42)
at com.intellij.openapi.project.SmartModeScheduler.doRun(SmartModeScheduler.kt:124)
at com.intellij.openapi.project.SmartModeScheduler.runAllWhileSmart(SmartModeScheduler.kt:116)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:236)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:25)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:198)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread$lambda$2(AnyThreadWriteThreadingSupport.kt:217)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:128)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread(AnyThreadWriteThreadingSupport.kt:216)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:842)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:421)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)
at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:101)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:107)
at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:101)
at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:117)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:43)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:675)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:573)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$18$lambda$17$lambda$16$lambda$15(IdeEventQueue.kt:355)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:857)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$18$lambda$17$lambda$16(IdeEventQueue.kt:354)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$2$lambda$1(IdeEventQueue.kt:1045)
at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:128)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:916)
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$lambda$2(IdeEventQueue.kt:1045)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$3(IdeEventQueue.kt:1054)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:109)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1054)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$18(IdeEventQueue.kt:349)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:395)
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)

@KUGDev KUGDev added priority-low Will be resolved when no other critical things ongoing severity-low A bug that makes the usage of the Zowe less convenient but doesn't impact key use cases labels Jan 31, 2025
@KUGDev KUGDev added this to the 2.1.1 milestone Jan 31, 2025
@KUGDev KUGDev moved this from New to Backlog in Zowe IntelliJ Squad Feb 3, 2025
@ktsytsen ktsytsen self-assigned this Feb 7, 2025
@ktsytsen ktsytsen moved this from Backlog to In Progress in Zowe IntelliJ Squad Feb 7, 2025
ktsytsen added a commit that referenced this issue Feb 9, 2025
ktsytsen added a commit that referenced this issue Feb 9, 2025
@ktsytsen ktsytsen moved this from In Progress to In Review in Zowe IntelliJ Squad Feb 9, 2025
@ktsytsen
Copy link
Contributor

@Ivsh312 Could you please test.

How to reproduce:
On the latest IDE (243) create huge json conf file (eg. >22Mb) and check the problem doesn't occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-low Will be resolved when no other critical things ongoing severity-low A bug that makes the usage of the Zowe less convenient but doesn't impact key use cases
Projects
Status: In Review
Development

No branches or pull requests

3 participants