mojira.dev
MC-32117

Weird crash when moving around

I was moving around in my world (created in 1.5). Suddenly, the game crashes with an IllegalArgumentException in aeg.class (by decompiling aeg.class and looking at the code seems to be related to world generation). Reloading the game lets me back in normally, but after playing for some time the same crash occurs.

I have edited my world using MCEdit to copy/paste blocks.

---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 21.9.2013 15:01
Description: Ticking memory connection

java.lang.IllegalArgumentException: n must be positive
	at java.util.Random.nextInt(Unknown Source)
	at aeg.a(SourceFile:183)
	at aeg.a(SourceFile:27)
	at aea.a(SourceFile:354)
	at aej.a(SourceFile:42)
	at agn.a(SourceFile:428)
	at km.a(SourceFile:156)
	at afk.a(SourceFile:778)
	at km.c(SourceFile:93)
	at kl.<init>(SourceFile:28)
	at kk.a(SourceFile:209)
	at kk.d(SourceFile:343)
	at jh.d(SourceFile:211)
	at kv.a(SourceFile:270)
	at gn.a(SourceFile:136)
	at eb.b(SourceFile:63)
	at kv.e(SourceFile:64)
	at ky.b(SourceFile:37)
	at bow.b(SourceFile:83)
	at net.minecraft.server.MinecraftServer.u(SourceFile:487)
	at net.minecraft.server.MinecraftServer.t(SourceFile:404)
	at bot.t(SourceFile:124)
	at net.minecraft.server.MinecraftServer.run(SourceFile:338)
	at jc.run(SourceFile:581)


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

-- Head --
Stacktrace:
	at java.util.Random.nextInt(Unknown Source)
	at aeg.a(SourceFile:183)
	at aeg.a(SourceFile:27)
	at aea.a(SourceFile:354)
	at aej.a(SourceFile:42)
	at agn.a(SourceFile:428)
	at km.a(SourceFile:156)
	at afk.a(SourceFile:778)
	at km.c(SourceFile:93)
	at kl.<init>(SourceFile:28)
	at kk.a(SourceFile:209)
	at kk.d(SourceFile:343)
	at jh.d(SourceFile:211)
	at kv.a(SourceFile:270)
	at gn.a(SourceFile:136)
	at eb.b(SourceFile:63)
	at kv.e(SourceFile:64)

-- Ticking connection --
Details:
	Connection: kv@7f832772
Stacktrace:
	at ky.b(SourceFile:37)
	at bow.b(SourceFile:83)
	at net.minecraft.server.MinecraftServer.u(SourceFile:487)
	at net.minecraft.server.MinecraftServer.t(SourceFile:404)
	at bot.t(SourceFile:124)
	at net.minecraft.server.MinecraftServer.run(SourceFile:338)
	at jc.run(SourceFile:581)

-- System Details --
Details:
	Minecraft Version: 13w38c
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.7.0_10, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 272648144 bytes (260 MB) / 574291968 bytes (547 MB) up to 3817799680 bytes (3640 MB)
	JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4G
	AABB Pool Size: 2088 (116928 bytes; 0 MB) allocated, 2037 (114072 bytes; 0 MB) used
	IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
	Profiler Position: N/A (disabled)
	Vec3 Pool Size: 299 (16744 bytes; 0 MB) allocated, 270 (15120 bytes; 0 MB) used
	Player Count: 1 / 8; [kq['Pietu1998'/252422, l='New World', x=32,01, y=38,00, z=71,49]]
	Type: Integrated Server (map_client.txt)
	Is Modded: Probably not. Jar signature remains and both client + server brands are untouched.

Linked issues

MC-37468 Hopper: java.lang.IllegalArgumentException: n must be positive Resolved MC-37976 Hopper: java.lang.IllegalArgumentException: n must be positive Resolved MC-38008 Hopper: java.lang.IllegalArgumentException: n must be positive Resolved MC-38114 Hopper: java.lang.IllegalArgumentException: n must be positive Resolved MC-38136 Hopper: java.lang.IllegalArgumentException: n must be positive Resolved

Comments 15

At what coordinates were you? Were you generating new chunks?

It's happening in any coordinates around x: 20, z: 87, and (I think) only when generating new chunks.

Can you attach the seed?

-7344306588808213900

Mine got marked as a duplicate of this. I think some of the info may be relevant so i'll copy it:

I pruned my 1.6.x world with MCedit, and opened up 1.7.2 to explore and see the new stuff. When drawing near the edge of previously generated chunks, the game crashed. When restarted, Minecraft immediately crashed after loading that world. I restored the world from a backup, and got a similar crash and corruption when exploring the same area.
I restored from backup again and when exploring in a different direction, i generated hundreds of new 1.7.2 chunks with the new biomes before encountering a crash and corruption in a different location.

The seed is "Temple", and the coords are approximately x -60, z 600.
But my "Temple" started in 1.5 or before and therefore is different. Creating a new world in 1.7 of that name and traveling to those coords does not provoke a crash. I just tried it.
I did get a third crash in a copy of my world-- this time flying high in creative, so Y does not seem to be relevant to the crash..

5 more comments

I can not confirm that this happens now, but that was also the case for 1.7 (see above comments).

This seems to be fixed in the 1.8 snapshots, at least there are no reports of that snapshots coming in.

Is this still a concern in the current Minecraft snapshot 14w30c or later?

I'll have to say I have no idea. Haven't got it in any world after the initial one; I have played both release and snapshot versions lately. I even tried to recreate the scenario I had that time, no luck.

Ok, thanks. If at some point you do experience this again, feel free to open another ticket.

Pietu1998

(Unassigned)

Unconfirmed

crash

Minecraft 13w38c, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 1.7.5

Retrieved