-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sound system incompatibilities can cause crashes #12
Comments
Looks like disabling IC2 sounds in the settings fixes this for me. No crashes when using tree tap. |
I'm unable to reproduce this, but if you can reliably cause a crash I'll refer this to the IC2 Classic developer. |
Looks like your game doesn't support quick play of sounds. That can be either due to old hardware or I dunno? |
@xJon I'm having the exact same issue. Here's the log. https://mclo.gs/Dco6c1o |
@JS19000 IC2Classic doesn't support optifine. Sooo please repeate without Optifine |
@Speiger It behaves the same with or without OptiFine but I think I just figured out the issue. I have an external USB Amp/DAC so if I turn it off Windows will switch to a new default device. If I turn it back on it will become the default device again but there will still be no sound in Minecraft. It doesn't switch back even though that's what it was using originally. If I go to output devices in Minecraft under the music & sound options and either click on my USB DAC or default devices to get the sound back and then click on a rubber tree it will crash. It will continue to crash until the application is restarted. It won't crash with or without OptiFine if the sound device isn't changed before then. |
My issue seems similar to @JS19000 's - I'm using a Denon Home Theater Receiver as my audio output (HDMI from GPU -> Denon -> LCD). My crashes were probably related to the default device going away and coming back. I also lose sound in minecraft if I mute/unmute speakers in windows. To get sound back I have to select the correct sound device in minecraft settings as opposed to "default device". I'll re-enable IC2 sounds today and try to replicate above scenarios. |
@Speiger The root cause of this crash seems to be that We can fix vanilla to not shutdown the SoundSystem in this scenario, but I would recommend adding a try-catch block inside IC2C so that failure to play the sound does not result in an immediate game crash. |
Yeah I am not adding a try catch for that. That is not a fix to the system. It is just treating a symptom. What the fix is going to be, since the old sound system is ditched that would mean a new one was created. So I can test for a ditched sound system and fetch the new one. But yeah this is like a really bad edge case that I couldn't have known of.... |
Also looking through the code. |
This does not seem to happen on Linux. The game is not smart enough to properly reset the system so it can play any other sounds. You just get no sound unless you restart (or use F3+T, see below). Maybe there is a new SoundSystem instance created, but the instance doesn't actually function.
This does fix the issue but resource reloads often take several minutes in modded games. I don't think this is a very practical solution. |
@embeddedt until i publish a proper fix the F3+T is your temp solution from preventing crashes. |
Resolved in |
Basic details
Describe the issue
Made a tree tap and right clicking on rubber tree resin reliably causes a crash.
The text was updated successfully, but these errors were encountered: