Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JOAL status  (Read 8728 times)
0 Members and 1 Guest are viewing this topic.
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Posted 2003-11-23 00:47:26 »

I know there have been a number of issues with JOAL on Windows, so I wanted to get a sense of how many people are still experiencing difficulty.

Before voting, please download the following tutorial bundle:

https://joal-demos.dev.java.net/devmaster/OpenAL_Tutorials_Bundle.zip

unpack the zip file, and then run the following from the command line in each folder:

1  
ant clean run

After running the examples, select one of the options from the list above. If you vote "no" please post your platform configuration: CPU, AudioCard, OS, etc and a copy of whatever printouts you get as a result of running the test.

Thanks in advance!

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline Java Cool Dude

Senior Devvie




Java forever


« Reply #1 - Posted 2003-11-23 07:21:53 »

It compiles but it won't run; option 2 for me  Cry
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #2 - Posted 2003-11-23 14:05:38 »

Quote
It compiles but it won't run; option 2 for me  Cry


Bummer. What are you running on? (CPU, sound card, OS, etc)

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #3 - Posted 2003-11-23 14:17:27 »

It works for me now. Can't get it to not work again. =/

"Update your sound card drivers if the game crashes to desktop" isn't the most user frienly error message one can give. Wink

Play Minecraft!
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #4 - Posted 2003-11-23 14:39:56 »

Quote
It works for me now. Can't get it to not work again. =/

"Update your sound card drivers if the game crashes to desktop" isn't the most user frienly error message one can give. Wink


Gremlins, maybe  Huh

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline GKW

Senior Devvie




Revenge is mine!


« Reply #5 - Posted 2003-11-24 17:32:41 »

Lessons 1-3 work just fine but 5 dies.  Win2k with an old aureal card so no hope of driver updats.

1  
2  
3  
4  
5  
6  
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
     [java] Using device null
     [java] Pointer = 408624144
     [java] ALC = net.java.games.joal.ALCImpl@3c0007
     [java] Could not initialize


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
"Thread-0" prio=5 tid=0x009c8a80 nid=0xdc in Object.wait() [1943f000..1943fd90]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x100a01d0> (a net.java.games.joal.ALCImpl$Mutex)
        at java.lang.Object.wait(Object.java:429)
        at net.java.games.joal.ALCImpl$Mutex.acquire(ALCImpl.java:206)
        - locked <0x100a01d0> (a net.java.games.joal.ALCImpl$Mutex)
        at net.java.games.joal.ALCImpl.alcMakeContextCurrent(ALCImpl.java:82)
        at net.java.games.joal.ALCImpl.exit(ALCImpl.java:194)
        at net.java.games.joal.ALCImpl.access$100(ALCImpl.java:38)
        at net.java.games.joal.ALCImpl$1.run(ALCImpl.java:46)
        at java.lang.Thread.run(Thread.java:534)
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #6 - Posted 2003-11-24 17:48:11 »

Actually, this is a completely new one, and probably a bug in the context (thread) management code, as opposed to OpenAL initialization, which is the issue we've been seeing up till now. The bad news is updating your drivers isn't likely to fix anything even if you could update them. The good news is, the problem appears to be in a very specific piece of code which we have control over, so with luck it will be an easy fix.

EDIT: Could you make sure to report this to issuezilla? Give as much info as you can on platform, hardware, configuration, etc along with any printouts or stack traces you may have. Thanks.

https://joal.dev.java.net/servlets/ProjectIssues

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline GKW

Senior Devvie




Revenge is mine!


« Reply #7 - Posted 2003-11-25 14:38:59 »

Issuetracker won't let me file a new bug.  It tells me that I am not logged in even though I do log in repeatedly.  So maybe you can file the bug.  The two bits of code I posted I got from using the thread dump mechanism(ctrl-brk) not from an actual jvm crash.  It just hangs there after "could not initialise."

win2k
dual p2's
aureal 8830
1.4.2_02
joal @ 11/22/03
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #8 - Posted 2003-11-26 04:46:39 »

Thanks, will do. And will look into this shortly.

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline TheBohemian

Junior Devvie




Java will rule them all!


« Reply #9 - Posted 2003-12-05 16:55:29 »

Worked without any problems!

Windows XP Prof, Nvidia Soundstorm (nforce2 on Asus A7N8X)

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #10 - Posted 2003-12-05 17:39:51 »

Quote
Worked without any problems!

Windows XP Prof, Nvidia Soundstorm (nforce2 on Asus A7N8X)


So cast your vote!

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline javaquest

Junior Newbie





« Reply #11 - Posted 2003-12-05 20:10:33 »

"No, it runs, but it doesn't sound right."
I'm running OSX on a G4. (not sure where I can find what my sound card is) I'm using the latest OSX build.
The program runs perfectly, but the sound played back is only static with certain wav files.
lesson1/wavdata/FancyPants.wav plays clearly.
lesson2/wavdata/Footsteps.wav plays static. Footsteps.wav is not corrupted because I can play it in other programs.
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #12 - Posted 2003-12-05 20:13:41 »

Quote
"No, it runs, but it doesn't sound right."
I'm running OSX on a G4. (not sure where I can find what my sound card is) I'm using the latest OSX build.
The program runs perfectly, but the sound played back is only static with certain wav files.
lesson1/wavdata/FancyPants.wav plays clearly.
lesson2/wavdata/Footsteps.wav plays static. Footsteps.wav is not corrupted because I can play it in other programs.


Hmmm... Very strange. Let me check to see if greg pierce (he did the port to OSX) is getting similar results with the footsteps. I'll go back and take a look at the demo that uses footsteps and see if there's any obvious culprits.

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline Java Cool Dude

Senior Devvie




Java forever


« Reply #13 - Posted 2003-12-08 03:59:27 »

Won't work on my nForce2 built in sound device and my other Hercules Fortissimo II
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77F580C9
Function=RtlAllocateHeap+0x51B
Library=C:\WINDOWS\System32\ntdll.dll

Current Java thread:
      at net.java.games.joal.ALCImpl.openDeviceNative(Native Method)
      at net.java.games.joal.ALCImpl.alcOpenDevice(ALCImpl.java:53)
      at net.java.games.joal.util.ALut.alutInit(ALut.java:75)
      at SingleStaticSource.main(SingleStaticSource.java:133)

Dynamic libraries:
0x00400000 - 0x00406000       F:\JDK\bin\java.exe
0x77F50000 - 0x77FF7000       C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000       C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5D000       C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000       C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000       C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08138000       F:\JDK\jre\bin\client\jvm.dll
0x77D40000 - 0x77DCC000       C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000       C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000       C:\WINDOWS\System32\WINMM.dll
0x10000000 - 0x10007000       F:\JDK\jre\bin\hpi.dll
0x00390000 - 0x0039E000       F:\JDK\jre\bin\verify.dll
0x003A0000 - 0x003B9000       F:\JDK\jre\bin\java.dll
0x003C0000 - 0x003CD000       F:\JDK\jre\bin\zip.dll
0x003F0000 - 0x003FF000       F:\JDK\jre\bin\joal.dll
0x02E80000 - 0x02E88000       C:\WINDOWS\System32\OpenAL32.dll
0x72D20000 - 0x72D29000       C:\WINDOWS\System32\wdmaud.drv
0x72D10000 - 0x72D18000       C:\WINDOWS\System32\msacm32.drv
0x77BE0000 - 0x77BF4000       C:\WINDOWS\System32\MSACM32.dll
0x77BD0000 - 0x77BD7000       C:\WINDOWS\System32\midimap.dll
0x76670000 - 0x76757000       C:\WINDOWS\System32\setupapi.dll
0x76C90000 - 0x76CB2000       C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000       C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C07000       C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000       C:\WINDOWS\System32\PSAPI.DLL

Heap at VM Abort:
Heap
 def new generation   total 576K, used 327K [0x10010000, 0x100b0000, 0x104f0000)
  eden space 512K,  63% used [0x10010000, 0x10061d70, 0x10090000)
  from space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)
  to   space 64K,   0% used [0x100a0000, 0x100a0000, 0x100b0000)
 tenured generation   total 1408K, used 0K [0x104f0000, 0x10650000, 0x14010000)
   the space 1408K,   0% used [0x104f0000, 0x104f0000, 0x104f0200, 0x10650000)
 compacting perm gen  total 4096K, used 1151K [0x14010000, 0x14410000, 0x18010000)
   the space 4096K,  28% used [0x14010000, 0x1412fda0, 0x1412fe00, 0x14410000)

Local Time = Mon Dec 08 02:00:16 2003
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_02-b03 mixed mode)
#

:sad panda:
Offline princec

« JGO Spiffy Duke »


Medals: 434
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #14 - Posted 2003-12-08 09:14:23 »

Hey chaps, if anyone (on Windows) is having trouble with JOAL would you mind grabbing Alien Flux and seeing if that works? That'll basically put any driver worries to rest for Athomas and he will be able to tell if it's just in the JOAL code.

Cas Smiley

Offline sugarshark

Junior Devvie




Sugar to the sharks.


« Reply #15 - Posted 2003-12-08 12:41:09 »

I tried it yesterday on my Redhat 9.0 Athlon box, with J2SE 1.4.2_02, SB Live (emu10k driver), and openAL from CVS:

Lesson 1 to 3 ran, after some Linux specific tweaking of the build
files and sources: You need to set java.library.path via a jvmarg tag and the keyboard input loop in Lesson 1 does not work with Linux. Propably some issues with buffered stdin stream, I havn't investigated but simply hardcoded the al* functions calls seperated by Thread.sleep().

Lesson 5 hangs in after failed ALC initialization. Same thing GKW sees.

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Offline elbosmogg

Junior Newbie




Java games rock!


« Reply #16 - Posted 2003-12-08 13:31:18 »

Similar error as mentioned above by JCD:

[java] Go TEAM!
[java] Entering alutInit()
[java] In alutInit(): Device Name = null

[java] An unexpected exception has been detected in native code outside the VM.
[java] Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0
[java] Function=[Unknown.]
[java] Library=(N/A)

[java] NOTE: We are unable to locate the function name symbol for the error
[java]       just occurred. Please refer to release documentation for possible
[java]       reason and solutions.


[java] Current Java thread:
[java]     at net.java.games.joal.ALCImpl.openDeviceNative(Native Method)
[java]     at net.java.games.joal.ALCImpl.alcOpenDevice(ALCImpl.java:53)
[java]     at net.java.games.joal.util.ALut.alutInit(ALut.java:75)
[java]     at LoopingAndFadeaway.main(Unknown Source)

[java] Dynamic libraries:
[java] 0x00400000 - 0x00406000     C:\jdk\j2sdk1.4.2_01\jre\bin\java.exe
[java] 0x77F50000 - 0x77FF7000     C:\WINDOWS\System32\ntdll.dll
[java] 0x77E60000 - 0x77F46000     C:\WINDOWS\system32\kernel32.dll
[java] 0x77DD0000 - 0x77E5D000     C:\WINDOWS\system32\ADVAPI32.dll
[java] 0x78000000 - 0x78086000     C:\WINDOWS\system32\RPCRT4.dll
[java] 0x77C10000 - 0x77C63000     C:\WINDOWS\system32\MSVCRT.dll
[java] 0x08000000 - 0x08136000     C:\jdk\j2sdk1.4.2_01\jre\bin\client\jvm.dll
[java] 0x77D40000 - 0x77DCC000     C:\WINDOWS\system32\USER32.dll
[java] 0x77C70000 - 0x77CB0000     C:\WINDOWS\system32\GDI32.dll
[java] 0x76B40000 - 0x76B6C000     C:\WINDOWS\System32\WINMM.dll
[java] 0x10000000 - 0x10007000     C:\jdk\j2sdk1.4.2_01\jre\bin\hpi.dll
[java] 0x00390000 - 0x0039E000     C:\jdk\j2sdk1.4.2_01\jre\bin\verify.dll
[java] 0x003A0000 - 0x003B8000     C:\jdk\j2sdk1.4.2_01\jre\bin\java.dll
[java] 0x003C0000 - 0x003CD000     C:\jdk\j2sdk1.4.2_01\jre\bin\zip.dll
[java] 0x003F0000 - 0x003FF000     E:\temp\gldemos\joal\test\lesson2\joal.dll
[java] 0x02C80000 - 0x02C94000     C:\WINDOWS\System32\OpenAL32.dll
[java] 0x72D20000 - 0x72D29000     C:\WINDOWS\System32\wdmaud.drv
[java] 0x72D10000 - 0x72D18000     C:\WINDOWS\System32\msacm32.drv
[java] 0x77BE0000 - 0x77BF4000     C:\WINDOWS\System32\MSACM32.dll
[java] 0x77BD0000 - 0x77BD7000     C:\WINDOWS\System32\midimap.dll
[java] 0x76C90000 - 0x76CB2000     C:\WINDOWS\system32\imagehlp.dll
[java] 0x6D510000 - 0x6D58D000     C:\WINDOWS\system32\DBGHELP.dll
[java] 0x77C00000 - 0x77C07000     C:\WINDOWS\system32\VERSION.dll
[java] 0x76BF0000 - 0x76BFB000     C:\WINDOWS\System32\PSAPI.DLL

[java] Heap at VM Abort:
[java] Heap
[java]  def new generation   total 576K, used 270K [0x10010000, 0x100b0000, 0x104f0000)
[java]   eden space 512K,  52% used [0x10010000, 0x100539d0, 0x10090000)
[java]   from space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)
[java]   to   space 64K,   0% used [0x100a0000, 0x100a0000, 0x100b0000)
[java]  tenured generation   total 1408K, used 0K [0x104f0000, 0x10650000, 0x14010000)
[java]    the space 1408K,   0% used [0x104f0000, 0x104f0000, 0x104f0200, 0x10650000)
[java]  compacting perm gen  total 4096K, used 1127K [0x14010000, 0x14410000, 0x18010000)
[java]    the space 4096K,  27% used [0x14010000, 0x14129da0, 0x14129e00, 0x14410000)

[java] Local Time = Mon Dec 08 16:49:42 2003
[java] Elapsed Time = 0
[java] #
[java] # The exception above was detected in native code outside the VM
[java] #
[java] # Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode)
[java] #
[java] # An error report file has been saved as hs_err_pid3772.log.
[java] # Please refer to the file for further information.
[java] #
[java] ALFactory.init - Native: Enter
[java] ALFactory.init - Native: Exit
[java] Java Result: 1


System is laptop, winXP with a crystal soundcard.


AlienFlux does work.
Also, an earlier version I got (.dll and jar dated 18 nov. ) works fine. That version started working after updating the openAL drivers from openAL.org.
Running with the older version (not using ant) gives me the following output :

Entering alutInit()
In alutInit(): Device Name = null
Entering alcOpenDevice()
Entering openDeviceNative()
In openDeviceNative() test 1
In openDeviceNative() test 2b -- NULL - 46800720
In openDeviceNative() test 3
Exiting openDeviceNative()
In alcOpenDevice: Device Pointer = 46800720
Exiting alcOpenDevice()
In alutInit(): Device = net.java.games.joal.ALC$Device@2ca1f50
Exiting alutInit()
Press a key and hit ENTER:
'p' to play, 's' to stop, 'h' to pause and 'q' to quit
p
Press a key and hit ENTER:
'p' to play, 's' to stop, 'h' to pause and 'q' to quit
q


Hope you get it to work perfectly!
Offline TheBohemian

Junior Devvie




Java will rule them all!


« Reply #17 - Posted 2003-12-11 19:44:04 »

Linux Results (Gentoo 2.4.23-pre8-gss, ALSA, EsD available)
Nvidia Soundstorm (Nforce2) on Asus A7N8X Deluxe (ALSA: snd-intel8x0)

OpenAL taken from portage: openal-20020127

Alien Flux: no probs, works!!!
JOAL (any lesson): failed to initialize - "net.java.games.joal.OpenALException: Could not load OpenAL function"

Some notes beside this:
I had to copy the native library into a java.library.path directory. Isn't there any alternative? I remember the native library mechanism searches in the same dir as the class file first ...

Can anyone comment on the state of OpenAL (not JOAL) for Linux in general?

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline Spockmeat

Innocent Bystander




Java games rock!


« Reply #18 - Posted 2003-12-12 14:49:02 »

That Alien Flux works fine for me as well.

Everything compiles fine for me, but when I try to run any examples, I get an error that crashs the program. It always happens just after the alutInit() call. Here's a run log:

ant clean run
Buildfile: build.xml

clean:
  [delete] Deleting directory C:\Documents and Settings\Spockmeat\Desktop\OpenA
L_Tutorials_Bundle\lesson1\classes

init:
   [mkdir] Created dir: C:\Documents and Settings\Spockmeat\Desktop\OpenAL_Tuto
rials_Bundle\lesson1\classes

compile:
   [javac] Compiling 1 source file to C:\Documents and Settings\Spockmeat\Deskt
op\OpenAL_Tutorials_Bundle\lesson1\classes

run:
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
    [java] Go TEAM!
    [java] Entering alutInit()
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
    [java] In alutInit(): Device Name = null

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
     just occurred. Please refer to release documentation for possible
     reason and solutions.


Current Java thread:
       at net.java.games.joal.ALCImpl.openDeviceNative(Native Method)
       at net.java.games.joal.ALCImpl.alcOpenDevice(ALCImpl.java:53)
       at net.java.games.joal.util.ALut.alutInit(ALut.java:75)
       at SingleStaticSource.main(SingleStaticSource.java:133)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:208)
       at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:15
0)
       at org.apache.tools.ant.taskdefs.Java.run(Java.java:443)
       at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:163)
       at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
       at org.apache.tools.ant.Task.perform(Task.java:341)
       at org.apache.tools.ant.Target.execute(Target.java:309)
       at org.apache.tools.ant.Target.performTasks(Target.java:336)
       at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
       at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
       at org.apache.tools.ant.Main.runBuild(Main.java:609)
       at org.apache.tools.ant.Main.start(Main.java:196)
       at org.apache.tools.ant.Main.main(Main.java:235)

Dynamic libraries:
0x00400000 - 0x00406000         c:\j2sdk1.4.2_02\bin\java.exe
0x77F40000 - 0x77FFA000         C:\WINDOWS\system32\ntdll.dll
0x77E40000 - 0x77F34000         C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E30000         C:\WINDOWS\system32\ADVAPI32.dll
0x77C50000 - 0x77CF4000         C:\WINDOWS\system32\RPCRT4.dll
0x77BA0000 - 0x77BF4000         C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08138000         c:\j2sdk1.4.2_02\jre\bin\client\jvm.dll
0x77D00000 - 0x77D8F000         C:\WINDOWS\system32\USER32.dll
0x77C00000 - 0x77C44000         C:\WINDOWS\system32\GDI32.dll
0x76AA0000 - 0x76ACC000         C:\WINDOWS\system32\WINMM.dll
0x10000000 - 0x10007000         c:\j2sdk1.4.2_02\jre\bin\hpi.dll
0x00380000 - 0x0038E000         c:\j2sdk1.4.2_02\jre\bin\verify.dll
0x003B0000 - 0x003C9000         c:\j2sdk1.4.2_02\jre\bin\java.dll
0x00390000 - 0x0039D000         c:\j2sdk1.4.2_02\jre\bin\zip.dll
0x03260000 - 0x0326F000         C:\Documents and Settings\Spockmeat\Desktop\Open
AL_Tutorials_Bundle\lesson1\joal.dll
0x03290000 - 0x032A4000         C:\WINDOWS\system32\OpenAL32.dll
0x72D70000 - 0x72D79000         C:\WINDOWS\system32\wdmaud.drv
0x72D60000 - 0x72D68000         C:\WINDOWS\system32\msacm32.drv
0x77B70000 - 0x77B84000         C:\WINDOWS\system32\MSACM32.dll
0x77B60000 - 0x77B67000         C:\WINDOWS\system32\midimap.dll
0x76C10000 - 0x76C38000         C:\WINDOWS\system32\imagehlp.dll
0x6D580000 - 0x6D621000         C:\WINDOWS\system32\dbghelp.dll
0x77B90000 - 0x77B98000         C:\WINDOWS\system32\VERSION.dll
0x76B70000 - 0x76B7B000         C:\WINDOWS\system32\PSAPI.DLL

Heap at VM Abort:
Heap
def new generation   total 576K, used 150K [0x10010000, 0x100b0000, 0x104f0000)

 eden space 512K,  20% used [0x10010000, 0x10029de0, 0x10090000)
 from space 64K,  73% used [0x100a0000, 0x100abcd0, 0x100b0000)
 to   space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)
tenured generation   total 5544K, used 4282K [0x104f0000, 0x10a5a000, 0x1401000
0)
  the space 5544K,  77% used [0x104f0000, 0x1091ea28, 0x1091ec00, 0x10a5a000)
compacting perm gen  total 5376K, used 5283K [0x14010000, 0x14550000, 0x1801000
0)
  the space 5376K,  98% used [0x14010000, 0x14538d50, 0x14538e00, 0x14550000)

Local Time = Fri Dec 12 12:45:13 2003
Elapsed Time = 2
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_02-b03 mixed mode)
#
# An error report file has been saved as hs_err_pid2500.log.
# Please refer to the file for further information.
#
C:\Documents and Settings\Spockmeat\Desktop\OpenAL_Tutorials_Bundle\lesson1>
Offline elbosmogg

Junior Newbie




Java games rock!


« Reply #19 - Posted 2003-12-13 05:53:32 »

Quote
Some notes beside this:
I had to copy the native library into a java.library.path directory. Isn't there any alternative? I remember the native library mechanism searches in the same dir as the class file first ...

The current directory will be searched, as well as OS default library locations. If you have it somewhere else  you can specify de library path yourself when running java by setting the property. -Djava.library.path="..."
Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #20 - Posted 2004-01-13 16:43:51 »

Same crash in all lessons.

Quote
run:
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
    [java] Go TEAM!
    [java] Entering alutInit()
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
    [java] In alutInit(): Device Name = null
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0
Current Java thread:
       at net.java.games.joal.ALCImpl.openDeviceNative(Native Method)
       at net.java.games.joal.ALCImpl.alcOpenDevice(ALCImpl.java:53)


LWJGL works fine

WinXP, JDK 1.5, Beta OAL drivers

Offline Jani Laakso

Junior Devvie




Do it with Java!


« Reply #21 - Posted 2004-02-17 06:44:30 »

Quote
Won't work on my nForce2 built in sound device and my other Hercules Fortissimo II
[code]An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77F580C9
Function=RtlAllocateHeap+0x51B
Library=C:\WINDOWS\System32\ntdll.dll


I got exactly the same exceptions before I reinstalled my OpenAL from the creative's site.

I too have nForce (Epox 8RDA).

Check the next post to this thread, I have some more information. Currently my JOAL works fine for me, but I suspect that the package at Creative's website (OpenAL runtime) just wont work with nForce + JOAL combination.

I suggest you install the following file:
OpenALwEAX.exe (file version 2.1.5.0), size is 782 782 bytes.
http://ftp://opensource.creative.com/pub/sdk/OpenAlwEAX.exe
NOTE: be sure to delete existing C:\WINDOWS\system32\OpenAL32.dll file, installer wont replace it.

Cretive's links on the website seem to point file version 1.2.2.0 (older?).

Offline Jani Laakso

Junior Devvie




Do it with Java!


« Reply #22 - Posted 2004-02-17 07:10:14 »

Whole message made short:
Use Creative's FTP site, NOT Website when downloading OpenAL install packages.

Download packages from here:
http://ftp://opensource.creative.com/pub/sdk

-----

I have a feeling that Creative has their files mixed up on the website (or FTP site).
This is because www has older OpenALwEAX.exe (also SDK is older) files, at least when it comes to version numbering.

Below is an explanation:

----

Does not work:

If I install OpenAL SDK or plain Runtime using Creative's www-page links, such as link:
http://developer.creative.com/landing.asp?cat=1&sbcat=31&top=38
Nothing JOAL related works any more for me.

Let's take for example plain runtime file:
http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=46&file=OpenALwEAX.exe
This file's version is: 1.2.2.0 and size is: 331 776 bytes.
(NOTE the _lower version_ number).
These files install this file C:\WINDOWS\System32\OpenAL32.dll
File version: 6.14.357.6
Description: Standard OpenAL(TM) Implementation
Copyright: Copyright(C) 2000-2003 NVIDIA Corporation
DLL Size: 81 920 bytes (lower size)

Running JOAL lesson1 does _not_ work:

user@orion ~/workspace/joal-demos/www/devmaster/lesson1
$ ant run
Buildfile: build.xml

init:

compile:

run:
    [java] Go TEAM!
    [java] Entering alutInit()
    [java] In alutInit(): Device Name = null
    [java] In alutInit(): Device = net.java.games.joal.ALC$Device@3303e80
    [java] Pointer = 53493464
    [java] ALC = net.java.games.joal.ALCImpl@9e5c73
    [java] Exiting alutInit()
(just "hangs" in here, have to kill Java process..)

----

This one _works_ fine:

I get the files from Creatives FTP site:
http://ftp://opensource.creative.com/pub/sdk/OpenALwEAX.exe
This file's version is: 2.1.5.0 and size is: 782 782 bytes
(NOTE the _higher version_ number).
Then I got this file:
C:\WINDOWS\System32\OpenAL32.dll
File version: 2.1.5.0
Description: PackageForTheWeb Stub
Copyright: Copyright © 1996 InstallShield Software Corporation
DLL Size: 159 744 bytes (higher size)

Running JOAL lesson1 works:
user@orion ~/workspace/joal-demos/www/devmaster/lesson1
$ ant run
Buildfile: build.xml

init:

compile:

run:
    [java] Go TEAM!
    [java] Entering alutInit()
    [java] In alutInit(): Device Name = null
    [java] In alutInit(): Device = net.java.games.joal.ALC$Device@33d0650
    [java] Pointer = 54331416
    [java] ALC = net.java.games.joal.ALCImpl@9e5c73
    [java] Exiting alutInit()
    [java] Press a key and hit ENTER:
    [java] 'p' to play, 's' to stop, 'h' to pause and 'q' to quit

All commands execute fine.

-----


One more thing, I suggest you delete old OpenAL files, especially C:\WINDOWS\system32\OpenAL32.dll because http://ftp://opensource.creative.com/pub/sdk/OpenALwEAX.exe wont replace existing OpenAL32.dll if there is one found already from your system32 directory.

At least this was the case on my desktop system and on my laptop, my desktop system has Epox 8RDA (NForce Nvidia sound chipset).  Where as my laptop (HP Omnibook 510) has some other sound chipset. I got JOAL working fine on both systems when using FTP files.


Athomas, hope this helps!
Offline Jani Laakso

Junior Devvie




Do it with Java!


« Reply #23 - Posted 2004-02-17 07:53:49 »

This message is for JOAL developers only.

I get JOAL working fine on my laptop if I use OpenAL from Creative's FTP site (not www-site). But here's an exception that I get with the "wrong" www-site creative files:

I suggest everyone loads files from the FTP site and try again JOAL.

----

Buildfile: build.xml

init:

compile:

run:
    [java] Go TEAM!
    [java] Entering alutInit()
    [java] In alutInit(): Device Name = null

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
     just occurred. Please refer to release documentation for possible
     reason and solutions.


Current Java thread:
     at net.java.games.joal.ALCImpl.openDeviceNative(Native Method)
     at net.java.games.joal.ALCImpl.alcOpenDevice(ALCImpl.java:53)
     at net.java.games.joal.util.ALut.alutInit(ALut.java:75)
     at SingleStaticSource.main(SingleStaticSource.java:133)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:196)
     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:133)
     at org.apache.tools.ant.taskdefs.Java.run(Java.java:661)
     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:168)
     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:77)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
     at org.apache.tools.ant.Task.perform(Task.java:364)
     at org.apache.tools.ant.Target.execute(Target.java:301)
     at org.apache.tools.ant.Target.performTasks(Target.java:328)
     at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
     at org.apache.tools.ant.Main.runBuild(Main.java:632)
     at org.apache.tools.ant.Main.startAnt(Main.java:183)
     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)

Dynamic libraries:
0x00400000 - 0x00406000       c:\j2sdk1.4.2_03\bin\java.exe
0x77F50000 - 0x77FF7000       C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000       C:\WINDOWS\system32\kernel32.dll
0x77DC0000 - 0x77E5C000       C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000       C:\WINDOWS\system32\RPCRT4.dll
0x77C00000 - 0x77C53000       C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08138000       c:\j2sdk1.4.2_03\jre\bin\client\jvm.dll
0x77D30000 - 0x77DBC000       C:\WINDOWS\system32\USER32.dll
0x77C60000 - 0x77CA0000       C:\WINDOWS\system32\GDI32.dll
0x76B30000 - 0x76B5C000       C:\WINDOWS\System32\WINMM.dll
0x5D2A0000 - 0x5D2A7000       C:\WINDOWS\System32\serwvdrv.dll
0x5B5D0000 - 0x5B5D7000       C:\WINDOWS\System32\umdmxfrm.dll
0x10000000 - 0x10007000       c:\j2sdk1.4.2_03\jre\bin\hpi.dll
0x003E0000 - 0x003EE000       c:\j2sdk1.4.2_03\jre\bin\verify.dll
0x008A0000 - 0x008B9000       c:\j2sdk1.4.2_03\jre\bin\java.dll
0x003F0000 - 0x003FD000       c:\j2sdk1.4.2_03\jre\bin\zip.dll
0x032B0000 - 0x032BF000       C:\lesson1\joal.dll
0x032E0000 - 0x032F4000       C:\WINDOWS\System32\OpenAL32.dll
0x72CF0000 - 0x72CF9000       C:\WINDOWS\System32\wdmaud.drv
0x72CE0000 - 0x72CE8000       C:\WINDOWS\System32\msacm32.drv
0x77BD0000 - 0x77BE4000       C:\WINDOWS\System32\MSACM32.dll
0x77BC0000 - 0x77BC7000       C:\WINDOWS\System32\midimap.dll
0x76C80000 - 0x76CA2000       C:\WINDOWS\system32\imagehlp.dll
0x6DAB0000 - 0x6DB2D000       C:\WINDOWS\system32\DBGHELP.dll
0x77BF0000 - 0x77BF7000       C:\WINDOWS\system32\VERSION.dll
0x76BE0000 - 0x76BEB000       C:\WINDOWS\System32\PSAPI.DLL

Heap at VM Abort:
Heap
def new generation   total 576K, used 193K [0x10010000, 0x100b0000, 0x104f0000)
 eden space 512K,  26% used [0x10010000, 0x100327b8, 0x10090000)
 from space 64K,  87% used [0x100a0000, 0x100adf28, 0x100b0000)
 to   space 64K,   0% used [0x10090000, 0x10090000, 0x100a0000)
tenured generation   total 1408K, used 624K [0x104f0000, 0x10650000, 0x14010000)
  the space 1408K,  44% used [0x104f0000, 0x1058c108, 0x1058c200, 0x10650000)
compacting perm gen  total 5120K, used 4997K [0x14010000, 0x14510000, 0x18010000)
  the space 5120K,  97% used [0x14010000, 0x144f1460, 0x144f1600, 0x14510000)

Local Time = Tue Feb 17 12:36:15 2004
Elapsed Time = 2
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode)
#
# An error report file has been saved as hs_err_pid1540.log.
# Please refer to the file for further information.
#
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit

---

Whereas on my desktop (nforce) I get no exceptions with the "wrong" OpenAL package, it just hangs. Desktop also works fine with the package that I get from the creative's ftp site.

PS. www.openal.org points to "wrong" non-working OpenAL packages. At least this is the case with JOAL.

Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #24 - Posted 2004-02-19 03:07:16 »

Janni you're brilliant! I owe you many many many drinks!

But seriously. I finally started experiencing the same crash problems on my fancy new Sony laptop (everything runs fine on my PC) and was ready to do a deep dive into the C code to try and solve this when I read your post, followed the instructions and "whammo" everything started working.

I will still probably take a dive into the C code to try and figure out why the OpenAL demos work with the web downloaded drivers and the JOAL demos don't, but (hopefully) this will make it easier for people to get up and running in the meantime.

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline Jani Laakso

Junior Devvie




Do it with Java!


« Reply #25 - Posted 2004-02-19 04:42:09 »

Quote
Jani you're brilliant! I owe you many many many drinks!

Ahh, but I'm into red wine Smiley

JOAL is an interesting project, I'm glad that my messages helped out a bit.

Quote

But seriously. I finally started experiencing the same crash problems on my fancy new Sony laptop (everything runs fine on my PC) and was ready to do a deep dive into the C code to try and solve this when I read your post, followed the instructions and "whammo" everything started working.


Perhaps Creative can tell you what's going on with the OpenAL package in whole. I'd guess that something fundamentel has changed as the dll is half of the size, versioning is different and package descriptions and authors are completely different from each other.


Cheers, Jani
Offline rkranitz

Junior Newbie




Java games rock!


« Reply #26 - Posted 2004-09-13 20:49:45 »

It crashed the jvm for me with the creative dll, but when I installed the nvidia dll they all worked just fine.  Leads me to believe somthing is wonky in the creative file and not JOAL.

WinXP Pro SoundMAX onboard.

p.s. That is with the files available currently.
Offline yuppi

Junior Newbie




Java games rock!


« Reply #27 - Posted 2004-11-09 15:11:43 »

Hi,
AlienFluxx works fine, but every lesson gives me:
    [java] Entering alutInit()
    [java] net.java.games.joal.OpenALException: Could not load ALC function pointers.
    [java]     at net.java.games.joal.ALFactory.init(Native Method)
    [java]     at net.java.games.joal.ALFactory.initialize(ALFactory.java:61)
    [java]     at net.java.games.joal.util.ALut.alutInit(ALut.java:61)
    [java]     at MultipleSources.main(Unknown Source)
I got a SBLive! Platinum on WinXP
Offline yuppi

Junior Newbie




Java games rock!


« Reply #28 - Posted 2004-11-09 15:20:00 »

After installing the latest driver from :http://developer.creative.com/articles/article.asp?cat=1&sbcat=31&top=38&aid=46
I got now:
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
    [java] Go TEAM!
    [java] Entering alutInit()
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
    [java] In alutInit(): Device Name = null
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=2288, tid=3392
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0-beta3-b57 mixed mode)
# Problematic frame:
# C  0x00000000
#
# An error report file with more information is saved as hs_err_pid2288.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Offline princec

« JGO Spiffy Duke »


Medals: 434
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #29 - Posted 2004-11-11 08:07:24 »

Ah, now - we don't use ALUT in LWJGL: there's no need for us. It turns out that it's a bit buggy too.

Try tweaking the code so that it doesn't use ALUT and see if the problem is fixed. (ALUT is just convenience functions that call down to basic AL functions)

Cas Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (50 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (57 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!