Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeException: org.lwjgl.LWJGLException: Could not locate OpenAL library. #105

Closed
JOELwindows7 opened this issue Mar 18, 2022 · 5 comments · Fixed by #111
Closed

RuntimeException: org.lwjgl.LWJGLException: Could not locate OpenAL library. #105

JOELwindows7 opened this issue Mar 18, 2022 · 5 comments · Fixed by #111
Labels
bug Something isn't working or is incorrect

Comments

@JOELwindows7
Copy link

JOELwindows7 commented Mar 18, 2022

Describe the bug
A clear and concise description of what the bug is.

Error in application

Uncaught exception thrown in Thread[jME3 Main,5,main]
RuntimeException: org.lwjgl.LWJGLException: Could not locate OpenAL library.

Last error.log stack trace

Mar 17, 2022 3:56:26 PM org.wysko.midis2jam2.gui.UpdateChecker checkForUpdates$lambda-2
INFO: Checking for updates.
Mar 17, 2022 3:56:31 PM org.wysko.midis2jam2.gui.UpdateChecker checkForUpdates$lambda-2
INFO: Up to date.
Mar 17, 2022 3:56:46 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.4.1-stable
 * Branch: HEAD
 * Git Hash: 662c8fe
 * Build Date: 2021-12-04
Mar 17, 2022 3:56:47 PM com.jme3.renderer.opengl.GLRenderer loadCapabilitiesCommon
INFO: OpenGL Renderer Information
 * Vendor: Intel
 * Renderer: Intel(R) UHD Graphics 630
 * OpenGL Version: 4.6.0 - Build 30.0.101.1219
 * GLSL Version: 4.60 - Build 30.0.101.1219
 * Profile: Compatibility
Mar 17, 2022 3:56:47 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: LWJGL 2.9.3 context running on thread jME3 Main
 * Graphics Adapter: igdumdim64
 * Driver Version: null
 * Scaling Factor: 1
Mar 17, 2022 3:56:47 PM com.jme3.asset.AssetConfig loadText
WARNING: Cannot find loader com.jme3.audio.plugins.OGGLoader
Mar 17, 2022 3:56:47 PM com.jme3.audio.lwjgl.LwjglALC createALC
WARNING: Caught an LWJGLException from AL.create(). Will retry after 100 msec, with 3 more retries remaining.

Mar 17, 2022 3:56:47 PM com.jme3.audio.lwjgl.LwjglALC createALC
WARNING: Caught an LWJGLException from AL.create(). Will retry after 100 msec, with 2 more retries remaining.

Mar 17, 2022 3:56:47 PM com.jme3.audio.lwjgl.LwjglALC createALC
WARNING: Caught an LWJGLException from AL.create(). Will retry after 100 msec, with 1 more retry remaining.

Mar 17, 2022 3:56:48 PM com.jme3.audio.lwjgl.LwjglALC createALC
WARNING: Caught an LWJGLException from AL.create(). Will retry after 100 msec, with 0 more retries remaining.

Mar 17, 2022 3:56:48 PM com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.RuntimeException: org.lwjgl.LWJGLException: Could not locate OpenAL library.
	at com.jme3.audio.lwjgl.LwjglALC.createALC(LwjglALC.java:32)
	at com.jme3.audio.openal.ALAudioRenderer.initOpenAL(ALAudioRenderer.java:94)
	at com.jme3.audio.openal.ALAudioRenderer.initialize(ALAudioRenderer.java:229)
	at com.jme3.app.LegacyApplication.initAudio(LegacyApplication.java:292)
	at com.jme3.app.LegacyApplication.initialize(LegacyApplication.java:642)
	at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:198)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:139)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:221)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.lwjgl.LWJGLException: Could not locate OpenAL library.
	at org.lwjgl.openal.AL.create(AL.java:156)
	at org.lwjgl.openal.AL.create(AL.java:102)
	at org.lwjgl.openal.AL.create(AL.java:206)
	at com.jme3.audio.lwjgl.LwjglALC.createALC(LwjglALC.java:27)
	... 8 more


probably race condition?

Offending MIDI file

none

Expected behavior

MIDI visualization began normally

Screenshots

werror in app midis2jam2 openal moveaway

wtf midis2jam2 openal is already extracted
the lwjgl.dll & OpenAL64.dll are extracted by this software automatically everytime press Start and placed next to the JAR file, yet still cannot find it. weird.

System
Provide your OS, and computer specs if applicable.

ASUS ROG GL503GE Laptop:
OS = Windows 11 Pro 22H2 Build 22000.556
CPU = Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz 2.21 GHz
GPU = Intel UHD 630 + Nvidia GeForce GTX 1050 Ti
RAM = 8,00 GB (1 stick SODIMM 2667 MHz)

Additional context

Viewed article (not working, way too off relevancy, not leading to solution, etc):

Tried other methods not working:

  • Portable JAR file with Adoptium OpenJDK 11, same error
  • Administrator Run the EXE file, same error
  • Portable JAR file with Oracle JRE 8, incompatible! could not find main class
  • Portable JAR file using latest Manjaro XFCE edtion Live CD as of 17 March 2022 (version 21.2.4) and straight install OpenJDK 11 without pacman -Syu, assertion error, forgot assertion

Question:

  • does Gervill uses LWJGL's audio? I believe it's not. same with MIDI output devices. perhaps if we just disable LWJGL audio renderer for the 3D part might work?
@JOELwindows7 JOELwindows7 added the bug Something isn't working or is incorrect label Mar 18, 2022
@wyskoj
Copy link
Owner

wyskoj commented Mar 27, 2022

I can make a build for you to try that has OpenAL disabled. Do you happen to have any other weird system audio configuration that might cause this?

@JOELwindows7
Copy link
Author

JOELwindows7 commented Mar 27, 2022

I can make a build for you to try that has OpenAL disabled. Do you happen to have any other weird system audio configuration that might cause this?

Oh yes pls, we should see if this workaround works.

I happen to have had serveral virtual speaker devices like, virtual Surround sound device, VB (VoiceMeeter Banana) thingy, etc. Etc.

I already tried disabled all of those unused devices but the real device (Realtek) thingy, to no avail.

wyskoj added a commit that referenced this issue Apr 2, 2022
To hopefully find a solution for #105
@wyskoj
Copy link
Owner

wyskoj commented Apr 2, 2022

Here's a link to a .jar file that disables OpenAL when the program launches. Give it a try and report what happens!
https://ci.appveyor.com/project/wyskoj/midis2jam2/builds/43106528/artifacts

@JOELwindows7
Copy link
Author

Here's a link to a .jar file that disables OpenAL when the program launches. Give it a try and report what happens! https://ci.appveyor.com/project/wyskoj/midis2jam2/builds/43106528/artifacts

Alright, let's see.. any MIDI, flourish, try both Gervill & MS GS wavetable.. Whoah!

it works gervill and sgm
Oh my god it works  no OpenAl and Ms gs wavetable

It works.

And I can still hear the MIDI device sound both Gervill & MS GS wavetable of course. additionally to prove the working state, the kludge phone record this laptop playing will be provided later.

Oh and also, ignore the white space thingy, that's the DPI issue, I think either you or the JMonkeyEngine renderer forgot to take account with the DPI awareness. anyway..

Alright.

Well, this would be, the working workaround I guess. Disable the OpenAl, that's it. Really though, the OpenAl tends to be a problem with LWJGL here. And honestly it's a shame that we gotta turn it off if audio is not used if the case don't need so OR already had other audio module, etc. etc.

If one day we would like to have complementary *.wav e.g. to have singing audio alongside the MIDI, then we cannot use LWJGL's audio idk, must be external Media player Java module some sort. After all I believe it's going to be hard to manage LWJGL's audio to sync with the MIDI devices, right?

So yeah. Disable OpenAl makes it work.

@JOELwindows7
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or is incorrect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants