EXCEPTION_ACCESS_VIOLATION running demos

:smiley: I’m new to JOAL, so let’s get that out right away. Okay, I downloaded the lessons and got everything configured properly (Im pretty sure anyway), but only two of the four demos run. Here is the list

SingleStaticSource (runs)
LoopingAndFadeaway (crashes)
MultipleSources (crashes)
SourcesSharingBuffers (runs)

My configuration for all 4 is the same, yet only two of them work. Here is my system configuration:

Intel P4 3 gHz with hyperthreading
1GB RAM
Creative Labs SBLive 5.1 Soundcard

Any thoughts? Here is the error I get for the two that crash:

:o

 [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 - 0x0040B000     C:\j2sdk1.4.2_05\jre\bin\java.exe
 [java] 0x7C900000 - 0x7C9B0000     C:\WINDOWS\system32\ntdll.dll
 [java] 0x7C800000 - 0x7C8F4000     C:\WINDOWS\system32\kernel32.dll
 [java] 0x77DD0000 - 0x77E6B000     C:\WINDOWS\system32\ADVAPI32.dll
 [java] 0x77E70000 - 0x77F01000     C:\WINDOWS\system32\RPCRT4.dll
 [java] 0x77C10000 - 0x77C68000     C:\WINDOWS\system32\MSVCRT.dll
 [java] 0x08000000 - 0x08139000     C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
 [java] 0x77D40000 - 0x77DD0000     C:\WINDOWS\system32\USER32.dll
 [java] 0x77F10000 - 0x77F56000     C:\WINDOWS\system32\GDI32.dll
 [java] 0x76B40000 - 0x76B6D000     C:\WINDOWS\system32\WINMM.dll
 [java] 0x10000000 - 0x10007000     C:\j2sdk1.4.2_05\jre\bin\hpi.dll
 [java] 0x00390000 - 0x0039E000     C:\j2sdk1.4.2_05\jre\bin\verify.dll
 [java] 0x003B0000 - 0x003C9000     C:\j2sdk1.4.2_05\jre\bin\java.dll
 [java] 0x003D0000 - 0x003DD000     C:\j2sdk1.4.2_05\jre\bin\zip.dll
 [java] 0x02C60000 - 0x02C6F000     C:\j2sdk1.4.2_05\jre\bin\joal.dll
 [java] 0x02C90000 - 0x02CA4000     C:\WINDOWS\system32\OpenAL32.dll
 [java] 0x72D20000 - 0x72D29000     C:\WINDOWS\system32\wdmaud.drv
 [java] 0x76C30000 - 0x76C5E000     C:\WINDOWS\system32\WINTRUST.dll
 [java] 0x77A80000 - 0x77B14000     C:\WINDOWS\system32\CRYPT32.dll
 [java] 0x77B20000 - 0x77B32000     C:\WINDOWS\system32\MSASN1.dll
 [java] 0x76C90000 - 0x76CB8000     C:\WINDOWS\system32\IMAGEHLP.dll
 [java] 0x72D10000 - 0x72D18000     C:\WINDOWS\system32\msacm32.drv
 [java] 0x77BE0000 - 0x77BF5000     C:\WINDOWS\system32\MSACM32.dll
 [java] 0x77BD0000 - 0x77BD7000     C:\WINDOWS\system32\midimap.dll
 [java] 0x59A60000 - 0x59B01000     C:\WINDOWS\system32\DBGHELP.dll
 [java] 0x77C00000 - 0x77C08000     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 249K [0x10010000, 0x100b0000, 0x104f0000)
 [java]   eden space 512K,  48% used [0x10010000, 0x1004e6c8, 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 1122K [0x14010000, 0x14410000, 0x18010000)
 [java]    the space 4096K,  27% used [0x14010000, 0x14128ad0, 0x14128c00, 0x14410000)

 [java] Local Time = Wed Apr 13 18:48:29 2005
 [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_05-b04 mixed mode)
 [java] #
 [java] # An error report file has been saved as hs_err_pid3884.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

Hi BrackishWater

I have been having the exact same issue when trying to run the JOAL demos from my system, it’s starting to drive me crazy as I haven’t been able to resolve the problem for the past week. Can you let me know if you ever got this sorted out and if so what was done to resolve the issue?

Cheers,
Féilim

Hi my english isn’t so good so I hope you understand me.

At the beginning I had the same problem. But the solution is very easy.

You forgot to copy the openal32.dll in cour jre/bin directory.

Because there are so many different openal32.dlls in the www and only one worked, I have the suggestion to send the file it to you if you want.,

My email-adress : onkelv@gmx.de

Creative Labs ship a broken OpenAL driver with their cards. This is why we ship our own, differently-named, implementation of OpenAL with LWJGL.

Cas :slight_smile: