java.lang.AssertionError: Unexpected sound status. thrown randomly in the game

Hello community,

I just tested my game with my friend (multiplayer) and it is the first time I am seeing the following exception be thrown at our heads. The exception is randomly thrown while in the game…

SCHWERWIEGEND: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.AssertionError: Unexpected sound status. OAL: Stopped, JME: Paused
	at com.jme3.audio.openal.ALAudioRenderer.updateInRenderThread(ALAudioRenderer.java:924)
	at com.jme3.audio.openal.ALAudioRenderer.update(ALAudioRenderer.java:850)
	at com.jme3.app.LegacyApplication.update(LegacyApplication.java:730)
	at com.jme3.app.SimpleApplication.update(SimpleApplication.java:227)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:151)
	at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:197)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:232)
	at java.lang.Thread.run(Thread.java:748)

The following is the line in the ALAudioRenderer:

I don’t really know why that happens. I am playing on a Windows (10) PC and he was playing on Mac. Maybe because of that?

Has someone seen this before and can help me with this?

Thanks in advance
Domenic

Hey Domenic,

I have a similar problem. I get an exception from

931: new AssertionError ("Channel" + i + "has not been recovered");

If I look at the code, I think the problem might be another thread (other than the main thread, e.g. network) that somehow manipulates the audio. My game is quite complex and that makes it very difficult to find the culprit. Maybe you are luckier?

Alrik