Skip to content

Freeze in EDT for 12 seconds with LSPFileListener #1446

@angelozerr

Description

@angelozerr
Freeze in EDT for 12 seconds
Sampled time: 2100ms, sampling rate: 100ms, GC time: 40ms (0%), Class loading: 0%, CPU load: 0%

com.intellij.diagnostic.Freeze
	at java.base@25.0.2/sun.nio.fs.WindowsNativeDispatcher.FindFirstFile0(Native Method)
	at java.base@25.0.2/sun.nio.fs.WindowsNativeDispatcher.FindFirstFile(WindowsNativeDispatcher.java:182)
	at java.base@25.0.2/sun.nio.fs.WindowsLinkSupport.getRealPath(WindowsLinkSupport.java:255)
	at java.base@25.0.2/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:903)
	at java.base@25.0.2/sun.nio.fs.WindowsPath.toRealPath(WindowsPath.java:42)
	at com.intellij.platform.core.nio.fs.MultiRoutingFsPath.toRealPath(MultiRoutingFsPath.java:155)
	at com.intellij.platform.core.nio.fs.MultiRoutingFsPath.toRealPath(MultiRoutingFsPath.java:21)
	at platform/jdk.zipfs@25.0.2/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:148)
	at platform/jdk.zipfs@25.0.2/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:139)
	at java.base@25.0.2/java.nio.file.Path.of(Path.java:206)
	at java.base@25.0.2/java.nio.file.Paths.get(Paths.java:95)
	at com.redhat.devtools.lsp4ij.features.files.watcher.FileSystemWatcherManager.isMatchFilePattern(FileSystemWatcherManager.java:301)
	at com.redhat.devtools.lsp4ij.features.files.AbstractLSPFileListener.isMatchFilePatterns(AbstractLSPFileListener.java:453)
	at com.redhat.devtools.lsp4ij.LSPFileListener.onFileContentChangedAfter(LSPFileListener.java:208)
	at com.redhat.devtools.lsp4ij.features.files.AbstractLSPFileListener.after(AbstractLSPFileListener.java:297)
	at com.redhat.devtools.lsp4ij.features.files.AbstractLSPFileListener$1.afterVfsChange(AbstractLSPFileListener.java:92)
	at com.intellij.openapi.vfs.newvfs.AsyncEventSupport$2$$Lambda/0x000000000788c758.accept(Unknown Source)
	at com.intellij.openapi.vfs.newvfs.AsyncEventSupport.invokeAppliers(AsyncEventSupport.java:171)
	at com.intellij.openapi.vfs.newvfs.AsyncEventSupport$2.lambda$afterVfsChange$1(AsyncEventSupport.java:122)
	at com.intellij.openapi.vfs.newvfs.AsyncEventSupport$2$$Lambda/0x000000000788c4f0.run(Unknown Source)
	at com.intellij.openapi.application.impl.TransferredWriteActionServiceImpl.runOnEdtWithTransferredWriteActionAndWait$lambda$0(TransferredWriteActionServiceImpl.kt:11)
	at com.intellij.openapi.application.impl.TransferredWriteActionServiceImpl$$Lambda/0x000000000786e550.run(Unknown Source)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114)
	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95)
	at com.intellij.openapi.application.impl.InternalThreading.invokeAndWaitWithTransferredWriteAction$lambda$2(appImpl.kt:207)
	at com.intellij.openapi.application.impl.InternalThreading$$Lambda/0x00000000060f9708.run(Unknown Source)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
	at com.intellij.util.concurrency.ChildContext$runInChildContext$1.invoke(propagation.kt:192)
	at com.intellij.util.concurrency.ChildContext.runInChildContext$lambda$1(propagation.kt:202)
	at com.intellij.util.concurrency.ChildContext$$Lambda/0x0000000006100e20.invoke(Unknown Source)
	at com.intellij.util.concurrency.Propagation$runAsCoroutine$deferred$1.invokeSuspend(propagation.kt:438)
	at com.intellij.util.concurrency.Propagation$runAsCoroutine$deferred$1.invoke(propagation.kt)
	at com.intellij.util.concurrency.Propagation$runAsCoroutine$deferred$1.invoke(propagation.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:20)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:360)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:134)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.async(Builders.common.kt:88)
	at kotlinx.coroutines.BuildersKt.async(Unknown Source)
	at com.intellij.util.concurrency.Propagation.runAsCoroutine(propagation.kt:433)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:202)
	at com.intellij.util.concurrency.ChildContext.runInChildContext(propagation.kt:192)
	at com.intellij.util.concurrency.ContextRunnable.lambda$run$0(ContextRunnable.java:26)
	at com.intellij.util.concurrency.ContextRunnable$$Lambda/0x0000000004481dc0.invoke(Unknown Source)
	at com.intellij.concurrency.ThreadContext.resetThreadContext(threadContext.kt:294)
	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:25)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport$transferWriteActionAndBlock$2.run(NestedLocksThreadingSupport.kt:1641)
	at com.intellij.openapi.application.impl.InternalThreading$TransferredWriteActionEvent$Companion.execute(appImpl.kt:238)
	at com.intellij.openapi.application.impl.InternalThreading$TransferredWriteActionEvent.execute(appImpl.kt:248)
	at com.intellij.openapi.progress.util.EternalEventStealer.dispatchExistingEvent(SuvorovProgress.kt:349)
	at com.intellij.openapi.progress.util.EternalEventStealer.dispatchAllEventsForTimeout(SuvorovProgress.kt:320)
	at com.intellij.openapi.progress.util.SuvorovProgress.processInvocationEventsWithoutDialog(SuvorovProgress.kt:267)
	at com.intellij.openapi.progress.util.SuvorovProgress.dispatchEventsUntilComputationCompletes(SuvorovProgress.kt:123)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$postInit$15(ApplicationImpl.java:1453)
	at com.intellij.openapi.application.impl.ApplicationImpl$$Lambda/0x0000000004578d30.invoke(Unknown Source)
	at com.intellij.platform.locking.impl.RunSuspend.await(NestedLocksThreadingSupport.kt:1690)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupportKt.runSuspendWithWaitingConsumer(NestedLocksThreadingSupport.kt:1665)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupportKt.access$runSuspendWithWaitingConsumer(NestedLocksThreadingSupport.kt:1)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runSuspendMaybeConsuming(NestedLocksThreadingSupport.kt:1604)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport$ComputationState.acquireWriteIntentPermit(NestedLocksThreadingSupport.kt:445)
	at com.intellij.platform.locking.impl.NestedLocksThreadingSupport.runWriteIntentReadAction(NestedLocksThreadingSupport.kt:696)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:1214)
	at com.intellij.openapi.application.WriteIntentReadAction.computeThrowable(WriteIntentReadAction.java:55)
	at com.intellij.ide.IdeEventQueue.dispatchByCustomDispatchers(IdeEventQueue.kt:677)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:544)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0$0$0(IdeEventQueue.kt:377)
	at com.intellij.ide.IdeEventQueue$$Lambda/0x000000000468e378.invoke(Unknown Source)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$0(IdeEventQueue.kt:1110)
	at com.intellij.ide.IdeEventQueueKt$$Lambda/0x000000000468ea98.run(Unknown Source)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1110)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$0(IdeEventQueue.kt:375)
	at com.intellij.ide.IdeEventQueue$$Lambda/0x0000000004683608.run(Unknown Source)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:415)
	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)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions