Hi everyone,
I recently started work on incorporating JOAL into my engine. Things were going really well until they went horribly wrong
The problem is that sound gets loaded as an engine module on startup (along with other things like graphics and networking). When startup is complete I register a shutdown hook to make sure that all modules are closed properly.
When shutting down I get the following:
java.lang.IllegalMonitorStateException: Not Owner
at net.java.games.joal.ALCImpl$Mutex.release(ALCImpl.java:219)
at net.java.games.joal.ALCImpl.alcFreeCurrentContext(ALCImpl.java:89)
at net.java.games.joal.util.ALut.alutExit(ALut.java:126)
The JVM needs to then be manually killed off as the mutex waits indefinately for the original thread to come back. This is obviously not ideal when I’m just trying to shut the system down cleanly.
Any help or thoughts are much appreciated.