Print at Dec 15, 2025, 7:31:31 PM

Posted by robal at Mar 16, 2013, 3:59:34 PM
Sunflow exception when running 64-bit JRE7
Hi,

I've noticed that all Sunflow threads fail when trying to render on 64-bit JRE7.
SH3D doesn't show any errors (the render process is simply stalled). You need to look at java console to see it.

Exception:
Exception in thread "Thread-24" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.<init>(Unknown Source) at java.awt.image.Raster.createPackedRaster(Unknown Source) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source) at java.awt.image.BufferedImage.<init>(Unknown Source) at org.sunflow.image.readers.JPGBitmapReader.load(Unknown Source) at org.sunflow.core.Texture.load(Unknown Source) at org.sunflow.core.Texture.getBitmap(Unknown Source) at org.sunflow.core.Texture.getPixel(Unknown Source) at org.sunflow.core.shader.TexturedShinyDiffuseShader.getDiffuse(Unknown Source) at org.sunflow.core.shader.ShinyDiffuseShader.getRadiance(Unknown Source) at org.sunflow.core.shader.TexturedShinyDiffuseShader.getRadiance(Unknown Source) at org.sunflow.core.LightServer.shadeHit(Unknown Source) at org.sunflow.core.LightServer.traceReflection(Unknown Source) at org.sunflow.core.ShadingState.traceReflection(Unknown Source) at org.sunflow.core.shader.ShinyDiffuseShader.getRadiance(Unknown Source) at org.sunflow.core.LightServer.shadeHit(Unknown Source) at org.sunflow.core.LightServer.traceReflection(Unknown Source) at org.sunflow.core.ShadingState.traceReflection(Unknown Source) at org.sunflow.core.shader.MirrorShader.getRadiance(Unknown Source) at org.sunflow.core.LightServer.shadeHit(Unknown Source) at org.sunflow.core.LightServer.traceRefraction(Unknown Source) at org.sunflow.core.ShadingState.traceRefraction(Unknown Source) at org.sunflow.core.shader.GlassShader.getRadiance(Unknown Source) at org.sunflow.core.LightServer.shadeHit(Unknown Source) at org.sunflow.core.LightServer.traceRefraction(Unknown Source) at org.sunflow.core.ShadingState.traceRefraction(Unknown Source) at org.sunflow.core.shader.GlassShader.getRadiance(Unknown Source) at org.sunflow.core.LightServer.shadeHit(Unknown Source) at org.sunflow.core.LightServer.traceReflection(Unknown Source) at org.sunflow.core.ShadingState.traceReflection(Unknown Source) at org.sunflow.core.shader.GlassShader.getRadiance(Unknown Source) at org.sunflow.core.LightServer.shadeHit(Unknown Source)


The same render works fine when run on 32-bit JRE7.