IntelliJ Ultimate IDE freezing constantly
已回答
I've been working with idea-IU on same projects for months with no problems.
Most of those projects are on a mounted folder via SSHFS.
One of them now freezes IDE few instants from project opening, just when “External FileSystem" warning appears (as usual with all projects).
threadDumps-freeze-20240822-230219-IU-242.20224.419-UnixFileDispatcherImpl.read0-92sec
"AWT-EventQueue-0" prio=0 tid=0x0 nid=0x0 runnable
java.lang.Thread.State: RUNNABLE
(in native)
at java.base@21.0.3/sun.nio.ch.UnixFileDispatcherImpl.read0(Native Method)
at java.base@21.0.3/sun.nio.ch.UnixFileDispatcherImpl.read(UnixFileDispatcherImpl.java:51)
at java.base@21.0.3/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:340)
at java.base@21.0.3/sun.nio.ch.IOUtil.read(IOUtil.java:306)
at java.base@21.0.3/sun.nio.ch.IOUtil.read(IOUtil.java:283)
at java.base@21.0.3/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:234)
at java.base@21.0.3/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:74)
at java.base@21.0.3/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
at java.base@21.0.3/java.io.BufferedInputStream.fill(BufferedInputStream.java:291)
at java.base@21.0.3/java.io.BufferedInputStream.read1(BufferedInputStream.java:347)
at java.base@21.0.3/java.io.BufferedInputStream.implRead(BufferedInputStream.java:420)
at java.base@21.0.3/java.io.BufferedInputStream.read(BufferedInputStream.java:399)
at com.intellij.openapi.fileTypes.impl.FileTypeDetectionService.readSafely(FileTypeDetectionService.java:526)
at com.intellij.openapi.fileTypes.impl.FileTypeDetectionService.readFirstBytesFromFile(FileTypeDetectionService.java:625)
at com.intellij.openapi.fileTypes.impl.FileTypeDetectionService.getFirstBytes(FileTypeDetectionService.java:638)
at com.intellij.openapi.fileTypes.impl.FileTypeDetectionService.getOrDetectFromContent(FileTypeDetectionService.java:203)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.isFileOfType(FileTypeManagerImpl.java:779)
at org.jetbrains.kotlin.idea.util.FileUtils.isKotlinFileType(FileUtils.kt:19)
at org.jetbrains.kotlin.idea.caches.PerModulePackageCacheService$PackageCacheBulkFileListener$onEvents$3.invoke(PerModulePackageCacheService.kt:399)
at org.jetbrains.kotlin.idea.caches.PerModulePackageCacheService$PackageCacheBulkFileListener$onEvents$3.invoke(PerModulePackageCacheService.kt:397)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:171)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:169)
at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
at org.jetbrains.kotlin.idea.caches.PerModulePackageCacheService$PackageCacheBulkFileListener.onEvents(PerModulePackageCacheService.kt:441)
at org.jetbrains.kotlin.idea.caches.PerModulePackageCacheService$PackageCacheBulkFileListener.before(PerModulePackageCacheService.kt:370)
at java.base@21.0.3/java.lang.invoke.LambdaForm$DMH/0x0000000100598000.invokeInterface(LambdaForm$DMH)
at java.base@21.0.3/java.lang.invoke.LambdaForm$MH/0x0000000100824400.invoke(LambdaForm$MH)
at java.base@21.0.3/java.lang.invoke.LambdaForm$MH/0x0000000100600400.invokeExact_MT(LambdaForm$MH)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:682)
at com.intellij.util.messages.impl.MessageBusImplKt.executeOrAddToQueue(MessageBusImpl.kt:514)
at com.intellij.util.messages.impl.ToDirectChildrenMessagePublisher.publish$intellij_platform_core(CompositeMessageBus.kt:310)
at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:471)
at jdk.proxy2/jdk.proxy2.$Proxy143.before(Unknown Source)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.lambda$fireBeforeEvents$15(PersistentFSImpl.java:1484)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl$$Lambda/0x0000000101aba410.run(Unknown Source)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.runSuppressing(PersistentFSImpl.java:1108)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.fireBeforeEvents(PersistentFSImpl.java:1483)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.applyMultipleEvents(PersistentFSImpl.java:1450)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.processEventsImpl(PersistentFSImpl.java:1432)
at com.intellij.openapi.vfs.newvfs.AsyncEventSupport.processEventsFromRefresh(AsyncEventSupport.java:153)
at com.intellij.openapi.vfs.newvfs.RefreshSessionImpl.fireEventsInWriteAction(RefreshSessionImpl.java:243)
at com.intellij.openapi.vfs.newvfs.RefreshSessionImpl.lambda$fireEvents$1(RefreshSessionImpl.java:225)
at com.intellij.openapi.vfs.newvfs.RefreshSessionImpl$$Lambda/0x0000000102b8c510.accept(Unknown Source)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runEdtProgressWriteAction$lambda$7$lambda$6(AnyThreadWriteThreadingSupport.kt:429)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$$Lambda/0x0000000102b8d748.run(Unknown Source)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:221)
at com.intellij.openapi.progress.impl.CoreProgressManager$$Lambda/0x000000010129e550.invoke(Unknown Source)
at com.intellij.platform.diagnostic.telemetry.helpers.TraceKt.use(trace.kt:49)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:220)
at com.intellij.openapi.progress.impl.CoreProgressManager$$Lambda/0x000000010129d9f0.run(Unknown Source)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:660)
at com.intellij.openapi.progress.impl.CoreProgressManager$$Lambda/0x000000010101a510.compute(Unknown Source)
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.executeProcessUnderProgress(CoreProgressManager.java:659)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:202)
at com.intellij.openapi.progress.util.PotemkinProgress.runInSwingThread(PotemkinProgress.java:156)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runEdtProgressWriteAction$lambda$7(AnyThreadWriteThreadingSupport.kt:429)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$$Lambda/0x0000000102b8c768.compute(Unknown Source)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runEdtProgressWriteAction(AnyThreadWriteThreadingSupport.kt:427)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteActionWithNonCancellableProgressInDispatchThread(AnyThreadWriteThreadingSupport.kt:413)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteActionWithNonCancellableProgressInDispatchThread(ApplicationImpl.java:876)
at com.intellij.openapi.vfs.newvfs.RefreshSessionImpl.fireEvents(RefreshSessionImpl.java:221)
at com.intellij.openapi.vfs.newvfs.RefreshQueueImpl.lambda$queueSession$2(RefreshQueueImpl.java:113)
at com.intellij.openapi.vfs.newvfs.RefreshQueueImpl$$Lambda/0x0000000102b83478.accept(Unknown Source)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$safeTransferToEdt$7(NonBlockingReadActionImpl.java:717)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission$$Lambda/0x0000000101626458.run(Unknown Source)
at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:229)
at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread$lambda$1(AnyThreadWriteThreadingSupport.kt:184)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$$Lambda/0x0000000100db2518.compute(Unknown Source)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runIntendedWriteActionOnCurrentThread(AnyThreadWriteThreadingSupport.kt:183)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:836)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:425)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWithImplicitRead(AnyThreadWriteThreadingSupport.kt:122)
at com.intellij.openapi.application.impl.ApplicationImpl.runWithImplicitRead(ApplicationImpl.java:1162)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:78)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:119)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41)
at com.intellij.openapi.application.impl.FlushQueue$$Lambda/0x00000001006c0000.run(Unknown Source)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
请先登录再写评论。
I deleted my ~/.cache/JetBrains folder and looks like it works again… but I would like to have a more stable tool
I just opened a bug report about this issue: https://youtrack.jetbrains.com/issue/IDEA-358162/IntelliJ-freezes-when-opening-projects
Workaround that has worked for me so far was to disable the OpenAPI specifications plugin
Having the same issue in Ubuntu 22.04, Intellij IDEA Community version. Reinstalling IDE also worked, but as Marc Clausell mentioned, having IDE would be great
Hi,
Your issues should be the same as https://youtrack.jetbrains.com/issue/IJPL-74471.
As a workaround currently, please try the below which will fix this issue:
1. Click IDE main menu `Help | Edit Custom Properties`, add ide.ui.new.file.chooser=true in a new line.
2. Use `File | Invalidate Caches | enabled the "Clear file system cache and Local History" option | Invalidate and Restart`.