I’ve built the RedMonkey demo against the 3.1 nightly.
When I start it I get a black screen.
However, if I attach a VideoRecorderAppState AND set app.start(Type.OffscreenSurface);
Then I get a correctly recorded video (as with 3.0).
If I add a VideoRecorderAppState WITH app.start();
Then I get this:
GRAVE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.IllegalArgumentException: Width (0) and height (256) must be > 0
at java.awt.image.SampleModel.(SampleModel.java:126)
at java.awt.image.ComponentSampleModel.(ComponentSampleModel.java:146)
at java.awt.image.PixelInterleavedSampleModel.(PixelInterleavedSampleModel.java:87)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:641)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:278)
at java.awt.image.BufferedImage.(BufferedImage.java:399)
at com.jme3.app.state.VideoRecorderAppState$WorkItem.(VideoRecorderAppState.java:207)
at com.jme3.app.state.VideoRecorderAppState$VideoProcessor.initialize(VideoRecorderAppState.java:261)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:999)
at com.jme3.renderer.RenderManager.render(RenderManager.java:1086)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:260)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:152)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:192)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:231)
at java.lang.Thread.run(Thread.java:745)
No, I meant the app sets display settings to false… but that’s because I was an idiot and didn’t notice it was commented out. The code that’s crashing is getting its width and height from the camera… and I thought maybe the AppSettings had loaded bad values for resolution from a previous run and that popping up the settings dialog might reset those.
It still could be related, I guess. Maybe try to switch resolutions? I’m kind of at a loss.