FlansMods / FlansMod

Flan's Mod for Minecraft
Other
233 stars 149 forks source link

game crashes with galacticraft, shooting villagers crashes game #997

Open paradoxmeem opened 5 years ago

paradoxmeem commented 5 years ago

To Reproduce Steps to reproduce the crash:

  1. shoot any galacticraft/extra planets mob, npc or otherwise
  2. while shooting game most of the time crash, whether it be before the mob fully dies or immediately afterwords
  3. sometimes shooting will not result in crashing, but this almost never happens

Screenshots If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

Additional context Add any other context about the problem here. randomly occurs while shooting, sometimes when they die or randomly during when they are shot, vehicle guns/turrets do not have this issue Add a link to a gist of the crash. https://gist.github.com/paradoxmeem/0fc0346ea03730946326568268d4842b

ChrisLane commented 5 years ago

I wasn't able to reproduce this myself with the same versions of Forge, Flan's Mod and Galacticraft. It looks like the exception is being thrown while running the Galacticraft BasicBlock code, you may want to go ask them about this.

Closing for now.

ChrisLane commented 5 years ago

Just found this issue (https://github.com/micdoodle8/Galacticraft/issues/3530) I'll look further into this.

paradoxmeem commented 5 years ago

thanks, these are both great mods and having them atleast working together would be a dream.

ChrisLane commented 5 years ago

I still wasn't able to cause the crash myself but took a stab at fixing it. Could you try the version included in the attached zip and let me know if the problem persists, please? Flan's Mod-1.12.2-5.6.jar.zip

paradoxmeem commented 5 years ago

i will try, but i wont have access to a computer for ~30 min

paradoxmeem commented 5 years ago

so sorry, accidentally fell asleep. issue keeps occurring, even with the mods only by themselves. i should've put the crash report here earlier, sorry The game crashed whilst unexpected error Error: java.lang.ArrayIndexOutOfBoundsException: -3

ChrisLane commented 5 years ago

@paradoxmeem What gun are you shooting? What type of ammo? What world are you in? What block is the bullet hitting?

paradoxmeem commented 5 years ago

this occurs with every gun so far that I've tested, which is an m1014 or so, spas 12 and an mp5. theirs probably a few others I've forgotten. normal version of the ammo for every gun mentioned. these all happen in different/new worlds bullet normally hits person then immediately crashes, it doesn't matter what it hits but the blocks are moon surface rock and tin decoration block normally

paradoxmeem commented 5 years ago

tested with desert eagle in a completely new pack, issue persists

ChrisLane commented 5 years ago

I've still been unable to reproduce this crash in my local single-player and so am unsure how to fix it. A simple fix for the crash on Galacticraft's side could be to add some bounds checking.

If you could update the original crash paste link with one containing the crash log from when you only had Galacticraft and Flan's Mod installed, that may help in future.

paradoxmeem commented 5 years ago

i can do that, but not at this moment. sorry.

paradoxmeem commented 5 years ago

https://gist.github.com/paradoxmeem/e7ad4dcb9ada803bf40674a15e6ab044

TwiliDiamondOcelot commented 5 years ago

Was going to make a similar issue, but for me I was shooting a ordinary vanilla skeleton and I was using an Olympia, although there were Galacticraft ore on screen. This is with flans 5.6 and the most recent stable version of Galacticraft. These are the crash report files; it happened twice for me. I'm not sure how to upload them to GitHub. crash-2019-07-25_14.39.52-client.txt crash-2019-07-27_11.31.22-client.txt