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
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.