mojira.dev
MC-3766

Game crashes when opening a second instance of a world during the loading process of the same world

For corrupted worlds, please see MC-2545

Crash: During the loading process of a world, Minecraft switches briefly to the main menu (see MC-185).
If you start loading a world, that takes a long time to load (due to corrupted chunks, see attached world below), when Minecraft switches to the main menu it is now possible to open a second instance of the same/another world, that will lead to the crash attached below.

Steps to reproduce:
1. Download the attached world below.
2. Start it.
3. When the game switches to the main menu quickly open the same or another world.
Minecraft crashes with the crash attached below.

Original Description:

  • After updating to 1.4.5, I logged in and presumed play.

  • At one point, an invisible (and unbreakable) block blocked my path. It was after I navigated a path around it that I noticed some serious lag.

  • I restarted my computer, hoping this would solve things.

  • Selected my save file and proceeded to load into the game

  • The game returned me to the main menu screen

  • I reselected my save file and waited during the loading screen

  • This is where the game crashes! Please see attached txt.

*Note

  • If I select my save file (the first time), and wait about 20 seconds (after being kicked back to the main menu) the game actually loads! However, it is impossible to play because of intense lag.

  • I have no mods installed, and I was on single player!

Basic cause: Corrupted chunks, see MC-2545.

I hope this is enough information!

Related issues

MC-1690 crash on loading world (NullPointerException) MC-2459 bug MC-3103 my worlds will not open from the new version: 1.4.4 MC-3811 Crash MC-3915 I have Gotten a crash on minecraft due to tick error MC-3983 Was playing a private game in split screen whilst watching a podcast (minecraft me). Crash Reports included. MC-5399 NullPointerException on server start MC-5542 I tried to open a world that I previously played and Minecraft crashed MC-7184 Minecraft Crashed, Now World won't load MC-7404 Out-of-memory on world creation in 13w02b MC-7479 Minecraft Crash? MC-9430 Minecraft failing to load world MC-9462 Start-up crash when opening existing or new world MC-9690 Minecraft will not let me open worlds! MC-9775 MINECRAFT NEW CRASH. PLEASE HELP !!!! MC-9945 survival mode crashes upon opening world MC-10486 Glich when loading world MC-11384 my minecraft keeps on crashing whenever i join my world the crash report is in the desc MC-12408 Random crash MC-12790 Game Crashes MC-13108 Bug map generation MC-13521 Chests in superflat world MC-13976 i am trying to load a save game and the game is crashing i have tried other help forum they suggest trying you MC-14879 java nullpointer exception on Mac with latest Apple Java 1.6.0_45 MC-15349 Minecraft launcher crashes when game starts up MC-15405 CSP - Crash loading old world MC-15833 Player data on world erased MC-15837 World unopenable MC-15872 Crash Report MC-16018 Basically my minecraft is constantly crashing MC-16021 Crash MC-16069 I have some problems with minecraft the blocks come back MC-16071 World Loading Errors MC-16366 Single player world loading interrupted for no apparent reason, save file still locked MC-17226 demo version crash MC-17493 A minecraft crash MC-17547 Broken Minecraft World MC-17609 Game crashed, all data lost MC-17817 when i try to mine a block it lets me mine it but the block reappears seconds later MC-18072 Sending packet/NullPointerException MC-18205 Minecraft won't start game. MC-18647 Crash when loading terrain MC-21599 Minecraft started crashing after I started playing version 1.6.1 MC-21675 Game crashes after trying to get into survival world MC-22762 I can't open my worlds and even if it opens it crashes. MC-23939 crash when go in world MC-23970 It crashed when i spawned 10 /12 zombies MC-24211 Time was moving really slowly, The World would not start. MC-24220 Crash bug MC-24629 Cannot open any of our games, crashes before it loads or when character appears MC-24692 Crash MC-24978 FPS low causing crashes, errors, and unplayability. MC-26002 player does not enter neather wile in minecart MC-27467 game crash MC-27667 Mine craft doesn't run MC-27887 Minecraft Crashes MC-28708 Hopper: java.lang.NullPointerException 1.6.1 cm.b(SourceFile:116) MC-28828 Hopper: java.lang.NullPointerException 1.6 cl.b(SourceFile:116) MC-29577 Hopper: java.lang.NullPointerException 13w36a MC-29965 Hopper: java.lang.NullPointerException 13w36b MC-30728 When loading a world it goes to the menu and waits for a long time before joining MC-31258 Hopper: java.lang.NullPointerException 13w37b MC-31259 Hopper: java.lang.NullPointerException 13w37a MC-31604 Hopper: java.lang.NullPointerException 1.6.4 MC-31755 Hopper: java.lang.NullPointerException 13w38a MC-31989 Hopper: java.lang.NullPointerException 13w38c MC-32749 Hopper: java.lang.NullPointerException 13w39a MC-32845 Crashed Unexpectedly MC-32957 Hopper: java.lang.NullPointerException 13w39b MC-34181 wont let use full screen and keeps crashing without fully loading the game. MC-34846 Hopper: java.lang.NullPointerException MC-35456 Hopper: java.lang.NullPointerException

Attachments

Comments

migrated
[media][media][media][media][media][media][media]
kumasasa

Can you provide the seed of the world or the world itself ?

migrated

Thanks for the reply!

Is this what you're looking for?

Seed: 51101489707484172
Spawn: 48, 64, -160
Player: 71.77, 43.0, -15.38

kumasasa

Tried to reproduce with your seed and coordinates, but no crash, see screenshot.

migrated

I attached the level.dat - if that helps. It's still crashing! Is there anything I can do?

kumasasa

I'm afraid the level.dat is not enough, can you ZIP the complete world and attach here ? (only if the resulting file is smaller than 10 MB)

migrated

Thanks for being so patient. I only started a few weeks ago - but the game is great!

kumasasa

Thanks for the world, but I still cannot reproduce your Issue.

kumasasa

Well, after running around a bit, the FSP dropped to zero, when reloading your world, I'm getting repeatedly this in the console:

Wrong location! qr['Zombie'/7465, l='Don't Die City', x=18,30, y=19,00, z=-65,70
]
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Unknown Source)
        at zs.a(SourceFile:508)
        at aaf.a(SourceFile:277)
        at aaf.a(SourceFile:87)
        at aaf.a(SourceFile:75)
        at im.f(SourceFile:125)
        at im.c(SourceFile:76)
        at net.minecraft.server.MinecraftServer.e(SourceFile:513)
        at bdo.a(SourceFile:83)
        at bdo.c(SourceFile:99)
        at net.minecraft.server.MinecraftServer.run(SourceFile:595)
        at fy.run(SourceFile:856)
Wrong location! qr['Zombie'/7466, l='Don't Die City', x=23,70, y=19,00, z=-65,70
migrated

Hurray. I'm not crazy. 😃

What can I do to fix this? Do you have any good ideas?

kumasasa

Nothing. You'll have to wait for Mojang to fix this issue. I cannot do more here

migrated

Ah well. Thank you for your help!

Do you know how the process works at Mojang regarding these types of bugs?

kumasasa
migrated

Note:

Description: Exception in server tick loop

java.lang.NullPointerException
	at cf.b(SourceFile:103)
	at cf.a(SourceFile:35)
	at iv.b(SourceFile:437)
	at gm.a(SourceFile:72)
	at bdr.b(SourceFile:73)
migrated

I can still load my world, but I get constant "Wrong location" messages and I can't interact with the world at all. If I break a block, it pops back. If I move to a different area and quit, when I come back, I'm in the same place I was when I started the last time.

migrated

Mostly the 'Wrong location' messages I'm seeing are about bats.

migrated

I reset my world save to a previous state and I'm now able to interact with the world. The 'Wrong location' messages for bats keep repeating, but when I move far enough away, the messages stop. However, when I go back to my base, the bat messages start occurring again. I'm assuming this is just due to the bats despawning when I move away and then respawning when I come back.

migrated

The error is still occurring with the 1.4.7 pre-release.

Ezekiel

It seems like the world save is corrupting.

migrated

If you want to fix this issue with your world , just go to MCEdit and select a huge area and delete all the entities , that worked for me 🙂

migrated

That might help for the short term, but it doesn't fix the original problem. The entities could start messing up again later.

migrated

Add labels to avoid more duplicates.

migrated

Voted up, also having this issue on my server, MC 1.5

EDIT: Adding server.log snippet

2013-03-16 19:11:30 [INFO] Starting minecraft server version 1.5
2013-03-16 19:11:30 [INFO] Loading properties
2013-03-16 19:11:30 [INFO] Default game type: SURVIVAL
2013-03-16 19:11:30 [INFO] Generating keypair
2013-03-16 19:11:31 [INFO] Starting Minecraft server on *:25565
2013-03-16 19:11:31 [INFO] Preparing level "world"
2013-03-16 19:11:31 [INFO] Preparing start region for level 0
2013-03-16 19:11:31 [SEVERE] Chunk file at -21,1 is in the wrong location; relocating. (Expected -21, 1, got -28, 1
)
2013-03-16 19:11:31 [SEVERE] Chunk file at -19,2 is in the wrong location; relocating. (Expected -19, 2, got -16, 2
)
2013-03-16 19:11:32 [INFO] Done (1.121s)! For help, type "help" or "?"
2013-03-16 19:11:32 [INFO] Starting GS4 status listener
2013-03-16 19:11:32 [INFO] Starting remote control listener
2013-03-16 19:11:32 [INFO] Query running on 0.0.0.0:25565
2013-03-16 19:11:32 [INFO] RCON running on 0.0.0.0:25575
2013-03-16 19:12:07 [WARNING] Failed to load player data for scooter789
2013-03-16 19:12:07 [INFO] scooter789[/174.49.179.137:50975] logged in with entity id 214 at (-227.5, 65.0, 160.5)
2013-03-16 19:12:46 [SEVERE] Wrong location! qa['Bat'/711, l='world', x=-299.50, y=17.00, z=38.50]
2013-03-16 19:12:46 [SEVERE] Wrong location! qa['Bat'/711, l='world', x=-299.50, y=17.00, z=38.50]
2013-03-16 19:13:43 [SEVERE] Wrong location! qa['Bat'/1501, l='world', x=-253.72, y=22.86, z=44.38]
2013-03-16 19:13:43 [SEVERE] Wrong location! qa['Bat'/1502, l='world', x=-253.72, y=22.86, z=44.38]

The "Wrong location!" error repeats constantly. I've seen it show for Bat, Skeleton, and Creeper. I'm wondering if it has to do with the Chunk File errors.

kumasasa

@Andrew Hoover: Please attach the server.log (or at least a snippet where the error is recorded)

kumasasa

@Andrew Hoover: Can you try to load the world in single player ?

migrated

Included crash from MC-10486:

Description: Sending packet
java.lang.NullPointerException
	at ch.b(SourceFile:107)
	at ch.a(SourceFile:39)
	at jh.b(SourceFile:430)
	at gu.b(SourceFile:669)
	at gu.a(SourceFile:79)
	at bjk.b(SourceFile:73)
migrated

I too am having this issue when I start up a minecraft version 1.5.1 server.
I have thumbed the post and will include an excerpt from my server log below.
I am running the current version of java (v7 u17) on a Windows vista computer with SP2 installed.

2013-03-24 13:52:29 [INFO] Preparing start region for level 0
2013-03-24 13:52:30 [SEVERE] Wrong location! ss['arrow'/87, l='SMP_1', x=NaN, y=
NaN, z=NaN]
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Unknown Source)
        at abw.a(SourceFile:504)
        at acj.a(SourceFile:276)
        at acj.a(SourceFile:72)
        at acj.a(SourceFile:60)
        at iy.f(SourceFile:125)
        at iy.c(SourceFile:76)
        at net.minecraft.server.MinecraftServer.e(SourceFile:224)
        at net.minecraft.server.MinecraftServer.a(SourceFile:194)
        at hz.c(SourceFile:176)
        at net.minecraft.server.MinecraftServer.run(SourceFile:306)
        at gp.run(SourceFile:573)
2013-03-24 13:52:30 [INFO] Preparing spawn area: 48%
2013-03-24 13:52:31 [INFO] Done (2.055s)! For help, type "help" or "?"
migrated

I had this problem in 1.5.1 as well, but on a different level.
My server log was generating 50-100 error messages per second and was entirely unresponsive, the "stop" command and "x" button had no effect, it required a forced process ending in order to stop it.
It accumulated over 300,000 error log within a few hours.
Restarting the server does not fix it.

The server was running on Windows 7 Ultimate with Java SE 7 U17.

2013-04-02 14:03:45 [SEVERE] Wrong location! qd['Cow'/283659, l='Test', x=-1519,
55, y=67,00, z=73,45]
java.lang.Exception: Stack trace
        at java.lang.Thread.dumpStack(Unknown Source)
        at abq.a(SourceFile:504)
        at zv.a(SourceFile:1360)
        at iz.a(SourceFile:508)
        at zv.g(SourceFile:1314)
        at zv.h(SourceFile:1221)
        at iz.h(SourceFile:390)
        at net.minecraft.server.MinecraftServer.r(SourceFile:462)
        at hz.r(SourceFile:255)
        at net.minecraft.server.MinecraftServer.q(SourceFile:397)
        at net.minecraft.server.MinecraftServer.run(SourceFile:331)
        at gp.run(SourceFile:573)

migrated

i think it's easy to fix that: just make everything unclickable when a world is loading. but i don't know, i can't code java =P

+merlan #flirora

I get this crash with Java 7u13 as well; previously, Minecraft had worked.

+merlan #flirora

By the way, did some data in player.dat get erased?

Ezekiel

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

ileon

Confirmed for 1.6.2

migrated

Seperated the crash from the world corruption. For world corruption / wrong location errors and chunk errors please see MC-2545.

migrated

Description: Sending packet

java.lang.NullPointerException
	at cm.b(SourceFile:116)
	at cm.a(SourceFile:41)
	at jz.b(SourceFile:421)
	at hm.b(SourceFile:648)
	at hm.a(SourceFile:82)
	at bkz.b(SourceFile:73)
	at net.minecraft.server.MinecraftServer.t(SourceFile:488)
	at net.minecraft.server.MinecraftServer.s(SourceFile:405)
	at bkw.s(SourceFile:124)
	at net.minecraft.server.MinecraftServer.run(SourceFile:339)
	at hh.run(SourceFile:582)
galaxy_2alex

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.

Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been deliviered.

migrated

>
> UNSUBSCRIBE
>

migrated

(Unassigned)

Confirmed

location, null-pointer-exception

Minecraft 1.4.4, Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w02a, ..., Snapshot 13w18c, Snapshot 13w19a, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 13w39b

Retrieved