Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Forge ArrayIndexOutOfBoundsException when stack tracing
Sign in to follow this  
Followers 1
DarkGuardsman

Forge ArrayIndexOutOfBoundsException when stack tracing

By DarkGuardsman, April 25, 2013 in Support & Bug Reports

  • Reply to this topic
  • Start new topic

Recommended Posts

DarkGuardsman    61

DarkGuardsman

DarkGuardsman    61

  • World Shaper
  • DarkGuardsman
  • Forge Modder
  • 61
  • 1479 posts
Posted April 25, 2013

Forge build 660+

This is the strangest error i've gotten and i have no clue how to fix it. When my dev environment crashes i don't get a stack trace but rather a crash when it tries to make one. I've tried several version of forge between 650-674. I've re-install mcp, eclipse, java tested with and without mod code. In debug it will crash with the error bellow or a memory leak.

 

http://pastebin.com/zMhrZUHB

 

If you need anymore info i can give a setup of my dev environment and how i use it.

  • Quote

Share this post


Link to post
Share on other sites

DarkGuardsman    61

DarkGuardsman

DarkGuardsman    61

  • World Shaper
  • DarkGuardsman
  • Forge Modder
  • 61
  • 1479 posts
Posted April 25, 2013

Forge build 660+

This is the strangest error i've gotten and i have no clue how to fix it. When my dev environment crashes i don't get a stack trace but rather a crash when it tries to make one. I've tried several version of forge between 650-674. I've re-install mcp, eclipse, java tested with and without mod code. In debug it will crash with the error bellow or a memory leak.

 

http://pastebin.com/zMhrZUHB

 

If you need anymore info i can give a setup of my dev environment and how i use it.

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1519

LexManos

LexManos    1519

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1519
  • 8573 posts
Posted April 25, 2013

Its been fixed for a while now, update

  • Quote

Share this post


Link to post
Share on other sites

DarkGuardsman    61

DarkGuardsman

DarkGuardsman    61

  • World Shaper
  • DarkGuardsman
  • Forge Modder
  • 61
  • 1479 posts
Posted April 26, 2013

ok and thank you got it working after i updated for the 3rd time. However, is there any issue with the newest version memory leaking on world creation?

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1519

LexManos

LexManos    1519

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1519
  • 8573 posts
Posted April 26, 2013

No unless youre a modder ignore that message.

  • Quote

Share this post


Link to post
Share on other sites

DarkGuardsman    61

DarkGuardsman

DarkGuardsman    61

  • World Shaper
  • DarkGuardsman
  • Forge Modder
  • 61
  • 1479 posts
Posted April 26, 2013

No unless youre a modder ignore that message.

*cough cough* i'm a modder that why i'm asking since i have to try 3 or 4 times to get a test world going. As well i need to know the source to know if its forge or a mod so i don't spend all day looking for a bug i can't fix.

  • Quote

Share this post


Link to post
Share on other sites

LexManos    1519

LexManos

LexManos    1519

  • Reality Controller
  • LexManos
  • Forge Code God
  • 1519
  • 8573 posts
Posted April 26, 2013

Search the source for that message it's fairly obvious.

Throw a System.gc() there {I should really add in a force flag}

What happens is it kills all internal references to the World. And if no mod has a hard reference to the world {or entities or the like} the GarbageCollector will run and clean up the memory.

 

Sometimes, the GC doesn't run between the last reference drop and the check, depending on the GC's aggressiveness.

Which can cause false positives.

We don't want to force a run of the GC in the end user environment because that screws up the GC's heuristics and just makes it relaly inefficient. However in the dev env, if you toss a force in there and it's still spitting the message.

It means your mod somewhere has a leak.

  • Quote

Share this post


Link to post
Share on other sites

DarkGuardsman    61

DarkGuardsman

DarkGuardsman    61

  • World Shaper
  • DarkGuardsman
  • Forge Modder
  • 61
  • 1479 posts
Posted April 26, 2013

ok thanks not sure which mod as most of them do nothing on start up or on world gen. Only one i can think of would be ICBM...

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Jaffaaaaa
      ScreenGui does nothing

      By Jaffaaaaa · Posted 11 minutes ago

      bump. anyone help?
    • JMAS
      net.minecraftforge.oredict.OreDictionary missing from 1.14.4 MDK

      By JMAS · Posted 14 minutes ago

      Regarding the Oredict question above: NonNullList<ItemStack> seed = OreDictionary.getOres("seed");
    • Carbonx_09
      Minearchy | 1.14.4 Towny | Releasing Mid December | Balanced player economies | Join discord: discord.gg/vUEAanV

      By Carbonx_09 · Posted 25 minutes ago

      Hey guys, you should definitely join our discord server! We're going to be releasing in one week! https://discord.gg/vUEAanV
    • solitone
      Distinguish singleplayer vs. multiplayer

      By solitone · Posted 45 minutes ago

      @Override public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand) { // [...] String separator = getSeparator(); String scriptName = nbtTagCompound.getString("scriptName"); String scriptPath = "pythontool" + separator + scriptName; proxy.runPython(world, player, scriptPath); // [...] }   ^^^ This is how I refactored onItemRightClick(). The runPython() method does nothing on the dedicated server, while on the client:   public class ClientOnlyProxy extends CommonProxy { // [...] @Override public void runPython(World world, EntityPlayer player, String scriptPath) { super.runPython(world, player, scriptPath); if (world.isRemote) { // client side if (!Minecraft.getMinecraft().isSingleplayer()) { // client talks to dedicated server (multiplayer game) ClientCommandHandler.instance.executeCommand(player, "/lpython " + scriptPath); } } else { // server side if (player.isSneaking()) { // shift pressed. Run new parallel script Minecraft.getMinecraft().thePlayer.getServer().getCommandManager().executeCommand(player, "/apy " + scriptPath); } else { // shift not pressed. Cancel previous scripts and run new script world.getMinecraftServer().getCommandManager().executeCommand(player, "/python " + scriptPath); } } } }   I still need to figure out why they used two different approaches to execute commands on the integrated server--Minecraft.getMinecraft().thePlayer.getServer().getCommandManager().executeCommand() vs. world.getMinecraftServer().getCommandManager().executeCommand().   public abstract class CommonProxy { // [...] public void runPython(World world, EntityPlayer player, String scriptPath) {} }   public class PythonTool { // [...] @SidedProxy(clientSide="pythontool.ClientOnlyProxy", serverSide="pythontool.DedicatedServerProxy") public static CommonProxy proxy; // [...] }   Are still there significant mistakes? Thanks again!
    • salvestrom
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By salvestrom · Posted 48 minutes ago

      Please show your render class. And please use the <> function in the reply box to copy and paste your class. Don't just use screenshots.
  • Topics

    • Jaffaaaaa
      1
      ScreenGui does nothing

      By Jaffaaaaa
      Started Yesterday at 07:03 PM

    • JMAS
      5
      net.minecraftforge.oredict.OreDictionary missing from 1.14.4 MDK

      By JMAS
      Started 4 hours ago

    • Carbonx_09
      1
      Minearchy | 1.14.4 Towny | Releasing Mid December | Balanced player economies | Join discord: discord.gg/vUEAanV

      By Carbonx_09
      Started Yesterday at 08:30 PM

    • solitone
      18
      Distinguish singleplayer vs. multiplayer

      By solitone
      Started December 5

    • DragonITA
      34
      [1.14.4] How to get Minecraft Horse model/texture to make a custom unicorn?

      By DragonITA
      Started Monday at 10:06 AM

  • Who's Online (See full list)

    • Sivonja
    • JMAS
    • Jaffaaaaa
    • dylandmrl
    • deerangle
    • loordgek
    • Pyre540
    • bluemetalsword
  • All Activity
  • Home
  • Minecraft Forge
  • Support & Bug Reports
  • Forge ArrayIndexOutOfBoundsException when stack tracing
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community