Stack Overflow with colors
Charnuz opened this issue ยท 2 comments
This happens when you open your inventory
MC 1.12.2
Forge version 14.23.5.2770
JAOPCA 1.12.2-2.2.8.95
Reported exception thrown! net.minecraft.util.ReportedException: Rendering screen at net.minecraft.client.renderer.EntityRenderer.func_181560_a(EntityRenderer.java:1151) at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1118) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397) at net.minecraft.client.main.Main.main(SourceFile:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.StackOverflowError at java.awt.image.Raster.createInterleavedRaster(Raster.java:641) at java.awt.image.Raster.createInterleavedRaster(Raster.java:278) at java.awt.image.BufferedImage.<init>(BufferedImage.java:399) at thelm.jaopca.ore.OreColorer.getBufferedImage(OreColorer.java:156) at thelm.jaopca.ore.OreColorer.getColor(OreColorer.java:54) at thelm.jaopca.ore.OreEntry.getColor(OreEntry.java:119) at thelm.jaopca.proxy.ClientProxy$2.func_186726_a(ClientProxy.java:43) at net.minecraft.client.renderer.color.ItemColors.func_186728_a(ItemColors.java:148) at thelm.jaopca.ore.OreColorer.getColorMultiplier(OreColorer.java:177) at thelm.jaopca.ore.OreColorer.getColor(OreColorer.java:53) at thelm.jaopca.ore.OreEntry.getColor(OreEntry.java:119) at thelm.jaopca.proxy.ClientProxy$2.func_186726_a(ClientProxy.java:43) at net.minecraft.client.renderer.color.ItemColors.func_186728_a(ItemColors.java:148)
I have some more information about this finally. The issue seems to be caused by there being only items by JAOPCA for a certain material.
For example, if there are no items in the ore dictionary for "dustRedstone" except for items by JAOPCA, then we get stuck in an infinite loop of trying to get the color. In this case, the color should default to the configured material color.