question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Minecraft crashes sometimes when using the jetpack (ClassCastException)

See original GitHub issue

Issue description:

Minecraft crashes when using the Mekanism Jetpack, seemingly at random, but always while actively using the jetpack in normal mode. This exact Exception has occurred maybe a dozen times now, I can’t reproduce it reliably and sometimes I can use the jetpack for more than a few minutes without any problems:

java.lang.ClassCastException: net.minecraft.item.AirItem cannot be cast to mekanism.common.item.gear.ItemMekaSuitArmor

I am using Mekanism as part of the TNP Limitless 3 modpack, so this could very well be caused by another mod. I have not, however, modified the configs or added any other mod to the pack like Optifine or one of the other usual suspects. At least one other person seems to have had an issue with the jetpack causing crashes in the same modpack, but they have not provided a log of that particular crash unfortunately, so I can’t be sure that this is the same issue.

Steps to reproduce:

  1. Equip hydrogen-powered jetpack
  2. Fly around randomly for a few minutes and hope for a crash 🤷

Version (make sure you are on the latest version before reporting):

Forge: 35.1.13 Mekanism: 1.16.4-10.0.18.445 Modpack: TNP Limitless 3 - 1.8.2

Crash log

Link to crash log Link to crash log (without any added mods)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
have-a-boycommented, Dec 25, 2020

Honestly I think another mod is probably at play here as it shouldn’t be able to get to that part of the code if the stack is empty (hence air), but it may be worthwhile when I get a chance to work on 10.0.19 to just add an extra safety check or two to prevent this.

Yeah, after looking at the code in question I can’t see how this should ever happen without some kind of outside interference. I’ll see if I can find out what’s causing this in the meantime, thanks a lot though.

0reactions
pupnewfstercommented, Dec 25, 2020

Honestly I think another mod is probably at play here as it shouldn’t be able to get to that part of the code if the stack is empty (hence air), but it may be worthwhile when I get a chance to work on 10.0.19 to just add an extra safety check or two to prevent this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jetpacks crashing the game? : r/feedthebeast - Reddit
I'm 95% on jetpack being a cause for the bug, since after switching I have not had a single crash (previously they came...
Read more >
Modded minecraft crashes on "Rendering item" - Java Edition ...
Unfortunately I'm running into a crash when loading the world with Quark Realistic as the terrain generator (which I want to use).
Read more >
Java Edition Game Crashes and Performance Issues FAQ
This article addresses Minecraft: Java Edition technical issues only. See Minecraft technical issues articles for help. This article...
Read more >
Hopper: java.lang.ClassCastException: cj cannot be cast to ch
Bug - A problem which impairs or prevents the functions of the product. MC-33467 Summoning a FireWork crash when using non-decimal colour values....
Read more >
The game crashed whilst unexpected error Error: java.lang ...
that "fix" doesn't work here though sadly. The game crashed whilst unexpected error Error: java.lang.ClassCastException: net.minecraft.client.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found