Closed ghost closed 9 years ago
Does 83c475c fix the crashes? (binary here) From what I could find about this issue, it seems that Java Sound in Linux is a lost cause, so this is about all I can come up with without switching to another media framework altogether. I'm getting moderately fed up with searching for a low-latency sound library for Java, but please let me know if you have any suggestions and I'll be glad to give them a shot.
Yep, that fixes it, and the sounds play. Cheers!
Oops, spoke too soon. Now the beatmap audio doesn't play on the title screen or when I try to play a map. Previously the beatmap audio would play up until the game crashed. .opsu.log
appears to be empty, too...
Interesting. If you look at the diff, I didn't touch MusicController (which handles beatmap audio through OpenAL). Maybe SoundController's initialization is interfering with OpenAL... anyhow, I'm really clueless about how to solve this (as I'm unable to test this myself). x.x
If disabling the SoundController module altogether (i.e. deleting the code inside the init and sound-playing methods) fixes the issue, I can just write in a switch to turn off JavaSound for Linux for now. Are you able to compile the project yourself? If not, I can upload another binary for you when I get a chance.
It could fix the issue? I can't compile it here, I don't have any Java development knowhow, so a binary would be appreciated.
Yep, it works fine there. Strange.
This is resolved in the 0.3.1 release -- sound effects are not loaded in Linux by default, with a switch in the options in case it happens to work for somebody. I'll leave this issue open since disabling sound altogether isn't a proper fix by any means, but at least it's no longer critical.
Thanks for your help!
Closing this as it's pretty outdated, and #89 addresses a similar issue.
The NullPointerException occurs when clicking on the opsu! star on the main menu, causing the game to crash (probably because it's trying to play a sound even though it failed to load?)