Skip to content
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

ArrayIndexOutOfBoundsException when trying to play sound #1

Open
Jabulba opened this issue Jan 24, 2014 · 6 comments
Open

ArrayIndexOutOfBoundsException when trying to play sound #1

Jabulba opened this issue Jan 24, 2014 · 6 comments
Labels

Comments

@Jabulba
Copy link

Jabulba commented Jan 24, 2014

Hello, I had an exception when trying to play sounds. Both when pressing the Play button or when using redstone signal.

Here's the exception:
http://www.hastebin.com/lumumuruse.avrasm

here's the list of mods I had enabled:
UpdateCheckerMod_1.7.2.zip
BattleTowers_1.7.2.zip
BiomesOPlenty-1.7.2-2.0.0.630-universal.jar
CraftableHorseArmor 1.1.0.0 - MC 1.7.2 - Forge (10.12.0.985).jar
morenature-0.6.1.jar
ShadersModCore-v2.3.1-beta-mc1.7.2-f1007.jar
SKC Core 1.1.0.0 - MC 1.7.2 - Forge (10.12.0.985).jar
soundscool-1.0-RC5.jar
UpdateCheckerMod_1.7.2.zip

EDIT: Turns out it has nothing to do with server version or mods! I tested with other files after a fresh start and it works fine, some files do indeed give the exception. If you want one of them for testing I can send it. The file in question was the song "01 Freeze Time.mp3" by 311

@Dynious
Copy link
Owner

Dynious commented Jan 24, 2014

This has something to do with badly encoded mp3 files. It's something I cannot fix(I didn't write the .mp3 decoder). Does this exception crash Minecraft or the Minecraft sound? If so, I'll try to prevent that from happening and show a more readable error.

Oh and thanks for the good report!

@Jabulba
Copy link
Author

Jabulba commented Jan 24, 2014

It crashes the minecraft sound only, server runs normally and so does all other aspects of minecraft, but with no sound.

@Dynious
Copy link
Owner

Dynious commented Jan 24, 2014

I think I found a way to prevent the sound from crashing, could you send me the soundfile so I can test if it works?

@Jabulba
Copy link
Author

Jabulba commented Jan 24, 2014

@Dynious
Copy link
Owner

Dynious commented Jan 24, 2014

Okay, the sound file did not play properly, but I prevented the Minecraft sound from crashing. Sadly, I can't make it play these badly encoded files. Can you confirm you can play other(also mp3) files?

@Jabulba
Copy link
Author

Jabulba commented Jan 24, 2014

Yea, tested a few other mp3 tracks, most seem to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants