mojira.dev
MC-132106

Placing a minecart on a block added to #minecraft:rails via data pack corrupts world

  1. Apply data pack

  2. Shift-click with minecart on repeater.

Result:

(18w30b) [^crash-2018-07-31_22.31.16-server.txt]

Description: Ticking entity

java.lang.ClassCastException: bgt cannot be cast to bci
	at apf.j(SourceFile:640)
	at apf.b(SourceFile:386)
	at apf.R_(SourceFile:307)
	at axv.a(SourceFile:1202)
	at tc.a(SourceFile:577)
	at axv.g(SourceFile:1177)
	at axv.k(SourceFile:1083)
	at axv$$Lambda$1616/505433395.test(Unknown Source)
	at xm.a(SourceFile:209)
	at axv.l(SourceFile:1070)
	at tc.l(SourceFile:493)
	at net.minecraft.server.MinecraftServer.b(SourceFile:736)
	at net.minecraft.server.MinecraftServer.a(SourceFile:661)
	at dga.a(SourceFile:159)
	at net.minecraft.server.MinecraftServer.run(SourceFile:564)
	at java.lang.Thread.run(Thread.java:745)

This error happens every time when trying to open the world afterwards.

Removing the pack from the datapacks folder fixes the world.

Linked issues

Attachments

Comments 5

In 1.14 this just locks up the game.

The crash is now different, I'm not sure what is actually the final fatal error, so I just paste them all:

22:47:38
net.minecraft.server.MinecraftServer
Server thread
error
Encountered an unexpected exception m: Ticking entity at net.minecraft.server.MinecraftServer.b(SourceFile:831) at net.minecraft.server.MinecraftServer.a(SourceFile:764) at dxk.a(SourceFile:128) at net.minecraft.server.MinecraftServer.run(SourceFile:632) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassCastException: bqv cannot be cast to bme at axm.k(SourceFile:578) at axm.b(SourceFile:327) at axm.h(SourceFile:248) at vg.a(SourceFile:580) at bhi.a(SourceFile:676) at vg.a(SourceFile:383) at net.minecraft.server.MinecraftServer.b(SourceFile:827) ... 4 more

22:47:39
net.minecraft.server.MinecraftServer
Server thread
error
Exception stopping the server java.lang.IllegalStateException: Removing entity while ticking! at vg.h(SourceFile:961) at vg.e(SourceFile:977) at xq.c(SourceFile:338) at vy.a(SourceFile:1010) at ja.l(SourceFile:401) at agk.f(SourceFile:75) at vy.b(SourceFile:281) at xq.s(SourceFile:759) at net.minecraft.server.MinecraftServer.l(SourceFile:556) at dxk.l(SourceFile:251) at net.minecraft.server.MinecraftServer.run(SourceFile:666) at java.lang.Thread.run(Thread.java:748)
22:47:41
cvk
Client thread
fatal
Reported exception thrown! m: Rendering entity in world at dpi.a(SourceFile:417) at dpi.a(SourceFile:372) at dko.a(SourceFile:615) at dkk.b(SourceFile:857) at dkk.a(SourceFile:766) at dkk.a(SourceFile:630) at cvk.e(SourceFile:954) at cvk.b(SourceFile:411) at net.minecraft.client.main.Main.main(SourceFile:154) Caused by: java.lang.ClassCastException: bqv cannot be cast to bme at axm.k(SourceFile:578) at dqk.a(SourceFile:46) at dqk.a(SourceFile:15) at dpi.a(SourceFile:385) ... 8 more
22:47:41
launcher
main
info


Minecraft Crash Report ---- // I just don't know what went wrong 😞 Time: 09/05/19 22:47 Description: Rendering entity in world java.lang.ClassCastException: bqv cannot be cast to bme at axm.k(SourceFile:578) at dqk.a(SourceFile:46) at dqk.a(SourceFile:15) at dpi.a(SourceFile:385) at dpi.a(SourceFile:372) at dko.a(SourceFile:615) at dkk.b(SourceFile:857) at dkk.a(SourceFile:766) at dkk.a(SourceFile:630) at cvk.e(SourceFile:954) at cvk.b(SourceFile:411) at net.minecraft.client.main.Main.main(SourceFile:154) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- – Head – Thread: Client thread Stacktrace: at axm.k(SourceFile:578) at dqk.a(SourceFile:46) at dqk.a(SourceFile:15) – Entity being rendered – Details: Entity Type: minecraft:minecart (axp) Entity ID: 2980 Entity Name: Minecart Entity's Exact location: 242.50, 72.06, -266.50 Entity's Block location: World: (242,72,-267), Chunk: (at 2,4,5 in 15,-17; contains blocks 240,0,-272 to 255,255,-257), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1) Entity's Momentum: 0.00, 0.00, 0.00 Entity's Passengers: [] Entity's Vehicle: ~ERROR~ NullPointerException: null – Renderer details – Details: Assigned renderer: dqk@2c1ffb9 Location: 1.15,-1.24,-0.10 - World: (1,-2,-1), Chunk: (at 1,-1,15 in 0,-1; contains blocks 0,0,-16 to 15,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1) Rotation: 0.0 Delta: 0.07999611 Stacktrace: at dpi.a(SourceFile:385) at dpi.a(SourceFile:372) at dko.a(SourceFile:615) at dkk.b(SourceFile:857) at dkk.a(SourceFile:766) – Affected level – Details: Level name: MpServer All players: 1 total; [djx['FaRo1'/2030, l='MpServer', x=241.39, y=72.00, z=-266.40]] Chunk stats: MultiplayerChunkCache: 4489, 2541 Level seed: 0 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: {} Level spawn location: World: (-80,74,-191), Chunk: (at 0,4,1 in -5,-12; contains blocks -80,0,-192 to -65,255,-177), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 16931 game time, 4958 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false Server brand: vanilla Server type: Integrated singleplayer server Stacktrace: at dhn.a(SourceFile:421) at cvk.b(SourceFile:1923) at cvk.b(SourceFile:426) at net.minecraft.client.main.Main.main(SourceFile:154) – System Details – Details: Minecraft Version: 1.14.1 Pre-Release 2 Operating System: Linux (amd64) version 4.9.0-9-amd64 Java Version: 1.8.0_212, Oracle Corporation Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 786037192 bytes (749 MB) / 1979711488 bytes (1888 MB) up to 2147483648 bytes (2048 MB) JVM Flags: 8 total; -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M Launched Version: 1.14.1 Pre-Release 2 LWJGL: 3.2.1 build 12 OpenGL: Mesa DRI Intel(R) Kabylake GT2 GL version 3.0 Mesa 13.0.6, Intel Open Source Technology Center GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Probably not. Jar signature remains and client brand is untouched. Type: Client (map_client.txt) Resource Packs: vanilla Current Language: English (United Kingdom) CPU: 8x Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz #@

[media]

Crash report saved to: #@!@# /home/fabian/drive/data/minecraft/crash-reports/crash-2019-05-09_22.47.41-client.txt AL lib: (EE) alc_cleanup: 1 device not closed
22:47:41
monitor
Process Monitor
fatal
Process crashed with exit code 255

Did nobody actually use my data pack to reproduce the issue? It didn't work the way it was. I thought datapacks always had to be unpacked to work, but apparently that's not the case, I just packed it wrongly.

Cannot reproduce in 20w14a. Please check if this is still an issue in 1.15.2 or the latest 1.16 snapshot.

I can still reproduce

FaRo1

(Unassigned)

Confirmed

(Unassigned)

#rails, crash, datapack, datapack-tag

Minecraft 1.13-pre4, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1, Minecraft 1.14 Pre-Release 1, ..., Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, 19w39a, 20w14a, 20w17a

Retrieved