Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Today I decided to continue working on a program that I had created for my Computer Science class. Upon running it, I am greeted with this in the console:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffeb23c7510, pid=7320, tid=9084
#
# JRE version: Java(TM) SE Runtime Environment (8.0_11-b12) (build 1.8.0_11-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.11-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  0x00007ffeb23c7510
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:UsersAdamDesktopeclipse-standard-luna-R-win32-x86_64eclipseworkspaceCS PROGRAM FINALhs_err_pid7320.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

So, I try to run another program that is completely unrelated to the first one, and the same thing happens. Bear in mind that everything was working perfectly yesterday.

Then, I tried to install a fresh copy of eclipse (Luna) on and try the program again.

Running a simple "Hello World" program works perfectly, but once again, running the first program crashes the JVM with the same error.

I am running Java 1.8 on Windows 8.1 64-bit.

The program that I cannot run simply uses AWT and Swing classes as well as some io classes such as BufferedWriter.

This is the log produced by eclipse:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffeb23c7510, pid=9044, tid=1944
#
# JRE version: Java(TM) SE Runtime Environment (8.0_11-b12) (build 1.8.0_11-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.11-b03 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  0x00007ffeb23c7510
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x000000001dfbc000):  JavaThread "AWT-Windows" daemon [_thread_in_native, id=1944, stack(0x000000001ed50000,0x000000001ee50000)]

siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x00007ffeb23c7510

Registers:
RAX=0x0000000021a57f20, RBX=0x0000000000000000, RCX=0x000000001ee4e050, RDX=0x0000000021a53b48
RSP=0x000000001ee4e028, RBP=0x00000000210f8028, RSI=0x0000000021a53b40, RDI=0x0000000021a53b40
R8 =0x0000000000000000, R9 =0x0000000000000001, R10=0x0000000020f10150, R11=0x00000000231a3a20
R12=0x0000000000000020, R13=0x0000000000000020, R14=0x0000000000000000, R15=0x000000001dfbc000
RIP=0x00007ffeb23c7510, EFLAGS=0x0000000000010246

Top of Stack: (sp=0x000000001ee4e028)
0x000000001ee4e028:   00007ffeb21675d7 0000000000000008
0x000000001ee4e038:   000000002196ec80 0000000000000001
0x000000001ee4e048:   fffffffffffffffe 0000000021a53b40
0x000000001ee4e058:   0000000000000000 0000000000000001
0x000000001ee4e068:   00000000665f17a0 000000002196ec80
0x000000001ee4e078:   000000001df48030 00000000210f8028
0x000000001ee4e088:   0000000021a53b40 fffffffffffffffe
0x000000001ee4e098:   00000000666a57fe 0000000000000000
0x000000001ee4e0a8:   00007ffeb21677cc 0000000000000000
0x000000001ee4e0b8:   0000000000000008 fffffffffffffffe
0x000000001ee4e0c8:   00000000665ec30a 0000000000000000
0x000000001ee4e0d8:   0000000000000000 0000000000000001
0x000000001ee4e0e8:   0000000000000000 0000000021a53b40
0x000000001ee4e0f8:   00000000665e88f0 00000000210f7d90
0x000000001ee4e108:   00000000210f7d90 0000000000000000
0x000000001ee4e118:   0000000000000000 000056ad00000001 

Instructions: (pc=0x00007ffeb23c7510)
0x00007ffeb23c74f0:   
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]

Register to memory mapping:

RAX=0x0000000021a57f20 is an unknown value
RBX=0x0000000000000000 is an unknown value
RCX=0x000000001ee4e050 is pointing into the stack for thread: 0x000000001dfbc000
RDX=0x0000000021a53b48 is an unknown value
RSP=0x000000001ee4e028 is pointing into the stack for thread: 0x000000001dfbc000
RBP=0x00000000210f8028 is an unknown value
RSI=0x0000000021a53b40 is an unknown value
RDI=0x0000000021a53b40 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x0000000000000001 is an unknown value
R10=0x0000000020f10150 is an unknown value
R11=0x00000000231a3a20 is an unknown value
R12=0x0000000000000020 is an unknown value
R13=0x0000000000000020 is an unknown value
R14=0x0000000000000000 is an unknown value
R15=0x000000001dfbc000 is a thread


Stack: [0x000000001ed50000,0x000000001ee50000],  sp=0x000000001ee4e028,  free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x00007ffeb23c7510

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.java2d.d3d.D3DGraphicsDevice.getDeviceCapsNative(I)I+0
j  sun.java2d.d3d.D3DGraphicsDevice.access$000(I)I+1
j  sun.java2d.d3d.D3DGraphicsDevice$1.run()V+8
v  ~StubRoutines::call_stub
j  sun.awt.windows.WToolkit.eventLoop()V+0
j  sun.awt.windows.WToolkit.run()V+58
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x0000000002080800 JavaThread "DestroyJavaVM" [_thread_blocked, id=7952, stack(0x0000000001f10000,0x0000000002010000)]
  0x000000001dfbe000 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=8420, stack(0x000000001f0f0000,0x000000001f1f0000)]
=>0x000000001dfbc000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1944, stack(0x000000001ed50000,0x000000001ee50000)]
  0x000000001dfb7800 JavaThread "AWT-Shutdown" [_thread_blocked, id=8836, stack(0x000000001ec50000,0x000000001ed50000)]
  0x000000001df74800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=7760, stack(0x000000001eb50000,0x000000001ec50000)]
  0x000000001dc90000 JavaThread "Service Thread" daemon [_thread_blocked, id=7300, stack(0x000000001e5d0000,0x000000001e6d0000)]
  0x000000001dc16000 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=8408, stack(0x000000001e4d0000,0x000000001e5d0000)]
  0x000000001dc02800 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=5008, stack(0x000000001e3d0000,0x000000001e4d0000)]
  0x000000001dbfb800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=4868, stack(0x000000001e2d0000,0x000000001e3d0000)]
  0x000000001dbf5800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=8548, stack(0x000000001e1d0000,0x000000001e2d0000)]
  0x000000001dbf4000 JavaThread "Attach Listener" daemon [_thread_blocked, id=8580, stack(0x000000001e0d0000,0x000000001e1d0000)]
  0x000000001bbee000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=952, stack(0x000000001dfd0000,0x000000001e0d0000)]
  0x0000000002176000 JavaThread "Finalizer" daemon [_thread_blocked, id=6040, stack(0x000000001dad0000,0x000000001dbd0000)]
  0x000000001bbdc000 JavaThread "Reference Handler" daemon [_thread_blocked, id=7336, stack(0x000000001d9d0000,0x000000001dad0000)]

Other Threads:
  0x000000001bbd7000 VMThread [stack: 0x000000001d8d0000,0x000000001d9d0000] [id=8528]
  0x000000001dc92000 WatcherThread [stack: 0x000000001e6d0000,0x000000001e7d0000] [id=8996]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 PSYoungGen      total 1024K, used 560K [0x000000076b180000, 0x000000076b380000, 0x00000007c0000000)
  eden space 512K, 12% used [0x000000076b180000,0x000000076b190390,0x000000076b200000)
  from space 512K, 96% used [0x000000076b200000,0x000000076b27c010,0x000000076b280000)
  to   space 512K, 0% used [0x000000076b300000,0x000000076b300000,0x000000076b380000)
 ParOldGen       total 260608K, used 124K [0x00000006c1400000, 0x00000006d1280000, 0x000000076b180000)
  object space 260608K, 0% used [0x00000006c1400000,0x00000006c141f010,0x00000006d1280000)
 Metaspace       used 5180K, capacity 5314K, committed 5632K, reserved 1056768K
  class space    used 642K, capacity 692K, committed 768K, reserved 1048576K

Card table byte_map: [0x0000000011540000,0x0000000011d40000] byte_map_base: 0x000000000df36000

Marking Bits: (ParMarkBitMap*) 0x0000000065c612b0
 Begin Bits: [0x0000000012a90000, 0x0000000016a40000)
 End Bits:   [0x0000000016a40000, 0x000000001a9f0000)

Polling page: 0x0000000000720000

CodeCache: size=245760Kb used=1436Kb max_used=1436Kb free=244323Kb
 bounds [0x0000000002180000, 0x00000000023f0000, 0x0000000011180000]
 total_blobs=498 nmethods=178 adapters=234
 compilation: enabled

Compilation events (10 events):
Event: 0.176 Thread 0x000000001dc16000  173       3       java.lang.String::indexOf (166 bytes)
Event: 0.176 Thread 0x000000001dc16000 nmethod 173 0x00000000022e2650 code [0x00000000022e2800, 0x00000000022e2e50]
Event: 0.176 Thread 0x000000001dc16000  174       3       jdk.internal.org.objectweb.asm.Type::getType (269 bytes)
Event: 0.176 Thread 0x000000001dc16000 nmethod 174 0x00000000022e3210 code [0x00000000022e3400, 0x00000000022e3cd0]
Event: 0.176 Thread 0x000000001dc16000  176       3       sun.invoke.util.Wrapper::hashChar (9 bytes)
Event: 0.176 Thread 0x000000001dc16000 nmethod 176 0x00000000022e40d0 code [0x00000000022e4220, 0x00000000022e4370]
Event: 0.180 Thread 0x000000001dc16000  177       3       java.util.HashMap::putVal (300 bytes)
Event: 0.181 Thread 0x000000001dc16000 nmethod 177 0x00000000022e4650 code [0x00000000022e48c0, 0x00000000022e5b98]
Event: 0.181 Thread 0x000000001dc16000  178       3       java.util.HashMap::put (13 bytes)
Event: 0.181 Thread 0x000000001dc16000 nmethod 178 0x00000000022e6250 code [0x00000000022e63e0, 0x00000000022e6798]

GC Heap History (6 events):
Event: 0.072 GC heap before
{Heap before GC invocations=1 (full 0):
 PSYoungGen      total 1024K, used 512K [0x000000076b180000, 0x000000076b300000, 0x00000007c0000000)
  eden space 512K, 100% used [0x000000076b180000,0x000000076b200000,0x000000076b200000)
  from space 512K, 0% used [0x000000076b280000,0x000000076b280000,0x000000076b300000)
  to   space 512K, 0% used [0x000000076b200000,0x000000076b200000,0x000000076b280000)
 ParOldGen       total 260608K, used 0K [0x00000006c1400000, 0x00000006d1280000, 0x000000076b180000)
  object space 260608K, 0% used [0x00000006c1400000,0x00000006c1400000,0x00000006d1280000)
 Metaspace       used 3127K, capacity 4522K, committed 4864K, reserved 1056768K
  class space    used 378K, capacity 418K, committed 512K, reserved 1048576K
Event: 0.072 GC heap after
Heap after GC invocations=1 (full 0):
 PSYoungGen      total 1024K, used 496K [0x000000076b180000, 0x000000076b300000, 0x00000007c0000000)
  eden space 512K, 0% used [0x000000076b180000,0x000000076b180000,0x000000076b200000)
  from space 512K, 96% used [0x000000076b200000,0x000000076b27c010,0x000000076b280000)
  to   space 512K, 0% used [0x000000076b280000,0x000000076b280000,0x000000076b300000)
 ParOldGen       total 260608K, used 8K [0x00000006c1400000, 0x00000006d1280000, 0x000000076b180000)
  object space 260608K, 0% used [0x00000006c1400000,0x00000006c1402000,0x00000006d1280000)
 Metaspace       used 3127K, capacity 4522K, committed 4864K, reserved 1056768K
  class space    used 378K, capacity 418K, committed 512K, reserved 1048576K
}
Event: 0.110 GC heap before

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
305 views
Welcome To Ask or Share your Answers For Others

1 Answer

The crash happens inside DirectX library: d3d9.dll. Try the following options:

  • Update / reinstall graphics driver.
  • Switch off graphics card utilities (I've noticed RivaTuner in the list of loaded libraries).
  • Run Java with -Dsun.java2d.d3d=false JVM option or set J2D_D3D=false environment variable. This would definitely help, though Java will not make use of Direct3D acceleration.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...