An unexpected error has been detected by HotSpot Virtual Machine的解决过程

星期四 2007年08月30日

An unexpected error has been detected by HotSpot Virtual Machine的解决过程

 

一个很奇怪的错误。最近要做一个SWING的软件(其实也说不上软件啦),界面很难看,晕死,让人接受不了。去开源社区里找了一些资料发现有一些界面美化的项目。下载了一个好评度高的-------substance look&feel。下载地址:https://substance.dev.java.net/

这个项目的目的是提供一个流行的外观(look & feel)。这个外观(look & feel)联合了Windows XP和MacOS 10.4最好的特性并且需要JDK 5.0以上。

我的环境配置是jdk1.5.0+JBuilder 2005。虽然要求是jdk1.5.0,界面显示出来了,真的很不错。但是我点击别的按钮,应用程序一下字就关了,还打印出如下信息

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d1c5c68, pid=736, tid=2208
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing)
# Problematic frame:
# C  [dcpr.dll+0x5c68]
#
# An error report file with more information is saved as hs_err_pid736.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp

 

晕!这个第一次碰到。还好,有搜索在!搜索了一阵子,发现网上也没有明确的解决方案,但是还是了解到了一些,估计是JDK版本的问题,立刻到sun官方:http://www.sun/  下载最新的稳定版,JDK1.6!下载,安装。接着在JB工程里面换JDK工程属性。然后运行,出现界面!

问题没出现!Happying ...................

以下是错误日志文件的内容:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d1c5c68, pid=344, tid=2660
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-b64 mixed mode, sharing)
# Problematic frame:
# C  [dcpr.dll+0x5c68]
#

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

Current thread (0x00842b60):  JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2660]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000
ESP=0x0312f000, EBP=0x0312f00c, ESI=0x008698f4, EDI=0x0000005c
EIP=0x6d1c5c68, EFLAGS=0x00010246

Top of Stack: (sp=0x0312f000)
0x0312f000:   00869404 008698f4 00000017 0312f044
0x0312f010:   6d1c5bc1 008699e0 008698f4 00000017
0x0312f020:   00000000 00000001 00000000 3f800000
0x0312f030:   00000000 3d400000 00000003 00869404
0x0312f040:   008698f4 0312f08c 6d1c538b 008699e0
0x0312f050:   008698f4 41b00000 3f800000 00000000
0x0312f060:   3d400000 00000017 00000000 008693b4
0x0312f070:   008693b4 008699e0 3f800000 41b00000

Instructions: (pc=0x6d1c5c68)
0x6d1c5c58:   c1 e7 02 8b 40 64 33 d2 c1 e3 02 8b 04 07 33 c9
0x6d1c5c68:   8b 34 18 3b f2 0f 94 c1 3b ca 75 1b d9 46 74 d8


Stack: [0x030f0000,0x03130000),  sp=0x0312f000,  free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [dcpr.dll+0x5c68]
C  [dcpr.dll+0x5bc1]
C  [dcpr.dll+0x538b]
C  [dcpr.dll+0x4da5]
C  [dcpr.dll+0x1900]
C  [dcpr.dll+0x68f3]
C  [dcpr.dll+0x2601]
j  sun.dc.pr.PathFiller.setOutputArea(FFII)V+0
J  sun.java2d.pipe.DuctusShapeRenderer.renderPath(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;Ljava/awt/BasicStroke;)V
v  ~RuntimeStub::alignment_frame_return Runtime1 stub
j  sun.java2d.pipe.DuctusShapeRenderer.draw(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+38
j  sun.java2d.pipe.ValidatePipe.draw(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+14
j  sun.java2d.SunGraphics2D.draw(Ljava/awt/Shape;)V+6
j  org.jvnet.substance.border.StandardBorderPainter.paintBorder(Ljava/awt/Graphics;IILjava/awt/Shape;Lorg/jvnet/substance/color/ColorScheme;Lorg/jvnet/substance/color/ColorScheme;FZ)V+160
j  org.jvnet.substance.SubstanceImageCreator.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics2D;IIIILorg/jvnet/substance/color/ColorScheme;)V+39
j  org.jvnet.substance.SubstanceImageCreator.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics2D;IIIILorg/jvnet/substance/theme/SubstanceTheme;)V+16
j  org.jvnet.substance.SubstanceBorder.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics;IIIIZZF)V+409
j  org.jvnet.substance.SubstanceBorder.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics;IIII)V+21
j  javax.swing.border.CompoundBorder.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics;IIII)V+36
j  javax.swing.JComponent.paintBorder(Ljava/awt/Graphics;)V+22
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+266
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+495
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+495
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+495
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+495
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
j  javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+174
j  javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z+131
j  javax.swing.JComponent._paintImmediately(IIII)V+739
j  javax.swing.JComponent.paintImmediately(IIII)V+83
j  javax.swing.RepaintManager.paintDirtyRegions()V+314
j  javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32
j  java.awt.event.InvocationEvent.dispatch()V+47
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+200
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub
V  [jvm.dll+0x8168d]
V  [jvm.dll+0xd4179]
V  [jvm.dll+0x8155e]
V  [jvm.dll+0x812bb]
V  [jvm.dll+0x9bbe9]
V  [jvm.dll+0xfe77f]
V  [jvm.dll+0xfe74d]
C  [MSVCRT.dll+0x2a3b0]
C  [kernel32.dll+0xb683]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.dc.pr.PathFiller.setOutputArea(FFII)V+0
J  sun.java2d.pipe.DuctusShapeRenderer.renderPath(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;Ljava/awt/BasicStroke;)V
v  ~RuntimeStub::alignment_frame_return Runtime1 stub
j  sun.java2d.pipe.DuctusShapeRenderer.draw(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+38
j  sun.java2d.pipe.ValidatePipe.draw(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+14
j  sun.java2d.SunGraphics2D.draw(Ljava/awt/Shape;)V+6
j  org.jvnet.substance.border.StandardBorderPainter.paintBorder(Ljava/awt/Graphics;IILjava/awt/Shape;Lorg/jvnet/substance/color/ColorScheme;Lorg/jvnet/substance/color/ColorScheme;FZ)V+160
j  org.jvnet.substance.SubstanceImageCreator.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics2D;IIIILorg/jvnet/substance/color/ColorScheme;)V+39
j  org.jvnet.substance.SubstanceImageCreator.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics2D;IIIILorg/jvnet/substance/theme/SubstanceTheme;)V+16
j  org.jvnet.substance.SubstanceBorder.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics;IIIIZZF)V+409
j  org.jvnet.substance.SubstanceBorder.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics;IIII)V+21
j  javax.swing.border.CompoundBorder.paintBorder(Ljava/awt/Component;Ljava/awt/Graphics;IIII)V+36
j  javax.swing.JComponent.paintBorder(Ljava/awt/Graphics;)V+22
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+266
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+495
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+495
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+495
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
j  javax.swing.JComponent.paintChildren(Ljava/awt/Graphics;)V+495
j  javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+292
j  javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V+174
j  javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z+131
j  javax.swing.JComponent._paintImmediately(IIII)V+739
j  javax.swing.JComponent.paintImmediately(IIII)V+83
j  javax.swing.RepaintManager.paintDirtyRegions()V+314
j  javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+32
j  java.awt.event.InvocationEvent.dispatch()V+47
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j  java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+200
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x00868d70 JavaThread "Laf-Widget fade tracker" [_thread_blocked, id=3288]
  0x00862310 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=4024]
  0x0084a950 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3560]
  0x00843e80 JavaThread "DestroyJavaVM" [_thread_blocked, id=3052]
=>0x00842b60 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2660]
  0x00841ba0 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2516]
  0x00840140 JavaThread "AWT-Shutdown" [_thread_blocked, id=2172]
  0x00831e80 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3676]
  0x0082f810 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1712]
  0x0082e660 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2316]
  0x0082d950 JavaThread "Finalizer" daemon [_thread_blocked, id=1792]
  0x0082c650 JavaThread "Reference Handler" daemon [_thread_blocked, id=1488]

Other Threads:
  0x0082b860 VMThread [id=3104]
  0x008331c0 WatcherThread [id=2076]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 393K [0x22bd0000, 0x22c70000, 0x230b0000)
  eden space 512K,  67% used [0x22bd0000, 0x22c26fc0, 0x22c50000)
  from space 64K,  70% used [0x22c50000, 0x22c5b500, 0x22c60000)
  to   space 64K,   0% used [0x22c60000, 0x22c60000, 0x22c70000)
 tenured generation   total 7476K, used 5897K [0x230b0000, 0x237fd000, 0x26bd0000)
   the space 7476K,  78% used [0x230b0000, 0x236727f0, 0x23672800, 0x237fd000)
 compacting perm gen  total 8192K, used 2596K [0x26bd0000, 0x273d0000, 0x2abd0000)
   the space 8192K,  31% used [0x26bd0000, 0x26e59040, 0x26e59200, 0x273d0000)
    ro space 8192K,  66% used [0x2abd0000, 0x2b127960, 0x2b127a00, 0x2b3d0000)
    rw space 12288K,  46% used [0x2b3d0000, 0x2b9643a8, 0x2b964400, 0x2bfd0000)

Dynamic libraries:
0x00400000 - 0x0040c000  D:/Program Files/jdk1.5.0/bin/javaw.exe
0x7c920000 - 0x7c9b4000  C:/WINDOWS/system32/ntdll.dll
0x7c800000 - 0x7c91d000  C:/WINDOWS/system32/kernel32.dll
0x77da0000 - 0x77e49000  C:/WINDOWS/system32/ADVAPI32.dll
0x77e50000 - 0x77ee1000  C:/WINDOWS/system32/RPCRT4.dll
0x77d10000 - 0x77d9f000  C:/WINDOWS/system32/USER32.dll
0x77ef0000 - 0x77f37000  C:/WINDOWS/system32/GDI32.dll
0x77be0000 - 0x77c38000  C:/WINDOWS/system32/MSVCRT.dll
0x76300000 - 0x7631d000  C:/WINDOWS/system32/IMM32.DLL
0x62c20000 - 0x62c29000  C:/WINDOWS/system32/LPK.DLL
0x73fa0000 - 0x7400b000  C:/WINDOWS/system32/USP10.dll
0x6d640000 - 0x6d7c5000  D:/Program Files/jdk1.5.0/jre/bin/client/jvm.dll
0x76b10000 - 0x76b3a000  C:/WINDOWS/system32/WINMM.dll
0x6d280000 - 0x6d288000  D:/Program Files/jdk1.5.0/jre/bin/hpi.dll
0x76bc0000 - 0x76bcb000  C:/WINDOWS/system32/PSAPI.DLL
0x6d610000 - 0x6d61c000  D:/Program Files/jdk1.5.0/jre/bin/verify.dll
0x6d300000 - 0x6d31d000  D:/Program Files/jdk1.5.0/jre/bin/java.dll
0x6d630000 - 0x6d63f000  D:/Program Files/jdk1.5.0/jre/bin/zip.dll
0x6d000000 - 0x6d166000  D:/Program Files/jdk1.5.0/jre/bin/awt.dll
0x72f70000 - 0x72f96000  C:/WINDOWS/system32/WINSPOOL.DRV
0x76990000 - 0x76acd000  C:/WINDOWS/system32/ole32.dll
0x5adc0000 - 0x5adf7000  C:/WINDOWS/system32/uxtheme.dll
0x736d0000 - 0x73719000  C:/WINDOWS/system32/ddraw.dll
0x73b30000 - 0x73b36000  C:/WINDOWS/system32/DCIMAN32.dll
0x738b0000 - 0x73980000  C:/WINDOWS/system32/D3DIM700.DLL
0x74680000 - 0x746cb000  C:/WINDOWS/system32/MSCTF.dll
0x73640000 - 0x7366e000  C:/WINDOWS/system32/msctfime.ime
0x7d590000 - 0x7dd82000  C:/WINDOWS/system32/shell32.dll
0x77f40000 - 0x77fb6000  C:/WINDOWS/system32/SHLWAPI.dll
0x77180000 - 0x77283000  C:/WINDOWS/WinSxS/x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03/comctl32.dll
0x5d170000 - 0x5d20a000  C:/WINDOWS/system32/comctl32.dll
0x6d240000 - 0x6d27d000  D:/Program Files/jdk1.5.0/jre/bin/fontmanager.dll
0x6d1c0000 - 0x6d1e3000  D:/Program Files/jdk1.5.0/jre/bin/dcpr.dll
0x6d4c0000 - 0x6d4d3000  D:/Program Files/jdk1.5.0/jre/bin/net.dll
0x71a20000 - 0x71a37000  C:/WINDOWS/system32/WS2_32.dll
0x71a10000 - 0x71a18000  C:/WINDOWS/system32/WS2HELP.dll
0x6d4e0000 - 0x6d4e9000  D:/Program Files/jdk1.5.0/jre/bin/nio.dll

VM Arguments:
java_command: edu.nit.patentsoft.PatentSoftMain

Environment Variables:
JAVA_HOME=D:/Program Files/jdk1.5.0
CLASSPATH=.;D:/PROGRA~1/IBM/SQLLIB/java/db2java.zip;D:/PROGRA~1/IBM/SQLLIB/java/db2jcc.jar;D:/PROGRA~1/IBM/SQLLIB/java/sqlj.zip;D:/PROGRA~1/IBM/SQLLIB/bin;D:/PROGRA~1/IBM/SQLLIB/java/common.jar;D:/PROGRA~1/IBM/SQLLIB/java/db2jcc_license_cisuz.jar;D:/PROGRA~1/IBM/SQLLIB/java/db2jcc_license_cu.jar
PATH=D:/Program Files/JBuilder2005/bin;D:/Program Files/JBuilder2005/jdk1.4/bin;.;C:/Program Files/Oracle/jre/1.1.8/bin;D:/Program Files/jdk1.5.0/bin;D:/oracle/ora92/bin;C:/Program Files/Oracle/jre/1.3.1/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;D:/PROGRA~1/IBM/SQLLIB/BIN;D:/PROGRA~1/IBM/SQLLIB/FUNCTION;D:/PROGRA~1/IBM/SQLLIB/SAMPLES/REPL;C:/Program Files/Microsoft SQL Server/80/Tools/BINN;C:/Program Files/CVSNT/;D:/Program Files/JBuilder2005/debug/sa;D:/Program Files/JBuilder2005/lib
USERNAME=nitlib
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel


---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 1047788k(403700k free), swap 2520140k(1981480k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0-b64) for windows-x86, built on Sep 15 2004 03:00:31 by "java_re" with MS VC++ 6.0

 

你可能感兴趣的:(J2SE)