LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: FMod - Linux problem  (Read 7014 times)

benjunmun

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
FMod - Linux problem
« on: September 16, 2005, 23:22:31 »

Hey everyone

Been trying out LWJGL and loving it.
However, I've had a lot of problems trying to get fmod working on my linux box.

First of all, when I wrote a simple program to load/play a sound, I got this message:
Code: [Select]
Exception in thread "main" java.lang.LinkageError: Version mismatch: jar version is '0.98', native libary version is '0.97'

Next, I tried replacing the lwjgl_fmod3 jar file with the one from .97
I get a different error message, and the vm crashes:

Code: [Select]

org.lwjgl.fmod3.FMODException: Unable to load fmod library

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xb1f6a7d7, pid=12209, tid=3086780896
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode, sharing)
# Problematic frame:
# C  [liblwjgl-fmod3.so+0xe7d7]  Java_org_lwjgl_fmod3_FSound_nFSOUND_1Stream_1Open__Ljava_lang_String_2III+0x37
#

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

Current thread (0x0805baf0):  JavaThread "main" [_thread_in_native, id=12209]

siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x000001a4

Registers:
EAX=0x00000000, EBX=0xb1f6f784, ECX=0x00000000, EDX=0x083d0330
ESP=0xbfffd4a0, EBP=0xbfffd4d8, ESI=0x8ceb85a8, EDI=0x0805baf0
EIP=0xb1f6a7d7, CR2=0x000001a4, EFLAGS=0x00210246

Top of Stack: (sp=0xbfffd4a0)
0xbfffd4a0:   083d0330 00000130 00000000 00000000
0xbfffd4b0:   0805bbac bfffd530 ffffffff 0805d250
0xbfffd4c0:   00000000 0805d228 083d0330 8ceb85a8
0xbfffd4d0:   8ceb85a8 0805baf0 bfffd514 b2ba442b
0xbfffd4e0:   0805bbac bfffd51c bfffd530 00000130
0xbfffd4f0:   00000000 00000000 bfffd4f8 8ceb85a8
0xbfffd500:   bfffd530 8cebd878 00000000 8ceb85a8
0xbfffd510:   bfffd524 bfffd550 b2b9e9fa 8cebd808

Instructions: (pc=0xb1f6a7d7)
0xb1f6a7c7:   ff ff 8b 00 ff 75 1c ff 75 18 ff 75 14 ff 75 f0
0xb1f6a7d7:   ff 90 a4 01 00 00 83 c4 14 ff 75 f0 89 c6 89 c7

Stack: [0xbfe00000,0xc0000000),  sp=0xbfffd4a0,  free space=2037k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [liblwjgl-fmod3.so+0xe7d7]  Java_org_lwjgl_fmod3_FSound_nFSOUND_1Stream_1Open__Ljava_lang_String_2III+0x37
j  org.lwjgl.fmod3.FSound.nFSOUND_Stream_Open(Ljava/lang/String;III)J+0
j  org.lwjgl.fmod3.FSound.FSOUND_Stream_Open(Ljava/lang/String;III)Lorg/lwjgl/fmod3/FSoundStream;+4
j  asteroid.util.FModSound.loadFile(Ljava/lang/String;)V+7
j  asteroid.AsteroidsGame.init()V+74
j  asteroid.AsteroidsGame.main([Ljava/lang/String;)V+9
v  ~StubRoutines::call_stub
V  [libjvm.so+0x16bf8c]
V  [libjvm.so+0x25e5f8]
V  [libjvm.so+0x16bdbf]
V  [libjvm.so+0x18f102]
V  [libjvm.so+0x1838c7]
C  [java+0x17fe]
C  [libc.so.6+0x158c8]  __libc_start_main+0xf8

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.fmod3.FSound.nFSOUND_Stream_Open(Ljava/lang/String;III)J+0
j  org.lwjgl.fmod3.FSound.FSOUND_Stream_Open(Ljava/lang/String;III)Lorg/lwjgl/fmod3/FSoundStream;+4
j  asteroid.util.FModSound.loadFile(Ljava/lang/String;)V+7
j  asteroid.AsteroidsGame.init()V+74
j  asteroid.AsteroidsGame.main([Ljava/lang/String;)V+9
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x083c5a70 JavaThread "AWT-XAWT" daemon [_thread_in_native, id=12223]
  0x083310c0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=12222]
  0x080a2ed0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=12220]
  0x080a1980 JavaThread "CompilerThread0" daemon [_thread_blocked, id=12219]
  0x080a0a58 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12218]
  0x08099cd0 JavaThread "Finalizer" daemon [_thread_blocked, id=12217]
  0x08098fe0 JavaThread "Reference Handler" daemon [_thread_blocked, id=12216]
=>0x0805baf0 JavaThread "main" [_thread_in_native, id=12209]

Other Threads:
  0x08096508 VMThread [id=12215]
  0x080a4360 WatcherThread [id=12221]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 550K [0x88e70000, 0x88f10000, 0x89350000)
  eden space 512K,  94% used [0x88e70000, 0x88ee9910, 0x88ef0000)
  from space 64K, 100% used [0x88ef0000, 0x88f00000, 0x88f00000)
  to   space 64K,   0% used [0x88f00000, 0x88f00000, 0x88f10000)
 tenured generation   total 1408K, used 226K [0x89350000, 0x894b0000, 0x8ce70000)
   the space 1408K,  16% used [0x89350000, 0x89388bb8, 0x89388c00, 0x894b0000)
 compacting perm gen  total 8192K, used 312K [0x8ce70000, 0x8d670000, 0x90e70000)
   the space 8192K,   3% used [0x8ce70000, 0x8cebe148, 0x8cebe200, 0x8d670000)
    ro space 8192K,  64% used [0x90e70000, 0x91398538, 0x91398600, 0x91670000)
    rw space 12288K,  47% used [0x91670000, 0x91c214d0, 0x91c21600, 0x92270000)

Dynamic libraries:
08048000-08056000 r-xp 00000000 03:02 4096326    /usr/lib/j2re1.5-sun/bin/java
08056000-08058000 rwxp 0000e000 03:02 4096326    /usr/lib/j2re1.5-sun/bin/java
08058000-083dc000 rwxp 08058000 00:00 0
88e70000-88f10000 rwxp 88e70000 00:00 0
88f10000-89350000 rwxp 88f10000 00:00 0
89350000-894b0000 rwxp 89350000 00:00 0
894b0000-8ce70000 rwxp 894b0000 00:00 0
8ce70000-8d670000 rwxp 8ce70000 00:00 0
8d670000-90e70000 rwxp 8d670000 00:00 0
90e70000-91399000 r-xs 00001000 03:02 4096355    /usr/lib/j2re1.5-sun/lib/i386/client/classes.jsa
91399000-91670000 rwxp 91399000 00:00 0
91670000-91c22000 rwxp 0052a000 03:02 4096355    /usr/lib/j2re1.5-sun/lib/i386/client/classes.jsa
91c22000-92270000 rwxp 91c22000 00:00 0
92270000-9233b000 rwxp 00adc000 03:02 4096355    /usr/lib/j2re1.5-sun/lib/i386/client/classes.jsa
9233b000-92670000 rwxp 9233b000 00:00 0
92670000-92674000 r-xs 00ba7000 03:02 4096355    /usr/lib/j2re1.5-sun/lib/i386/client/classes.jsa
92674000-92a70000 rwxp 92674000 00:00 0
b1f5c000-b1f6f000 r-xp 00000000 03:02 6144151    /home/bli/Desktop/00Eclipse/LWJGLTest/native/liblwjgl-fmod3.so
b1f6f000-b1f70000 rwxp 00012000 03:02 6144151    /home/bli/Desktop/00Eclipse/LWJGLTest/native/liblwjgl-fmod3.so
b1f70000-b1f71000 rwxp b1f70000 00:00 0
b1f71000-b1f72000 r-xp 00000000 03:02 4096389    /usr/lib/j2re1.5-sun/lib/i386/libjawt.so
b1f72000-b1f73000 rwxp 00000000 03:02 4096389    /usr/lib/j2re1.5-sun/lib/i386/libjawt.so
b1f73000-b1fa6000 r-xp 00000000 03:02 6144154    /home/bli/Desktop/00Eclipse/LWJGLTest/native/liblwjgl.so
b1fa6000-b1fa8000 rwxp 00032000 03:02 6144154    /home/bli/Desktop/00Eclipse/LWJGLTest/native/liblwjgl.so
b1fa8000-b1faa000 rwxp b1fa8000 00:00 0
b1faa000-b1fad000 ---p b1faa000 00:00 0
b1fad000-b202b000 rwxp b1fad000 00:00 0
b202b000-b2032000 r-xp 00000000 03:02 3905463    /usr/lib/libXrender.so.1.3.0
b2032000-b2033000 rwxp 00006000 03:02 3905463    /usr/lib/libXrender.so.1.3.0
b2033000-b203b000 r-xp 00000000 03:02 3907394    /usr/lib/libXcursor.so.1.0.2
b203b000-b203c000 rwxp 00007000 03:02 3907394    /usr/lib/libXcursor.so.1.0.2
b2049000-b204a000 r-xp 00000000 03:02 3964934    /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2
b204a000-b204b000 rwxp 00000000 03:02 3964934    /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2
b204b000-b204e000 ---p b204b000 00:00 0
b204e000-b20cc000 rwxp b204e000 00:00 0
b20cc000-b213f000 r-xp 00000000 03:02 4096383    /usr/lib/j2re1.5-sun/lib/i386/libfontmanager.so
b213f000-b2149000 rwxp 00073000 03:02 4096383    /usr/lib/j2re1.5-sun/lib/i386/libfontmanager.so
b2149000-b214d000 rwxp b2149000 00:00 0
b214d000-b220e000 r-xp 00000000 03:02 3951907    /usr/X11R6/lib/libX11.so.6.2
b220e000-b2212000 rwxp 000c0000 03:02 3951907    /usr/X11R6/lib/libX11.so.6.2
b2212000-b221e000 r-xp 00000000 03:02 3948569    /usr/X11R6/lib/libXext.so.6.4
b221e000-b221f000 rwxp 0000c000 03:02 3948569    /usr/X11R6/lib/libXext.so.6.4
b222c000-b2262000 r-xp 00000000 03:02 4096380    /usr/lib/j2re1.5-sun/lib/i386/xawt/libmawt.so
b2262000-b2265000 rwxp 00035000 03:02 4096380    /usr/lib/j2re1.5-sun/lib/i386/xawt/libmawt.so
b2265000-b2266000 rwxp b2265000 00:00 0
b2266000-b232c000 r-xp 00000000 03:02 4096375    /usr/lib/j2re1.5-sun/lib/i386/libmlib_image.so
b232c000-b232d000 rwxp 000c5000 03:02 4096375    /usr/lib/j2re1.5-sun/lib/i386/libmlib_image.so
b232d000-b23a2000 r-xp 00000000 03:02 4096376    /usr/lib/j2re1.5-sun/lib/i386/libawt.so
b23a2000-b23a8000 rwxp 00074000 03:02 4096376    /usr/lib/j2re1.5-sun/lib/i386/libawt.so
b23a8000-b23cc000 rwxp b23a8000 00:00 0
b23cc000-b23e9000 r-xs 00000000 03:02 6144183    /home/bli/Desktop/00Eclipse/LWJGLTest/jar/lwjgl_util.jar
b23e9000-b2411000 r-xs 00000000 03:02 6144185    /home/bli/Desktop/00Eclipse/LWJGLTest/jar/lwjgl_test.jar
b2411000-b2418000 r-xs 00000000 03:02 6144188    /home/bli/Desktop/00Eclipse/LWJGLTest/jar/lwjgl_fmod3.jar
b2418000-b241c000 r-xs 00000000 03:02 6144190    /home/bli/Desktop/00Eclipse/LWJGLTest/jar/lwjgl_devil.jar
b241c000-b2436000 r-xs 00000000 03:02 6144196    /home/bli/Desktop/00Eclipse/LWJGLTest/jar/jinput.jar
b2436000-b248f000 r-xs 00000000 03:02 6144187    /home/bli/Desktop/00Eclipse/LWJGLTest/jar/lwjgl.jar
b248f000-b2552000 r-xs 00000000 03:02 4210964    /usr/lib/j2re1.5-sun/lib/ext/localedata.jar
b2552000-b2554000 r-xs 00000000 03:02 4210963    /usr/lib/j2re1.5-sun/lib/ext/dnsns.jar
b2554000-b257f000 r-xs 00000000 03:02 4210962    /usr/lib/j2re1.5-sun/lib/ext/sunpkcs11.jar
b257f000-b25a5000 r-xs 00000000 03:02 4210961    /usr/lib/j2re1.5-sun/lib/ext/sunjce_provider.jar
b25a5000-b25a6000 ---p b25a5000 00:00 0
b25a6000-b2626000 rwxp b25a6000 00:00 0
b2626000-b2629000 ---p b2626000 00:00 0
b2629000-b26a7000 rwxp b2629000 00:00 0
b26a7000-b26aa000 ---p b26a7000 00:00 0
b26aa000-b2728000 rwxp b26aa000 00:00 0
b2728000-b272b000 ---p b2728000 00:00 0
b272b000-b27a9000 rwxp b272b000 00:00 0
b27a9000-b2903000 r-xp 00000000 03:02 2637827    /usr/lib/locale/locale-archive
b2903000-b2906000 ---p b2903000 00:00 0
b2906000-b2984000 rwxp b2906000 00:00 0
b2984000-b2987000 ---p b2984000 00:00 0
b2987000-b2a05000 rwxp b2987000 00:00 0
b2a05000-b2a06000 ---p b2a05000 00:00 0
b2a06000-b2a97000 rwxp b2a06000 00:00 0
b2a97000-b2ab3000 rwxp b2a97000 00:00 0
b2ab3000-b2ab4000 rwxp b2ab3000 00:00 0
b2ab4000-b2ad1000 rwxp b2ab4000 00:00 0
b2ad1000-b2ad2000 rwxp b2ad1000 00:00 0
b2ad2000-b2ad3000 rwxp b2ad2000 00:00 0
b2ad3000-b2ad5000 rwxp b2ad3000 00:00 0
b2ad5000-b2af1000 rwxp b2ad5000 00:00 0
b2af1000-b2af5000 rwxp b2af1000 00:00 0
b2af5000-b2b11000 rwxp b2af5000 00:00 0
b2b11000-b2b1f000 rwxp b2b11000 00:00 0
b2b1f000-b2b9c000 rwxp b2b1f000 00:00 0
b2b9c000-b2c54000 rwxp b2b9c000 00:00 0
b2c54000-b4b9c000 rwxp b2c54000 00:00 0
b4b9c000-b53ba000 r-xs 00000000 03:02 4096426    /usr/lib/j2re1.5-sun/lib/charsets.jar
b53ba000-b53ce000 r-xs 00000000 03:02 4096394    /usr/lib/j2re1.5-sun/lib/jce.jar
b53ce000-b5447000 r-xs 00000000 03:02 4096425    /usr/lib/j2re1.5-sun/lib/jsse.jar
b5447000-b54b0000 rwxp b5447000 00:00 0
b54b0000-b7693000 r-xs 00000000 03:02 4096424    /usr/lib/j2re1.5-sun/lib/rt.jar
b7693000-b76a6000 r-xp 00000000 03:02 4096364    /usr/lib/j2re1.5-sun/lib/i386/libzip.so
b76a6000-b76a8000 rwxp 00012000 03:02 4096364    /usr/lib/j2re1.5-sun/lib/i386/libzip.so
b76a8000-b76c9000 r-xp 00000000 03:02 4096362    /usr/lib/j2re1.5-sun/lib/i386/libjava.so
b76c9000-b76cb000 rwxp 00020000 03:02 4096362    /usr/lib/j2re1.5-sun/lib/i386/libjava.so
b76cb000-b76d6000 r-xp 00000000 03:02 4096360    /usr/lib/j2re1.5-sun/lib/i386/libverify.so
b76d6000-b76d7000 rwxp 0000b000 03:02 4096360    /usr/lib/j2re1.5-sun/lib/i386/libverify.so
b76d7000-b76df000 r-xp 00000000 03:02 5242932    /lib/tls/i686/cmov/libnss_files-2.3.2.so
b76df000-b76e0000 rwxp 00008000 03:02 5242932    /lib/tls/i686/cmov/libnss_files-2.3.2.so
b76e0000-b76e8000 r-xp 00000000 03:02 5242937    /lib/tls/i686/cmov/libnss_nis-2.3.2.so
b76e8000-b76e9000 rwxp 00007000 03:02 5242937    /lib/tls/i686/cmov/libnss_nis-2.3.2.so
b76e9000-b76f0000 r-xp 00000000 03:02 5242930    /lib/tls/i686/cmov/libnss_compat-2.3.2.so
b76f0000-b76f1000 rwxp 00006000 03:02 5242930    /lib/tls/i686/cmov/libnss_compat-2.3.2.so
b76f1000-b7702000 r-xp 00000000 03:02 5242929    /lib/tls/i686/cmov/libnsl-2.3.2.so
b7702000-b7703000 rwxp 00011000 03:02 5242929    /lib/tls/i686/cmov/libnsl-2.3.2.so
b7703000-b7705000 rwxp b7703000 00:00 0
b770a000-b7712000 rwxs 00000000 03:02 1933456    /tmp/hsperfdata_bli/12209
b7712000-b7732000 r-xp 00000000 03:02 5242927    /lib/tls/i686/cmov/libm-2.3.2.so
b7732000-b7733000 rwxp 0001f000 03:02 5242927    /lib/tls/i686/cmov/libm-2.3.2.so
b7737000-b773d000 r-xp 00000000 03:02 4096347    /usr/lib/j2re1.5-sun/lib/i386/native_threads/libhpi.so
b773d000-b773e000 rwxp 00006000 03:02 4096347    /usr/lib/j2re1.5-sun/lib/i386/native_threads/libhpi.so
b773e000-b773f000 rwxp b773e000 00:00 0
b773f000-b7740000 r-xp b773f000 00:00 0
b7740000-b7a68000 r-xp 00000000 03:02 4096353    /usr/lib/j2re1.5-sun/lib/i386/client/libjvm.so
b7a68000-b7a86000 rwxp 00327000 03:02 4096353    /usr/lib/j2re1.5-sun/lib/i386/client/libjvm.so
b7a86000-b7e9b000 rwxp b7a86000 00:00 0
b7e9b000-b7fbd000 r-xp 00000000 03:02 5242924    /lib/tls/i686/cmov/libc-2.3.2.so
b7fbd000-b7fc6000 rwxp 00121000 03:02 5242924    /lib/tls/i686/cmov/libc-2.3.2.so
b7fc6000-b7fc9000 rwxp b7fc6000 00:00 0
b7fc9000-b7fcb000 r-xp 00000000 03:02 5242926    /lib/tls/i686/cmov/libdl-2.3.2.so
b7fcb000-b7fcc000 rwxp 00001000 03:02 5242926    /lib/tls/i686/cmov/libdl-2.3.2.so
b7fcc000-b7fd9000 r-xp 00000000 03:02 5242940    /lib/tls/i686/cmov/libpthread-0.60.so
b7fd9000-b7fda000 rwxp 0000c000 03:02 5242940    /lib/tls/i686/cmov/libpthread-0.60.so
b7fda000-b7fdc000 rwxp b7fda000 00:00 0
b7fe9000-b7feb000 rwxp b7fe9000 00:00 0
b7feb000-b8000000 r-xp 00000000 03:02 5242919    /lib/ld-2.3.2.so
b8000000-b8001000 rwxp 00015000 03:02 5242919    /lib/ld-2.3.2.so
bfe00000-bfe03000 ---p bfe00000 00:00 0
bfe03000-c0000000 rwxp bfe03000 00:00 0
ffffe000-fffff000 ---p 00000000 00:00 0

VM Arguments:
jvm_args: -Djava.library.path=./native
java_command: asteroid.AsteroidsGame

Environment Variables:
PATH=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games
USERNAME=bli
LD_LIBRARY_PATH=/usr/lib/j2re1.5-sun/lib/i386/client:/usr/lib/j2re1.5-sun/lib/i386:/usr/lib/j2re1.5-sun/../lib/i386
SHELL=/bin/bash
DISPLAY=:0.0

Signal Handlers:
SIGSEGV: [libjvm.so+0x2e52f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x2e52f0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x25d640], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: [libjvm.so+0x25d640], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x25d640], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x25f980], sa_mask[0]=0x00000004, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x25f3b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: [libjvm.so+0x25f3b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x25f3b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGTERM: [libjvm.so+0x25f3b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004


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

OS:3.1

uname:Linux 2.6.10-5-386 #1 Thu Sep 8 06:18:41 UTC 2005 i686
libc:glibc 2.3.2 NPTL 0.60
rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
load average:0.17 0.38 0.32

CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse

Memory: 4k page, physical 906660k(63708k free), swap 2409708k(2406956k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_04-b05) for linux-x86, built on Jun  3 2005 03:17:33 by java_re with gcc 3.2.1-7a (J2SE release)


I've seen some threads about getting the FMod dll for Windows, so I tried picking out the linux libs from their 3.74 Programmers API. However, that didn't do anything.

Any suggestions would be great!

-Ben
Logged

benjunmun

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
FMod - Linux problem
« Reply #1 on: September 17, 2005, 19:17:53 »

Wheee, nevermind

Fixed it myself.
Aparrently I had to rename the library file to libfmod.so
Logged