Jump to content

1.20.1 Crash "Cannot invoke "net.minecraft.client.player.LocalPlayer.m_6117_()" because "this.f_91074_" is null"


Recommended Posts

Posted (edited)

Forge 47.2.17

I am tearing my hair out over this one. I am having an issue where something in my modded instance is causing the mod resources to fail at loading. Each time this happens, I get a notification of "Resource reload failed," and some of the time it crashes as well. When it does not crash, my Mods screen shows only Minecraft and Forge. When I next launch, all of my resourcepacks are reset to default. I have been troubleshooting this for literal days now so I may get at this out of order, but I'll do my best. Firstly, here is the crash report and the associated latest.log: https://gist.github.com/katubug/04d946d2879dbb9d6abaf1cb923ebca0

Initially it was only happening about once every ten or so launches, which made it insanely hard to troubleshoot. I googled the issue and only found one relevant post, which stated that it was due to a mod being incompatible with recent forge updates. The post suggested doing a binary search for the offending mod. Hard to do with an inconsistent crash, so I gave up for a bit.

Then I found a way to replicate it reliably - I used a mod called Resource Pack Overrides to set my game to apply all my resource packs by default. Now that it was happening every launch, I did the binary search and I THOUGHT I'd found the offending files: Dramatic Doors and Dynamic View. I removed them both and everything was fine...until I zipped up the pack and sent it to my sibling. They still got the resource reload failed and the crash. At this point I am still launching fine on my PC, but on theirs the exact same pack gives this error.

I also googled "resource reload failed," and many of the posts attributed this error to a resourcepack being too large, or Optifine. I do not have optifine, and the issue occurred periodically even without resource packs applied. That brought me to believe that perhaps there was something in the mod_resources which was causing the error. My sibling's PC is less powerful than mine, so that could explain why they're crashing but I'm not.

I have been combing the logs, thought I'd isolated the incident to being related to the Supplementaries mod or KubeJS - but in both cases I now believe they were just providing error information after something else went wrong. Here is a crash and latest.log of an instance with Supplementaries removed: https://gist.github.com/katubug/effe28a9a4d36f7378fd8161d6495741

It seems as if the game is trying to load mod resources multiple times and then breaking. I am at my wits' end. I have ended up reporting this to so many places who ended up not being the culprit, lol. Please, someone tell me you have a fix, a lead, anything. Thank you.

Edited by HeyKatu
Posted

I removed the Rubidium addon as it apparently doesn't work with Embeddium.

I disabled the Embeddium mods and Oculus and indeed, the crash has stopped. Added them back in to be sure, crashed again. Removed the other mods with Embeddium and Oculus in - crashed. Or, well, not always a full crash, sometimes just the "resource reload failed."

Tested with just Oculus, no Embeddium, no crash. I'll have to check with my other users to see if it fixes theirs as well, but this may be the solution! Fingers crossed.

Posted

After discussing this with the Embeddium dev for a while, it seems that this probably isn't the culprit.

They said: "what I suspect is happening is that something else goes wrong internally and closes the resource pack zip file, without printing an error.

then later the next subsystem to access the resource pack crashes with the "zip file closed" exception.

note that that is just an educated guess, based on the fact that the crash makes no sense without a preceding error."

I mentioned the Dramatic Doors thing fixing it for me, and they then said "ok yeah if you can remove two distinct mods like that (embeddium/dramatic doors) and they both solve the problem, I'd guess it's related to load order."

Doing more testing now.

Posted (edited)

I had disabled and reenabled a few mods to find the crash.

Then activated everything - all mods, all resourcepacks - to replicate the crash to be certain... it didn't crash. So it's definitely not embeddium and frankly I have no idea what is even going on.

Embeddium dev said that suggests it's not even a load order issue, it's a race condition. Help is still very welcome.

Edited by HeyKatu
Posted (edited)

Still having the crash, still trying to troubleshoot. I managed to get it to only "Resource Reload Failed" as opposed to the full CTD, and had a look at the mods list. Most said they were "process_imc," but a handful said "error." Forge included. This occurs on 47.2.0 as well as 47.2.17. I reverted to an older version to see if it would help.

Here's that list: https://pastebin.com/Ha68X99Q

I don't know what they all have in common, but maybe someone smarter than me has an idea. I can confirm that every time the Resource Reload Failed occurs, it's the same mods erroring.

I've tried putting them in their own instance to test, but so far no crash. I'm also testing the main instance without them/adding them in one at a time. However, since the crash is alleviated simply by disabling apparently any mod, this is guesswork at best.

I will pay literal real world money to anyone who can fix this. I am losing my mind - I can't release a modpack with this crash active, and I have no other projects atm.

Edited by HeyKatu
Posted

So, hopefully a final update: the crash hasn't occurred in a while. I'm not 100% sure why, but I think it might have been an issue with the mod Merchant Markers. The reason I think that is because someone in their issue tracker reported this same problem (although they could have been mistaken, they didn't seem super knowledgeable). And the crash hasn't occurred since I removed the mod.

I feel it might still be too early to call it, but I wanted to update in case anyone finds this on google.

  • 2 months later...
Posted

I have had this issue off and on, and it's been a headache. Disabled merchant markers and i was able to load into game. I enabled merchant markers again but this time set show_on_minimap = false and I was able to load in. Disabling showing the markers on the minimap might be a fix if you want to use merchant markers.

  • Like 1
  • 2 months later...
Posted

For people coming across this issue: 

 

I solved it for my Modpack by disabling the Holiday hats feature in the config file of "Thermal Series". 

Apparently it is incompatible with some mods like "Creeper Overhaul"

  • 8 months later...
Posted
On 3/18/2024 at 1:35 AM, jadan1213 said:

I have had this issue off and on, and it's been a headache. Disabled merchant markers and i was able to load into game. I enabled merchant markers again but this time set show_on_minimap = false and I was able to load in. Disabling showing the markers on the minimap might be a fix if you want to use merchant markers.

thx !

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

    • Back then there was a number which determined the tier of an item and block. If the block tier is lower or equal to the item number, the block would be mined. this however, has changed and now it goes by "needs_netherite_tool" which is fine, until you realized that some mods had items and blocks that exceeded these values. You can make you own "needs_mod_tool" but I feel that this is more limiting(and just more work) than before. So is there anyway to use something similar to the old tier system while also still being compatible with a lot of other mod tools?
    • Well, when I log in to the server, sometimes within an hour, sometimes within a minute, the server closes and informs me that there was a Ticking entity error. Below is the crash report
    • Try switching to Windowed or Borderless Window mode in Minecraft. These modes make it easier for the recorder to capture gameplay, as it still has access to the display without the game taking up all of the graphics resources.
    • This forum is for Forge, not NeoForge. Please go to them for support.
    • Forge version: 55.0.0 Minecraft version: 1.21.5 Downloads: As this is the start of a new version, it is recommended that you check the downloads page and use the latest version to receive any bug fixes. Downloads page Intro: Good evening! Today, we have released our initial build of Forge 55.0 for Minecraft 1.21.5. 1.21.5 is the newest member of the 1.21 family of versions, which was released yesterday on March 25, 2025. As a reminder, the first minor (X.0) of a Forge version is a beta. Forge betas are marked as such on the bottom left of the title screen and are candidates for any breaking changes. Additionally, there are a couple of important things to note about this update, which I've made sure to mention in this post as well. Feel free to chat with us about bugs or these implementation changes on GitHub and in our Discord server. As always, we will continue to keep all versions of 1.21 and 1.20 in active support as covered by our tiered support policy. Cheers, happy modding, and good luck porting! Rendering Refactor For those who tuned in to Minecraft Live on March 22, 2025, you may already know that Mojang have announced their intention to bring their new Vibrant Visuals overhaul to Java in the future. They've taken the first steps toward this by refactoring how rendering pipelines and render types are handled internally. This has, in turn, made many of Forge's rendering APIs that have existed for years obsolete, as they (for the most part) can be done directly in vanilla. If there was a rendering API that was provided by Forge which you believe should be re-implemented, we're happy to discuss on GitHub through an issue or a pull request. Deprecation of weapon-like ToolActions In 1.21.5, Minecraft added new data components for defining the characteristics of weapons in data. This includes attack speed, block tags which define efficient blocks, and more. As such, we will begin marking our ToolActions solution for this as deprecated. ToolActions were originally added to address the problem of creating modded tools that needed to perform the same actions as vanilla tools. There are still a few tool actions that will continue to be used, such as the shears tool action for example. There are some existing Forge tool actions that are currently obsolete and have no effect given the way the new data components are implemented. We will continue to work on these deprecations and invite you to chat with us on GitHub or Discord if you have any questions.
  • Topics

×
×
  • Create New...

Important Information

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