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
Error: "Already building!" caused by Forge using FontRender.charWidth #438
Comments
Can you post the game output (error log)? |
This is the crash report. The issue definitely stems from other mods that have invalid entities. But the game doesn't crash without optifine. Note that this issue started with forge version 2223 for 1.11.2. Related Forge issue: MinecraftForge/MinecraftForge#3328 This is probably the important bit:
|
i am seeing the same issue -- but only when trying to search for something in JEI. |
@kzintiwife The "Already building!" crash is not the real crash. It is a side effect of another crash which has been suppressed. The details of the real crash are shown in the game output (error log). |
The SimpleModelFontRenderer is acessing the private field "charWidth" of FontRenderer: |
Forge should use FontRenderer.getCharWidth(char) like everyone else and not abuse AT for accessing private fields. Blame @RainWarrior. |
renderDefaultChar is using the array, because index decoding is already done where it's called (renderChar), so the subclass is using the field too. I don't see a trivial fix, but I'll look into it. |
OptiFine changes it to float[] to properly support HD Fonts and the reobfuscation does not recognize it because of the changed signature. I could add a new "float[] charWidthFloat" and keep the old charWidth with rounded values for background compatibility, but that would be a hack. |
The index decoding is straightforward (one indexof and several compares) so it should be much faster than the OpenGL call later. |
as a work around for the time being - can users turn off custom fonts and it will work? |
Turning Custom Fonts OFF is not going to help. Either Forge or OptiFine has to be changed to work differently. |
Are there any news on this? I guess I could hide the broken items but I would like to know when they get fixed. At least a config option to disable HD font bytecode modification might work out better? If a PR for Forge is required I can take a crack at it. |
I haven't heard anything recently, but backing down to Forge 2220 allows me to continue playing with Optifine and JEI both installed. However, I also had to downgrade a few other mods that wanted newer versions of Forge. :( |
I could add a workaround if @RainWarrior does not find a solution. |
Updated preview B7 for 1.11.2. |
This seems to fix things when using the B7 preview for MineCraft 1.11.2, Forge 2226, and JEI. |
Any chance this got (or will get) back ported to 1.10.2 Opti? |
Hello, after 5 years I found this crash at the first time in 1.12.2 with G6-pre1 with Forge 2860. (+ ~190 mods) How is the state from this crash ? |
When both "Just Enough Items" (JEI) and "Optifine" mods are loaded, attempting to open any User Interface window (Inventory, Chest, or device UI's from other mods) will cause the game to crash.
crash-2017-01-24_23.48.00-client.txt
I've already reported the issue with the JEI authors at: mezz/JustEnoughItems#706
Personally, I suspect one of my many other mods has a model that is not rendering correctly in the UI screens or more likely it is not rendering correctly in the JEI interface which accompanies many UI screens.
The text was updated successfully, but these errors were encountered: