OpenALException: Invalid Device

Hello Guys,
Anyone knows what this exception might be? I understand that it is an “invalid device” but what is the common issue in such cases? need to update the card driver?
Does any of the capabilities list below indicate what the problem might be?

Thanks!

Uncaught exception thrown in Thread[jME3 Main,5,main]

OpenALException: Invalid Device

Stack Trace:

org.lwjgl.openal.OpenALException: Invalid Device

at org.lwjgl.openal.Util.checkALCError(Util.java:55)
at org.lwjgl.openal.ALC10.alcCreateContext(ALC10.java:251)
at org.lwjgl.openal.AL.init(AL.java:173)
at org.lwjgl.openal.AL.create(AL.java:143)
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:15)
at com.jme3.audio.openal.ALAudioRenderer.initOpenAL(ALAudioRenderer.java:95)
at com.jme3.audio.openal.ALAudioRenderer.initialize(ALAudioRenderer.java:225)
at com.jme3.app.LegacyApplication.initAudio(LegacyApplication.java:283)
at com.jme3.app.LegacyApplication.initialize(LegacyApplication.java:602)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:197)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:132)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:213)
at java.lang.Thread.run(Unknown Source)

Capabilities:

[FrameBuffer, FrameBufferMRT, FrameBufferMultisample, TextureMultisample, OpenGL20, OpenGL21, OpenGL30, OpenGL31, OpenGL32, OpenGL33, OpenGL40, OpenGL41, OpenGL42, OpenGL43, OpenGL44, OpenGL45, GLSL100, GLSL110, GLSL120, GLSL130, GLSL140, GLSL150, GLSL330, GLSL400, GLSL410, GLSL420, GLSL430, GLSL440, GLSL450, VertexTextureFetch, GeometryShader, TesselationShader, TextureArray, TextureBuffer, FloatTexture, IntegerTexture, FloatColorBuffer, FloatDepthBuffer, PackedFloatTexture, SharedExponentTexture, PackedFloatColorBuffer, NonPowerOfTwoTextures, MeshInstancing, VertexBufferArray, Multisample, PackedDepthStencilBuffer, Srgb, FrameBufferBlit, TextureCompressionS3TC, TextureFilterAnisotropic, TextureCompressionETC1, TextureCompressionETC2, DepthTexture, IntegerIndexBuffer, SeamlessCubemap, BinaryShader, UniformBufferObject, ShaderStorageBufferObject, UnpackRowLength]

Seems to be related

2 Likes

If the application doesn’t need audio/sound, you can simply disable it using AppSettings.setAudioRenderer(null). If it needs sound, then OpenAL needs to be debugged.

2 Likes

Thanks a lot! it’s not on my computer so I cannot debug it but I will add the option to disable the audio renderer in next version and hope it will solve such cases.

1 Like