Jump to content

Forge ArrayIndexOutOfBoundsException when stack tracing


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.



×
×
  • Create New...

Important Information

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