IDEA闪退Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

文章目录

    • 问题
    • 错误日志
    • 解决

问题

打开idea不到一分钟,就会闪退

错误日志

到idea安装路径的bin目录下,可以看到错误日志

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x00007ffbb1c846fa, pid=21244, tid=0x0000000000004e14
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b26) (build 1.8.0_152-release-1343-b26)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b26 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [mybatisplugin190831792985819736.tmp+0xa46fa]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

重点:
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

Minidumps是Windows上的程序crash的时候可以写出的一种小型crash dump,会记录导致crash的错误的摘要信息,以便开发者可以事后调查crash的原因。
而HotSpot VM在client版的Windows上默认是不写出minidumps的
我们可以先在配置文件idea64.exe.vmoptions设置
-XX:+CreateMinidumpOnCrash,让HotSpot VM在crash时调用Windows的MiniDumpWriteDump()函数写出minidump,来查看导致闪退的原因。

(据说jdk9开始,该参数变为 -XX:CreateCoredumpOnCrash 这个本人未验证)

修改完配置文件后,重新启动idea,再次闪退,然后查看错误日志。
(与错误日志同时伴随了一个.mdmp的文件,就是写出的minidump,文件很大,所以问题解决后我还是会把前面添加的参数去除)
在这里插入图片描述

新的错误日志就和原来不同了,不再提示你那玩意儿写不了,而是具体错误原因。

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x00007ffbba7946fa, pid=12440, tid=0x0000000000001e18
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b26) (build 1.8.0_152-release-1343-b26)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b26 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [mybatisplugin4023674342563574462.tmp+0xa46fa]
#
# Core dump written. Default location: E:\JetBrains\IntelliJ IDEA 2018.3\bin\hs_err_pid12440.mdmp
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

这时,我就看到了关键词 mybatisplugin
突然就想起来,前不久想要安装mybatis plugin的插件,下到一半觉得太慢就强制关闭了。

解决

这让我产生了一种既视感,一年多前我也记录过类似的错误,只不过当时发现具体错误没有这个辗转,当时还在用idea11呢
Intellj IDEA在安装插件后无法启动工程

于是还是老样子,在idea的插件路径下,把那个出错的插件文件删除
(本人默认是在C:\Users\用户名\.IntelliJIdea2018.3\config\plugins

再次启动IDEA,就不会再闪退了。

你可能感兴趣的:(错误集)