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
[1.10.2] java.lang.NullPointerException: Tessellating CCL block in world #940
Comments
I took a stab at debugging this - codechicken.lib.render.BlockRenderer$BlockFace.loadCuboidFace looks like this:
line 53 is the assignment to x2, indicating that the Cuboid6 exists, but c.max is null (while c.min is non-null). I could only think of two ways that could happen:
Thus, I tried changing RenderBlocks.setBounds to copy the values from the passed Cuboid6 into local variables, then creating a new Cuboid6 with them to set the static "bounds" variable with. If way 1 was correct, the game would now crash in setBounds instead of in renderFace, and I'd be able to track down why only the max vector was null); if way 2 was correct, the game would no longer crash this way at all. Instead, it crashed in the same place as before, leaving me very confused. Adding a try-catch to squelch the NPE for the first line of RenderBlocks.renderFace (which isn't good practice, I know) seems to at least prevent this crash and make the mod technically playable for now. |
Stop doing "i fixed it locally but i won't pull request". |
Sorry, but
Edit: I thought of a slightly less-hacky way to deal with this bug (still not a true fix IMO), and I've deleted my repo and re-forked (which picked up the extra branches). I'll set up the pull request soon with at least my other fixes. If my new idea works, I'll include it as well. |
😞 |
Try/Catch Throwable on everything. |
After building a steam turbine and a wiremill, while preparing to craft a polarizer, I started getting crashes like this every 5-10 minutes:
Initially I thought it might be related to updating Forge, but rolling back to Forge build 2079 (as listed in GT 5.10's build.properties) didn't help.
Edit: also tried rolling back CodeChickenLib to build 178 (the closest build after 162 that build.properties lists that I could find on CurseForge), and it still crashed.
The text was updated successfully, but these errors were encountered: