Jump to content

Config Code Is Crashing Minecraft 1.6.4


DigitalHeavy

Recommended Posts

I am currently trying to get a config file setup for my mod which i have never had a issue with before but it is crashing minecraft when i try to load  a new world with the config code in the mod. I'd love any help with this.

 

My Config Code:

 

        public static int CDID;

public static Block blockCD;

 

@EventHandler

public void initConfiguration(FMLInitializationEvent event){

Configuration config = new Configuration(new File("config/ExtraVanilla.cfg"));

config.load();

 

CDID = config.get("Blocks", "Compressed Dirt", 1871).getInt();

 

config.save();

}

-----------------------------------------------------------------------------------------------------------------------------------------------

 

Crash Report:

 

Nov 09, 2013 3:31:27 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

Nov 09, 2013 3:31:27 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

Nov 09, 2013 3:31:27 PM net.minecraft.launchwrapper.LogWrapper log

INFO: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

2013-11-09 15:31:27 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.20.916 for Minecraft 1.6.4 loading

2013-11-09 15:31:27 [iNFO] [ForgeModLoader] Java is Java HotSpot 64-Bit Server VM, version 1.7.0_25, running on Windows 8:amd64:6.2, installed at C:\Program Files\Java\jre7

2013-11-09 15:31:27 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

2013-11-09 15:31:27 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg

2013-11-09 15:31:27 [iNFO] [sTDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg

2013-11-09 15:31:27 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!

2013-11-09 15:31:28 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

2013-11-09 15:31:28 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

2013-11-09 15:31:28 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.client.main.Main}

2013-11-09 15:31:28 [iNFO] [Minecraft-Client] Setting user: Player562

2013-11-09 15:31:28 [iNFO] [Minecraft-Client] (Session ID is null)

2013-11-09 15:31:29 [iNFO] [Minecraft-Client] LWJGL Version: 2.9.0

2013-11-09 15:31:29 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default

2013-11-09 15:31:29 [iNFO] [sTDOUT]

2013-11-09 15:31:29 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-09 15:31:29 [iNFO] [MinecraftForge] Attempting early MinecraftForge initialization

2013-11-09 15:31:29 [iNFO] [sTDOUT] MinecraftForge v9.11.1.916 Initialized

2013-11-09 15:31:29 [iNFO] [ForgeModLoader] MinecraftForge v9.11.1.916 Initialized

2013-11-09 15:31:30 [iNFO] [sTDOUT] Replaced 101 ore recipies

2013-11-09 15:31:30 [iNFO] [MinecraftForge] Completed early MinecraftForge initialization

2013-11-09 15:31:30 [iNFO] [ForgeModLoader] Reading custom logging properties from O:\Projects\minecraftforge-src-1.6.4-9.11.1.916\forge\mcp\jars\config\logging.properties

2013-11-09 15:31:30 [OFF] [ForgeModLoader] Logging level for ForgeModLoader logging is set to ALL

2013-11-09 15:31:30 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-11-09 15:31:30 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-11-09 15:31:30 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-09 15:31:30 [iNFO] [ForgeModLoader] Searching O:\Projects\minecraftforge-src-1.6.4-9.11.1.916\forge\mcp\jars\mods for mods

2013-11-09 15:31:30 [iNFO] [sTDOUT]

2013-11-09 15:31:31 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load

2013-11-09 15:31:31 [iNFO] [mcp] Activating mod mcp

2013-11-09 15:31:31 [iNFO] [FML] Activating mod FML

2013-11-09 15:31:31 [iNFO] [Forge] Activating mod Forge

2013-11-09 15:31:31 [iNFO] [ExtraVanilla] Activating mod ExtraVanilla

2013-11-09 15:31:31 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well

2013-11-09 15:31:31 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well

2013-11-09 15:31:31 [WARNING] [ExtraVanilla] Mod ExtraVanilla is missing a pack.mcmeta file, things may not work well

2013-11-09 15:31:31 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ExtraVanilla

2013-11-09 15:31:31 [iNFO] [sTDOUT]

2013-11-09 15:31:31 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-11-09 15:31:31 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-11-09 15:31:31 [iNFO] [sTDOUT]

2013-11-09 15:31:31 [iNFO] [sTDOUT]

2013-11-09 15:31:31 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-09 15:31:31 [iNFO] [ForgeModLoader] Registering Forge Packet Handler

2013-11-09 15:31:31 [iNFO] [ForgeModLoader] Succeeded registering Forge Packet Handler

2013-11-09 15:31:31 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0

2013-11-09 15:31:31 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-11-09 15:31:31 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-11-09 15:31:31 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-09 15:31:31 [iNFO] [sTDOUT]

2013-11-09 15:31:32 [iNFO] [ForgeModLoader] Forge Mod Loader has successfully loaded 4 mods

2013-11-09 15:31:32 [WARNING] [Forge Mod Loader] Mod Forge Mod Loader is missing a pack.mcmeta file, things may not work well

2013-11-09 15:31:32 [WARNING] [Minecraft Forge] Mod Minecraft Forge is missing a pack.mcmeta file, things may not work well

2013-11-09 15:31:32 [WARNING] [ExtraVanilla] Mod ExtraVanilla is missing a pack.mcmeta file, things may not work well

2013-11-09 15:31:32 [iNFO] [Minecraft-Client] Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ExtraVanilla

2013-11-09 15:31:32 [iNFO] [sTDOUT]

2013-11-09 15:31:32 [iNFO] [sTDOUT] SoundSystem shutting down...

2013-11-09 15:31:32 [iNFO] [sTDOUT]    Author: Paul Lamb, www.paulscode.com

2013-11-09 15:31:32 [iNFO] [sTDOUT]

2013-11-09 15:31:32 [iNFO] [sTDOUT]

2013-11-09 15:31:32 [iNFO] [sTDOUT] Starting up SoundSystem...

2013-11-09 15:31:32 [iNFO] [sTDOUT] Initializing LWJGL OpenAL

2013-11-09 15:31:32 [iNFO] [sTDOUT]    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

2013-11-09 15:31:32 [iNFO] [sTDOUT] OpenAL initialized.

2013-11-09 15:31:33 [iNFO] [sTDOUT]

2013-11-09 15:31:35 [sEVERE] [Minecraft-Client] Realms: Invalid session id

2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Starting integrated minecraft server version 1.6.4

2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Generating keypair

2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Converting map!

2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Scanning folders...

2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Total conversion count is 0

2013-11-09 15:31:38 [iNFO] [ForgeModLoader] Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@280467e3)

2013-11-09 15:31:38 [iNFO] [ForgeModLoader] Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@280467e3)

2013-11-09 15:31:38 [iNFO] [ForgeModLoader] Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@280467e3)

2013-11-09 15:31:38 [iNFO] [Minecraft-Server] Preparing start region for level 0

2013-11-09 15:31:39 [iNFO] [Minecraft-Server] Preparing spawn area: 17%

2013-11-09 15:31:40 [iNFO] [Minecraft-Server] Preparing spawn area: 49%

2013-11-09 15:31:41 [iNFO] [Minecraft-Server] Preparing spawn area: 81%

2013-11-09 15:32:16 [iNFO] [sTDERR] java.lang.OutOfMemoryError: Java heap space

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.util.AABBPool.getAABB(AABBPool.java:50)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.util.AxisAlignedBB.expand(AxisAlignedBB.java:111)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1692)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:184)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:389)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:91)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)

2013-11-09 15:32:16 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

2013-11-09 15:32:16 [sEVERE] [Minecraft-Server] Encountered an unexpected exception OutOfMemoryError

java.lang.OutOfMemoryError: Java heap space

at net.minecraft.util.AABBPool.getAABB(AABBPool.java:50)

at net.minecraft.util.AxisAlignedBB.expand(AxisAlignedBB.java:111)

at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1692)

at net.minecraft.entity.player.EntityPlayerMP.<init>(EntityPlayerMP.java:184)

at net.minecraft.server.management.ServerConfigurationManager.createPlayerForUser(ServerConfigurationManager.java:389)

at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:91)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

2013-11-09 15:32:16 [sEVERE] [Minecraft-Server] This crash report has been saved to: O:\Projects\minecraftforge-src-1.6.4-9.11.1.916\forge\mcp\jars\.\crash-reports\crash-2013-11-09_15.32.16-server.txt

2013-11-09 15:32:16 [iNFO] [Minecraft-Server] Stopping server

2013-11-09 15:32:16 [iNFO] [Minecraft-Server] Saving players

2013-11-09 15:32:16 [iNFO] [Minecraft-Server] Saving worlds

2013-11-09 15:32:16 [iNFO] [Minecraft-Server] Saving chunks for level 'New World'/Overworld

 

Link to comment
Share on other sites

The crash is not in your config:

 

2013-11-09 15:32:16 [sEVERE] [Minecraft-Server] Encountered an unexpected exception OutOfMemoryError

java.lang.OutOfMemoryError: Java heap space

  at net.minecraft.util.AABBPool.getAABB(AABBPool.java:50)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

The crash is not in your config:

 

2013-11-09 15:32:16 [sEVERE] [Minecraft-Server] Encountered an unexpected exception OutOfMemoryError

java.lang.OutOfMemoryError: Java heap space

  at net.minecraft.util.AABBPool.getAABB(AABBPool.java:50)

 

 

Yeah I suspected that was what was causing the crash, but without the config code it runs fine, then i also tried to export the mod with the config and tried running it with 10gb of ram allocated to it yet it crashed thats why im confused

Link to comment
Share on other sites

AABBPool.getAABB(AABBPool.java:50)

  at net.minecraft.util.AxisAlignedBB.expand(AxisAlignedBB.java:111)

  at net.minecraft.world.World.getCollidingBoundingBoxes(World.java:1692)

  at net.minecraft.entity.player.EntityPlayerMP

Are you doing anything to the player ?

It looks like it tried to expand its bounding box forever...

Link to comment
Share on other sites

  • 2 weeks later...

I had the same problem and here is how I fixed it:

 

Configuration Config = new Configuration(PreEvent.getSuggestedConfigurationFile());

Config.load();

int RubyID = Config.getItem("Ruby", 3840).getInt();

Config.save();

 

Basically I registered the int that takes the place of the block ID later on and the ID it uses in the same line instead of registering them separately and it works perfect now.

You can find my mod MechaniCraft at this link:

http://www.minecraftforge.net/forum/index.php/topic,13923.0.html

 

- Will11690

Link to comment
Share on other sites

Hi

 

Just a guess -

 

The vanilla code in EntityPlayerMP has a loop in the constructor

        while (!par2World.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty())
        {
            this.setPosition(this.posX, this.posY + 1.0D, this.posZ);
        }

It looks to me like it keeps trying to find a position where the player can spawn, that doesn't collide with any blocks in the world.  Every time it does this, it creates a few bounding boxes.  If this keeps looping indefinitely, eventually you will run out of memory.

Mind you, I don't understand why it doesn't stop colliding when posY reaches 256 or above since there shouldn't be anything up there?

 

You could verify this by putting some logging code in there

eg

        while (!par2World.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty())
        {
System.out.println("this.setPosition(" + this.posX + ", " + this.posY + ", " + this.posZ + ");" );
            this.setPosition(this.posX, this.posY + 1.0D, this.posZ);
        }

 

How this might be caused by your config code?  beats me.... unless of course your world is filled entirely with compressed dirt?

 

-TGG

 

 

 

Link to comment
Share on other sites

Before we blame the config for the infinite loop, two questions:

 

1. If you drop the config and just use a free id, does it crash the same way?

 

2. If so, does commenting out the block in question prevent the crash? :)

If you guys dont get it.. then well ya.. try harder...

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.