Skip to main content

opengl - EXCEPTION_ACCESS_VIOLATION

1 reply [Last post]
Anonymous

I'm getting the following error when using java with opengl enabled. Can anyone shed some light on this?

C:\bound\tst>java GFrame
Picked up _JAVA_OPTIONS: -Dsun.java2d.opengl=true
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x69313867, pid=692, tid=2012
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
# Problematic frame:
# C [atioglxx.dll+0x313867]
#
# An error report file with more information is saved as hs_err_pid692.log

I can reproduce every time, simply by creating a JFrame with nothing else going on. Running the following code will cause it to happen as soon as the frame is closed:

import javax.swing.*;

public class GFrame
{
public static void main(String[] args)
{
JFrame frame = new JFrame();

final int F_WIDTH = 800;
final int F_HEIGHT = 600;

frame.setSize(F_WIDTH, F_HEIGHT);
frame.setTitle("Test Frame");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frame.setVisible(true);
}
}

Contents of the log file are as follows:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x69313867, pid=692, tid=2012
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
# Problematic frame:
# C [atioglxx.dll+0x313867]
#

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

Current thread (0x00a84960): VMThread [id=2012]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000816c

Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x0b5afb28, EDX=0x00000001
ESP=0x0ab0fa38, EBP=0x00000000, ESI=0x0f7239c0, EDI=0x0f723700
EIP=0x69313867, EFLAGS=0x00010206

Top of Stack: (sp=0x0ab0fa38)
0x0ab0fa38: 0b5afb50 00000000 0b5afb28 00000000
0x0ab0fa48: 69445c4d 69313a1f 0f723700 0b5afb28
0x0ab0fa58: 00000000 00000000 0ab0faa0 69000000
0x0ab0fa68: 00000001 0b5afb50 0b5afb28 69313c1c
0x0ab0fa78: 00000002 693120e3 693121e7 69447bb2
0x0ab0fa88: 69000000 00000000 00000001 00000000
0x0ab0fa98: 0ab0fab4 00193090 0ab0fac0 7c9011a7
0x0ab0faa8: 69000000 00000000 00000001 00193090

Instructions: (pc=0x69313867)
0x69313857: 00 eb c8 33 c0 5d 59 c2 0c 00 53 56 8b 74 81 28
0x69313867: 8b 8d 6c 81 00 00 33 db 85 c9 89 74 24 10 7e 19

Stack: [0x0aad0000,0x0ab10000), sp=0x0ab0fa38, free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [atioglxx.dll+0x313867]

[error occurred during error reporting, step 120, id 0xc0000005]

VM_Operation (0x0ffff668): exit, mode: safepoint, requested by thread 0x0acd2140

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

Java Threads: ( => current thread )
0x00036db8 JavaThread "DestroyJavaVM" [_thread_blocked, id=2432]
0x0acd2140 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2452]
0x0acbce30 JavaThread "AWT-Shutdown" [_thread_blocked, id=2404]
0x0ac9c6d8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2448]
0x00a95088 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=208]
0x00a93ce8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2024]
0x00a92fe0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=468]
0x00a89fd8 JavaThread "Finalizer" daemon [_thread_blocked, id=2424]
0x00a88b70 JavaThread "Reference Handler" daemon [_thread_blocked, id=2392]

Other Threads:
=>0x00a84960 VMThread [id=2012]

VM state:at safepoint (shutting down)

VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x00036450/0x00000714] Threads_lock - owner thread: 0x00a84960

Heap
def new generation total 576K, used 317K [0x02ad0000, 0x02b70000, 0x02fb0000)
eden space 512K, 49% used [0x02ad0000, 0x02b0f650, 0x02b50000)
from space 64K, 100% used [0x02b60000, 0x02b70000, 0x02b70000)
to space 64K, 0% used [0x02b50000, 0x02b50000, 0x02b60000)
tenured generation total 1408K, used 201K [0x02fb0000, 0x03110000, 0x06ad0000)
the space 1408K, 14% used [0x02fb0000, 0x02fe2488, 0x02fe2600, 0x03110000)
compacting perm gen total 8192K, used 4395K [0x06ad0000, 0x072d0000, 0x0aad0000)
the space 8192K, 53% used [0x06ad0000, 0x06f1ad90, 0x06f1ae00, 0x072d0000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040d000 C:\WINDOWS\system32\java.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x6d6c0000 - 0x6d85b000 C:\Program Files\Java\jre1.5.0_09\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
0x629c0000 - 0x629c9000 C:\WINDOWS\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
0x6d280000 - 0x6d288000 C:\Program Files\Java\jre1.5.0_09\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d690000 - 0x6d69c000 C:\Program Files\Java\jre1.5.0_09\bin\verify.dll
0x6d300000 - 0x6d31d000 C:\Program Files\Java\jre1.5.0_09\bin\java.dll
0x6d6b0000 - 0x6d6bf000 C:\Program Files\Java\jre1.5.0_09\bin\zip.dll
0x6d000000 - 0x6d169000 C:\Program Files\Java\jre1.5.0_09\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5ed00000 - 0x5edcc000 C:\WINDOWS\system32\opengl32.dll
0x68b20000 - 0x68b40000 C:\WINDOWS\system32\GLU32.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\DDRAW.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d240000 - 0x6d27f000 C:\Program Files\Java\jre1.5.0_09\bin\fontmanager.dll
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
0x69000000 - 0x694f4000 C:\WINDOWS\system32\atioglxx.dll
0x7c9c0000 - 0x7d1d5000 C:\WINDOWS\system32\shell32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll
0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.DLL

VM Arguments:
jvm_args: -Dsun.java2d.opengl=true
java_command: GFrame
Launcher Type: SUN_STANDARD

Environment Variables:
_JAVA_OPTIONS=-Dsun.java2d.opengl=true
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0_09\bin
USERNAME=don
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 9, GenuineIntel

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

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht

Memory: 4k page, physical 1570892k(1149972k free), swap 3515548k(3212852k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for windows-x86, built on Oct 12 2006 01:20:10 by "java_re" with MS VC++ 6.0

Thanks,
-Don.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chris Campbell

Hi Don,

What graphics card and driver version are you using? Please note that
there are significant improvements to the OpenGL-based pipeline in Java
SE 6, and you are unlikely to see this problem if you try JDK 6:
http://java.sun.com/javase/downloads/ea.jsp

For more details, see this bug report:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5066318

Thanks,
Chris

D Walsh wrote:
> I'm getting the following error when using java with opengl enabled. Can
> anyone shed some light on this?
>
> C:\bound\tst>java GFrame
> Picked up _JAVA_OPTIONS: -Dsun.java2d.opengl=true
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x69313867, pid=692,
> tid=2012
> #
> # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
> # Problematic frame:
> # C [atioglxx.dll+0x313867]
> #
> # An error report file with more information is saved as hs_err_pid692.log
>
>
>
> I can reproduce every time, simply by creating a JFrame with nothing
> else going on. Running the following code will cause it to happen as
> soon as the frame is closed:
>
> import javax.swing.*;
>
> public class GFrame
> {
> public static void main(String[] args)
> {
> JFrame frame = new JFrame();
>
> final int F_WIDTH = 800;
> final int F_HEIGHT = 600;
>
> frame.setSize(F_WIDTH, F_HEIGHT);
> frame.setTitle("Test Frame");
> frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>
> frame.setVisible(true);
> }
> }
>
>
>
> Contents of the log file are as follows:
>
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x69313867, pid=692,
> tid=2012
> #
> # Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b03 mixed mode)
> # Problematic frame:
> # C [atioglxx.dll+0x313867]
> #
>
> --------------- T H R E A D ---------------
>
> Current thread (0x00a84960): VMThread [id=2012]
>
> siginfo: ExceptionCode=0xc0000005, reading address 0x0000816c
>
> Registers:
> EAX=0x00000000, EBX=0x00000000, ECX=0x0b5afb28, EDX=0x00000001
> ESP=0x0ab0fa38, EBP=0x00000000, ESI=0x0f7239c0, EDI=0x0f723700
> EIP=0x69313867, EFLAGS=0x00010206
>
> Top of Stack: (sp=0x0ab0fa38)
> 0x0ab0fa38: 0b5afb50 00000000 0b5afb28 00000000
> 0x0ab0fa48: 69445c4d 69313a1f 0f723700 0b5afb28
> 0x0ab0fa58: 00000000 00000000 0ab0faa0 69000000
> 0x0ab0fa68: 00000001 0b5afb50 0b5afb28 69313c1c
> 0x0ab0fa78: 00000002 693120e3 693121e7 69447bb2
> 0x0ab0fa88: 69000000 00000000 00000001 00000000
> 0x0ab0fa98: 0ab0fab4 00193090 0ab0fac0 7c9011a7
> 0x0ab0faa8: 69000000 00000000 00000001 00193090
>
> Instructions: (pc=0x69313867)
> 0x69313857: 00 eb c8 33 c0 5d 59 c2 0c 00 53 56 8b 74 81 28
> 0x69313867: 8b 8d 6c 81 00 00 33 db 85 c9 89 74 24 10 7e 19
>
>
> Stack: [0x0aad0000,0x0ab10000), sp=0x0ab0fa38, free space=254k
> Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
> C=native code)
> C [atioglxx.dll+0x313867]
>
> [error occurred during error reporting, step 120, id 0xc0000005]
>
> VM_Operation (0x0ffff668): exit, mode: safepoint, requested by thread
> 0x0acd2140
>
>
> --------------- P R O C E S S ---------------
>
> Java Threads: ( => current thread )
> 0x00036db8 JavaThread "DestroyJavaVM" [_thread_blocked, id=2432]
> 0x0acd2140 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2452]
> 0x0acbce30 JavaThread "AWT-Shutdown" [_thread_blocked, id=2404]
> 0x0ac9c6d8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2448]
> 0x00a95088 JavaThread "Low Memory Detector" daemon [_thread_blocked,
> id=208]
> 0x00a93ce8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2024]
> 0x00a92fe0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=468]
> 0x00a89fd8 JavaThread "Finalizer" daemon [_thread_blocked, id=2424]
> 0x00a88b70 JavaThread "Reference Handler" daemon [_thread_blocked,
> id=2392]
>
> Other Threads:
> =>0x00a84960 VMThread [id=2012]
>
> VM state:at safepoint (shutting down)
>
> VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
> [0x00036450/0x00000714] Threads_lock - owner thread: 0x00a84960
>
> Heap
> def new generation total 576K, used 317K [0x02ad0000, 0x02b70000,
> 0x02fb0000)
> eden space 512K, 49% used [0x02ad0000, 0x02b0f650, 0x02b50000)
> from space 64K, 100% used [0x02b60000, 0x02b70000, 0x02b70000)
> to space 64K, 0% used [0x02b50000, 0x02b50000, 0x02b60000)
> tenured generation total 1408K, used 201K [0x02fb0000, 0x03110000,
> 0x06ad0000)
> the space 1408K, 14% used [0x02fb0000, 0x02fe2488, 0x02fe2600,
> 0x03110000)
> compacting perm gen total 8192K, used 4395K [0x06ad0000, 0x072d0000,
> 0x0aad0000)
> the space 8192K, 53% used [0x06ad0000, 0x06f1ad90, 0x06f1ae00,
> 0x072d0000)
> No shared spaces configured.
>
> Dynamic libraries:
> 0x00400000 - 0x0040d000 C:\WINDOWS\system32\java.exe
> 0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
> 0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
> 0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
> 0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
> 0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
> 0x6d6c0000 - 0x6d85b000 C:\Program
> Files\Java\jre1.5.0_09\bin\client\jvm.dll
> 0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
> 0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
> 0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
> 0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.DLL
> 0x629c0000 - 0x629c9000 C:\WINDOWS\system32\LPK.DLL
> 0x74d90000 - 0x74dfb000 C:\WINDOWS\system32\USP10.dll
> 0x6d280000 - 0x6d288000 C:\Program Files\Java\jre1.5.0_09\bin\hpi.dll
> 0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
> 0x6d690000 - 0x6d69c000 C:\Program Files\Java\jre1.5.0_09\bin\verify.dll
> 0x6d300000 - 0x6d31d000 C:\Program Files\Java\jre1.5.0_09\bin\java.dll
> 0x6d6b0000 - 0x6d6bf000 C:\Program Files\Java\jre1.5.0_09\bin\zip.dll
> 0x6d000000 - 0x6d169000 C:\Program Files\Java\jre1.5.0_09\bin\awt.dll
> 0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
> 0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
> 0x5ed00000 - 0x5edcc000 C:\WINDOWS\system32\opengl32.dll
> 0x68b20000 - 0x68b40000 C:\WINDOWS\system32\GLU32.dll
> 0x73760000 - 0x737a9000 C:\WINDOWS\system32\DDRAW.dll
> 0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
> 0x6d240000 - 0x6d27f000 C:\Program
> Files\Java\jre1.5.0_09\bin\fontmanager.dll
> 0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
> 0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime
> 0x69000000 - 0x694f4000 C:\WINDOWS\system32\atioglxx.dll
> 0x7c9c0000 - 0x7d1d5000 C:\WINDOWS\system32\shell32.dll
> 0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
> 0x773d0000 - 0x774d3000
> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
> 0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll
> 0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.DLL
>
> VM Arguments:
> jvm_args: -Dsun.java2d.opengl=true
> java_command: GFrame
> Launcher Type: SUN_STANDARD
>
> Environment Variables:
> _JAVA_OPTIONS=-Dsun.java2d.opengl=true
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\Java\jdk1.5.0_09\bin
> USERNAME=don
> OS=Windows_NT
> PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 9, GenuineIntel
>
>
>
> --------------- S Y S T E M ---------------
>
> OS: Windows XP Build 2600 Service Pack 2
>
> CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 4
> stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht
>
> Memory: 4k page, physical 1570892k(1149972k free), swap
> 3515548k(3212852k free)
>
> vm_info: Java HotSpot(TM) Client VM (1.5.0_09-b03) for windows-x86,
> built on Oct 12 2006 01:20:10 by "java_re" with MS VC++ 6.0
>
>
>
> Thanks,
> -Don.
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff JAVA2D-INTEREST". For general help, send
> email to listserv@java.sun.com and include in the body of the message
> "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".