Group Admins

  • Avatar Image

Troubleshooting – General

Public Group active 1 hour, 3 minutes ago

Any questions related to jME problems that don’t fit any other catagories

(JME3) App throwing IllegalStateException (13 posts / 0 Voices)

← Group Forum   Group Forum Directory
  • Avatar Image Tavyr said 2 months ago:

    Whenever I try to run an app that I cleaned and built using the GDE on my desktop (running Win7 x64) I get an error:

    SEVERE Application 4:55:01 PM Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
    java.lang.IllegalStateException: Cannot render mesh without shader bound

    However, when I run the exact same app from the same .jar on my laptop (running WinXP x86) it loads and renders and plays just fine.

    Is my error because of the 64-bit OS or could it be a code problem?

  • Avatar Image normen (Developer) said 2 months ago:

    Do you have an OpenGL 2.0 compatible graphics card? Try updating the graphics drivers.

  • Avatar Image Tavyr said 2 months ago:

    I'm using a GTX 470 with the latest drivers, so it has support up to OpenGL 4.0.

  • Avatar Image Empire Phoenix said 2 months ago:

    does all jme test examples run on the pc? i8f not witch one are working, which one crash, and with which exception.

  • Avatar Image Fellkneul said 2 months ago:

    I'm currently facing the same problem. it used to work with Win Vista x86. However, it does not work with Win7 x64.

    All testfiles work fine.

    thanks in advance,
    Fellkneul

  • Avatar Image Tavyr said 2 months ago:

    The test files appear to be working just fine, just the app from my laptop threw the IllegalStateException.

    Edit: Actually the testFancyCar testfile did not work correctly, the steering and the acceleration were off, however it did not throw any exceptions.

  • Avatar Image Momoko_Fan (Developer) said 2 months ago:

    Can you post the entire log file (jme.log in project directory) up to and including the error?

  • Avatar Image Tavyr said 1 month, 4 weeks ago:

    Here's the log file of the app on my Win7 machine:

    INFO JmeSystem 5:29:49 PM Running on jMonkey Engine 3 ALPHA 0.50
    INFO Natives 5:29:49 PM Extraction Directory #1: file:/E:/dist/lib/
    INFO Natives 5:29:49 PM Extraction Directory #2: E:dist
    INFO Natives 5:29:49 PM Extraction Directory #3: E:dist
    FINE Natives 5:29:49 PM Copied lwjgl.dll to E:distlwjgl.dll
    FINE Natives 5:29:49 PM Copied OpenAL32.dll to E:distOpenAL32.dll
    INFO LwjglAbstractDisplay 5:29:49 PM Using LWJGL 2.4.2
    INFO LwjglDisplay 5:29:49 PM Selected display mode: 1680 x 1050 x 32 @60Hz
    INFO LwjglAbstractDisplay 5:29:50 PM Display created.
    FINE LwjglAbstractDisplay 5:29:50 PM Running on thread: LWJGL Renderer Thread
    INFO LwjglAbstractDisplay 5:29:50 PM Adapter: nvd3dumx,nvwgf2umx,nvwgf2umx
    INFO LwjglAbstractDisplay 5:29:50 PM Driver Version: null
    INFO LwjglAbstractDisplay 5:29:50 PM Vendor: NVIDIA Corporation
    INFO LwjglAbstractDisplay 5:29:50 PM OpenGL Version: 4.0.0
    INFO LwjglAbstractDisplay 5:29:50 PM Renderer: GeForce GTX 470/PCI/SSE2
    INFO LwjglAbstractDisplay 5:29:50 PM GLSL Ver: 4.00 NVIDIA via Cg compiler
    INFO LwjglTimer 5:29:50 PM Timer resolution: 1000 ticks per second
    FINER LwjglRenderer 5:29:50 PM VTF Units: 32
    FINER LwjglRenderer 5:29:50 PM Texture Units: 32
    FINER LwjglRenderer 5:29:50 PM Vertex Uniforms: 4,096
    FINER LwjglRenderer 5:29:50 PM Fragment Uniforms: 2,048
    FINER LwjglRenderer 5:29:50 PM Vertex Attributes: 16
    FINER LwjglRenderer 5:29:50 PM Varying Floats: 60
    FINER LwjglRenderer 5:29:50 PM Subpixel Bits: 8
    FINER LwjglRenderer 5:29:50 PM Preferred Batch Vertex Count: 1,048,576
    FINER LwjglRenderer 5:29:50 PM Preferred Batch Index Count: 1,048,576
    FINER LwjglRenderer 5:29:50 PM Maximum Texture Resolution: 16,384
    FINER LwjglRenderer 5:29:50 PM Maximum CubeMap Resolution: 16,384
    FINER LwjglRenderer 5:29:50 PM FBO RB Max Size: 16,384
    FINER LwjglRenderer 5:29:50 PM FBO Max renderbuffers: 8
    FINER LwjglRenderer 5:29:50 PM FBO Max Samples: 32
    FINER LwjglRenderer 5:29:50 PM FBO Max MRT renderbuffers: 8
    FINER LwjglRenderer 5:29:50 PM Samples: 0
    INFO Camera 5:29:50 PM Camera created (W: 1680, H: 1050)
    INFO LwjglMouseInput 5:29:50 PM Mouse created.
    INFO LwjglKeyInput 5:29:50 PM Keyboard created.
    FINER LwjglAudioRenderer 5:29:50 PM Audio Vendor: OpenAL Community
    FINER LwjglAudioRenderer 5:29:50 PM Audio Renderer: OpenAL Soft
    FINER LwjglAudioRenderer 5:29:50 PM Audio Version: 1.1 ALSOFT 1.7.411
    FINER DesktopAssetManager 5:29:50 PM Loaded Common/MatDefs/Gui/Gui.j3md with J3MLoader
    FINER DesktopAssetManager 5:29:50 PM Loaded Interface/Fonts/Default.png with AWTLoader
    FINER DesktopAssetManager 5:29:50 PM Loaded Interface/Fonts/Default.fnt with BitmapFontLoader
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Gui Node)
    FINER DesktopAssetManager 5:29:50 PM Loaded Interface/Fonts/Console.png with AWTLoader
    FINER DesktopAssetManager 5:29:50 PM Loaded Interface/Fonts/Console.fnt with BitmapFontLoader
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (BitmapFont) attached to this node (Statistics View)
    INFO Node 5:29:50 PM Child (Statistics View) attached to this node (Gui Node)
    FINER DesktopAssetManager 5:29:50 PM Loaded Common/MatDefs/Misc/SolidColor.j3md with J3MLoader
    INFO Node 5:29:50 PM Child (Box) attached to this node (null)
    INFO Node 5:29:50 PM Child (null) attached to this node (Root Node)
    FINER DesktopAssetManager 5:29:51 PM Loaded Models/WorgenFemale.png with AWTLoader
    FINER DesktopAssetManager 5:29:51 PM Loaded Common/MatDefs/Light/Lighting.j3md with J3MLoader
    FINER DesktopAssetManager 5:29:51 PM Loaded Models/Scene.material with MaterialLoader
    FINER DesktopAssetManager 5:29:51 PM Loaded Models/Mesh.skeleton.xml with SkeletonLoader
    INFO Node 5:29:51 PM Child (Mesh-geom-1) attached to this node (Mesh-ogremesh)
    FINER DesktopAssetManager 5:29:51 PM Loaded Models/Mesh.mesh.xml with MeshLoader
    FINER DesktopAssetManager 5:29:51 PM Loaded Common/MatDefs/Misc/SolidColor.j3md with J3MLoader
    INFO Node 5:29:51 PM Child (Mesh-ogremesh) attached to this node (null)
    INFO Node 5:29:51 PM Child (null) attached to this node (Root Node)
    FINEST GLObjectManager 5:29:51 PM Registered: Texture2D[name=Interface/Fonts/Default.png, img=256x256-RGBA8]
    FINEST GLObjectManager 5:29:51 PM Registered: VertexBuffer[fmt=Float, type=Position, usage=Dynamic, elements=204]
    SEVERE Application 5:29:51 PM Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]
    java.lang.IllegalStateException: Cannot render mesh without shader bound
       at com.jme3.renderer.lwjgl.LwjglRenderer.setVertexAttrib(LwjglRenderer.java:1668)
       at com.jme3.renderer.lwjgl.LwjglRenderer.setVertexAttrib(LwjglRenderer.java:1673)
       at com.jme3.renderer.lwjgl.LwjglRenderer.renderMeshDefault(LwjglRenderer.java:1859)
       at com.jme3.renderer.lwjgl.LwjglRenderer.renderMesh(LwjglRenderer.java:1885)
       at com.jme3.material.Material.render(Material.java:476)
       at com.jme3.renderer.RenderManager.renderGeometry(RenderManager.java:247)
       at com.jme3.renderer.queue.RenderQueue.renderGeometryList(RenderQueue.java:100)
       at com.jme3.renderer.queue.RenderQueue.renderQueue(RenderQueue.java:139)
       at com.jme3.renderer.RenderManager.flushQueue(RenderManager.java:356)
       at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:460)
       at com.jme3.renderer.RenderManager.render(RenderManager.java:477)
       at com.jme3.app.SimpleBulletApplication.update(SimpleBulletApplication.java:295)
       at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:112)
       at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:162)
       at java.lang.Thread.run(Unknown Source)

  • Avatar Image Fellkneul said 1 month, 1 week ago:

    Any news?

  • Avatar Image normen (Developer) said 1 month, 1 week ago:

    Fellkneul said:
    Any news?

    Any more testing? Change material, use differrent drivers.. etc?

  • Avatar Image Fellkneul said 1 month, 1 week ago:

    :-D :-D

    Last time I tried it, nothing worked, not even the examples from the JME3 Wiki pages. so i thought it might be a bug within jme3 and i was a bit too lazy to search for it myself. however, today i thought i might just try it again. same exception as last time. i thought it might be helpfull to update to HEAD version. i don't know whether you guys changed anything or what. but it's working fine again.

    thanks :)

  • Avatar Image Momoko_Fan (Developer) said 1 month, 1 week ago:

    So it started working all of the sudden after updating? That's kind of strange…

  • Avatar Image Fellkneul said 1 month, 1 week ago:

    well… all i did was updating to HEAD, recompiling and adding the jars from the dist to my project. that's it. are you sure you did not just change something in the jme3 source code during the last 6 weeks?

    @Tavyr : did you make the same experience??

    Fellkneul