IDEA 打开项目后就闪退问题

IDEA 闪退 打开后退出问题

参考原博主链接:https://blog.csdn.net/baidu_24818215/article/details/90271937;
我出现该问题是第一种情况;

  • IDEA版本:IntelliJIdea2018.3

  • 出现场景:打开项目后就闪退

  • 问题排查:

    1、首先查看目录下【C:\Users\用户名】有无错误日志like “java_error_in_idea_21268”,如下图: IDEA 打开项目后就闪退问题_第1张图片
    日志输出如下:

     # A fatal error has been detected by the Java Runtime Environment:
     #
     #  EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at pc=0x00007ffa580c46fa, pid=21268, tid=0x0000000000000ab8
     #
     # JRE version: OpenJDK Runtime Environment (8.0_152-b15) (build 1.8.0_152-release-1343-b15)
     # Java VM: OpenJDK 64-Bit Server VM (25.152-b15 mixed mode windows-amd64 compressed oops)
     # Problematic frame:
     # C  [mybatisplugin5894706604995728103.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.
     #......
     ..........
    

    日志表示,初步判断为mybatis plugin ,mybatis 插件的原因
    # Problematic frame:
    # C [mybatisplugin5894706604995728103.tmp+0xa46fa]

    2、如未<1>中表现,则可能未运行内存不足;
    3、内存足够,则可能是之前有安装的其他版本的残留文件;

  • 解决方案:
    【问题1】解决方案:
    在插件目录 C:\Users\用户名.IntelliJIdea2018.3\config\plugins 删掉 mybatis 相关插件的文件,再重启IDEA。

    【问题2】解决方案:
    在安装目录 C:\Users\用户名.IntelliJIdea2018.3,搜索vmoptions可以看到两个文件,
    idea.exe.vmoptions //32位 idea64.exe.vmoptions //64位
    文件内容如下:

      # custom IntelliJ IDEA VM options
     -Xms128m
     -Xmx750m
     -XX:ReservedCodeCacheSize=240m
     -XX:+UseConcMarkSweepGC
     -XX:SoftRefLRUPolicyMSPerMB=50
     -ea
     -Dsun.io.useCanonCaches=false
     -Djava.net.preferIPv4Stack=true
     -Djdk.http.auth.tunneling.disabledSchemes=""
     -XX:+HeapDumpOnOutOfMemoryError
     -XX:-OmitStackTraceInFastThrow
    

    把修改Xmx值改小,一般750就够了。

    【问题3】解决方案:
    在安装目录 C:\Users\用户名 查找有无其他版本文件,然后删除;如下图(我本地就一个版本):
    IDEA 打开项目后就闪退问题_第2张图片

你可能感兴趣的:(IDEA 打开项目后就闪退问题)