(JME3) App throwing IllegalStateException (15 posts)

  • Profile picture of Tavyr Tavyr said 1 year, 7 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?

  • Profile picture of normen normen1022p said 1 year, 7 months ago:

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

  • Profile picture of Tavyr Tavyr said 1 year, 7 months ago:

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

  • Profile picture of Empire Phoenix EmpirePhoenix114p said 1 year, 7 months ago:

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

  • Profile picture of Fellkneul Fellkneul said 1 year, 7 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

  • Profile picture of Tavyr Tavyr said 1 year, 7 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.

  • Profile picture of Momoko_Fan Momoko_Fan306p said 1 year, 7 months ago:

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

  • Profile picture of Tavyr Tavyr said 1 year, 7 months 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)
    

  • Profile picture of Fellkneul Fellkneul said 1 year, 6 months ago:

    Any news?

  • Profile picture of normen normen1022p said 1 year, 6 months ago:

    Fellkneul said:
    Any news?

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

  • Profile picture of Fellkneul Fellkneul said 1 year, 6 months 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 :)

  • Profile picture of Momoko_Fan Momoko_Fan306p said 1 year, 6 months ago:

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

  • Profile picture of Fellkneul Fellkneul said 1 year, 6 months 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

  • Profile picture of cardoppler cardoppler1p said 1 year, 2 months ago:

    I got the same error “java.lang.illegalstateexception cannot render mesh without shader bound“, even if I haven’t opened any projects [I deleted all of them]:
    I’m running on win7 with x850xt [latest drivers] and support for OpenGL v6.14.10.8545.

    Sorry but I didn’t understand how Fellkneul got it working… How can i fix it?

    It could be possibile related to the fact it throws me also the “java.lang.arrayindexoutofboundsexception: 16” error at the same time?

    Thanks a lot.

    c.

    Running on jMonkey Engine 3 Alpha 0.6
    Extraction Directory #1: file:/C:/Program%20Files/jmonkeyplatform/jmonkeyplatform/modules/ext/
    Extraction Directory #2: C:Userscardoppler.jmonkeyplatform
    Extraction Directory #3: C:Program Filesjmonkeyplatform
    DesktopAssetManager created.
    EDT: Creating OGL thread.
    Using LWJGL 2.5
    Display created.
    Adapter: atiumdag
    Driver Version: 8.14.10.647
    Vendor: ATI Technologies Inc.
    OpenGL Version: 2.1.8545 Release
    Renderer: RADEON X850 Series
    GLSL Ver: 1.20
    Timer resolution: 1000 ticks per second
    Caps: [FrameBuffer, FrameBufferMRT, FrameBufferMultisample, OpenGL20, OpenGL21, ARBprogram, GLSL100, GLSL110, GLSL120, FloatTexture, TextureCompressionLATC, VertexBufferArray]
    DesktopAssetManager created.
    Camera created (W: 640, H: 480)
    Camera created (W: 640, H: 480)
    Mouse created.
    Keyboard created.
    Audio effect extension version: 1.0
    Audio max auxilary sends: 2
    Camera created (W: 120, H: 120)
    Loaded material definition: Default GUI
    Child (BitmapFont) attached to this node (Stats Gui Node)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (BitmapFont) attached to this node (Statistics View)
    Child (Statistics View) attached to this node (Stats Gui Node)
    Loaded material definition: Wire Color
    All children removed.
    All children removed.
    Child (Welcome Screen) attached to this node (Root Node)
    Loaded material definition: Sky Plane
    Texture2D
    Child (Sky) attached to this node (Welcome Screen)
    Child (defCamNodeName) attached to this node (Welcome Screen)
    Loaded material definition: GroundFromSpace
    Loaded material definition: SkyFromSpace
    Loaded material definition: GroundFromAtmosphere
    Loaded material definition: SkyFromAtmosphere
    Loaded material definition: Solid Color
    Child (Sphere-ogremesh) attached to this node (Welcome Screen)
    Child (Sphere-ogremesh) attached to this node (Welcome Screen)
    Loaded material definition: Default GUI
    Loaded material definition: Default GUI
    shader link failure.
    Fragment shader(s) linked, vertex shader(s) failed to link.

  • Profile picture of Momoko_Fan Momoko_Fan306p said 1 year, 2 months ago:

    Whats the log after the “Fragment shader(s) linked, vertex shader(s) failed to link. ” line? Does it just end there?