IntelliJ启动错误"无法锁定系统文件夹"

时间:2015-12-05 03:42:49

标签: intellij-idea

我安装了IntelliJ IDEA 15.0.1 Community Edition但是当我运行应用程序时,它会显示以下错误消息:

Internal error. Please report to http://jb.gg/ide/critical-startup-errors

java.lang.IllegalStateException: failed to create a child event loop
    at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:81)
    at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:50)
    at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:72)
    at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:58)
    at org.jetbrains.io.BuiltInServer.start(BuiltInServer.java:78)
    at com.intellij.idea.SocketLock$2.call(SocketLock.java:131)
    at com.intellij.idea.SocketLock$2.call(SocketLock.java:112)
    at com.intellij.idea.SocketLock.underLocks(SocketLock.java:155)
    at com.intellij.idea.SocketLock.lock(SocketLock.java:112)
    at com.intellij.idea.StartupUtil.lockSystemFolders(StartupUtil.java:263)
    at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:101)
    at com.intellij.idea.MainImpl.start(MainImpl.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:90)
    at java.lang.Thread.run(Thread.java:745)
Caused by: io.netty.channel.ChannelException: failed to open a new selector
    at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:127)
    at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:119)
    at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:97)
    at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:31)
    at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:77)
    ... 17 more
Caused by: java.io.IOException: Unable to establish loopback connection
    at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:101)
    at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:68)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:170)
    at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
    at java.nio.channels.Pipe.open(Pipe.java:155)
    at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127)
    at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
    at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125)
    ... 21 more
Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    at sun.nio.ch.IOUtil.read(IOUtil.java:197)
    at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
    at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:139)
    at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:83)
    ... 29 more

之后IDE无法启动。它总是完美无缺,但最近我在尝试使用Java编译IDEA version 14.5项目时遇到了同样的错误。在彻底安装15.0.1后,它仍然无法正常工作。很明显,问题必然是由于我同时安装的东西,但是这会影响IntelliJ IDEA的原因是什么?我在Windows 10上使用AVAST!。我尝试禁用我的防病毒和防火墙,但它没有帮助。我还提交了一份错误报告。 Eclipse仍然可以运行并编译Java代码。

6 个答案:

答案 0 :(得分:1)

似乎确实是AVAST!有关。也许尝试重新安装或卸载它? https://youtrack.jetbrains.com/issue/IDEA-146929
https://bugs.mojang.com/browse/MC-34749

答案 1 :(得分:0)

我遇到了同样的问题。禁用防火墙或检查安全设置。

答案 2 :(得分:0)

您的防火墙和防病毒程序正在阻止Android工作室所以删除防病毒程序或在允许的列表中添加android studio.exe这对我有帮助

答案 3 :(得分:0)

解决方案非常简单。您只需要从PC上的appdata文件夹中删除所有.androidstudio *文件夹。请注意,我不知道此文件夹是否包含任何重要内容。

答案 4 :(得分:0)

重新启动Windows对我有用。但是我认为这与防火墙有关。

发生这种情况是在我关闭Windows防火墙对话后,问我另一个应用程序(Everything.exe)是否可以无响应地访问网络(工作场所,私有或公共)。重新启动Windows后,IntelliJ可以正常启动。

答案 5 :(得分:-1)

是的,这是Avast安全性的问题!我正在使用工作室,直到有一天我的电脑一直在减速。我读到有2个反病毒软件可以减慢你的电脑,所以我尝试安装avast并坚持使用Windows Defender。 Avast现在无法正常卸载软件已损坏或导致其无法启动的情况。如果你能摆脱Avast,你会很高兴。