CodeChicken Lib 1.8.+

CodeChicken Lib 1.8.+

128M Downloads

Resource Leak in OBJLoader

ichttt opened this issue ยท 2 comments

commented

Hi, you have a resource leak because an IResource isn't closed here:

return parseModels(Minecraft.getMinecraft().getResourceManager().getResource(res).getInputStream(), vertexMode, coordSystem);

Just close your IResouce in a finally block or with try-with-resources, and you will be fine.
These leaks can be observed by forcing debug to be enabled for minecraft loggers using the log4j xml

commented

Hey, was just wondering if there was any progress made with this. Many new versions have been uploaded to curseforge since this post, but I couldn't find a changelog.

I'm currently using Ancient Warfare 2, and wondering how much this could affect me.

commented

Completely forgot about this issue, 1663747. Currently getting back-end stuff ready for the next release, doing some infrastructure changes.