Jump to content

[SOLVED] Forge loader exception, proxy injector error and heap space error


Recommended Posts

Posted

Hi guys.

 

I'm getting the following error when running Minecraft with my mod:

 

Error log:

---- Minecraft Crash Report ----
// Would you like a cupcake?

Time: 6/9/13 3:12 PM
Description: Failed to start game

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:67)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:471)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:509)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:163)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:411)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:733)
at java.lang.Thread.run(Thread.java:680)
Caused by: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:60)
... 27 more


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: Mac OS X (x86_64) version 10.8.3
Java Version: 1.6.0_45, Apple Inc.
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
Memory: 23677136 bytes (22 MB) / 85000192 bytes (81 MB) up to 129957888 bytes (123 MB)
JVM Flags: 0 total; 
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.17.716 Minecraft Forge 7.8.0.716 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{5.2.17.716} [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge{7.8.0.716} [Minecraft Forge] (coremods) Unloaded->Constructed
Myrmecology{0.0.1} [Myrmecology] (bin) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: Intel HD Graphics 3000 OpenGL Engine GL version 2.1 INTEL-8.10.44, Intel Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

Here's my main class file:

package vivadaylight3.myrmecology.common;

import java.io.File;
import java.util.Arrays;
import java.util.Random;

import vivadaylight3.myrmecology.common.block.BlockAntFarm;
import vivadaylight3.myrmecology.common.block.BlockAntHill;
import vivadaylight3.myrmecology.common.item.ItemAnt;
import vivadaylight3.myrmecology.common.item.ItemExtractor;

import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLiving;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;

import net.minecraftforge.common.Configuration;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.Metadata;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

/**
* Myrmecology main class
* @author VivaDaylight3
*/

@Mod(modid=Myrmecology.MOD_ID, name=Myrmecology.MOD_NAME, version=Myrmecology.MOD_VERSION, dependencies = Myrmecology.MOD_DEPENDENCIES)
@NetworkMod(channels = "Myrmecology", clientSideRequired=true, serverSideRequired=false, packetHandler = MyrmecologyPacketHandler.class)
public class Myrmecology
{

public static final String MOD_CHANNEL = "Myrmecology";
public static final String MOD_ID = "Myrmecology";
public static final String MOD_ID_LOWER = "myrmecology";
public static final String MOD_NAME = "Myrmecology";
public static final String MOD_VERSION = "0.0.1";
public static final String MOD_DEPENDENCIES = "";


@SidedProxy(clientSide = "vivadaylight3.myrmecology.client.ClientProxy", serverSide = "vivadaylight3.myrmecology.common.CommonProxy")		
private CommonProxy proxy;

public static final int ID_BLOCK = 1551;
public static final int ID_ITEM = 3853;

//public static ModMetadata meta;

public static final String RESOURCE_PATH = "/mods/" + Myrmecology.MOD_ID_LOWER + "/";
public static final String TEXTURE_PATH = RESOURCE_PATH + "textures/";
public static final String BLOCK_PATH = TEXTURE_PATH + "blocks/";
public static final String ITEM_PATH = TEXTURE_PATH + "items/";
public static final String GUI_PATH = TEXTURE_PATH + "gui/";
public static final String LANG_PATH = RESOURCE_PATH + "langauges/";
public static final String TEXTURE_PREFIX = Myrmecology.MOD_ID_LOWER + ":";

private static Configuration config = new Configuration(new File(Loader.instance().getConfigDir(), MOD_ID + ".cfg"));

@Instance(MOD_NAME)
public static Myrmecology instance;

@PreInit
public void preInit(FMLPreInitializationEvent event){

	// Config
	config.load();

	itemExtractorID = config.get(config.CATEGORY_ITEM, ITEM_EXTRACTOR_NAME, ID_ITEM).getInt();

	config.save();

	itemExtractor = new ItemExtractor(itemExtractorID, ITEM_EXTRACTOR_NAME);

}

public static CreativeTabs tabMyrmecology = new CreativeTabs("tab" + MOD_ID){
        
        public ItemStack getIconItemStack() {
        	
                return new ItemStack(Item.paper, 1, 0);
                
        }
};

@Init
public void mainInit(FMLInitializationEvent event){
	/*
	meta.modId = Myrmecology.MOD_ID;
	meta.name = Myrmecology.MOD_NAME;
	meta.description = "Allows you to breed and cultivate ants.";
	meta.url = "https://github.com/VivaDaylight3/myrmecology";

	meta.logoFile = Myrmecology.TEXTURE_PATH + "Myrmecology_Banner.png";
	meta.version = Myrmecology.MOD_VERSION;
	meta.authorList = Arrays.asList(new String[] {"VivaDaylight3"});
	meta.credits = "The Minecraft Forge team and community for their fantastic work.";
	meta.autogenerated = false;
	*/

	proxy.registerRenderers();

	LanguageRegistry.instance().addStringLocalization("itemGroup.tab" + MOD_ID, "en_GB", MOD_NAME);

	LanguageRegistry.addName(itemExtractor, ITEM_EXTRACTOR_NAME_HUMAN);

	GameRegistry.registerItem(itemExtractor, ITEM_EXTRACTOR_NAME_HUMAN);

}

public static BiomeGenBase getBiome(World world, int x, int z){

	BiomeGenBase biome = world.getWorldChunkManager().getBiomeGenAt(x, z);

	return biome;

}

public static Icon[] iconsToArray(IconRegister iconRegister, String ... icons){

	Icon[] iconArray = null;

	for(int k = 0; k < icons.length + 1; k++){

		iconArray[k] = iconRegister.registerIcon(icons[k]);

	}

	return iconArray;

}

}

 

Some irrelevant code has been omitted. Does anyone know what's causing this error? I've tried multiple things but none solved the issue.

 

Thanks in advance.

"Thinking that coding is the nerdy IT guy at work rebooting your computer is like thinking that music is what happens when the piano tuner comes round." - Ed Rex

Posted

Thanks guys, I'll try that.

 

That is the full crash log that I got.

"Thinking that coding is the nerdy IT guy at work rebooting your computer is like thinking that music is what happens when the piano tuner comes round." - Ed Rex

Posted

Changing the proxy variable fixed the problem, but I now get this error:

 

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 6/10/13 3:39 PM
Description: Exception generating new chunk

java.lang.OutOfMemoryError: Java heap space
at net.minecraft.world.chunk.NibbleArray.<init>(NibbleArray.java:23)
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.<init>(ExtendedBlockStorage.java:52)
at net.minecraft.world.gen.ChunkProviderFlat.provideChunk(ChunkProviderFlat.java:126)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:131)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:166)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:528)
at net.minecraft.world.World.getBlockId(World.java:413)
at net.minecraft.world.World.isAirBlock(World.java:437)
at net.minecraft.world.World.getFirstUncoveredBlock(World.java:384)
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:100)
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:837)
at net.minecraft.world.WorldServer.initialize(WorldServer.java:801)
at net.minecraft.world.World.<init>(World.java:297)
at net.minecraft.world.WorldServer.<init>(WorldServer.java:107)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:72)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:105)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:430)
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:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at net.minecraft.world.chunk.NibbleArray.<init>(NibbleArray.java:23)
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.<init>(ExtendedBlockStorage.java:52)
at net.minecraft.world.gen.ChunkProviderFlat.provideChunk(ChunkProviderFlat.java:126)

-- Chunk to be generated --
Details:
Location: 7,-47
Position hash: -201863462905
Generator: FlatLevelSource
Stacktrace:
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:131)
at net.minecraft.world.gen.ChunkProviderServer.provideChunk(ChunkProviderServer.java:166)
at net.minecraft.world.World.getChunkFromChunkCoords(World.java:528)

-- Requested block coordinates --
Details:
Found chunk: true
Location: World: (115,64,-746), Chunk: (at 3,4,6 in 7,-47; contains blocks 112,0,-752 to 127,255,-737), Region: (0,-2; contains chunks 0,-64 to 31,-33, blocks 0,0,-1024 to 511,255,-513)
Stacktrace:
at net.minecraft.world.World.getBlockId(World.java:413)
at net.minecraft.world.World.isAirBlock(World.java:437)
at net.minecraft.world.World.getFirstUncoveredBlock(World.java:384)
at net.minecraft.world.WorldProvider.canCoordinateBeSpawn(WorldProvider.java:100)
at net.minecraft.world.WorldServer.createSpawnPosition(WorldServer.java:837)
at net.minecraft.world.WorldServer.initialize(WorldServer.java:801)

-- Affected level --
Details:
Level name: New World
All players: 0 total; []
Chunk stats: ServerChunkCache: 503 Drop: 0
Level seed: 7629715024821178320
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options: 
Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 0 game time, 0 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
Stacktrace:
at net.minecraft.world.World.<init>(World.java:297)
at net.minecraft.world.WorldServer.<init>(WorldServer.java:107)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:72)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:105)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:430)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

-- System Details --
Details:
Minecraft Version: 1.5.2
Operating System: Mac OS X (x86_64) version 10.8.3
Java Version: 1.6.0_45, Apple Inc.
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Apple Inc.
Memory: 96 bytes (0 MB) / 129957888 bytes (123 MB) up to 129957888 bytes (123 MB)
JVM Flags: 0 total; 
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.51 FML v5.2.17.716 Minecraft Forge 7.8.0.716 4 mods loaded, 4 mods active
mcp{7.44} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
FML{5.2.17.716} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Forge{7.8.0.716} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Myrmecology{0.0.1} [Myrmecology] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Profiler Position: N/A (disabled)
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'

 

I tried to solve it on my own but I always get a java heap space error. I looked around for ways to fix it but I had no luck. The main class is the same except for proxy being public and static.

"Thinking that coding is the nerdy IT guy at work rebooting your computer is like thinking that music is what happens when the piano tuner comes round." - Ed Rex

Posted

I fixed it by using -Xmx2g in my run configuration VM arguments.

"Thinking that coding is the nerdy IT guy at work rebooting your computer is like thinking that music is what happens when the piano tuner comes round." - Ed Rex

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi, this is my second post with the same content as no one answered this and it's been a long time since I made the last post, I want to make a client-only mod, everything is ok, but when I use shaders, none of the textures rendered in RenderLevelStageEvent nor the crow entity model are rendered, I want them to be visible, because it's a horror themed mod I've already tried it with different shaders, but it didn't work with any of them and I really want to add support for shaders Here is how i render the crow model in the CrowEntityRenderer<CrowEntity>, by the time i use this method, i know is not the right method but i don't think this is the cause of the problem, the renderType i'm using is entityCutout @Override public void render(CrowEntity p_entity, float entityYaw, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight) { super.render(p_entity, entityYaw, partialTick, poseStack, bufferSource, packedLight); ClientEventHandler.getClient().crow.renderToBuffer(poseStack, bufferSource.getBuffer(ClientEventHandler.getClient().crow .renderType(TEXTURE)), packedLight, OverlayTexture.NO_OVERLAY, Utils.rgb(255, 255, 255)); } Here renderLevelStage @Override public void renderWorld(RenderLevelStageEvent e) { horrorEvents.draw(e); } Here is how i render every event public void draw(RenderLevelStageEvent e) { for (HorrorEvent event : currentHorrorEvents) { event.tick(e.getPartialTick()); event.draw(e); } } Here is how i render the crow model on the event @Override public void draw(RenderLevelStageEvent e) { if(e.getStage() == RenderLevelStageEvent.Stage.AFTER_ENTITIES) { float arcProgress = getArcProgress(0.25f); int alpha = (int) Mth.lerp(arcProgress, 0, 255); int packedLight = LevelRenderer.getLightColor(Minecraft.getInstance().level, blockPos); VertexConsumer builder = ClientEventHandler.bufferSource.getBuffer(crow); Crow<CreepyBirdHorrorEvent> model = ClientEventHandler .getClient().crow; model.setupAnim(this); RenderHelper.renderModelInWorld(model, position, offset, e.getCamera(), e.getPoseStack(), builder, packedLight, OverlayTexture.NO_OVERLAY, alpha); builder = ClientEventHandler.bufferSource.getBuffer(eyes); RenderHelper.renderModelInWorld(model, position, offset, e.getCamera(), e.getPoseStack(), builder, 15728880, OverlayTexture.NO_OVERLAY, alpha); } } How i render the model public static void renderModelInWorld(Model model, Vector3f pos, Vector3f offset, Camera camera, PoseStack matrix, VertexConsumer builder, int light, int overlay, int alpha) { matrix.pushPose(); Vec3 cameraPos = camera.getPosition(); double finalX = pos.x - cameraPos.x + offset.x; double finalY = pos.y - cameraPos.y + offset.y; double finalZ = pos.z - cameraPos.z + offset.z; matrix.pushPose(); matrix.translate(finalX, finalY, finalZ); matrix.mulPose(Axis.XP.rotationDegrees(180f)); model.renderToBuffer(matrix, builder, light, overlay, Utils .rgba(255, 255, 255, alpha)); matrix.popPose(); matrix.popPose(); } Thanks in advance
    • Same issue - I have no idea
    • I am trying to develop a modpack for me and my friends to use on our server. Does anyone know how to develop a modpack for a server or could they help take a look at my modpack to potentially help at all?
    • un server de armas realista.  
    • removed both, nope https://pastebin.com/kgtwq9us
  • Topics

×
×
  • Create New...

Important Information

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