Eclipse IDE 2024-03 在 Ubuntu 下崩溃,导致 hr_err_pid.log

问题描述 投票:0回答:1

我有两个类,“PeerMessage”和“PeerMessageOps”(这只是一个例子)。 PeerMessageOps 包含 PeerMessage 类访问的常量值。但我不知道为什么,每次我从 PeerMessage 类执行“PeerMessageOps.thing”时,Eclipse 都会停止运行并退出,在个人文件夹中留下一个

hr_err_pid.log
存档(我不明白其中的任何内容)。在我将新的源档案合并到现有项目中之后,这种情况开始发生。我之前使用过的任何存档也会发生这种情况。如果我不从另一个类访问一个类,这个问题就不会发生,一切都会正常运行。

hr_err_pid.log
screenshot):

A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007884fd3b61f8, pid=3363, tid=3364
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.9+9 (17.0.9+9) (build 17.0.9+9)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (17.0.9+9, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libwebkit2gtk-4.0.so.37+0xdb61f8]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/mpatari/core.3363)
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -Dosgi.requiredJavaVersion=17 [email protected]/eclipse-workspace -Dosgi.dataAreaRequiresExplicitInit=true -Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true -Xms256m -Xmx2048m -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Declipse.p2.max.threads=10 -Doomph.update.url=https://download.eclipse.org/oomph/updates/milestone/latest -Doomph.redirection.index.redirection=index:/->https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/ --add-opens=java.base/java.lang=ALL-UNNAMED -Dorg.eclipse.swt.browser.DefaultType=mozilla /home/mpatari/eclipse/jee-2023-092/eclipse//plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar -os linux -ws gtk -arch x86_64 -showsplash /home/mpatari/.p2/pool/plugins/org.eclipse.epp.package.common_4.29.0.20230907-1200/splash.bmp -launcher /home/mpatari/eclipse/jee-2023-092/eclipse/eclipse -name Eclipse --launcher.library /home/mpatari/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.2.700.v20221108-1024/eclipse_11801.so -startup /home/mpatari/eclipse/jee-2023-092/eclipse//plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar --launcher.appendVmargs -exitdata 2 -product org.eclipse.epp.package.jee.product -vm /home/mpatari/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_17.0.9.v20231028-0858/jre/bin/java -vmargs -Dosgi.requiredJavaVersion=17 [email protected]/eclipse-workspace -Dosgi.dataAreaRequiresExplicitInit=true -Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true -Dsun.java.command=Eclipse -Xms256m -Xmx2048m -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Declipse.p2.max.threads=10 -Doomph.update.url=https://download.eclipse.org/oomph/updates/milestone/latest -Doomph.redirection.index.redirection=index:/->https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/ --add-opens=java.base/java.lang=ALL-UNNAMED -Dorg.eclipse.swt.browser.DefaultType=mozilla -jar /home/mpatari/eclipse/jee-2023-092/eclipse//plugins/org.eclipse.equinox.launcher_1.6.500.v20230717-2134.jar

Host: 12th Gen Intel(R) Core(TM) i3-12100, 8 cores, 7G, Ubuntu 22.04.2 LTS
Time: Thu Apr 18 12:46:35 2024 IST elapsed time: 678.075570 seconds (0d 0h 11m 18s)

我尝试重新安装 Eclipse 并创建一个新的工作区来导入以前的项目,但问题仍然存在。我正在 Ubuntu 上运行 Eclipse,项目是用 Java 编写的。我还检查了 Eclipse 是否已更新到最新版本。非常感谢您的回复。

java linux eclipse ubuntu
1个回答
0
投票

这是一个已知问题,已针对即将于 2024 年 6 月 12 日发布的 Eclipse IDE 版本 2024-06 (4.32) 进行修复。

参见

Eclipse SWT 问题 #381 - Eclipse 使用 # C 崩溃 [libwebkit2gtk-4.0.so.37+0xbc8316]

作为

解决方法,您可以使用即将发布版本的第一个(或尽快使用另一个)里程碑,直到发布 Eclipse IDE 2024-06 (4.32)。

© www.soinside.com 2019 - 2024. All rights reserved.