Started by Marem, October 16, 2005, 17:33:49

Previous topic - Next topic


I am trying to follow tutoral for DevIL on the WIKI page, but the VM is blowing up on native code, any Ideas? I am running windows xp on an Intel P4 2GHz w/ 512MB Ram & RADEON 9700 ati card with latest drivers. -Thanks

code that is blowing up:
public Image( String imageName, boolean flip )
      imageError = 0;
      ByteBuffer imageData = null;
      int ilImageHandle;
      IntBuffer scratch = BufferUtils.createIntBuffer(1);
      System.out.print( scratch );
      IL.ilGenImages( scratch );
      ilImageHandle = scratch.get(0);

log file:
# An unexpected error has been detected by HotSpot Virtual Machine:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=3040, tid=3152
# Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode, sharing)
# Problematic frame:
# C  0x00000000

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

Current thread (0x00355960):  JavaThread "main" [_thread_in_native, id=3152]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

EAX=0x00a3e000, EBX=0x26a8f750, ECX=0x00000000, EDX=0x00000001
ESP=0x0006f9a4, EBP=0x0006f9e4, ESI=0x26a8f750, EDI=0x00355960
EIP=0x00000000, EFLAGS=0x00010206

Top of Stack: (sp=0x0006f9a4)
0x0006f9a4:   10001a4a 00000001 00a3e000 00a8826f
0x0006f9b4:   00355a1c 0006f9ec 00000001 0006f9f8
0x0006f9c4:   00000000 0006f9c8 26a8f750 0006f9fc
0x0006f9d4:   26a92108 00000000 26a8f750 0006f9f4
0x0006f9e4:   0006fa1c 00a82923 26a920b0 00a86449
0x0006f9f4:   00000000 22ad16a8 00000001 0006fa00
0x0006fa04:   26a8f6cd 0006fa24 26a92108 00000000
0x0006fa14:   26a8f6e8 0006fa24 0006fa44 00a82923

Instructions: (pc=0x00000000)

Stack: [0x00030000,0x00070000),  sp=0x0006f9a4,  free space=254k
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.devil.IL.nilGenImages(ILjava/nio/IntBuffer;I)V+0
j  org.lwjgl.devil.IL.ilGenImages(Ljava/nio/IntBuffer;)V+13
j  Game_Framework.Image.<init>(Ljava/lang/String;Z)V+27
j  Game_Framework.Game_Window.<init>(LGame_Framework/Game_Rules;)V+19
j  Game_Framework.Game_Window.main([Ljava/lang/String;)V+11
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
 0x00a200d8 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2160]
 0x00a1ecb0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3232]
 0x00a1dfd0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=492]
 0x0035f8f8 JavaThread "Finalizer" daemon [_thread_blocked, id=3220]
 0x009f8aa0 JavaThread "Reference Handler" daemon [_thread_blocked, id=3236]
=>0x00355960 JavaThread "main" [_thread_in_native, id=3152]

Other Threads:
 0x00a183b0 VMThread [id=1840]
 0x00a1de58 WatcherThread [id=2828]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

def new generation   total 576K, used 408K [0x22a80000, 0x22b20000, 0x22f60000)
 eden space 512K,  79% used [0x22a80000, 0x22ae6068, 0x22b00000)
 from space 64K,   0% used [0x22b00000, 0x22b00000, 0x22b10000)
 to   space 64K,   0% used [0x22b10000, 0x22b10000, 0x22b20000)
tenured generation   total 1408K, used 0K [0x22f60000, 0x230c0000, 0x26a80000)
  the space 1408K,   0% used [0x22f60000, 0x22f60000, 0x22f60200, 0x230c0000)
compacting perm gen  total 8192K, used 91K [0x26a80000, 0x27280000, 0x2aa80000)
  the space 8192K,   1% used [0x26a80000, 0x26a96c88, 0x26a96e00, 0x27280000)
   ro space 8192K,  66% used [0x2aa80000, 0x2afdae88, 0x2afdb000, 0x2b280000)
   rw space 12288K,  46% used [0x2b280000, 0x2b818490, 0x2b818600, 0x2be80000)

Dynamic libraries:
0x00400000 - 0x0040c000    C:\Program Files\Java\jdk1.5.0_05\bin\javaw.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
0x77d40000 - 0x77dd0000    C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f56000    C:\WINDOWS\system32\GDI32.dll
0x77c10000 - 0x77c68000    C:\WINDOWS\system32\MSVCRT.dll
0x6d6b0000 - 0x6d83c000    C:\Program Files\Java\jdk1.5.0_05\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000    C:\WINDOWS\system32\WINMM.dll
0x6d2f0000 - 0x6d2f8000    C:\Program Files\Java\jdk1.5.0_05\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000    C:\WINDOWS\system32\PSAPI.DLL
0x6d680000 - 0x6d68c000    C:\Program Files\Java\jdk1.5.0_05\jre\bin\verify.dll
0x6d370000 - 0x6d38d000    C:\Program Files\Java\jdk1.5.0_05\jre\bin\java.dll
0x6d6a0000 - 0x6d6af000    C:\Program Files\Java\jdk1.5.0_05\jre\bin\zip.dll
0x10000000 - 0x1001e000    C:\Code\lwjgl\native\lwjgl-devil.dll

VM Arguments:
jvm_args: -Djava.library.path=C:\Code\lwjgl\native
java_command: Game_Framework.Game_Window

Environment Variables:
PATH=.;C:\Dev\JBuilder2005\bin;C:\Dev\JBuilder2005\jdk1.4\bin;C:\Program Files\Java\jdk1.5.0_05\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Dev\JBuilder2005\debug\sa;C:\Dev\JBuilder2005\lib
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 4, GenuineIntel

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

OS: Windows XP Build 2600 Service Pack 2

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

Memory: 4k page, physical 523568k(59124k free), swap 1280072k(725480k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_05-b05) for windows-x86, built on Aug 26 2005 15:36:02 by "java_re" with MS VC++ 6.0


you need to call IL.init() first.
The VM bombing out is because I haven't updated the code to throw an unsatisfied link error yet