mojira.dev
MC-97497

ClassCastException

Sorry, I don't really know what happened. I flied around in a singleplayer superflat world (around Y=65) and suddenly minecraft crashed. (I don't use mods.)
I got a ClassCastException, which means there's a bug in the code of class awj (name in 1.9-pre2) at one of these lines:

for(3 = 1; 3 <= 7; ++3) {
    4 = ((akm)this.a).g(); // <-- This one
    int 5 = 4 / 3;
    this.a(, this.a.a(on.a(1, 5, 4)), 1, 1, 3, 2);
    this.a(, this.a.a(on.a(1, 5, 4)), 2, 1, 3, 2);
    int 6 = ((akm)this.b).g(); // <-- Or this one
    int 7 = 6 / 3;
    this.a(, this.b.a(on.a(1, 7, 6)), 4, 1, 3, 2);
    this.a(, this.b.a(on.a(1, 7, 6)), 5, 1, 3, 2);
}

See the attachment for the error I got.

Attachments

Comments 4

Memory: 267758888 bytes (255 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

Your memory is exhaused. Assign more RAM to Minecraft (see MC-12949) and retry.

@@unknown Actually, only 255MB of 1011MB is really used. I didn't get an OutOfMemoryError, but a ClassCastException, which means there's a bug in the code of class awj at one of these lines:

for(3 = 1; 3 <= 7; ++3) {
    4 = ((akm)this.a).g(); // <-- This one
    int 5 = 4 / 3;
    this.a(, this.a.a(on.a(1, 5, 4)), 1, 1, 3, 2);
    this.a(, this.a.a(on.a(1, 5, 4)), 2, 1, 3, 2);
    int 6 = ((akm)this.b).g(); // <-- Or this one
    int 7 = 6 / 3;
    this.a(, this.b.a(on.a(1, 7, 6)), 4, 1, 3, 2);
    this.a(, this.b.a(on.a(1, 7, 6)), 5, 1, 3, 2);
}

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time. If you are the owner/reporter of this ticket, you can modify the affected version(s) yourself.

@@unknown I can't tell, because I don't know how to reproduce the issue. Someone at Mojang should look at the code.

Steven W.d.V.

(Unassigned)

Community Consensus

Minecraft 1.9 Pre-Release 2

Retrieved