-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Crash] Rendering issue with any book #64
Comments
I cannot think of any way that setting could've end up being Can you tell me what other mods you have installed if any? Edit: |
I can see only one* way how this field could be Do you have any mod that changes, replaces or skips the title screen? Looking through your mod list (which is at the end of the crash log btw, Bernasss), nothing imediately jumps out at me.
That would make sense. Resetting the config sets the sorting order to a valid value, until you restart Minecraft, which I assume is "after some time". I also assume by "I have no idea how to reproduce" you mean this doesn't happen every play session? Actually, our Mixin has priority 10, which is extremely high, so maybe I'm wrong? (*) This could also happen if the config is loaded on another thread than the Render thread (where it crashed on) - but I don't see any reason why that would be the case, even in modded scenarios. There's also the exceedingly unlikely possibility that some other mod tries to modify Better Enchanted Books via MixinSquared... nah. |
I created a small debug release which puts a bunch of log statements. That should help confirm the suspicion. https://github.com/Fourmisain/BetterEnchantedBooks/releases/tag/debug @FrosteByte Can you run this, make it crash and paste the |
Wow, I'm so sorry I wasn't available while you were working on this! Yeah, I use a lot of mods... I figured out how to reproduce the crash: launch directly to the world via the quick play options in the default minecraft java launcher. When I launch the game normally and navigate to any world and find/hold/use enchanted books, there are no issues. When I use quick play with any version or config of BEbooks the game runs normally until any enchanted book needs to be rendered and then it crashes. I ran a dozen tests to check different variables so let me know if you want more info. Now that I know what the issue is and have a bypass I'm good to go in the meantime :) |
Well that does it!
You were right on the mark on this one hahaha I'll see what I can do to make sure it loads correctly everytime! |
Well, damn! Ah, and here's why, this feature was just introduced last month: Wonder how this actually works, since I couldn't find any command line options (yet).
I think the second easiest late init point is using a resource reloader, I added one in Falling Leaves for example. |
Yeah I was unaware of it myself, apparently there are some launch arguments that enable it, but I haven't had the time to fully look into more of it myself. But yeah I was thinking of trying to get a loading point directly connected with world loading, since there's no way they can skip that step 😂 |
Don't forget the config needs to load before the config screen is opened too (which is why title screen was convenient). |
Yep, can confirm that a synchronous client resource reload listener (that's a mouth full) works for both the title screen and quick play world load. Adds a Fabric API dependency though - which shouldn't really be an issue. |
I tested some alternatives. The best one I found is a simple mixin into
This should run after every mod's This should also work for every Minecraft version, which is a big plus compared to the other methods I tested (looking at you, In before Mojang adds a way to add custom enchantments via data packs soon - wouldn't be surprised, they are cooking! 😄 |
Fix #64, update build, compatibility with 1.20-1.20.4
I do expect that eventually, judging by the way they have been adding data pack functionality 🤣 |
When I open any inventory with an enchanted book, minecraft crashes and reports that mode is null. I reverted all mod settings to default and that seemed to work for some time, but now I get the crash again. I have no idea how to reproduce or troubleshoot.
crash-2024-03-26_10.04.16-client.txt
The text was updated successfully, but these errors were encountered: