glGetFloat and glGetDouble troubles

Started by pmika, May 25, 2004, 14:35:53

Previous topic - Next topic

pmika

i use glGetFloat( GL_MODELVIEW_MATRIX, matrixRotate );

and got crash with trace:
Quote#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0566d4b7, pid=3660, tid=2772
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-beta-b32c mixed mode)
# Problematic frame:
# C  [atioglxx.dll+0x31d4b7]
#

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

Current thread (0x00035c68):  JavaThread "main" [_thread_in_native, id=2772]

siginfo: ExceptionCode=0xc0000005, writing address 0x00000000

Registers:
EAX=0x00000004, EBX=0x0007f4e0, ECX=0x00000010, EDX=0x00000004
ESP=0x0007f30c, EBP=0x3f800000, ESI=0x00000000, EDI=0x0007f4d4
EIP=0x0566d4b7, EFLAGS=0x00010202

Top of Stack: (sp=0x0007f30c)
0x0007f30c:   00000002 72cdb4b8 059a7660 00aec058
0x0007f31c:   05670197 00000010 0007f4d4 0007fa34
0x0007f32c:   00035c68 72cdb4b8 00000000 72d46bb8
0x0007f33c:   00000000 72b42e78 6d68a6bf 00000014
0x0007f34c:   6d6757bb 72d46bb8 6d6757a5 72d46bb8
0x0007f35c:   00000001 6d625bf2 00036308 6d625bc3
0x0007f36c:   72d46abc 72d46bb8 00036308 6d69e9fc
0x0007f37c:   72d46abc 72d46bb8 72d46bc0 72d46a80

Instructions: (pc=0x0566d4b7)
0x0566d4a7:   00 00 00 8d 5f 0c 8d 46 04 89 6c 24 14 8b 6b f4
0x0566d4b7:   89 68 fc 8b 6c 24 18 8b 2c 28 89 28 8b 6b fc 89


Stack: [0x00040000,0x00080000),  sp=0x0007f30c,  free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [atioglxx.dll+0x31d4b7]

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

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.GL11.nglGetFloatv(ILjava/nio/FloatBuffer;I)V+0
j  org.lwjgl.opengl.GL11.glGetFloat(ILjava/nio/FloatBuffer;)V+12
j  Main.render()V+26
j  Main.start()V+26
j  Main.main([Ljava/lang/String;)V+7
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
 0x00a2e8a0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2416]
 0x00a2d5f0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2756]
 0x00a2c910 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3932]
 0x00a238e0 JavaThread "Finalizer" daemon [_thread_blocked, id=2528]
 0x00a22440 JavaThread "Reference Handler" daemon [_thread_blocked, id=2996]
=>0x00035c68 JavaThread "main" [_thread_in_native, id=2772]

Other Threads:
 0x00a1fb50 VMThread [id=3044]
 0x00a2fa30 WatcherThread [id=624]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation   total 576K, used 576K [0x6eb30000, 0x6ebd0000, 0x6f010000)
 eden space 512K, 100% used [0x6eb30000, 0x6ebb0000, 0x6ebb0000)
 from space 64K, 100% used [0x6ebc0000, 0x6ebd0000, 0x6ebd0000)
 to   space 64K,   0% used [0x6ebb0000, 0x6ebb0000, 0x6ebc0000)
tenured generation   total 1408K, used 60K [0x6f010000, 0x6f170000, 0x72b30000)
  the space 1408K,   4% used [0x6f010000, 0x6f01f008, 0x6f01f200, 0x6f170000)
compacting perm gen  total 8192K, used 2139K [0x72b30000, 0x73330000, 0x76b30000)
  the space 8192K,  26% used [0x72b30000, 0x72d46c08, 0x72d46e00, 0x73330000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040b000    C:\WINDOWS\system32\java.exe
0x77f50000 - 0x77ff7000    C:\WINDOWS\System32\ntdll.dll
0x77e60000 - 0x77f46000    C:\WINDOWS\system32\kernel32.dll
0x77dc0000 - 0x77e5c000    C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78087000    C:\WINDOWS\system32\RPCRT4.dll
0x77c00000 - 0x77c53000    C:\WINDOWS\system32\MSVCRT.dll
0x67ec0000 - 0x67ef8000    C:\NORMAN\Nvc\BIN\Niphk.dll
0x77d30000 - 0x77dbc000    C:\WINDOWS\system32\USER32.dll
0x7e190000 - 0x7e1d1000    C:\WINDOWS\system32\GDI32.dll
0x77110000 - 0x7719b000    C:\WINDOWS\system32\OLEAUT32.dll
0x7ccc0000 - 0x7cde4000    C:\WINDOWS\system32\OLE32.DLL
0x6d620000 - 0x6d7c7000    C:\Program Files\Java\j2re1.5.0\bin\client\jvm.dll
0x76b30000 - 0x76b5c000    C:\WINDOWS\system32\WINMM.dll
0x6d260000 - 0x6d267000    C:\Program Files\Java\j2re1.5.0\bin\hpi.dll
0x76be0000 - 0x76beb000    C:\WINDOWS\system32\PSAPI.DLL
0x6d5f0000 - 0x6d5fb000    C:\Program Files\Java\j2re1.5.0\bin\verify.dll
0x6d2d0000 - 0x6d2ec000    C:\Program Files\Java\j2re1.5.0\bin\java.dll
0x6d610000 - 0x6d61e000    C:\Program Files\Java\j2re1.5.0\bin\zip.dll
0x10000000 - 0x1003a000    E:\java\OpenCity\lwjgl.dll
0x01290000 - 0x012b8000    C:\WINDOWS\system32\DINPUT.dll
0x5f250000 - 0x5f316000    C:\WINDOWS\system32\OPENGL32.dll
0x690b0000 - 0x690cf000    C:\WINDOWS\system32\GLU32.dll
0x51000000 - 0x51047000    C:\WINDOWS\system32\DDRAW.dll
0x002f0000 - 0x002f6000    C:\WINDOWS\system32\DCIMAN32.dll
0x77bf0000 - 0x77bf7000    C:\WINDOWS\system32\VERSION.dll
0x052c0000 - 0x05304000    C:\WINDOWS\System32\MSCTF.dll
0x05350000 - 0x05951000    C:\WINDOWS\system32\atioglxx.dll
0x68e80000 - 0x68e89000    C:\WINDOWS\system32\HID.DLL
0x0dc80000 - 0x0dd69000    C:\WINDOWS\system32\SETUPAPI.DLL

VM Arguments:
java_command: Main

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

OS: Windows XP Build 2600 Service Pack 1

CPU:total 2(active 2) family 15, cmov, cx8, fxsr, mmx, sse, sse2

Memory: 4k page, physical 523628k(239156k free), swap 1280168k(989884k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0-beta-b32c) for windows-x86, built on Jan 23 2004 01:52:20 by "java_re" with MS VC++ 6.0

same for glGetDouble

pmika

fixed. should have been using allocateDirect() rather than allocate() for float buffer