Jump to content

Recommended Posts

Posted

When attempting to run the latest builds of Forge (200 to 230) on my headless server (no window managers of any kind), the server fails to start.

 

Console output: http://pastie.org/private/q9clitpw0ojo0vkczmw5ag

 

No Forge*.log or ModLoader.txt is created, as the server fails before any such things happen. No patcher or launcher is used. Installation of Forge is in minecraft_server.jar (not the client!) and contains ONLY the builds mentioned above (minecraftforge-universal-4.0.0.230.zip, for example), no ModLoader or ModLoaderMP.

 

From what I can gather, the issue is specifically limited to the lack of an installed window manager; whether or not it is running seems irrelevant (with X11 installed I can start the server even without Xorg running). The same jar works on both Windows and Slackware Linux so long as a window manager is installed.

 

I'm fairly confident that the problem is the lack of a null check in Downloader.java, after it fails to instantiate an instance of the JOptionPane due to a lack of any installed libraries with which to create said pane.

Posted

rev. 230 isn't the latest... the latest is like 243 or so. Try that.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

  Quote

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

I have a few headless servers, one is ancient and I tried on it, it has Java 1.6.0_07, java-runtime-headless, no x libraries, no x fonts, no GUI system or code at all, I checked everything that I could think of in the package manager, and the server still downloads its files and launches fine as of the latest version.  Need more information.  Start a trace on it and see what it locks on or something.  Unless you have an idea for a package I may have missed?

Posted

Hello

Well, I cannot for the life of me make this problem occur on any linux install I own or create. I have no idea how you got java to run in such a barebones environment.

 

I am attaching an experimental FML build to this post for you to merge into a minecraft_server.jar and report back success or failure. If this works, I'll push and merge it to generate a forge build. If not, I need to know how to build your environment...

 

Note: just merge and start this up. Do not do anything else. it's not going to work with forge as it stands...

Posted

Hey cpw! Thanks for the experimental build. It cleared things right up.

 

I forgot to mention that the problem initially occurred on a completely barebones installation of FreeBSD (using OpenJDK 1.6.0.0_23, 64 bit server). I was able to replicate it on a totally barebones installation of Slackware 13.37 as well (no window management or libraries installed).

 

Same FreeBSD system with this new build (attached to your post) fixes the issue.

Posted

Bad news. :(

 

The issue appears to manifest itself again with Java 7 on an updated OS (previous was FreeBSD 8.2 with JDK 6):

 

[spoiler=java -version]bash# java -version

openjdk version "1.7.0_04"

OpenJDK Runtime Environment (build 1.7.0_04-b22)

OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)

 

 

 

[spoiler=OS] bash# uname -mrs

FreeBSD 8.3-RELEASE-p3 amd64

 

 

 

[spoiler=error log]

Exception in thread "main" java.lang.NullPointerException

        at cpw.mods.fml.relauncher.Downloader.makeHeadless(Downloader.java:137)

        at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:67)

        at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

        at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

        at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

 

 

 

Server is being started with pretty typical flags:

 

[spoiler=startup flags]bash# java -Xms160M -Xmx600M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar minecraft_server.jar nogui

 

 

 

The same build of FML/Mineforge works fluidly now on 8.2-RELEASE-p3 with JDK 1.6.0-b23, but not on the above specs.

Posted

You have an incorrect FML version. There is nothing that can be null in that method now, and that line doesn't even *exist* in the code... Update!

Posted

Greetings,

 

I seem to be having a similar problem as the others here, but I'm clueless as to why and not sure if I'm screwing things up when I move to the host service vs my computer, because it works fine on my computer but on the host it gives this error:

 

 

  Reveal hidden contents

 

 

What I know:

 

Host runs vanilla server fine.

Host does not run vanilla server with minecraftforge-universal-4.1.1.251

 

my computer runs the server minecraftforge-universal-4.1.1.251 + mods no issues.

 

have tried complete fresh installs and copying my server over to host, but does not seem to help.

 

Is this me or the host?

Posted

I need the *complete* log for that error graymayne. There should be something else there. This problem is practically impossible to reproduce, and others have tested and verified it works in practically identical environments. Most likely you are missing a key java component on your server.

Posted

That's what the console from the hosting service gives me, I don't get any ForgeModLoader-server-# logs to pull from.

 

The part that's confusing is it works fine on my computer, its when I load it into the hosting service, so if you can't duplicate, odds are its something with the hosting service. And I'm leaning in that direction moreso since hosting service runs vanilla fine, and it ran forge 3.3.8.152 last week. So I have no clue what might have changed that the host doesn't like, the hosting service is verygames.us if that helps.

 

Below is the only code I see everytime I reset the server, so far the only good code has been when I load a vanilla server.

 

 

  Reveal hidden contents

 

 

And if its a missing java component, its has to be one my computer has that the host doesn't. Otherwise, why do I run it fine on my own computer.

Posted

wow we must have the same host my errors are the same

  Quote
Fontconfig error: Cannot load default config file

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:68)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:117)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1258)

i am having the error if someone could help i would be grateful

Posted

Im having same problem with lates forge universal build 4.1.1.252 running on linux server.

 

server don't generate any logs.

Command i run to start server and error i get:

 

  Reveal hidden contents

 

mine java -version:

 

  Reveal hidden contents

 

 

  Reveal hidden contents

 

 

If someone have any idea that im missing some packages just let me know i can install anything i want on that machine.

 

E:added spoiler tags

Posted
  On 9/9/2012 at 4:15 PM, Graymayne said:

 

Fontconfig error: Cannot load default config file

 

And if its a missing java component, its has to be one my computer has that the host doesn't. Otherwise, why do I run it fine on my own computer.

 

This looks like the fontconfig package to me.  You might try searching around your provider to see if they have their /usr/local/etc/fonts somewhere else, and try setting the FONTCONFIG_PATH prior to launching. This may be an OpenJDK thing vs. a Sun/Oracle JDK thing? 

I'm fixing the stupid villagers.  http://www.minecraftforum.net/topic/1588460-

Posted

Interesting that openjdk seems to be missing this stuff. That's very frustrating. I'll see if I can make a patch that works even without it, but it looks like it cannot even classload some of the graphical components, which is frankly ridiculous. *sigh*.

  • 2 weeks later...
Posted

hello

 

i got more info about crash with missing java componnent

i try it with MC 1.3.2 and Forge 275

 

openmod => 77.111.253.93:25565:6:world

Fontconfig error: Cannot load default config file

java.lang.NullPointerException

at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)

at sun.font.SunFontManager$2.run(SunFontManager.java:428)

at java.security.AccessController.doPrivileged(Native Method)

at sun.font.SunFontManager.<init>(SunFontManager.java:371)

at sun.awt.X11FontManager.<init>(X11FontManager.java:32)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

at java.lang.Class.newInstance0(Class.java:372)

at java.lang.Class.newInstance(Class.java:325)

at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:80)

at java.security.AccessController.doPrivileged(Native Method)

at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:71)

at sun.font.SunFontManager.getInstance(SunFontManager.java:245)

at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)

at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1003)

at javax.swing.JComponent.getFontMetrics(JComponent.java:1615)

at javax.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:276)

at javax.swing.plaf.basic.BasicButtonUI.getPreferredSize(BasicButtonUI.java:376)

at javax.swing.plaf.basic.BasicButtonUI.getMinimumSize(BasicButtonUI.java:366)

at javax.swing.JComponent.getMinimumSize(JComponent.java:1733)

at javax.swing.plaf.basic.BasicOptionPaneUI.addButtonComponents(BasicOptionPaneUI.java:692)

at javax.swing.plaf.basic.BasicOptionPaneUI.createButtonArea(BasicOptionPaneUI.java:630)

at javax.swing.plaf.basic.BasicOptionPaneUI.installComponents(BasicOptionPaneUI.java:178)

at javax.swing.plaf.basic.BasicOptionPaneUI.installUI(BasicOptionPaneUI.java:141)

at javax.swing.JComponent.setUI(JComponent.java:655)

at javax.swing.JOptionPane.setUI(JOptionPane.java:1863)

at javax.swing.JOptionPane.updateUI(JOptionPane.java:1885)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1848)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1811)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1779)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1757)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1737)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1721)

at javax.swing.JOptionPane.<init>(JOptionPane.java:1709)

at cpw.mods.fml.relauncher.Downloader.<init>(Downloader.java:19)

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:59)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:121)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1307)

Exception in thread "main" java.lang.NullPointerException

at cpw.mods.fml.relauncher.FMLRelauncher.showWindow(FMLRelauncher.java:72)

at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:121)

at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:33)

at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1307)

Mon Sep 24 16:55:04 CEST 2012: Server restart in 10 seconds

 

 

Posted

 

  On 9/9/2012 at 6:32 PM, rivvest said:

  Quote

 

Fontconfig error: Cannot load default config file

 

And if its a missing java component, its has to be one my computer has that the host doesn't. Otherwise, why do I run it fine on my own computer.

 

This looks like the fontconfig package to me.  You might try searching around your provider to see if they have their /usr/local/etc/fonts somewhere else, and try setting the FONTCONFIG_PATH prior to launching. This may be an OpenJDK thing vs. a Sun/Oracle JDK thing? 

There you go.

Read the EAQ before posting! OR ELSE!

 

  Quote
This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

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

    • dynamictrees and dtneapolitan are the last mentioned mod - remove these
    • https://mclo.gs/9y5ciD2 anyone ever had this issue?  Internal exception illegal argument exception: unable to fit 3194354 into 3
    • Hi! I'm trying to add my custom models/textures renderer like this: public class PonyPlayerWrapperRenderer extends EntityRenderer<Player> { // wrapper class under my LivingEntityRenderer class implementation private final PonyPlayerRenderer innerRenderer; private final PonyPlayerRenderer innerSlimRenderer; public PonyPlayerWrapperRenderer(final EntityRendererProvider.Context context) { super(context); System.out.println("creating new PonyPlayerWrapperRenderer"); this.innerRenderer = new PonyPlayerRenderer(context, false); this.innerSlimRenderer = new PonyPlayerRenderer(context, true); } @Override public void render(final Player entity, final float yaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource bufferSource, final int packedLight) { System.out.println("PonyPlayerWrapperRenderer render: " + entity.toString()); if (entity instanceof AbstractClientPlayer clientPlayer) { if (clientPlayer.getModelName().contains("slim")) { innerSlimRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } else { innerRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } } } @Override public ResourceLocation getTextureLocation(final Player player) { System.out.println("PonyPlayerWrapperRenderer getTextureLocation"); if (player instanceof AbstractClientPlayer clientPlayer) { return clientPlayer.getSkinTextureLocation(); } System.out.println("player instanceof AbstractClientPlayer is false"); return getDefaultSkin(player.getUUID()); } } public class PonyPlayerRenderer extends LivingEntityRenderer<AbstractClientPlayer, PlayerModel<AbstractClientPlayer>> { private final PlayerModel<AbstractClientPlayer> earthModel; private final PlayerModel<AbstractClientPlayer> pegasusModel; private final PlayerModel<AbstractClientPlayer> unicornModel; public PonyPlayerRenderer(final EntityRendererProvider.Context context, final boolean slim) { super( context, slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)), 0.5f ); System.out.println("creating new PonyPlayerRenderer"); this.earthModel = slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); this.pegasusModel = new PegasusModel(context.bakeLayer(PegasusModel.LAYER_LOCATION)); this.unicornModel = new UnicornModel(context.bakeLayer(UnicornModel.LAYER_LOCATION)); } @Override public void render(final AbstractClientPlayer player, final float entityYaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource buffer, final int packedLight) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); this.model = switch (race) { case PEGASUS -> pegasusModel; case UNICORN -> unicornModel; case EARTH -> earthModel; }; super.render(player, entityYaw, partialTicks, poseStack, buffer, packedLight); } @Override public ResourceLocation getTextureLocation(final AbstractClientPlayer player) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); return switch (race) { case EARTH -> fromNamespaceAndPath(MODID, "textures/entity/earth_pony.png"); case PEGASUS -> fromNamespaceAndPath(MODID, "textures/entity/pegasus.png"); case UNICORN -> fromNamespaceAndPath(MODID, "textures/entity/unicorn.png"); }; } } @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { // mod bus render registration config @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onRegisterRenderers(final EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(EntityType.PLAYER, PonyPlayerWrapperRenderer::new); System.out.println("onRegisterRenderers end"); } } Method onRegisterRenderers() is called and I can see it being logged. But when I enter the world, my PonyWrapperRenderer render() method doesn't ever seem to be called. I also tried to put my renderer to EntityRenderDispatcher's playerRenderers via reflection: @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onClientSetup(final FMLClientSetupEvent event) { event.enqueueWork(() -> { try { final EntityRenderDispatcher dispatcher = Minecraft.getInstance().getEntityRenderDispatcher(); final Field renderersField = getEntityRenderDispatcherField("playerRenderers"); final Field itemInHandRenderer = getEntityRenderDispatcherField("itemInHandRenderer"); @SuppressWarnings("unchecked") final Map<String, EntityRenderer<? extends Player>> playerRenderers = (Map<String, EntityRenderer<? extends Player>>)renderersField.get(dispatcher); final PonyPlayerWrapperRenderer renderer = new PonyPlayerWrapperRenderer( new EntityRendererProvider.Context( dispatcher, Minecraft.getInstance().getItemRenderer(), Minecraft.getInstance().getBlockRenderer(), (ItemInHandRenderer)itemInHandRenderer.get(dispatcher), Minecraft.getInstance().getResourceManager(), Minecraft.getInstance().getEntityModels(), Minecraft.getInstance().font ) ); playerRenderers.put("default", renderer); playerRenderers.put("slim", renderer); System.out.println("Player renderers replaced"); } catch (final Exception e) { throw new RuntimeException("Failed to replace player renderers", e); } }); } private static Field getEntityRenderDispatcherField(final String fieldName) throws NoSuchFieldException { final Field field = EntityRenderDispatcher.class.getDeclaredField(fieldName); field.setAccessible(true); return field; } } But I receive the error before Minecraft Client appears (RuntimeException: Failed to replace player renderers - from ClientRenderers onClientSetup() method - and its cause below): java.lang.IllegalArgumentException: No model for layer anotherlittlepony:earth_pony#main at net.minecraft.client.model.geom.EntityModelSet.bakeLayer(EntityModelSet.java:18) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.EntityRendererProvider$Context.bakeLayer(EntityRendererProvider.java:69) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerRenderer.<init>(PonyPlayerRenderer.java:32) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerWrapperRenderer.<init>(PonyPlayerWrapperRenderer.java:24) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.ClientRenderers.lambda$onClientSetup$0(ClientRenderers.java:79) ~[main/:?] {re:classloading} ... 33 more Problem appears when EntityRendererProvider context tries to bakeLayer with my model layer location: new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); // PonyPlayerRenderer.java:32 public class PonyModel extends PlayerModel<AbstractClientPlayer> { // the model class itself public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation( ResourceLocation.fromNamespaceAndPath(MODID, "earth_pony"), "main" ); public PonyModel(final ModelPart root) { super(root, false); } public static LayerDefinition createBodyLayer() { // some CubeListBuilder stuff for model appearance } } Textures PNGs are placed at: resources/assets/[my mod id]/textures/entity. My forge version is 1.20.1. Would appreciate any help.
    • Well, a bit more information about what you're trying to do would be helpful. e.g. why you're trying to use "INVOKE_ASSIGN" instead of "INVOKE". "INVOKE_ASSIGN" calls your code after the "target" is called and its value is stored, if applicable. "INVOKE" calls your code before the target is called. "target" expects a fully qualified name, as per the SpongePowered docs, if that name is going to be remapped (which it will be if your injecting into Minecraft itself and not another mod). For more information on fully qualified names versus canonical names, see the Java specifications. Here's an example of a working "@At" from my own code that targets the "getClosestsVulnerablePlayerToEntity" call inside a mob's logic: @At(value = "INVOKE_ASSIGN", target = "net.minecraft.world.World.getClosestVulnerablePlayerToEntity(Lnet/minecraft/entity/Entity;D)Lnet/minecraft/entity/player/EntityPlayer;") Hope this helps!
    • Ran it one more time just to check, and there's no errors this time on the log??? Log : https://mclo.gs/LnuaAiu I tried allocating more memory to the modpack, around 8000MB and it's still the same; stopping at "LOAD_REGISTRIES". Are some of the mods clashing, maybe? I have no clue what to do LOL
  • Topics

×
×
  • Create New...

Important Information

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