Hello Guest

LWJGL Beta 3, Windows XP, strange bug...

  • 16 Replies
  • 105947 Views
LWJGL Beta 3, Windows XP, strange bug...
« on: October 03, 2006, 20:47:36 »
When I code a simple class


Code: [Select]

import org.lwjgl.fmod3.FMOD;
import org.lwjgl.fmod3.FMODException;

public class SimplestFMOD
{

public SimplestFMOD()
{
try
{
// Create fmod.
FMOD.create();
} catch (FMODException e)
{
e.printStackTrace();
System.exit(0);
}
}

public static void main(String args[])
{
new SimplestFMOD();
}
}


and launch it with argument

Code: [Select]

 -Djava.library.path=C:\lwjgl-1.0beta3\native\win32



I get the following error:

Code: [Select]

FMODException: Unable to load fmod library
at org.lwjgl.fmod3.FMOD.create(FMOD.java:272)
at chman.chap1.fmod.SimplestFMOD.<init>(SimplestFMOD.java:18)
at chman.chap1.fmod.SimplestFMOD.main(SimplestFMOD.java:32)


and it generated a file hs_err_pid1700.log

Code: [Select]

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10003343, pid=1700, tid=3560
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing)
# Problematic frame:
# C  [lwjgl-fmod3.dll+0x3343]
#

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

Current thread (0x00365f48):  JavaThread "main" [_thread_in_native, id=3560]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000024

Registers:
EAX=0x00000000, EBX=0x26a9f398, ECX=0x00000040, EDX=0x00007d00
ESP=0x0006fa1c, EBP=0x0006fa58, ESI=0x26a9f398, EDI=0x00365f48
EIP=0x10003343, EFLAGS=0x00010293

Top of Stack: (sp=0x0006fa1c)
0x0006fa1c:   00000040 00000000 00a8826f 00366008
0x0006fa2c:   0006fa60 00007d00 00000040 00000000
0x0006fa3c:   0006fa3c 26a9f398 0006fa70 26aa8700
0x0006fa4c:   00000000 26a9f398 0006fa68 0006fa90
0x0006fa5c:   00a82a7b 26aa8690 00a86430 00000000
0x0006fa6c:   00000040 00007d00 0006fa74 26a84875
0x0006fa7c:   0006fa9c 26a86798 00000000 26a84910
0x0006fa8c:   0006fa9c 0006fabc 00a82923 22af53f0

Instructions: (pc=0x10003343)
0x10003333:   14 8b 4c 24 10 8b 54 24 0c 50 a1 e8 05 02 10 51
0x10003343:   8b 48 24 52 ff d1 c2 14 00 cc cc cc cc 8b 44 24


Stack: [0x00030000,0x00070000),  sp=0x0006fa1c,  free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [lwjgl-fmod3.dll+0x3343]
j  chman.chap1.fmod.SimplestFMOD.<init>()V+21
j  chman.chap1.fmod.SimplestFMOD.main([Ljava/lang/String;)V+3
v  ~StubRoutines::call_stub
V  [jvm.dll+0x86401]
V  [jvm.dll+0xdb172]
V  [jvm.dll+0x862d2]
V  [jvm.dll+0x8d2a2]
C  [javaw.exe+0x14c5]
C  [javaw.exe+0x3151]
C  [kernel32.dll+0x16fd7]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.fmod3.FSound.FSOUND_Init(III)Z+0
j  chman.chap1.fmod.SimplestFMOD.<init>()V+21
j  chman.chap1.fmod.SimplestFMOD.main([Ljava/lang/String;)V+3
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x00a1eb00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3892]
  0x00364ee8 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3016]
  0x0036fb88 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2860]
  0x009f1fc0 JavaThread "Finalizer" daemon [_thread_blocked, id=3080]
  0x009f0ad8 JavaThread "Reference Handler" daemon [_thread_blocked, id=3072]
=>0x00365f48 JavaThread "main" [_thread_in_native, id=3560]

Other Threads:
  0x009ee1e0 VMThread [id=3568]
  0x00a1fd18 WatcherThread [id=1892]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 142K [0x22a80000, 0x22b20000, 0x22f60000)
  eden space 512K,  15% used [0x22a80000, 0x22a93938, 0x22b00000)
  from space 64K, 100% used [0x22b10000, 0x22b20000, 0x22b20000)
  to   space 64K,   0% used [0x22b00000, 0x22b00000, 0x22b10000)
 tenured generation   total 1408K, used 88K [0x22f60000, 0x230c0000, 0x26a80000)
   the space 1408K,   6% used [0x22f60000, 0x22f76050, 0x22f76200, 0x230c0000)
 compacting perm gen  total 8192K, used 164K [0x26a80000, 0x27280000, 0x2aa80000)
   the space 8192K,   2% used [0x26a80000, 0x26aa9000, 0x26aa9000, 0x27280000)
    ro space 8192K,  67% used [0x2aa80000, 0x2afdd9f8, 0x2afdda00, 0x2b280000)
    rw space 12288K,  46% used [0x2b280000, 0x2b823808, 0x2b823a00, 0x2be80000)

Dynamic libraries:
0x00400000 - 0x0040d000 C:\jdk1.5.0_07\bin\javaw.exe
0x7c910000 - 0x7c9c7000 F:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c904000 F:\WINDOWS\system32\kernel32.dll
0x77da0000 - 0x77e4c000 F:\WINDOWS\system32\ADVAPI32.dll
0x77e50000 - 0x77ee1000 F:\WINDOWS\system32\RPCRT4.dll
0x77d10000 - 0x77da0000 F:\WINDOWS\system32\USER32.dll
0x77ef0000 - 0x77f37000 F:\WINDOWS\system32\GDI32.dll
0x77be0000 - 0x77c38000 F:\WINDOWS\system32\MSVCRT.dll
0x6d730000 - 0x6d8c7000 C:\jdk1.5.0_07\jre\bin\client\jvm.dll
0x76ae0000 - 0x76b0f000 F:\WINDOWS\system32\WINMM.dll
0x6d2f0000 - 0x6d2f8000 C:\jdk1.5.0_07\jre\bin\hpi.dll
0x76ba0000 - 0x76bab000 F:\WINDOWS\system32\PSAPI.DLL
0x6d700000 - 0x6d70c000 C:\jdk1.5.0_07\jre\bin\verify.dll
0x6d370000 - 0x6d38d000 C:\jdk1.5.0_07\jre\bin\java.dll
0x6d720000 - 0x6d72f000 C:\jdk1.5.0_07\jre\bin\zip.dll
0x10000000 - 0x10025000 C:\lwjgl-1.0beta3\native\win32\lwjgl-fmod3.dll

VM Arguments:
jvm_args: -Djava.library.path=C:\lwjgl-1.0beta3\native\win32
java_command: chman.chap1.fmod.SimplestFMOD
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\jdk1.5.0_07
PATH=C:\Perl\bin\;C:\Dev-cpp\bin;C:\jdk1.5.0_07\bin;C:\Delphi7\Bin;C:\Delphi7\Projects\Bpl\;
F:\WINDOWS\system32;F:\WINDOWS;F:\WINDOWS\System32\Wbem;F:\Program Files\Fichiers communs\Ulead Systems\MPEG;
F:\Program Files\ESTsoft\ALZip\;F:\Program Files\Fichiers communs\Adobe\AGL;C:\lwjgl-1.0beta3\native\win32;
F:\Program Files\ESTsoft\ALZip\
USERNAME=Damien
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 10, AuthenticAMD



---------------  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

Memory: 4k page, physical 1572328k(923776k free), swap 2991364k(2241804k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_07-b03) for windows-x86, built on May  3 2006 01:04:38 by "java_re" with MS VC++ 6.0




Did I do something wrong ?
Dark Skull Software
http://www.darkskull.net

LWJGL Beta 3, Windows XP, strange bug...
« Reply #1 on: October 04, 2006, 02:45:53 »
the library path is relative to the top package...not an absolute path.

DP

*

Offline Matzon

  • *****
  • 2242
LWJGL Beta 3, Windows XP, strange bug...
« Reply #2 on: October 04, 2006, 04:59:21 »
in any case, no native crash should occur

LWJGL Beta 3, Windows XP, strange bug...
« Reply #3 on: October 04, 2006, 08:20:09 »
Quote from: "darkprophet"
the library path is relative to the top package...not an absolute path.
DP


I always use absolute path, and it works with other dll (lwjgl, devil, etc). If you take a look at the dump file, you'll see that java has found the dll... Only the fmod dll doesn't work  :cry:

I tried to extract it again from zip file (in case of it's corrupted), but nothing changed.

Perhaps the bug is due to the fact I've got 2 sound cards in my computer ? I'll try to disable one...
Dark Skull Software
http://www.darkskull.net

*

Offline Matzon

  • *****
  • 2242
LWJGL Beta 3, Windows XP, strange bug...
« Reply #4 on: October 04, 2006, 20:07:11 »
I can't replicate it
if I have fmod in the lib path it works, if not it fails as expected. Never a native crash.

LWJGL Beta 3, Windows XP, strange bug...
« Reply #5 on: October 05, 2006, 08:07:49 »
I'll try again tonight : i'll download the zip again and extract it again, just in case of...
Dark Skull Software
http://www.darkskull.net

LWJGL Beta 3, Windows XP, strange bug...
« Reply #6 on: October 05, 2006, 18:03:32 »
What is strange, is that the "NetTest" Demo from http://lwjgl.org/demos.php works !
Dark Skull Software
http://www.darkskull.net

*

Offline Matzon

  • *****
  • 2242
LWJGL Beta 3, Windows XP, strange bug...
« Reply #7 on: October 05, 2006, 19:51:16 »
do you have some files placed in jre/ext or other rogue files ?
perhaps an old fmod.dll ?

LWJGL Beta 3, Windows XP, strange bug...
« Reply #8 on: October 05, 2006, 20:41:26 »
In the folder jre/ext, I only have 4 jars:

  • dnsns.jar
  • localedata.jar
  • sunjce_provider.jar
  • sunpkcs11.jar


In the Windows\system or Windows\System32 dir, I don't have got any fmod*.dll and no lwjgl*.dll

I emptied the Java Web Start folder, nothing has changed...
Dark Skull Software
http://www.darkskull.net

Re: LWJGL Beta 3, Windows XP, strange bug...
« Reply #9 on: January 27, 2007, 08:47:50 »
I have this same bug with RC1. Older versions do work. strange

*

Offline Matzon

  • *****
  • 2242
Re: LWJGL Beta 3, Windows XP, strange bug...
« Reply #10 on: January 29, 2007, 21:21:53 »
I cant reproduce it at all...

Re: LWJGL Beta 3, Windows XP, strange bug...
« Reply #11 on: February 06, 2007, 05:54:46 »
It would be nice if the error told you you need to download FMOD and point your java.library.path to the fmod.dll that comes with downloading fmod http://www.fmod.org/. Just my 2 cents. Unless this is documented somewhere?

*

Offline Matzon

  • *****
  • 2242
Re: LWJGL Beta 3, Windows XP, strange bug...
« Reply #12 on: February 06, 2007, 06:43:26 »
from the readme:
Quote
Please note that DevIL and FMOD are distributed in the optional package (lwjgl_optional-<version>.zip). Their license is also included.
If you want to use FMOD you must download the binary from their site: http://fmod.org. Please
note that FMOD is a commercial offering and you must accept their license before using.
  ;D

Re: LWJGL Beta 3, Windows XP, strange bug...
« Reply #13 on: February 26, 2007, 11:41:45 »
Yeah the problem was the missing fmod.dll ...
* seven_dc is shamed

Re: LWJGL Beta 3, Windows XP, strange bug...
« Reply #14 on: January 27, 2008, 11:35:50 »
Yes, it was the problem   ::)
Dark Skull Software
http://www.darkskull.net