IntelliJ IDEA causes Windows 10 to unexpectedly restart

Answered

Moved from https://youtrack-support.jetbrains.com/hc/en-us/community/posts/360000005310-IntelliJ-IDEA-causes-Windows-10-to-unexpectedly-restart

For some strange reason, IntelliJ randomly causes my computer to reset. No BSOD... no error logs... nothing. The computer just resets with no warning. Windows doesn't even suggest a repair when rebooting. It's consistent and it definitely only occurs when running IntelliJ.

I can run my computer for over 24 hours without this occurring using other IDEs to edit the same projects. There are no java crash logs. There is this error in the idea.log:

2018-01-21 18:54:52,398 [  19245]  ERROR - rationStore.ComponentStoreImpl - Cannot init ToolWindowManager component state
java.lang.NullPointerException: Name is null
    at java.lang.Enum.valueOf(Enum.java:236)
    at com.intellij.openapi.wm.ToolWindowType.valueOf(ToolWindowType.java:18)
    at com.intellij.openapi.wm.impl.WindowInfoImpl.readExternal(WindowInfoImpl.java:257)
    at com.intellij.openapi.wm.impl.DesktopLayout.readExternal(DesktopLayout.java:295)
    at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.loadState(ToolWindowManagerImpl.java:1890)
    at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.loadState(ToolWindowManagerImpl.java:88)
    at com.intellij.configurationStore.ComponentStoreImpl.a(ComponentStoreImpl.kt:328)
    at com.intellij.configurationStore.ComponentStoreImpl.a(ComponentStoreImpl.kt:290)
    at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:90)
    at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.initializeComponent(PlatformComponentManagerImpl.java:54)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:495)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:119)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:103)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:90)
    at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:284)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.a(ProjectManagerImpl.java:289)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.b(ProjectManagerImpl.java:556)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.access$200(ProjectManagerImpl.java:70)
    at com.intellij.openapi.project.impl.ProjectManagerImpl$2.compute(ProjectManagerImpl.java:502)
    at com.intellij.openapi.project.impl.ProjectManagerImpl$2.compute(ProjectManagerImpl.java:499)
    at com.intellij.openapi.progress.Task$WithResult.run(Task.java:326)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
    at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:397)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:157)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:543)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
    at com.intellij.openapi.application.impl.ApplicationImpl.a(ApplicationImpl.java:575)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
2018-01-21 18:54:52,399 [  19246]  ERROR - rationStore.ComponentStoreImpl - IntelliJ IDEA 2017.3.3  Build #IU-173.4301.25
2018-01-21 18:54:52,399 [  19246]  ERROR - rationStore.ComponentStoreImpl - JDK: 1.8.0_152-release
2018-01-21 18:54:52,399 [  19246]  ERROR - rationStore.ComponentStoreImpl - VM: OpenJDK 64-Bit Server VM
2018-01-21 18:54:52,399 [  19246]  ERROR - rationStore.ComponentStoreImpl - Vendor: JetBrains s.r.o
2018-01-21 18:54:52,399 [  19246]  ERROR - rationStore.ComponentStoreImpl - OS: Windows 10
2018-01-21 18:54:52,399 [  19246]  ERROR - rationStore.ComponentStoreImpl - Last Action: 

14 comments
Comment actions Permalink

This looks like a hardware problem.

Run some stress tests like those provided in Intel XTU application: http://www.overclockers.com/forums/showthread.php/771292-Stress-Testing-for-Beginners-Which-tool-should-I-use.

0
Comment actions Permalink

I believe it might be Intel's Spectre/Meltdown patch: https://www.windowscentral.com/intel-testing-fix-reboot-issues-caused-spectre-patch-older-cpus. It still only occurs when using IntelliJ, so it must be executing some instructions to cause this, though it's Intel's fault for a buggy patch. It's ridiculous that they call the issue "more frequent reboots".

0
Comment actions Permalink

Peter, is there a fix for this? 

My Computer is still crashing when using Intellij.

0
Comment actions Permalink

Hello Ilan,

Does your computer also restart or IDEA just crash?

 

0
Comment actions Permalink

Seeing the same problem. While running the IntelliJ (IntelliJ IDEA 2018.1.6 (Ultimate Edition)
Build #IU-181.5540.7), on Windows 10, on multiple occasions,  the message"Shutting down" appears(see attached shuttingdown.jpg). After re-starting the PC, it will show "Shutting down" again, even after restarting multiple times.

0
Comment actions Permalink

Don't know if it is related: I get the windows10 screen of death several times a day since last week (an a few times 3 moths ago), but only if I have IntelliJ idea Ultimate 2018.1 running. Mostly shortly after starting IntelliJ. Today I found a "replay_pid5716.log" on my \Desktop folder after the last crash, (when IntelliJ was just starting when the crash occurred again). The file is 1,5 MB and starts with the first line: 'JvmtiExport can_access_local_variables 0' and ends with line 22.972: ''compile com/intellij/execution/ExecutorRegistryImpl$ExecutorAction canRun (Lcom/intellij/openapi/project/Project;Ljava/util/List;)Z -1 3'.

In the idea log I see around that time several com.intellij.util.indexing.StorageException: java.io.EOFException and com.intellij.util.io.PersistentEnumeratorBase$CorruptedException."

In the build.log I see at the end a " WARN - channel.DefaultChannelPipeline - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception." (IOException)."

I do not see these things at the time of the other crashes, so maybe they are just consequences of the crash.

I just ran a "Windows Memory Diagnostics Tool" check and this found no errors.

0
Comment actions Permalink

Nothing came out of the memtest86. But no spontaneous restarts since then either. If I get them again and I find a commonality, I'll report it here. 

0
Comment actions Permalink

I am facing the same issue. Intellij is automatically restarting my windows

0
Comment actions Permalink

Hello,

Is it possible to share idea.log ("Help | Show Log in...") after restarting IDE?

0
Comment actions Permalink

How do I upload this log file.

0
Comment actions Permalink

You can submit a ticket at https://intellij-support.jetbrains.com/hc/requests/new and attach the file there or upload the file at https://uploads.services.jetbrains.com/ and specify the name here.

0
Comment actions Permalink

I believe the issue is caused by Java itself. I'm experiencing it either in InelliJ (PyCharm specifically), and Minecraft, for example. As for other symptoms, my keyboard is sometimes flashing, like it's loosing power for a moment. Worth noting, that no such issues occur while using PC without having active Java applications.

0

Please sign in to leave a comment.