IDEA闪退,解决方法 error stream of java

现象

遇到idea不断闪退,但是mac 的提示不详细。

查看日志:

  1. 打开Mac的应用程序 右键IntelliJ IDEA.app图标点击显示包含内容

  2. 依次进入Contents/MacOS目录

3.双击idea

4.查看控制台报错信息

但是控制台的报错信息是java的错误,发现/用户名/ 目录下有个
java_error_in_idea_5629.log

打开日志文件。

日志

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (safepoint.cpp:712), pid=4680, tid=0x0000000000018113
#  fatal error: Illegal threadstate encountered: 4
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b19) (build 1.8.0_152-release-1248-b19)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b19 mixed mode bsd-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# 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.
#

---------------  T H R E A D  ---------------
error stream of java

按照网上说是JDK的问题。
只要换个JDK安装即可。

解决

给电脑安装新的jdk。
如下文 :https://www.cnblogs.com/tanjiangtao/p/12953619.html
装完后发现并没有改变。

发现启动的时候用户的是OpenJDK ,但是我的IDEA 的项目设置已经改了。
这个时候 网上找到这个文章:https://blog.csdn.net/kobeguang/article/details/108670481。

换掉启动idea的jdk。
官网介绍:https://www.jetbrains.com/help/idea/switching-boot-jdk.html

直接Help- find Action
输入:switch Boot JDK

切换JDK成你安装的新的jdk。 重启IDEA。

问题解决~

写完这个文章帮到你。

你可能感兴趣的:(IDEA闪退,解决方法 error stream of java)