Random Game crash on startup – Framebuffer object format is unsupported by the video hardware

Hello,



This crash is Random, but happens very often. Sometimes it crashes, sometimes my Game’s framerate drops dramatically, and sometimes it works smoothly. Restarting the whole platform helps fixing (temporaly) the problem.



I reproduce this crash everytime with that exemple, in Windowed mode (for some reason it works in fullscreen…) :

Google Code Archive - Long-term storage for Google Code Project Hosting.



Here’s the console log :

27 mai 2011 01:40:41 com.jme3.system.JmeSystem initialize
INFO: Running on jMonkey Engine 3 Alpha 0.6
27 mai 2011 01:40:41 com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory #1: file:/C:/Programming/jmonkeyplatform/jmonkeyplatform/libs/
27 mai 2011 01:40:41 com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory #2: S:_jMonkeytest
27 mai 2011 01:40:41 com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory #3: S:_jMonkeytest
27 mai 2011 01:40:41 com.jme3.system.lwjgl.LwjglAbstractDisplay run
INFO: Using LWJGL 2.7.1
27 mai 2011 01:40:41 com.jme3.system.lwjgl.LwjglDisplay createContext
INFO: Selected display mode: 1280 x 720 x 0 @0Hz
27 mai 2011 01:40:42 com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread
INFO: Display created.
27 mai 2011 01:40:42 com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread
INFO: Adapter: mv2
27 mai 2011 01:40:42 com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread
INFO: Driver Version: 6.0.6000.16386
27 mai 2011 01:40:42 com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread
INFO: Vendor: NVIDIA Corporation
27 mai 2011 01:40:42 com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread
INFO: OpenGL Version: 3.3.0
27 mai 2011 01:40:42 com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread
INFO: Renderer: GeForce GTX 275/PCI/SSE2
27 mai 2011 01:40:42 com.jme3.system.lwjgl.LwjglAbstractDisplay initInThread
INFO: GLSL Ver: 3.30 NVIDIA via Cg compiler
27 mai 2011 01:40:42 com.jme3.system.lwjgl.LwjglTimer
INFO: Timer resolution: 1000 ticks per second
27 mai 2011 01:40:42 com.jme3.renderer.lwjgl.LwjglRenderer initialize
INFO: Caps: [FrameBuffer, FrameBufferMRT, FrameBufferMultisample, TextureMultisample, OpenGL20, OpenGL21, OpenGL30, OpenGL31, OpenGL32, ARBprogram, GLSL100, GLSL110, GLSL120, GLSL130, GLSL140, GLSL150, VertexTextureFetch, TextureArray, TextureBuffer, FloatTexture, FloatColorBuffer, FloatDepthBuffer, PackedFloatTexture, SharedExponentTexture, PackedFloatColorBuffer, TextureCompressionLATC, MeshInstancing, VertexBufferArray]
27 mai 2011 01:40:42 com.jme3.asset.DesktopAssetManager
INFO: DesktopAssetManager created.
27 mai 2011 01:40:42 com.jme3.renderer.Camera
INFO: Camera created (W: 1 280, H: 720)
27 mai 2011 01:40:42 com.jme3.renderer.Camera
INFO: Camera created (W: 1 280, H: 720)
27 mai 2011 01:40:42 com.jme3.input.lwjgl.LwjglMouseInput initialize
INFO: Mouse created.
27 mai 2011 01:40:42 com.jme3.input.lwjgl.LwjglKeyInput initialize
INFO: Keyboard created.
27 mai 2011 01:40:42 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
27 mai 2011 01:40:42 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
27 mai 2011 01:40:42 com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 1
27 mai 2011 01:40:42 com.jme3.material.MaterialDef
INFO: Loaded material definition: Unshaded
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Gui Node)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (BitmapFont) attached to this node (null)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (null) attached to this node (Statistics View)
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (Statistics View) attached to this node (Gui Node)
27 mai 2011 01:40:42 com.jme3.material.MaterialDef
INFO: Loaded material definition: Sky Plane
27 mai 2011 01:40:42 com.jme3.scene.Node attachChild
INFO: Child (Sky) attached to this node (Root Node)
27 mai 2011 01:40:43 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:44 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:44 com.jme3.material.MaterialDef
INFO: Loaded material definition: Phong Lighting
27 mai 2011 01:40:44 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:44 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: depth_write
27 mai 2011 01:40:44 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:44 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:44 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:45 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:45 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:45 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:45 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:46 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:46 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:46 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:46 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:47 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:47 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:48 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:48 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:48 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:48 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:48 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: depth_write
27 mai 2011 01:40:48 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:48 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:48 com.jme3.scene.plugins.ogre.MaterialLoader readPassStatement
ATTENTION: Unsupported pass directive: emissive
27 mai 2011 01:40:49 com.jme3.scene.plugins.ogre.MaterialLoader readTextureUnitStatement
ATTENTION: Unsupported texture_unit directive: colour_op
27 mai 2011 01:40:49 com.jme3.scene.Node attachChild
INFO: Child (wildhouse) attached to this node (main-scene_node)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-1) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-2) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-3) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-4) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-5) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-6) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-7) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-8) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-9) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-10) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-11) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-12) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-geom-13) attached to this node (main-ogremesh)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-ogremesh) attached to this node (wildhouse-entity)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (wildhouse-entity) attached to this node (wildhouse)
27 mai 2011 01:40:50 com.jme3.scene.Node attachChild
INFO: Child (main-scene_node) attached to this node (Root Node)
27 mai 2011 01:40:50 com.jme3.renderer.Camera
INFO: Camera created (W: 1, H: 1)
27 mai 2011 01:40:50 com.jme3.renderer.Camera
INFO: Camera created (W: 512, H: 512)
27 mai 2011 01:40:50 com.jme3.material.MaterialDef
INFO: Loaded material definition: Advanced Water
27 mai 2011 01:40:50 com.jme3.material.Material checkSetParam
ATTENTION: Material parameter m_ReflectionDisplace uses a deprecated naming convention use ReflectionDisplace instead
27 mai 2011 01:40:50 com.jme3.material.Material checkSetParam
ATTENTION: Material parameter m_FoamIntensity uses a deprecated naming convention use FoamIntensity instead
27 mai 2011 01:40:50 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform g_NormalMatrix is not declared in shader.
27 mai 2011 01:40:50 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform g_CameraPosition is not declared in shader.
27 mai 2011 01:40:50 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform g_WorldMatrix is not declared in shader.
27 mai 2011 01:40:50 com.jme3.renderer.lwjgl.LwjglRenderer updateUniformLocation
INFO: Uniform m_UseMaterialColors is not declared in shader.
27 mai 2011 01:40:51 com.jme3.renderer.lwjgl.LwjglRenderer setFrameBuffer
GRAVE: Problem FBO:
FrameBuffer[format=1280x720x1, drawBuf=0]
Depth => TextureTarget[format=Depth24]
Color(0) => TextureTarget[format=RGBA8]
27 mai 2011 01:40:51 com.jme3.app.Application handleError
GRAVE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
java.lang.IllegalStateException: Framebuffer object format is unsupported by the video hardware.
at com.jme3.renderer.lwjgl.LwjglRenderer.checkFrameBufferError(LwjglRenderer.java:1124)
at com.jme3.renderer.lwjgl.LwjglRenderer.setFrameBuffer(LwjglRenderer.java:1381)
at com.jme3.water.WaterFilter.preRender(WaterFilter.java:175)
at com.jme3.post.FilterPostProcessor.postQueue(FilterPostProcessor.java:159)
at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:717)
at com.jme3.renderer.RenderManager.render(RenderManager.java:742)
at com.jme3.app.SimpleApplication.update(SimpleApplication.java:249)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:158)
at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:203)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:221)
at java.lang.Thread.run(Thread.java:662)
BUILD SUCCESSFUL (total time: 16 seconds)

OS? OS version? Graphics card? Graphics card driver version? SVN version or Alpha-4? Anything? ^^

Yes sorry, first time I post here :slight_smile:



Windows Seven 64bits SP1.

GeForce GTX 275

Driver v3.5.797.0 (note it is the 3D Vision version of the driver)



It’s the Alpha-4 version downloaded as installer, not the SVN version.



Anything hmm, I didn’t have this problem with my previous install in February (Alpha-3 ?). It appeared in Alpha-4.

Also : Wow ! I love jMonkey :smiley:

Try using the driver from NVIDIA instead of the windows or vendor drivers:

http://www.nvidia.com/object/win7-winvista-64bit-270.61-whql-driver.html

Thank you for the help, Normen.



I just updated my driver.

It was an official NVidia 3D Vision driver v266.58

Nvidia unified both their common and 3D Vision driver in the 270 version… Now I run on 270.61.



I tried to reproduce the bug without success, which is a good news.



What about those LOGs from the demo code ?

ATTENTION: Unsupported pass directive: emissive


They are numerous and each takes a lots of time to appear (maybe 1/3 second each).
It feels like fighting with the graphic card, and Windows somtimes "blinks" during the process.

Hm, these are also random? It seems like your graphics card doesnt fully support directives but doesn’t say so :confused:

The blinking from Windows is Random :

The 3D window freezes for about 10 seconds (game loading), and windows blinks occasionnally one time, more rarely two times.

The LOGs “unsupported pass directive” are not random at all, I see them everytime in that PostWaterLake demo.

I don’t see them in my game though so it doesn’t bother me, but if it’s a bug I want to help hunting it :slight_smile:

Those LOGs appear on the line :

Spatial scene = assetManager.loadModel("main.scene");

Which means, if I understand well, that the scene contains elements my graphic card doesn't like, and jMonkey doesn't filter them out (?)