冰茶和lwgjl

发布于 2024-09-14 11:26:43 字数 1767 浏览 10 评论 0原文

我最近发现自己使用了 Linux 计算机,并且到目前为止我很喜欢它。

然而,我一直遇到一个问题,并且不知道问题的根源。我正在尝试制作一个在 Eclipse 中使用 lwjgl 的 java 项目(我在 Windows 中做过的事情),但是当我运行代码时,我的显示窗口变黑并闪烁,并且我收到此错误报告 -

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f5004c70c98, pid=10427, tid=139981673781008
#
# JRE version: 6.0_18-b18
# Java VM: OpenJDK 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.8.1
# Distribution: Ubuntu 10.04 LTS, package 6b18-1.8.1-0ubuntu1
# Problematic frame:
# C  [libX11.so.6+0x37c98]  XQueryExtension+0x28
#
# An error report file with more information is saved as:
# /home/jeff/workspace/SpinDodge3/hs_err_pid10427.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#

我安装了 sun java 6 jdk我尝试使用 -vm 命令将 Eclipse 指向该目录,但此错误是相同的。不使用 lwjgl 的 Java 项目可以工作。这是因为我使用 lwjgl 错误,它与icedTea 交互的方式(-vm 命令似乎对此没有任何作用),eclipse?我不知道从哪里开始。

这里有人在 Linux 中使用过 lwgjl 吗?他们有什么想法吗?

谢谢

(我也可以发布错误日志,但它很长,我不知道它会有多大帮助)

编辑:在我更改使用中的jdk之后,它运行但仅运行一帧,然后因此错误而崩溃-

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fbfd4fb7c98, pid=2060, tid=140461906126608
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [libX11.so.6+0x37c98]  XQueryExtension+0x28
#
# An error report file with more information is saved as:
# /home/jeff/workspace/SpinDodge3/hs_err_pid2060.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

任何想法?

I have recently found myself on a Linux computer and am liking it so far.

However, I have been having an issue and dont really know the source. I am trying to make a java project that uses lwjgl in eclipse (something I have done in windows) but when I run the code my display window comes up black and blinking and I get this error report-

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f5004c70c98, pid=10427, tid=139981673781008
#
# JRE version: 6.0_18-b18
# Java VM: OpenJDK 64-Bit Server VM (16.0-b13 mixed mode linux-amd64 )
# Derivative: IcedTea6 1.8.1
# Distribution: Ubuntu 10.04 LTS, package 6b18-1.8.1-0ubuntu1
# Problematic frame:
# C  [libX11.so.6+0x37c98]  XQueryExtension+0x28
#
# An error report file with more information is saved as:
# /home/jeff/workspace/SpinDodge3/hs_err_pid10427.log
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#

I have the sun java 6 jdk installed and I have tried pointing eclipse to that using the -vm command but this error is the same. Java projects not using lwjgl work. Is this because I am using lwjgl wrong, the way it interacts with icedTea (something which the -vm command seems to do nothing for), eclipse? I have no idea where to even start.

Has anybody here used lwgjl in Linux, do they have any ideas?

Thankyou

(also I can post the error log but it is pretty long, I dont know how much help it will be)

EDIT: After I changed the jdk in use it runs but only for one frame and then crashes with this error-

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fbfd4fb7c98, pid=2060, tid=140461906126608
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 )
# Problematic frame:
# C  [libX11.so.6+0x37c98]  XQueryExtension+0x28
#
# An error report file with more information is saved as:
# /home/jeff/workspace/SpinDodge3/hs_err_pid2060.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

如果没有 2024-09-21 11:26:43

运行 sudo update-java-alternatives -l 来查看系统上不同版本的 Java。然后运行 ​​sun update-java-alternatives -s [java type] 将其设置为默认值,这会将其绑定到命令 javajavaw 等。

在您的情况下,您应该按照 Java 社区文档 页面。


看来 Java 不是问题所在。您应该阅读有关 SIGSEGVXQueryExtension;看来你的 Xlib 或 X11 是罪魁祸首。

如果我是你,这个时候我就会按照指示去做;转到 https://bugs.launchpad.net/ubuntu/+source/openjdk -6/ 并提交错误报告,粘贴此错误并附加日志文件 (/home/jeff/workspace/SpinDodge3/hs_err_pid10427.log)。看看专家是否可以将您引导到问题所在的确切位置。

当然,还要确保您的系统已更新。您不想报告已经修复的错误。

Run sudo update-java-alternatives -l to see the different versions of Java on your system. Then run sun update-java-alternatives -s [java type] to set it as the default, which binds it to the commands java, javaw, etc.

In your case, you should run sudo update-java-alternatives -s java-6-sun as mentioned on the Java Community Documentation page.


Well it looks like Java isn't the problem. You should read about SIGSEGV and XQueryExtension; it looks like your Xlib or X11 is to blame.

If I were you, at this time I would follow the instructions; go to https://bugs.launchpad.net/ubuntu/+source/openjdk-6/ and submit a bug report, paste this error and attach the logfile (/home/jeff/workspace/SpinDodge3/hs_err_pid10427.log). See if the experts can redirect you to exactly where the problem lies.

Also, of course, make sure your system is updated. You don't want to report a bug that has already been fixed.

鯉魚旗 2024-09-21 11:26:43

据我所知,这是 Ubuntu 10.04 中 eclipse 和 openGL 的错误。无论使用什么jdk都会发生这种情况(我都尝试过)。但是,我发现这个错误仅在程序关闭时抛出,并且不会导致我在 lwjgl 渲染中看到的问题。除了错误日志的积累之外,到目前为止,忽略此错误并没有给我带来任何问题。

As far as I can tell this is an error with eclipse and openGL in Ubuntu 10.04. It happens regardless of the jdk used (I have tried both). However, I have figured out that this error is only thrown when the program closes and was not causing the problems I saw with the lwjgl rendering. Except for the build-up of error logs just ignoring this error has caused me no problems so far.

拥抱我好吗 2024-09-21 11:26:43

您不是使用 Sun JVM 执行,而是使用 OpenJDK,并且存在细微的差异。将 Ubuntu 切换为使用 Sun JVM,然后重试。

You are not executing with the Sun JVM but with the OpenJDK, and there are subtle differences. Switch Ubuntu to use the Sun JVM and try again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文