[Solved] Unable to produce file with writeImageFile

Actually you were so right on the e.printStackTrace();

:slight_smile:

I get the following

    java.nio.BufferUnderflowException
    	at java.nio.DirectIntBufferU.get(DirectIntBufferU.java:271)
    	at java.nio.IntBuffer.get(IntBuffer.java:715)
    	at com.jme3.util.Screenshots.convertScreenShot2(Screenshots.java:50)
    	at com.jme3.system.JmeDesktopSystem.writeImageFile(JmeDesktopSystem.java:94)
    	at com.jme3.system.JmeSystem.writeImageFile(JmeSystem.java:137)
    	at Utils.AtlasGenerator.writeImageFile(AtlasGenerator.java:229)
    	at Utils.AtlasGenerator.simpleInitApp(AtlasGenerator.java:199)
    	at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:220)
    	at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
    	at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
    	at java.lang.Thread.run(Thread.java:745)

Which solution I’m trying to read from