Jump to content

[1.7.2] Inventory being cleared on world reload


chimera27

Recommended Posts

I've come across a problem in my mod that is proving VERY difficult to debug. On a somewhat rare occasion, the players inventory is being wiped on world load. I have no idea what is causing it, it doesn't seem to be random though (opening/closing a world repeatedly a large amount of times did not produce the bug). If it generates some error it's not present in the games log files. The only thing I know about it is that whenever it happens, my first try opening a world will fail. What I mean by this is I will try to open a world, and it will go right back to the title screen. When I try to open the world again, the players inventory is empty. Has anyone encountered this before or does anyone have any ideas on what I should try? I can supply any classes if needed, and again, it doesn't produce an error or anything of the sort  :-\

 

EDIT: Managed to track down an error log:

 

 

[11:46:32] [main/INFO]: Setting user: USERNAME

[11:46:33] [Client thread/INFO]: LWJGL Version: 2.9.0

[11:46:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Metroid Cubed, FMLFileResourcePack:Tomahawk

[11:46:38] [sound Library Loader/INFO]: Sound engine started

[11:46:41] [Client thread/WARN]: File chimera27metroid:sounds/charge.ogg does not exist, cannot add it to event chimera27metroid:charge

[11:46:42] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[11:46:42] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[11:46:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Metroid Cubed, FMLFileResourcePack:Tomahawk

[11:46:42] [Client thread/INFO]: Created: 512x256 textures/items-atlas

[11:46:43] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[11:46:44] [sound Library Loader/INFO]: Sound engine started

[11:46:45] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms

[11:46:51] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:46:51] [server thread/INFO]: Generating keypair

[11:46:51] [server thread/INFO]: Converting map!

[11:46:51] [server thread/INFO]: Scanning folders...

[11:46:51] [server thread/INFO]: Total conversion count is 0

[11:46:51] [server thread/INFO]: Preparing start region for level 0

[11:46:52] [server thread/INFO]: Preparing spawn area: 10%

[11:46:53] [server thread/INFO]: Preparing spawn area: 24%

[11:46:54] [server thread/INFO]: Preparing spawn area: 39%

[11:46:55] [server thread/INFO]: Preparing spawn area: 55%

[11:46:56] [server thread/INFO]: Preparing spawn area: 71%

[11:46:57] [server thread/INFO]: Preparing spawn area: 87%

[11:46:59] [server thread/INFO]: USERNAME[local:E:99a4903f] logged in with entity id 227 at (233.5, 72.0, 251.5)

[11:46:59] [server thread/INFO]: USERNAME joined the game

[11:47:01] [server thread/INFO]: USERNAME has just earned the achievement [Taking Inventory]

[11:47:02] [Client thread/INFO]: [CHAT] USERNAME has just earned the achievement [Taking Inventory]

[11:47:43] [server thread/INFO]: Saving and pausing game...

[11:47:43] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[11:47:43] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[11:47:43] [server thread/INFO]: Saving chunks for level 'New World'/The End

[11:47:43] [server thread/INFO]: Saving chunks for level 'New World'/Dark Aether

[11:47:44] [server thread/INFO]: Stopping server

[11:47:44] [server thread/INFO]: Saving players

[11:47:44] [server thread/INFO]: Saving worlds

[11:47:44] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[11:47:44] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[11:47:44] [server thread/INFO]: Saving chunks for level 'New World'/The End

[11:47:44] [server thread/INFO]: Saving chunks for level 'New World'/Dark Aether

[11:47:46] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:47:46] [server thread/INFO]: Generating keypair

[11:47:46] [server thread/ERROR]: Encountered an unexpected exception

cpw.mods.fml.common.registry.GameRegistryException: Failed to load the world - there are fatal block and item id issues

at cpw.mods.fml.common.FMLContainer.readData(FMLContainer.java:193) ~[FMLContainer.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleWorldDataLoad(FMLCommonHandler.java:386) ~[FMLCommonHandler.class:?]

at net.minecraft.world.storage.SaveHandler.func_75757_d(SaveHandler.java:122) ~[axc.class:?]

at net.minecraft.world.World.<init>(World.java:218) ~[afn.class:?]

at net.minecraft.world.WorldServer.<init>(WorldServer.java:96) ~[mj.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:62) ~[bsk.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:92) ~[bsk.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:373) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:662) [?:?]

[11:47:46] [server thread/ERROR]: This crash report has been saved to: C:\Users\carrefour\AppData\Roaming\.minecraft\crash-reports\crash-2014-04-26_11.47.46-server.txt

[11:47:50] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:47:50] [server thread/INFO]: Generating keypair

[11:47:50] [server thread/ERROR]: Encountered an unexpected exception

cpw.mods.fml.common.registry.GameRegistryException: Failed to load the world - there are fatal block and item id issues

at cpw.mods.fml.common.FMLContainer.readData(FMLContainer.java:193) ~[FMLContainer.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleWorldDataLoad(FMLCommonHandler.java:386) ~[FMLCommonHandler.class:?]

at net.minecraft.world.storage.SaveHandler.func_75757_d(SaveHandler.java:122) ~[axc.class:?]

at net.minecraft.world.World.<init>(World.java:218) ~[afn.class:?]

at net.minecraft.world.WorldServer.<init>(WorldServer.java:96) ~[mj.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:62) ~[bsk.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:92) ~[bsk.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:373) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:662) [?:?]

[11:47:50] [server thread/ERROR]: This crash report has been saved to: C:\Users\carrefour\AppData\Roaming\.minecraft\crash-reports\crash-2014-04-26_11.47.50-server.txt

[11:47:58] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:47:58] [server thread/INFO]: Generating keypair

[11:47:59] [server thread/INFO]: Converting map!

[11:47:59] [server thread/INFO]: Scanning folders...

[11:47:59] [server thread/INFO]: Total conversion count is 0

[11:47:59] [server thread/INFO]: Preparing start region for level 0

[11:48:00] [server thread/INFO]: Preparing spawn area: 20%

[11:48:01] [server thread/INFO]: Preparing spawn area: 39%

[11:48:02] [server thread/INFO]: Preparing spawn area: 56%

[11:48:03] [server thread/INFO]: Preparing spawn area: 70%

[11:48:04] [server thread/INFO]: Preparing spawn area: 85%

[11:48:05] [server thread/INFO]: Preparing spawn area: 98%

[11:48:05] [server thread/INFO]: USERNAME[local:E:9c600bfa] logged in with entity id 11483 at (155.5, 67.0, 242.5)

 

 

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

You're going to have to try and narrow down the problem. Is it just one world or do all worlds cause it? Is it only in Combined client or Dedicated Server and client? Is it only in survival or creative or SP or MP or both? Does it happen when you login as an anonymous player and your normal player? Can you force a crash and see anything unusual in the crashlog?

Link to comment
Share on other sites

I wish I knew, but ATM i'm still trying to trigger it intentionally. All I know is it's happening on world load, and seems to cause world loading to fail somehow. I was just wondering if anyone knew of this or had encountered it before, because that would make debugging it immensely easier...

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

If you're not using 10.12.1.1060, try updating and see if that resolves the issue. Found this in the release notes:

- Fixed player data being deleted by login/startup race condition

May or may not be the issue, but it's worth a try.

 

It seems like it is, I managed to track down an error log, and it never mentions a single line of my code:

EDIT: Managed to track down an error log:

 

 

[11:46:32] [main/INFO]: Setting user: USERNAME

[11:46:33] [Client thread/INFO]: LWJGL Version: 2.9.0

[11:46:36] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Metroid Cubed, FMLFileResourcePack:Tomahawk

[11:46:38] [sound Library Loader/INFO]: Sound engine started

[11:46:41] [Client thread/WARN]: File chimera27metroid:sounds/charge.ogg does not exist, cannot add it to event chimera27metroid:charge

[11:46:42] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[11:46:42] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[11:46:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Metroid Cubed, FMLFileResourcePack:Tomahawk

[11:46:42] [Client thread/INFO]: Created: 512x256 textures/items-atlas

[11:46:43] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[11:46:44] [sound Library Loader/INFO]: Sound engine started

[11:46:45] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms

[11:46:51] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:46:51] [server thread/INFO]: Generating keypair

[11:46:51] [server thread/INFO]: Converting map!

[11:46:51] [server thread/INFO]: Scanning folders...

[11:46:51] [server thread/INFO]: Total conversion count is 0

[11:46:51] [server thread/INFO]: Preparing start region for level 0

[11:46:52] [server thread/INFO]: Preparing spawn area: 10%

[11:46:53] [server thread/INFO]: Preparing spawn area: 24%

[11:46:54] [server thread/INFO]: Preparing spawn area: 39%

[11:46:55] [server thread/INFO]: Preparing spawn area: 55%

[11:46:56] [server thread/INFO]: Preparing spawn area: 71%

[11:46:57] [server thread/INFO]: Preparing spawn area: 87%

[11:46:59] [server thread/INFO]: USERNAME[local:E:99a4903f] logged in with entity id 227 at (233.5, 72.0, 251.5)

[11:46:59] [server thread/INFO]: USERNAME joined the game

[11:47:01] [server thread/INFO]: USERNAME has just earned the achievement [Taking Inventory]

[11:47:02] [Client thread/INFO]: [CHAT] USERNAME has just earned the achievement [Taking Inventory]

[11:47:43] [server thread/INFO]: Saving and pausing game...

[11:47:43] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[11:47:43] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[11:47:43] [server thread/INFO]: Saving chunks for level 'New World'/The End

[11:47:43] [server thread/INFO]: Saving chunks for level 'New World'/Dark Aether

[11:47:44] [server thread/INFO]: Stopping server

[11:47:44] [server thread/INFO]: Saving players

[11:47:44] [server thread/INFO]: Saving worlds

[11:47:44] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[11:47:44] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[11:47:44] [server thread/INFO]: Saving chunks for level 'New World'/The End

[11:47:44] [server thread/INFO]: Saving chunks for level 'New World'/Dark Aether

[11:47:46] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:47:46] [server thread/INFO]: Generating keypair

[11:47:46] [server thread/ERROR]: Encountered an unexpected exception

cpw.mods.fml.common.registry.GameRegistryException: Failed to load the world - there are fatal block and item id issues

at cpw.mods.fml.common.FMLContainer.readData(FMLContainer.java:193) ~[FMLContainer.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleWorldDataLoad(FMLCommonHandler.java:386) ~[FMLCommonHandler.class:?]

at net.minecraft.world.storage.SaveHandler.func_75757_d(SaveHandler.java:122) ~[axc.class:?]

at net.minecraft.world.World.<init>(World.java:218) ~[afn.class:?]

at net.minecraft.world.WorldServer.<init>(WorldServer.java:96) ~[mj.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:62) ~[bsk.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:92) ~[bsk.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:373) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:662) [?:?]

[11:47:46] [server thread/ERROR]: This crash report has been saved to: C:\Users\carrefour\AppData\Roaming\.minecraft\crash-reports\crash-2014-04-26_11.47.46-server.txt

[11:47:50] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:47:50] [server thread/INFO]: Generating keypair

[11:47:50] [server thread/ERROR]: Encountered an unexpected exception

cpw.mods.fml.common.registry.GameRegistryException: Failed to load the world - there are fatal block and item id issues

at cpw.mods.fml.common.FMLContainer.readData(FMLContainer.java:193) ~[FMLContainer.class:?]

at cpw.mods.fml.common.FMLCommonHandler.handleWorldDataLoad(FMLCommonHandler.java:386) ~[FMLCommonHandler.class:?]

at net.minecraft.world.storage.SaveHandler.func_75757_d(SaveHandler.java:122) ~[axc.class:?]

at net.minecraft.world.World.<init>(World.java:218) ~[afn.class:?]

at net.minecraft.world.WorldServer.<init>(WorldServer.java:96) ~[mj.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71247_a(IntegratedServer.java:62) ~[bsk.class:?]

at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:92) ~[bsk.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:373) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:662) [?:?]

[11:47:50] [server thread/ERROR]: This crash report has been saved to: C:\Users\carrefour\AppData\Roaming\.minecraft\crash-reports\crash-2014-04-26_11.47.50-server.txt

[11:47:58] [server thread/INFO]: Starting integrated minecraft server version 1.7.2

[11:47:58] [server thread/INFO]: Generating keypair

[11:47:59] [server thread/INFO]: Converting map!

[11:47:59] [server thread/INFO]: Scanning folders...

[11:47:59] [server thread/INFO]: Total conversion count is 0

[11:47:59] [server thread/INFO]: Preparing start region for level 0

[11:48:00] [server thread/INFO]: Preparing spawn area: 20%

[11:48:01] [server thread/INFO]: Preparing spawn area: 39%

[11:48:02] [server thread/INFO]: Preparing spawn area: 56%

[11:48:03] [server thread/INFO]: Preparing spawn area: 70%

[11:48:04] [server thread/INFO]: Preparing spawn area: 85%

[11:48:05] [server thread/INFO]: Preparing spawn area: 98%

[11:48:05] [server thread/INFO]: USERNAME[local:E:9c600bfa] logged in with entity id 11483 at (155.5, 67.0, 242.5)

 

 

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.