Carpenter's Blocks

Carpenter's Blocks

24M Downloads

Client crashes because of StringIndexOutOfBoundsException

rigor789 opened this issue ยท 2 comments

commented

After playing with carpenters blocks for a little while, we came across an odd error that causes clients to crash immediately in a chunk.

We played with carpenters blocks, and then haven't touched them (not even blocks around them) for a little while, but suddenly the chunk the blocks are in are causing the client to crash to desktop. I tried removing the blocks with mcedit (I might have done it wrong) but the error still occures.

Here is a crash log: https://gist.github.com/rigor789/f66951f5abce7467d43f

This log is from single player mode, but the exact same issue is present on a dedicated multiplayer server as well.

Teleporting myself elsewhere works fine, only that chunk (might be 4 chunks, as there are carpenters blocks in 4 of them) causes the crash.

commented

Might be a missing a pattern. I thought designs defaulted to blank in this case, but I could be wrong. Ensure the server and client use the exact same zip file -- if patterns are removed client-side, they must be removed server-side as well.

EDIT: Judging from current source, this code has changed quite a bit since the version you're using. You can try testing the latest version and see if the bug persists.

EDIT2: typo.

commented

Update: I have been playing around with MCedit for a while, removing blocks checking if it crashes, and narrowing it down to a few blocks. Unfortunately I can't tell exactly what block was there, but I just removed them and looks like the crash is not happening anymore.

Since the update has not using this code anymore, I closed this issue.

Thank you for the quick answer.