Strangs ppsm error

Well I get randomly this error when having ppsm enabled

org.lwjgl.opengl.OpenGLException: Invalid operation (1282) at org.lwjgl.opengl.Util.checkGLError( at org.lwjgl.opengl.GL12.glDrawRangeElements( at com.jme3.renderer.lwjgl.LwjglRenderer.drawTriangleList( at com.jme3.renderer.lwjgl.LwjglRenderer.renderMeshDefault( at com.jme3.renderer.lwjgl.LwjglRenderer.renderMesh( at com.jme3.material.Material.render( at com.jme3.renderer.RenderManager.renderGeometry( at com.jme3.renderer.queue.RenderQueue.renderGeometryList( at com.jme3.renderer.queue.RenderQueue.renderShadowQueue( at com.jme3.shadow.PssmShadowRenderer.postFrame( at com.jme3.renderer.RenderManager.renderViewPort( at com.jme3.renderer.RenderManager.render( at online.newhorizons.client.system.ClientApplication.update( at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop( at com.jme3.system.lwjgl.LwjglDisplay.runLoop( at at

The ppasm tests itself work fine, so I guess it has something to do with my setup.
-> The ppsm is attached to a Viewport that renders to a texture, could this cause problems?
-> Anyone has a Idea what I can try to narrow the cause of the error down? I currently have no real idea where I could start.
-> If I use software instead of hardware it seems to run stable, is there any reason why hardware CompareMode could be the reason?

Does this issue occur when you use “Hardware” mode in TestPssmShadow?

No, it dosn’t, and so I guess it has something to do with me using a viewport rendering to texture instead of the main viewport where ppsm is attached.

Does it happen with particular graphics cards or everything you tried? Any chance you can post a test case?