Jump to content

Java Heap Space, Help Much Appreciated, Can't Figure it out thus far


OwnAgePau

Recommended Posts

Hi there, i have been trying to find out what the problem is that causes my minecraft java to run out of heap space. I read on the forums that theres a way to increase the Eclipse heap space although this had no effect on it. Also tried using a fresh jar which didn't help anything aswell the problem stayed, i also tried making a new project which didn't fix it aswell. I think the problem lies somewhere within my code but i don't know where the only thing that i have created is a custom tree gen file which i will paste in underneath.

But when i comment out my code inside this file the heap space error stays, so i don't see what the problem is as it was working before.

 

This is the crash report :

 

 

---- Minecraft Crash Report ----

// Surprise! Haha. Well, this is awkward.

 

Time: 27-6-13 16:01

Description: Exception in server tick loop

 

java.lang.OutOfMemoryError: Java heap space

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

at net.minecraft.block.Block.getCollisionBoundingBoxFromPool(Block.java:593)

at net.minecraft.block.Block.addCollisionBoxesToList(Block.java:559)

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

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

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

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

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

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

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

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

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

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.5.2

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_17, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 55312 bytes (0 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 12741895 (713546120 bytes; 680 MB) allocated, 12741895 (713546120 bytes; 680 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63

FML: MCP v7.51 FML v5.2.23.737 Minecraft Forge 7.8.1.737 4 mods loaded, 4 mods active

mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

myOresMod{1.7} [soul Forest Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Profiler Position: N/A (disabled)

Vec3 Pool Size: 36 (2016 bytes; 0 MB) allocated, 36 (2016 bytes; 0 MB) used

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

 

 

 

This is my custom tree gen file:

 

 

package Mod_Ores.BiomeGen;

 

import java.util.Random;

 

import Mod_Ores.mod_Ores;

 

import net.minecraft.block.Block;

import net.minecraft.src.*;

import net.minecraft.util.Direction;

import net.minecraft.util.Facing;

import net.minecraft.world.*;

import net.minecraft.world.gen.feature.WorldGenerator;

import net.minecraftforge.common.ForgeDirection;

 

public class WorldGenHardwoodTrees  extends WorldGenerator

{

private int height = 7;

private int leaveHeight = height;

private int ylevel = -1;

public String side;

 

public WorldGenHardwoodTrees(Random h)

{

this.height += h.nextInt(4);

}

 

@Override

public boolean generate(World world, Random random, int x, int y, int z)

{

while (world.isAirBlock(x, y, z) && y > 2 && y < 100)

{

--y;

--y;

}

 

/*while (world.getBlockId(x, y, z) == mod_Ores.soulLiquidStillID && y > 2 && y < 100)

{

++y;

++y;

}*/

 

int l = world.getBlockId(x, y, z);

 

        if (l != mod_Ores.LateriteGrass.blockID)

        {

            return false;

        }

     

        /*if (l != mod_Ores.LateriteDirt.blockID)

        {

            return false;

        }

       

        if (l == mod_Ores.LateriteDirt.blockID)

        {

        this.height += 3;

        }*/

       

        // This will generate the water under the tree

        //waterBathGen(world, x, y, z);

       

        int x1;

        int y1;

        int z1;

 

        // Random Height

        for(y1 = 0; y1 < (height + 1); y1++)

        {       

        world.setBlock(x, y + y1, z, mod_Ores.SoulLog.blockID);

        }

       

        // tree trunk

        if(ylevel == -1)

        {

        world.setBlockToAir(x + 2, y + ylevel, z + 3);

        world.setBlockToAir(x - 1, y + ylevel, z + 4);

        world.setBlockToAir(x - 2, y + ylevel, z);

        world.setBlockToAir(x - 3, y + ylevel, z + 1);

        world.setBlockToAir(x - 3, y + ylevel, z + 2);

        world.setBlockToAir(x - 4, y + ylevel, z + 2);

       

        world.setBlock(x + 2, y + ylevel, z + 3, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 1, y + ylevel, z + 4, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 2, y + ylevel, z, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 3, y + ylevel, z + 1, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 3, y + ylevel, z + 2, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 4, y + ylevel, z + 2, mod_Ores.SoulLog.blockID);

        ylevel++;

        }

       

        if(ylevel == 0)

        {

        world.setBlockToAir(x + 3, y + ylevel, z + 2);

        world.setBlockToAir(x + 1, y + ylevel, z + 2);

        world.setBlockToAir(x - 1, y + ylevel, z);

        world.setBlockToAir(x - 2, y + ylevel, z + 2);

        world.setBlockToAir(x - 2, y + ylevel, z + 3);

        world.setBlockToAir(x - 3, y + ylevel, z - 1);

               

        world.setBlock(x + 3, y + ylevel, z + 2, mod_Ores.SoulLog.blockID);

        world.setBlock(x + 1, y + ylevel, z + 2, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 1, y + ylevel, z, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 2, y + ylevel, z + 2, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 2, y + ylevel, z + 3, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 3, y + ylevel, z - 1, mod_Ores.SoulLog.blockID);

        ylevel++;

        }

       

        if(ylevel == 1)

        {

        world.setBlockToAir(x + 3, y + ylevel, z + 1);

        world.setBlockToAir(x, y + ylevel, z - 1);

        world.setBlockToAir(x - 2, y + ylevel, z + 2);

        world.setBlockToAir(x - 2, y + ylevel, z - 2);

        world.setBlockToAir(x - 2, y + ylevel, z - 3);

       

        world.setBlock(x + 3, y + ylevel, z + 1, mod_Ores.SoulLog.blockID);

        world.setBlock(x, y + ylevel, z - 1, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 2, y + ylevel, z + 2, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 2, y + ylevel, z - 2, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 2, y + ylevel, z - 3, mod_Ores.SoulLog.blockID);

        ylevel++;

        }

       

        if(ylevel == 2)

        {

        world.setBlockToAir(x + 2, y + ylevel, z);

        world.setBlockToAir(x - 1, y + ylevel, z + 1);

        world.setBlockToAir(x - 1, y + ylevel, z - 2);

       

        world.setBlock(x + 2, y + ylevel, z, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 1, y + ylevel, z + 1, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 1, y + ylevel, z - 2, mod_Ores.SoulLog.blockID);

        ylevel++;

        }

       

        if(ylevel == 3)

        {

        world.setBlockToAir(x + 1, y + ylevel, z);

        world.setBlockToAir(x - 1, y + ylevel, z - 1);

       

        world.setBlock(x + 1, y + ylevel, z, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 1, y + ylevel, z - 1, mod_Ores.SoulLog.blockID);

        }             

       

        // The leaves that should spawn

        genTop(world, x, y + height + 1, z + 1, "EAST", true);

        genTop(world, x + 4, y + leaveHeight + 3, z + 2, "SOUTH", false);

        genTop(world, x - 3, y + leaveHeight - 1, z - 1, "NORTH", false);

        genTop(world, x + 2, y + leaveHeight + 1, z - 3, "WEST", false);

       

        // NORTH

        world.setBlock(x - 1, y + leaveHeight - 2, z, mod_Ores.SoulLog.blockID);

        world.setBlock(x - 2, y + leaveHeight - 1, z - 1, mod_Ores.SoulLog.blockID);

       

        // WEST

        world.setBlock(x + 1, y + leaveHeight, z - 1, mod_Ores.SoulLog.blockID);

        world.setBlock(x + 2, y + leaveHeight + 1, z - 2, mod_Ores.SoulLog.blockID);

       

        // SOUTH

        world.setBlock(x + 1, y + leaveHeight + 1, z + 1, mod_Ores.SoulLog.blockID);

        world.setBlock(x + 2, y + leaveHeight + 2, z + 2, mod_Ores.SoulLog.blockID);

        world.setBlock(x + 3, y + leaveHeight + 3, z + 2, mod_Ores.SoulLog.blockID);

       

return true;

}

 

/** This takes care of the rendering of the leaves

*

* @param world the world obj

* @param x The x-cord

* @param y the y-cord

* @param z the z-cord

* @param side the side it should go

* @param mid if the topGenMid should be rendered

*/

public void genTop(World world, int x, int y, int z, String side, Boolean mid)

{

int x1 = 0;

int y1 = 0;

int z1 = 0;

 

int x2 = 0;

int z2 = 0;

Random rand = new Random();

 

// This is the base block of the top

world.setBlock(x , y, z, mod_Ores.SoulLog.blockID);

 

// Desides what side it should go

if(side == "SOUTH") // -x

{

world.setBlock(x - 1, y, z, mod_Ores.SoulLog.blockID);

x2 = -1;

}

else if(side == "NORTH") // +x

{

world.setBlock(x + 1, y, z, mod_Ores.SoulLog.blockID);

x2 = +1;

}

else if(side == "EAST") // -z

{

world.setBlock(x, y, z - 1, mod_Ores.SoulLog.blockID);

z2 = -1;

}

else if(side == "WEST") // +z

{

world.setBlock(x, y, z + 1, mod_Ores.SoulLog.blockID);

z2 = +1;

}

 

// 1e layer

if(mid == false)

{

for(y1 = 0; y1 < 2; y1++)

{

for(x1 = -1; x1 < 2; x1++)

{

for(z1 = -1; z1 < 2; z1++)

{

world.setBlock((x + x2 + x1), (y + y1), (z + z2 + z1), mod_Ores.SoulLeaves.blockID);

 

//a random empty corner

if(rand.nextInt(4) == 0)

{

world.setBlockToAir(x2 + 1, y + 1, z2 + 1);

}

else if (rand.nextInt(4) == 1)

{

world.setBlockToAir(x2 + 1, y + 1, z2 - 1);

}

else if (rand.nextInt(4) == 2)

{

world.setBlockToAir(x2 - 1, y + 1, z2 + 1);

}

else if (rand.nextInt(3) == 3)

{

world.setBlockToAir(x2 - 1, y + 1, z2 - 1);

}

}

}

}

}

else

{

for(y1 = 0; y1 < 2; y1++)

{

for(x1 = -2; x1 < 3; x1++)

{

for(z1 = -2; z1 < 3; z1++)

{

world.setBlock((x + x2 + x1), (y + y1), (z + z2 + z1), mod_Ores.SoulLeaves.blockID);

 

//a random empty corner

if(rand.nextInt(4) == 0)

{

world.setBlockToAir(x2 + 2, y + 1, z2 + 2);

}

else if (rand.nextInt(4) == 1)

{

world.setBlockToAir(x2 + 2, y + 1, z2 - 2);

}

else if (rand.nextInt(4) == 2)

{

world.setBlockToAir(x2 - 2, y + 1, z2 + 2);

}

else if (rand.nextInt(3) == 3)

{

world.setBlockToAir(x2 - 2, y + 1, z2 - 2);

}

}

}

}

}

 

// 2e layer

if(mid == false)

{

for(x1 = 0; x1 < 1; x1++)

{

for(z1 = 0; z1 < 1; z1++)

{

world.setBlock((x + x2 - x1), (y + 2), (z + z2 - z1), mod_Ores.SoulLeaves.blockID);

}

}

}

else

{

for(x1 = -1; x1 < 2; x1++)

{

for(z1 = -1; z1 < 2; z1++)

{

world.setBlock((x + x2 - x1), (y - 1), (z + z2 - z1), mod_Ores.SoulLeaves.blockID);

}

}

 

for(x1 = -1; x1 < 2; x1++)

{

for(z1 = -1; z1 < 2; z1++)

{

world.setBlock((x + x2 - x1), (y + 2), (z + z2 - z1), mod_Ores.SoulLeaves.blockID);

}

}

 

for(x1 = 0; x1 < 1; x1++)

{

for(z1 = 0; z1 < 1; z1++)

{

world.setBlock((x + x2 - x1), (y + 3), (z + z2 - z1), mod_Ores.SoulLeaves.blockID);

}

}

}

}

 

/** This takes care of the rendering of the water under the tree

*

* @param world the world obj

* @param x the x-cord

* @param y the y-cord

* @param z the z-cord

*/

public void waterBathGen(World world, int x, int y, int z)

{

/*int x1 = 0;

int y1 = 0;

int z1 = 0;

 

int x2 = 0;

int z2 = 0;

 

int x3 = 0;

int z3 = 0;

Random rand = new Random();

Boolean spawn = false;

 

for(y1 = -2; y1 < -1; y1++)

{

for(z1 = -4; z1 < 5; z1++)

{

for(x1 = 0; x1 < 7; z1++)

{

if(world.isAirBlock(x + x1, y + y1, z + z1))

{

spawn = false;

}

else

{

spawn = true;

}

}

}

}

 

/*if(spawn)

{

for(y1 = -2; y1 < 1; y1++)

{

for(z1 = -4; z1 < 5; z1++)

{

for(x1 = 0; x1 < 3; x1++)

{

world.setBlock(x + x1, y, z + z1, mod_Ores.SoulWater.blockID);

world.setBlock(x - 1, y, z + 1, mod_Ores.SoulWater.blockID);

world.setBlock(x - 1, y, z + 1, mod_Ores.SoulWater.blockID);

world.setBlock(x - 1, y, z - 3, mod_Ores.SoulWater.blockID);

 

for(z2 = -2; z2 < 4; z2++)

{

for(x2 = 3; x2 < 5; x2++)

{

world.setBlock(x + x2, y, z + z2, mod_Ores.SoulWater.blockID);

world.setBlock(x + 3, y, z - 3, mod_Ores.SoulWater.blockID);

 

for(x3 = 5; x3 < 7; x3++)

{

for(z3 = 1; z2 < 3; z3++)

{

world.setBlock(x + x2, y, z + z2, mod_Ores.SoulWater.blockID);

world.setBlock(x + 7, y, z + 1, mod_Ores.SoulWater.blockID);

world.setBlock(x + 5, y, z, mod_Ores.SoulWater.blockID);

}

}

}

}

}

}

}

}*/

}

}

 

 

Link to comment
Share on other sites

just wondering, how many memory (RAM, usually between 1 and 8) does your machine have?  have you change machine between the time it was workign and since it stoped working ?

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

Okay i have removed the Hardwoodtree file, and set the java heap space back to what it was before i started increasing it to get rid of the java heap space error.. This is still a java heap space error but it might be a bit more usefull.

 

 

 

---- Minecraft Crash Report ----

// I bet Cylons wouldn't have this problem.

 

Time: 27-6-13 17:06

Description: Exception ticking world entities

 

java.lang.OutOfMemoryError: Java heap space

 

 

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

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

 

-- Affected level --

Details:

Level name: Test

All players: 1 total; [EntityPlayerMP['Player647'/14, l='Test', x=251,50, y=57,00, z=253,50]]

Chunk stats: ServerChunkCache: 625 Drop: 0

Level seed: 554422617310108838

Level generator: ID 00 - default, ver 1. Features enabled: true

Level generator options:

Level spawn location: World: (256,64,256), Chunk: (at 0,4,0 in 16,16; contains blocks 256,0,256 to 271,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 39 game time, 39 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 110989 (now: false), thunder time: 148067 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

Stacktrace:

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

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

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

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

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

 

-- System Details --

Details:

Minecraft Version: 1.5.2

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_17, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode, sharing), Oracle Corporation

Memory: 8912920 bytes (8 MB) / 259522560 bytes (247 MB) up to 259522560 bytes (247 MB)

JVM Flags: 0 total;

AABB Pool Size: 1844 (103264 bytes; 0 MB) allocated, 74 (4144 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63

FML: MCP v7.51 FML v5.2.23.737 Minecraft Forge 7.8.1.737 4 mods loaded, 4 mods active

mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

myOresMod{1.7} [soul Forest Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Profiler Position: N/A (disabled)

Vec3 Pool Size: 876 (49056 bytes; 0 MB) allocated, 24 (1344 bytes; 0 MB) used

Player Count: 1 / 8; [EntityPlayerMP['Player647'/14, l='Test', x=251,50, y=57,00, z=253,50]]

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

 

 

Link to comment
Share on other sites

your code seem to be crashing at this

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

 

are you "soul" block/liquid/plant/etc doing any kind of recursion or massive object creation/method call ???

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Link to comment
Share on other sites

your code seem to be crashing at this

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

 

are you "soul" block/liquid/plant/etc doing any kind of recursion or massive object creation/method call ???

It sounds more like he's using a lot of memory (somehow), but not quite enough to cause an error, then when Minecraft wants to start building the pool, it runs out.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

Well the problem here is, i had a crash after i wanted to add liquids in my creation of this tree and it indeed wanted to create lots of it. So i then immidiately removed it and it seemed to work fine after it, untill it suddenly didn't want to load a new world anymore. Please help me figure this out.

Link to comment
Share on other sites

Well the problem here is, i had a crash after i wanted to add liquids in my creation of this tree and it indeed wanted to create lots of it. So i then immidiately removed it and it seemed to work fine after it, untill it suddenly didn't want to load a new world anymore. Please help me figure this out.

What's the error?

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

Well, the errors are all listed above, but what i can't understand is that everything worked before i started working on this tree. Then while i was working on the tree and kept testing my world creation over and over again to see if i was doing it right, and when the tree was done it was all fine. The water worked once and then crashed i did something wrong there which i then noticed. So i removed it and didn't add any water at all (commented it out) but after that i made another world and it didn't seem to give any problems. Untill the day after when i started it up again suddenly it wouldn't let me create a new world or visit my existing once.

 

If it is something that is being created a lot i have no idea what, cause i have tried removing this hole tree-file that i made that day. And yet it won't work, while i haven't changed a single other thing. I also tried refreshing my minecraft.jar file and making a new mcp folder + forge etc etc, then run without my mod, everything works fine. I put in my mod files and i get the error again, now i can't even run my minecraft (It just says java heap space error).

 

Sorry if it is a lot to read. I was just confused when i woke up willing to continue working on that true while all of a sudden it wouldn't work anymore.

Link to comment
Share on other sites

Well, the errors are all listed above, but what i can't understand is that everything worked before i started working on this tree. Then while i was working on the tree and kept testing my world creation over and over again to see if i was doing it right, and when the tree was done it was all fine. The water worked once and then crashed i did something wrong there which i then noticed. So i removed it and didn't add any water at all (commented it out) but after that i made another world and it didn't seem to give any problems. Untill the day after when i started it up again suddenly it wouldn't let me create a new world or visit my existing once.

 

If it is something that is being created a lot i have no idea what, cause i have tried removing this hole tree-file that i made that day. And yet it won't work, while i haven't changed a single other thing. I also tried refreshing my minecraft.jar file and making a new mcp folder + forge etc etc, then run without my mod, everything works fine. I put in my mod files and i get the error again, now i can't even run my minecraft (It just says java heap space error).

 

Sorry if it is a lot to read. I was just confused when i woke up willing to continue working on that true while all of a sudden it wouldn't work anymore.

That just sounds like you don't have enough memory on your computer. Or perhaps you have a virus. Either way, there's nothing I can do.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

My pc has 4GB of ram, and minecraft somehow goes out of memory... Now it says "Ticking Entity" as an error and right before that it says "Fetching addPacket for removed entity" 4 times

 

Also when i create a new world this error is created:

 

 

 

---- Minecraft Crash Report ----

// Surprise! Haha. Well, this is awkward.

 

Time: 27-6-13 16:01

Description: Exception in server tick loop

 

java.lang.OutOfMemoryError: Java heap space

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

at net.minecraft.block.Block.getCollisionBoundingBoxFromPool(Block.java:593)

at net.minecraft.block.Block.addCollisionBoxesToList(Block.java:559)

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

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

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

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

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

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

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

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

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

 

 

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

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

 

-- System Details --

Details:

Minecraft Version: 1.5.2

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.7.0_17, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 55312 bytes (0 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 12741895 (713546120 bytes; 680 MB) allocated, 12741895 (713546120 bytes; 680 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63

FML: MCP v7.51 FML v5.2.23.737 Minecraft Forge 7.8.1.737 4 mods loaded, 4 mods active

mcp{7.51} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{5.2.23.737} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{7.8.1.737} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

myOresMod{1.7} [soul Forest Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Profiler Position: N/A (disabled)

Vec3 Pool Size: 36 (2016 bytes; 0 MB) allocated, 36 (2016 bytes; 0 MB) used

Player Count: 0 / 8; []

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

 

 

 

I keep finding EntityMP in there... I guess it keeps trying to spawn me but that doesn't work?

 

Is there someone who would want to help me find the problem in my code? as theres probably something I'm missing. Or are there any files that you might want to see?

Link to comment
Share on other sites

I tried commenting out entities but that didn't do a think it still keeps crashing when trying to create the player. I have no idea why it does that and where it came from. If theres someone willing to help out by looking at the code that would be MUCH appreciated.

Link to comment
Share on other sites

well if you want, zip and give me all your files (i mean ALL) i have different hardware ill try and see if i can figure it out.

 

warning you , i can only try this tonight (7 hours after the time of this posting)

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • rp.crazyheal.xyz mods  
    • I'm developing a dimension, but it's kinda resource intensive so some times during player teleporting it lags behind making the player phase down into the void, so im trying to implement some kind of pregeneration to force the game loading a small set of chunks in the are the player will teleport to. Some of the things i've tried like using ServerLevel and ServerChunkCache methods like getChunk() dont actually trigger chunk generation if the chunk isn't already on persistent storage (already generated) or placing tickets, but that doesn't work either. Ideally i should be able to check when the task has ended too. I've peeked around some pregen engines, but they're too complex for my current understanding of the system of which I have just a basic understanding (how ServerLevel ,ServerChunkCache  and ChunkMap work) of. Any tips or other classes I should be looking into to understand how to do this correctly?
    • https://mclo.gs/4UC49Ao
    • Way back in the Forge 1.17 days, work started for adding JPMS (Java Platform Module Support) to ModLauncher and ForgeModLoader. This has been used internally by Forge and some libraries for a while now, but mods (those with mods.toml specifically) have not been able to take advantage of it. As of Forge 1.21.1 and 1.21.3, this is now possible!   What is JPMS and what does it mean for modders? JPMS is the Java Platform Module System, introduced in Java 9. It allows you to define modules, which are collections of packages and resources that can be exported or hidden from other modules. This allows for much more fine-tuned control over visibility, cleaner syntax for service declarations and support for sealed types across packages. For example, you might have a mod with a module called `com.example.mod` that exports `com.example.mod.api` and `com.example.mod.impl` to other mods, but hides `com.example.mod.internal` from them. This would allow you to have a clean API for other mods to use, while keeping your internal implementation details hidden from IDE hints, helping prevent accidental usage of internals that might break without prior notice. This is particularly useful if you'd like to use public records with module-private constructors or partially module-private record components, as you can create a sealed interface that only your record implements, having the interface be exported and the record hidden. It's also nice for declaring and using services, as you'll get compile-time errors from the Java compiler for typos and the like, rather than deferring to runtime errors. In more advanced cases, you can also have public methods that are only accessible to specific other modules -- handy if you want internal interactions between multiple of your own mods.   How do I bypass it? We understand there may be drama in implementing a system that prevents mods from accessing each other's internals when necessary (like when a mod is abandoned or you need to fix a compat issue) -- after all, we are already modding a game that doesn't have explicit support for Java mods yet. We have already thought of this and are offering APIs from day one to selectively bypass module restrictions. Let me be clear: Forge mods are not required to use JPMS. If you don't want to use it, you don't have to. The default behaviour is to have fully open, fully exported automatic modules. In Java, you can use the `Add-Opens` and `Add-Exports` manifest attributes to selectively bypass module restrictions of other mods at launch time, and we've added explicit support for these when loading your Forge mods. At compile-time, you can use existing solutions such as the extra-java-module-info Gradle plugin to deal with non-modular dependencies and add extra opens and exports to other modules. Here's an example on how to make the internal package `com.example.examplemod.internal` open to your mod in your build.gradle: tasks.named('jar', Jar) { manifest { attributes([ 'Add-Opens' : 'com.example.examplemod/com.example.examplemod.internal' 'Specification-Title' : mod_id, 'Specification-Vendor' : mod_authors // (...) ]) } } With the above in your mod's jar manifest, you can now reflectively access the classes inside that internal package. Multiple entries are separated with a space, as per Java's official spec. You can also use Add-Exports to directly call without reflection, however you'd need to use the Gradle plugin mentioned earlier to be able to compile. The syntax for Add-Exports is the same as Add-Opens, and instructions for the compile-time step with the Gradle plugin are detailed later in this post. Remember to prefer the opens and exports keywords inside module-info.java for sources you control. The Add-Opens/Add-Exports attributes are only intended for forcing open other mods.   What else is new with module support? Previously, the runtime module name was always forced to the first mod ID in your `mods.toml` file and all packages were forced fully open and exported. Module names are now distinguished from mod IDs, meaning the module name in your module-info.java can be different from the mod ID in your `mods.toml`. This allows you to have a more descriptive module name that doesn't have to be the same as your mod ID, however we strongly recommend including your mod ID as part of your module name to aid troubleshooting. The `Automatic-Module-Name` manifest attribute is now also honoured, allowing you to specify a module name for your mod without needing to create a `module-info.java` file. This is particularly useful for mods that don't care about JPMS features but want to have a more descriptive module name and easier integration with other mods that do use JPMS.   How do I use it? The first step is to create a `module-info.java` file in your mod's source directory. This file should be in the same package as your main mod class, and should look something like this: open module com.example.examplemod { requires net.minecraftforge.eventbus; requires net.minecraftforge.fmlcore; requires net.minecraftforge.forge; requires net.minecraftforge.javafmlmod; requires net.minecraftforge.mergetool.api; requires org.slf4j; requires logging; } For now, we're leaving the whole module open to reflection, which is a good starting point. When we know we want to close something off, we can remove the open modifier from the module and open or export individual packages instead. Remember that you need to be open to Forge (module name net.minecraftforge.forge), otherwise it can't call your mod's constructor. Next is fixing modules in Gradle. While Forge and Java support modules properly, Gradle does not put automatic modules on the module path by default, meaning that the logging module (from com.mojang:logging) is not found. To fix this, add the Gradle plugin and add a compile-time module definition for that Mojang library: plugins { // (...) id 'org.gradlex.extra-java-module-info' version "1.9" } // (...) extraJavaModuleInfo { failOnMissingModuleInfo = false automaticModule("com.mojang:logging", "logging") } The automatic module override specified in your build.gradle should match the runtime one to avoid errors. You can do the same for any library or mod dependency that is missing either a module-info or explicit Automatic-Module-Name, however be aware that you may need to update your mod once said library adds one. That's all you need to get started with module support in your mods. You can learn more about modules and how to use them at dev.java.
    • Faire la mise à jour grâce à ce lien m'a aider personnellement, merci à @Paint_Ninja. https://www.amd.com/en/support 
  • Topics

×
×
  • Create New...

Important Information

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