synchronous refresh called from inside read action in 7027

I just got this exception at startup in 7027.
If you would like more details please let me know.

Do not call synchronous refresh from inside read action except for event dispatch thread. This will eventually cause deadlock if there are events to fire
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
at com.intellij.openapi.vfs.newvfs.RefreshQueueImpl.execute(RefreshQueueImpl.java:21)
at com.intellij.openapi.vfs.newvfs.RefreshSessionImpl.launch(RefreshSessionImpl.java:36)
at com.intellij.openapi.vfs.newvfs.RefreshQueue.refresh(RefreshQueue.java:22)
at com.intellij.openapi.vfs.newvfs.NewVirtualFile.refresh(NewVirtualFile.java:56)
at com.intellij.openapi.vfs.VirtualFile.refresh(VirtualFile.java:512)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.addRootToWatch(LocalFileSystemImpl.java:291)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.c(LibraryImpl.java:22)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.readExternal(LibraryImpl.java:175)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.readExternal(LibraryTableBase.java:31)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase.loadState(LibraryTableBase.java:1)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase.loadState(LibraryTableBase.java:36)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:158)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$000(ComponentStoreImpl.java:58)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$1.run(ComponentStoreImpl.java:4)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:327)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.initComponent(ComponentStoreImpl.java:91)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:24)
at com.intellij.openapi.components.impl.ComponentManagerImpl.access$1100(ComponentManagerImpl.java:125)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:9)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:23)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:193)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:180)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:162)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:105)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:37)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:59)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:31)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:80)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl.loadProject(ProjectStoreImpl.java:48)
at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:64)
at com.intellij.openapi.project.impl.ProjectManagerImpl.access$100(ProjectManagerImpl.java:262)
at com.intellij.openapi.project.impl.ProjectManagerImpl$5.run(ProjectManagerImpl.java:16)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:8)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:71)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:44)
at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:5)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:4)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:613)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:4)

1 comment

fixed

On 2007-06-25 20:00:38 +0400, Spencer Marks <smarks@origamisoftware.com> said:

I just got this exception at startup in 7027.
If you would like more details please let me know.

Do not call synchronous refresh from inside read action except for
event dispatch thread. This will eventually cause deadlock if there are
events to fire
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:48)
at
com.intellij.openapi.vfs.newvfs.RefreshQueueImpl.execute(RefreshQueueImpl.java:21)

at


com.intellij.openapi.vfs.newvfs.RefreshSessionImpl.launch(RefreshSessionImpl.java:36)

at


com.intellij.openapi.vfs.newvfs.RefreshQueue.refresh(RefreshQueue.java:22)
at
com.intellij.openapi.vfs.newvfs.NewVirtualFile.refresh(NewVirtualFile.java:56)

at


com.intellij.openapi.vfs.VirtualFile.refresh(VirtualFile.java:512)
at
com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.addRootToWatch(LocalFileSystemImpl.java:291)

at


com.intellij.openapi.roots.impl.libraries.LibraryImpl.c(LibraryImpl.java:22)
at
com.intellij.openapi.roots.impl.libraries.LibraryImpl.readExternal(LibraryImpl.java:175)

at


com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.readExternal(LibraryTableBase.java:31)

at


com.intellij.openapi.roots.impl.libraries.LibraryTableBase.loadState(LibraryTableBase.java:1)

at


com.intellij.openapi.roots.impl.libraries.LibraryTableBase.loadState(LibraryTableBase.java:36)

at


com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:158)

at


com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$000(ComponentStoreImpl.java:58)

at


com.intellij.openapi.components.impl.stores.ComponentStoreImpl$1.run(ComponentStoreImpl.java:4)

at


com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:327)

at


com.intellij.openapi.components.impl.stores.ComponentStoreImpl.initComponent(ComponentStoreImpl.java:91)

at


com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:24)

at


com.intellij.openapi.components.impl.ComponentManagerImpl.access$1100(ComponentManagerImpl.java:125)

at


com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:9)

at


com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:23)

at


com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:193)

at


com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:180)

at


com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:162)

at


org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)

at


com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:105)

at


com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:37)

at


com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:59)

at


com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:31)

at


com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:80)
at
com.intellij.openapi.components.impl.stores.ProjectStoreImpl.loadProject(ProjectStoreImpl.java:48)

at


com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:64)

at


com.intellij.openapi.project.impl.ProjectManagerImpl.access$100(ProjectManagerImpl.java:262)

at


com.intellij.openapi.project.impl.ProjectManagerImpl$5.run(ProjectManagerImpl.java:16)

at


com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:8)

at


com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:71)

at


com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:44)

at


com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:5)

at


com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:4)

at


java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

at


java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:613)
at
com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:4)



0

Please sign in to leave a comment.