mojira.dev
MC-305813

Game Crashes with "integer overflow" when loading a level with a large number of days

I have a world with a significant number of days; about 205,000.

I downloaded it from my server and tried it in the current snapshot, but got a game crash while the world was loading.

---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 2026-01-18 19:06:09
Description: Main thread packet handler

java.lang.ArithmeticException: integer overflow
	at java.base/java.lang.Math.toIntExact(Math.java:1375)
	at net.minecraft.client.ClientClockManager.tick(ClientClockManager.java:20)
	at net.minecraft.client.ClientClockManager.handleUpdates(ClientClockManager.java:32)
	at net.minecraft.client.multiplayer.ClientPacketListener.handleSetTime(ClientPacketListener.java:1157)
	at net.minecraft.network.protocol.game.ClientboundSetTimePacket.handle(ClientboundSetTimePacket.java:33)
	at net.minecraft.network.protocol.game.ClientboundSetTimePacket.handle(ClientboundSetTimePacket.java:15)
	at net.minecraft.network.PacketProcessor$ListenerAndPacket.handle(PacketProcessor.java:55)
	at net.minecraft.network.PacketProcessor.processQueuedPackets(PacketProcessor.java:38)
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1332)
	at net.minecraft.client.Minecraft.run(Minecraft.java:965)
	at net.minecraft.client.main.Main.main(Main.java:248)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
	at java.base/java.lang.Math.toIntExact(Math.java:1375)
	at net.minecraft.client.ClientClockManager.tick(ClientClockManager.java:20)

-- Incoming Packet --
Details:
	Type: clientbound/minecraft:set_time
	Is Terminal: false
	Is Skippable: false
Stacktrace:
	at net.minecraft.network.protocol.PacketUtils.fillCrashReport(PacketUtils.java:41)
	at net.minecraft.network.protocol.PacketUtils.makeReportedException(PacketUtils.java:34)
	at net.minecraft.network.PacketListener.onPacketError(PacketListener.java:19)
	at net.minecraft.client.multiplayer.ClientCommonPacketListenerImpl.onPacketError(ClientCommonPacketListenerImpl.java:122)
	at net.minecraft.network.PacketProcessor$ListenerAndPacket.handle(PacketProcessor.java:60)
	at net.minecraft.network.PacketProcessor.processQueuedPackets(PacketProcessor.java:38)
	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1332)
	at net.minecraft.client.Minecraft.run(Minecraft.java:965)
	at net.minecraft.client.main.Main.main(Main.java:248)

-- Connection --
Details:
	Protocol: play
	Flow: CLIENTBOUND
	Is Local: true
	Server type: <none>
	Server brand: vanilla

-- Uptime --
Details:
	JVM uptime: 29.323s
	Wall uptime: 22.341s
	High-res time: 21.951s
	Client ticks: 253 ticks / 12.650s

-- Affected level --
Details:
	All players: 1 total; LocalPlayer{name=TheRealMrp, id=172, pos=(-569.0996627848671, 73.0, 1128.339684916592), mode=SURVIVAL, permission=net.minecraft.server.permissions.PermissionSet$$Lambda/0x000000009673ee00@62de5f44}
	Chunk stats: 729, 0
	Level dimension: minecraft:overworld
	Level time: 4889587694 game time, 0 day time
	Level spawn location: World: (8,64,8), Section: (at 8,0,8 in 0,4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
	Server brand: vanilla
	Server type: Integrated singleplayer server
	Tracked entity count: 1

-- Last reload --
Details:
	Reload number: 1
	Reload reason: initial
	Finished: Yes
	Packs: vanilla, file/More Visible Ores.zip, file/Redstone Tweaks 2.5.2.zip

I saw something about a change involving day_count, so I checked the level.dat.

image-20260119-010451.png

I changed the Time tag to zero and the world loaded successfully.

image-20260119-010743.png

Attachments

Comments 5

Thank you for your report!
Could you please provide a world where issue occurs? (If the file is to big to upload it here please upload it to One Drive and post the link to it here)

Quick Links:
πŸ““ Bug Tracker Guidelines – πŸ’¬ Community Support – πŸ“§ Mojang Support (Technical Issues) – πŸ“§ Microsoft Support (Account Issues)
πŸ““ Project Summary – ✍️ Feedback and Suggestions – πŸ“– Game Wiki

The world is 15GB in size. I’m trying to find somewhere I can upload it.

Upload on google drive and then share here

This is the world before trying to open it in Snapshot 3

World Download

Both my OneDrive and Google Drive have 5GB limits, I don’t use them much. πŸ€“
I got it though, just temporarily upgraded my One Drive.

TheRealMrp

(Unassigned)

Unconfirmed

(Unassigned)

26.1 Snapshot 3

Retrieved