Redian新闻
>
Fatal Error怎么回事?
avatar
Fatal Error怎么回事?# Java - 爪哇娇娃
b*i
1
# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007feff501773, pid=
23212, tid=23300
# JRE version: 6.0_37-b06
# JavaVM:JavaHotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode windows-
amd64
compressed oops)
# Problematic frame:
# C [ole32.dll+0x21773]
# An error report file with more information is saved as:
# ----------------------------hs_err_pid23212.log
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WComponentPeer.removeNativeDropTarget()V+0
j sun.awt.windows.WComponentPeer.removeDropTarget(Ljava/awt/dnd/DropTarget;
)V+18
j java.awt.dnd.DropTarget.removeNotify(Ljava/awt/peer/ComponentPeer;)V+15
j java.awt.Component.removeNotify()V+211
j java.awt.Container.removeNotify()V+71
j javax.swing.JComponent.removeNotify()V+1
j javax.swing.text.JTextComponent.removeNotify()V+1
j java.awt.Container.removeNotify()V+42
j javax.swing.JComponent.removeNotify()V+1
j java.awt.Container.removeNotify()V+42
j javax.swing.JComponent.removeNotify()V+1
j java.awt.Container.remove(I)V+55
j java.awt.Container.remove(Ljava/awt/Component;)V+32
j java.awt.Container.addImpl(Ljava/awt/Component;Ljava/lang/Object;I)V+85
j javax.swing.JLayeredPane.addImpl(Ljava/awt/Component;Ljava/lang/Object;I)
V+55
j java.awt.Container.add(Ljava/awt/Component;)Ljava/awt/Component;+4
下面是我的代码:
a.add(b); a b 都是JComponent
目前我运行程序上百次,多次问题都在这里fatal error。是我代码问题吗?还是java
bug?
avatar
u*s
2
I saw similar error long time ago when I worked with Swing.
Try 32-bit JRE.
avatar
b*i
3
就是说不应该是我代码的问题?
马上测试32位java。看错误好像是用了hotspot直接编译成C了吧?

【在 u****s 的大作中提到】
: I saw similar error long time ago when I worked with Swing.
: Try 32-bit JRE.

avatar
u*s
4
JVM should not crash no matter what. 64-bit JRE is not as stable as 32-bit.
Unfortunately it crashes sometimes, most of time I saw it happens in JNI and
Swing.

【在 b***i 的大作中提到】
: 就是说不应该是我代码的问题?
: 马上测试32位java。看错误好像是用了hotspot直接编译成C了吧?

avatar
g*g
5
This is a JVM bug. Try to google it, if you are lucky, a later release may
have fixed it. If you are unlucky, try to work around it.

【在 b***i 的大作中提到】
: # A fatal error has been detected by the Java Runtime Environment:
: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007feff501773, pid=
: 23212, tid=23300
: # JRE version: 6.0_37-b06
: # JavaVM:JavaHotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode windows-
: amd64
: compressed oops)
: # Problematic frame:
: # C [ole32.dll+0x21773]
: # An error report file with more information is saved as:

avatar
b*i
6
32位好多了,还更快
avatar
u*s
7
Glad to hear :)
N年前搞JNI的时候,JVM经常死掉。
给Sun提了bug report,人家直接closed,won't fix.
换了自己的JRE,开始也crash,需要改一些code才行。不过发现了问题至少可以找到人
解决。

【在 b***i 的大作中提到】
: 32位好多了,还更快
avatar
z*e
8
什么os?
jdk下载有这么一句话:
* Please use the 32-bit version for Java applet and Java Web Start support.
avatar
b*i
9
win 7
jdk? 我首先让eclipse用32 jdk了,如果运行jre64还是崩溃。怎么设让哪个jre运行?
我看了path,没有java?

【在 z****e 的大作中提到】
: 什么os?
: jdk下载有这么一句话:
: * Please use the 32-bit version for Java applet and Java Web Start support.

avatar
b*i
10
用java 7 解决了这个问题。
java 7 不是出现fatal error,而是出现exception,原来我的代码中还是有两个地方在
线程中呼叫了Swing。改成InvokeLater就好了。

【在 b***i 的大作中提到】
: win 7
: jdk? 我首先让eclipse用32 jdk了,如果运行jre64还是崩溃。怎么设让哪个jre运行?
: 我看了path,没有java?

avatar
x*g
11
我前几天刚碰到类似的问题,好像是java 64bit造成的,尤其是在AMD processor上

【在 b***i 的大作中提到】
: # A fatal error has been detected by the Java Runtime Environment:
: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007feff501773, pid=
: 23212, tid=23300
: # JRE version: 6.0_37-b06
: # JavaVM:JavaHotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode windows-
: amd64
: compressed oops)
: # Problematic frame:
: # C [ole32.dll+0x21773]
: # An error report file with more information is saved as:

avatar
b*i
12
我32位都出问题,关键是java6有问题,Java7没问题

【在 x*****g 的大作中提到】
: 我前几天刚碰到类似的问题,好像是java 64bit造成的,尤其是在AMD processor上
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。