欢迎来到代码驿站!

当前位置:首页 >

解决mac最新版intellij idea崩溃闪退crash的问题

时间:2020-09-19 13:00:23|栏目:|点击:

最近我的idea编辑器更新到了最新的版本(当前最新的版本是2020.2.2),使用过程中发现当选择文件夹的时候就会崩溃闪退,因为我记录了崩溃的日志,打开日志,主要信息如下:

#

# A fatal error has been detected by the Java Runtime Environment:

#

#  SIGILL (0x4) at pc=0x00007fff204b6086, pid=38839, tid=775

#

# JRE version: OpenJDK Runtime Environment JBR-11.0.8.10-944.31-jcef (11.0.8+10) (build 11.0.8+10-b944.31)

# Java VM: OpenJDK 64-Bit Server VM JBR-11.0.8.10-944.31-jcef (11.0.8+10-b944.31, mixed mode, tiered, compressed oops, g1 gc, bsd-amd64)

# Problematic frame:

# C  [libsystem_kernel.dylib+0x7086]  __kill+0xa

#

# No core dump will be written. 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:

#   https://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.

 根据关键字,google搜索了一下,最终汇总了两个解决方案,如下:

1、更改idea运行使用的jdk。以前的版本是find action之后搜索switch boot jdk的,现在不行了,最终找到官方的这篇文章: https://www.jetbrains.com/help/idea/switching-boot-jdk.html 

看得懂高中英文的应该都知道怎么做了,按照说明选择本地的jdk就可以了。

2、然后方案1还是有点问题,我在mac下还了jdk之后,idea的一些菜单跟以前有些变化(比如菜单栏找不到preference等了),这样可以用下面的方案2,经过google查明本次崩溃闪退的主要原因是一个在2020.2新上的JCEF的功能,详细的解释说明如下:

https://jetbrains.org/intellij/sdk/docs/reference_guide/jcef.html

摘录其中的一段:

Using JCEF requires using a dedicated JetBrains Runtime, please follow these installation instructions on how to obtain and activate it in your IDE. Enable ide.browser.jcef.enabled in Registry dialog (invoke Help | Find Action and type “Registry”) and restart the IDE for changes to take effect.

这也就能解释为什么换了jdk就不会出现闪退问题了,因为其using a dedicated JetBrains Runtime。

所以最终的解决方案就是关闭JCEF。我是使用Help->Edit Custom Properties,然后添加一行ide.browser.jcef.enabled=false来关闭,按照上面的链接来说,通过find Action,搜索Registry,然后取消ide.browser.jcef.enabled前面的勾选如下图:

总结

上一篇:JPA merge联合唯一索引无效问题解决方案

栏    目:

下一篇:R语言ggplot2边框背景去除的实现

本文标题:解决mac最新版intellij idea崩溃闪退crash的问题

本文地址:http://www.codeinn.net/misctech/5182.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有