gpt4 book ai didi

当我打开 intellij idea 时,Java 崩溃了

转载 作者:搜寻专家 更新时间:2023-10-31 20:31:32 24 4
gpt4 key购买 nike

打开 Intellij Idea 时经常崩溃。

我尝试过不同的 Intellij Idea 版本(2019.1、2018.3)。

我安装了 Oracle JDK(Java SE 开发工具包 8u201)。

我的操作系统:macOs Mojave。

这是崩溃日志的一部分: (在这里分享所有日志太长了。查看所有日志:这里paste bin)

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000011080b574, pid=4503, tid=0x000000000000a603
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b28) (build 1.8.0_152-release-1343-b28)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b28 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# V [libjvm.dylib+0x406574]
#
# 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
#

--------------- T H R E A D ---------------

Current thread (0x00007ffd20821800): JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=42499, stack(0x000070000522d000,0x000070000532d000)]

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x000077fd22e98478

Registers:
RAX=0x00007ffd2932bcf0, RBX=0x00007ffd2932bcf0, RCX=0x000077fd22e98460, RDX=0x00007ffd21070c20
RSP=0x00007000053298c0, RBP=0x0000700005329930, RSI=0x00007ffd2932bcf0, RDI=0x000070000532a6d0
R8 =0x0000000000000000, R9 =0x0000000000000001, R10=0x0000000000000000, R11=0xffffffffff589ff0
R12=0x00007ffd223205b0, R13=0x00007ffd23dd12c8, R14=0x0000000000000000, R15=0x00007ffd2932bcf0
RIP=0x000000011080b574, EFLAGS=0x0000000000010246, ERR=0x0000000000000004
TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007000053298c0)
0x00007000053298c0: 00007ffd2932bf48 00007ffd2932bcf0
0x00007000053298d0: 0000700005329930 000000011055a376
0x00007000053298e0: 0000000000000001 00007ffd2932bcf0
0x00007000053298f0: 0000700005329930 000070000532a6d0
0x0000700005329900: 000070000532a6d0 00007ffd2932bcf0
0x0000700005329910: 00007ffd223205b0 00007ffd23dd12c8
0x0000700005329920: 0000000000000000 00007ffd2932bcf0

我找不到原因。有人可以帮助我吗?

最佳答案

Intellij默认运行在OpenJDK上,你的问题原因可能是intellij使用的OpenJDK版本和Oracle JDK有冲突。我的想法是把intellij默认的JDK改成Oracle JDK。并且在intellij官网找到了步骤。

  • 首先,启动您的 intellij 并忽略 Java 崩溃。
  • 其次,按 Ctrl + Shift + A 并键入 Switch Boot JDK。
  • 第三,双击“Switch Boot JDK”项目栏并选择您的Oracle JDK安装目录。
  • 最后,重新启动您的 intellij。

search bar

Switch Boot JDK

关于当我打开 intellij idea 时,Java 崩溃了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55641707/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com