服务器之家:专注于服务器技术及软件下载分享
分类导航

PHP教程|ASP.NET教程|Java教程|ASP教程|编程技术|正则表达式|C/C++|IOS|C#|Swift|Android|VB|R语言|JavaScript|易语言|vb.net|

服务器之家 - 编程语言 - Java教程 - 解决mac最新版intellij idea崩溃闪退crash的问题

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

2020-09-19 15:36kobe_byrant Java教程

这篇文章主要介绍了解决mac最新版intellij idea崩溃闪退crash的问题,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下

最近我的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前面的勾选如下图:

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

总结

到此这篇关于解决mac最新版intellij idea崩溃闪退crash的问题的文章就介绍到这了,更多相关idea崩溃闪退crash内容请搜索服务器之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持服务器之家!

原文链接:https://blog.csdn.net/kobeguang/article/details/108670481

延伸 · 阅读

精彩推荐