Jump to content

Trouble with chunk manager player tickets


LostCoder

Recommended Posts

Hello everyone. Sorry for my English.

I have found this bug while coding chunk loading addon for IC2. It happens when removing addon and there is chunk loader blocks left in the world.

 

Steps I used to reproduce bug:

1. Install Forge, IC2, own addon;

2. Start game and create a blank superflat world;

3. Place chunk loader blank in the world;

4. Save and exit game;

5. Removed own addon;

6. Start game and tried to load world;

7. Game stuck on "World Loading" screen;

 

It happens only when I use requestPlayerTicket(), but when replace it with requestTicket() and try the same steps world successfully loading and chunk loader block disappearing.

 

[spoiler=ForgeModLoader-0.log]

...
2013-02-04 18:14:42 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods
2013-02-04 18:15:24 [FINER] [ForgeModLoader] Sending event FMLServerAboutToStartEvent to mod mcp
2013-02-04 18:15:24 [FINER] [ForgeModLoader] Sent event FMLServerAboutToStartEvent to mod mcp
2013-02-04 18:15:24 [FINER] [ForgeModLoader] Sending event FMLServerAboutToStartEvent to mod FML
2013-02-04 18:15:24 [FINER] [ForgeModLoader] Sent event FMLServerAboutToStartEvent to mod FML
2013-02-04 18:15:24 [FINER] [ForgeModLoader] Sending event FMLServerAboutToStartEvent to mod Forge
2013-02-04 18:15:24 [FINER] [ForgeModLoader] Sent event FMLServerAboutToStartEvent to mod Forge
2013-02-04 18:15:24 [FINER] [ForgeModLoader] Sending event FMLServerAboutToStartEvent to mod IC2
2013-02-04 18:15:24 [FINER] [ForgeModLoader] Sent event FMLServerAboutToStartEvent to mod IC2
2013-02-04 18:15:24 [sEVERE] [ForgeModLoader] This world was saved with mod NetworkAnchor which appears to be missing, things may not work well
2013-02-04 18:15:24 [FINE] [ForgeModLoader] The difference set is not equal: only on left={777=Item 777, Type lostcoder.ic2.networkanchor.BlockNetworkAnchor, owned by NetworkAnchor, ordinal 0, name BlockNetworkAnchor, claimedModId null}
2013-02-04 18:15:24 [sEVERE] [ForgeModLoader] FML has detected item discrepancies
2013-02-04 18:15:24 [sEVERE] [ForgeModLoader] Missing items : {777=Item 777, Type lostcoder.ic2.networkanchor.BlockNetworkAnchor, owned by NetworkAnchor, ordinal 0, name BlockNetworkAnchor, claimedModId null}
2013-02-04 18:15:24 [sEVERE] [ForgeModLoader] Mismatched items : {}
2013-02-04 18:15:29 [iNFO] [ForgeModLoader] Loading dimension 0 (Test World) (bdz@65adfb84)
2013-02-04 18:15:29 [iNFO] [ForgeModLoader] Loading dimension 1 (Test World) (bdz@65adfb84)
2013-02-04 18:15:29 [iNFO] [ForgeModLoader] Loading dimension -1 (Test World) (bdz@65adfb84)
2013-02-04 18:15:29 [iNFO] [sTDERR] java.lang.NullPointerException
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at net.minecraftforge.common.ForgeChunkManager.loadWorld(ForgeChunkManager.java:527)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at net.minecraftforge.common.ForgeInternalHandler.onDimensionLoad(ForgeInternalHandler.java:71)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at net.minecraftforge.event.ASMEventHandler_2_ForgeInternalHandler_onDimensionLoad_Load.invoke(.dynamic)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:35)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at net.minecraftforge.event.EventBus.post(EventBus.java:103)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at bdz.a(IntegratedServer.java:79)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at bdz.c(IntegratedServer.java:101)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:458)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at fy.run(SourceFile:849)
2013-02-04 18:15:29 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-02-04 18:15:29 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-02-04 18:15:29 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-02-04 18:15:29 [FINER] [ForgeModLoader] Sending event FMLServerStoppedEvent to mod mcp
2013-02-04 18:15:29 [FINER] [ForgeModLoader] Sent event FMLServerStoppedEvent to mod mcp
2013-02-04 18:15:29 [FINER] [ForgeModLoader] Sending event FMLServerStoppedEvent to mod FML
2013-02-04 18:15:29 [FINER] [ForgeModLoader] Sent event FMLServerStoppedEvent to mod FML
2013-02-04 18:15:29 [FINER] [ForgeModLoader] Sending event FMLServerStoppedEvent to mod Forge
2013-02-04 18:15:29 [FINER] [ForgeModLoader] Sent event FMLServerStoppedEvent to mod Forge
2013-02-04 18:15:29 [FINER] [ForgeModLoader] Sending event FMLServerStoppedEvent to mod IC2
2013-02-04 18:15:29 [FINER] [ForgeModLoader] Sent event FMLServerStoppedEvent to mod IC2
2013-02-04 18:15:29 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from SERVER_ABOUT_TO_START to SERVER_STOPPED. Loading cannot continue
2013-02-04 18:15:29 [sEVERE] [ForgeModLoader] 
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available
FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available
Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available
IC2 [industrialCraft 2] (industrialcraft-2_1.115.207-lf.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available
2013-02-04 18:15:29 [sEVERE] [ForgeModLoader] The following problems were captured during this phase
2013-02-04 18:15:29 [iNFO] [sTDERR] Exception in thread "Server thread" cpw.mods.fml.common.LoaderException
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.serverStopped(Loader.java:761)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at cpw.mods.fml.common.FMLCommonHandler.handleServerStopped(FMLCommonHandler.java:464)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:559)
2013-02-04 18:15:29 [iNFO] [sTDERR] 	at fy.run(SourceFile:849)

 

Link to comment
Share on other sites

Yes, that is an issue, we should toss a null chuck in there and just discard the player tickets if the mod is removed.

For now you should be able to delete the chunk loader file in your world folder to solve this issue.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.



×
×
  • Create New...

Important Information

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