Print at Dec 16, 2025, 11:35:01 AM
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.

Posted by Puybaret at Mar 16, 2013, 4:13:38 PM
Re: Sunflow exception when running 64-bit JRE7
As a 64-bit program consumes more memory than a 32-bit program, try to increase the maximum amount of memory used by Sweet Home 3D, following the instructions in the FAQ How can I adjust the memory used by Sweet Home 3D?.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator