I'm making a game using Haxe and targeting neko. Any uncaught exception leads to alc_cleanup error.
The problem is, this error blocks the output of the exception details.
It's annoying because I use assertions so I can't find out which one threw an exception if one of the tests fail.
Any help here?
The
alc_cleanuperror simply happens because an OpenAl audio device in use (by your game or an underlying framework) hasn't been closed before terminating the program (due to the uncaught exception).If you can, you might want to catch and log that exception yourself to prevent it from being corrupted by the
alc_cleanuperror:You could also:
neko.Lib.rethrowthe exception after doing the necessary cleanup yourself