TestPBRLighting OpenGLException: Invalid operation (1282)

When starting the jme3test.light.pbr.TestPBRLighting test of the PBRIsComing branch i get the following error:
org.lwjgl.opengl.OpenGLException: Invalid operation (1282)

The SpaceShift editor using the PBR material tank.j3m works fine - so I don’t think its a driver issue.

Here the full log:

Jul 02, 2016 2:54:21 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.1-PBRisComing-5740
 * Branch: PBRisComing
 * Git Hash: 664ea53
 * Build Date: 2016-07-02
Jul 02, 2016 2:54:21 PM jme3test.TestChooser$2 run
SEVERE: Cannot start test: jme3test.light.pbr.TestPBRLighting
java.lang.NoSuchFieldException: context
    at java.lang.Class.getDeclaredField(Class.java:2070)
    at jme3test.TestChooser$2.run(TestChooser.java:271)
    at java.lang.Thread.run(Thread.java:745)

java.lang.NoSuchFieldException: context
    at java.lang.Class.getDeclaredField(Class.java:2070)
    at jme3test.TestChooser$2.run(TestChooser.java:271)
    at java.lang.Thread.run(Thread.java:745)
Jul 02, 2016 2:54:21 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: LWJGL 2.9.3 context running on thread jME3 Main
 * Graphics Adapter: aticfx64
 * Driver Version: 8.17.10.1404
 * Scaling Factor: 1
Jul 02, 2016 2:54:21 PM com.jme3.renderer.opengl.GLRenderer loadCapabilitiesCommon
INFO: OpenGL Renderer Information
 * Vendor: ATI Technologies Inc.
 * Renderer: AMD Radeon HD 6800 Series
 * OpenGL Version: 4.5.13399 Compatibility Profile Context 15.201.1151.1008
 * GLSL Version: 4.40
 * Profile: Compatibility
Jul 02, 2016 2:54:21 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio Renderer Information
 * Device: OpenAL Soft
 * Vendor: OpenAL Community
 * Renderer: OpenAL Soft
 * Version: 1.1 ALSOFT 1.15.1
 * Supported channels: 64
 * ALC extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFT_loopback
 * AL extensions: AL_EXT_ALAW AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFTX_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points AL_SOFT_source_latency
Jul 02, 2016 2:54:21 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
WARNING: Pausing audio device not supported.
Jul 02, 2016 2:54:21 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio effect extension version: 1.0
Jul 02, 2016 2:54:21 PM com.jme3.audio.openal.ALAudioRenderer initOpenAL
INFO: Audio max auxiliary sends: 4
Jul 02, 2016 2:54:23 PM com.jme3.material.Material checkSetParam
WARNING: Material parameter being set: Texture with type Texture2D doesn't match definition types TextureCubeMap
Jul 02, 2016 2:54:23 PM com.jme3.material.Material setTextureParam
WARNING: The texture Textures/Sky/Path.hdr has linear color space, but the material parameter Texture specifies no color space requirement, this may lead to unexpected behavior.
Check if the image was not set to another material parameter with a linear color space, or that you did not set the ColorSpace to Linear using texture.getImage.setColorSpace().
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'PreShadow':
Define 'COLOR_MAP' mapped to non-existent material parameter 'ColorMap', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'PostShadow15':
Define 'COLOR_MAP' mapped to non-existent material parameter 'ColorMap', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'PostShadow':
Define 'COLOR_MAP' mapped to non-existent material parameter 'ColorMap', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'PreNormalPass':
Define 'DIFFUSEMAP_ALPHA' mapped to non-existent material parameter 'DiffuseMap', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'PreNormalPassDerivative':
Define 'DIFFUSEMAP_ALPHA' mapped to non-existent material parameter 'DiffuseMap', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'GBuf':
Define 'MATERIAL_COLORS' mapped to non-existent material parameter 'UseMaterialColors', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'GBuf':
Define 'V_TANGENT' mapped to non-existent material parameter 'VTangent', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'GBuf':
Define 'MINNAERT' mapped to non-existent material parameter 'Minnaert', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'GBuf':
Define 'WARDISO' mapped to non-existent material parameter 'WardIso', ignoring.
Jul 02, 2016 2:54:23 PM com.jme3.material.plugins.J3MLoader readDefine
WARNING: In technique 'GBuf':
Define 'DIFFUSEMAP' mapped to non-existent material parameter 'DiffuseMap', ignoring.
Jul 02, 2016 2:54:25 PM com.jme3.app.LegacyApplication handleError
SEVERE: An OpenGL error has occured!
org.lwjgl.opengl.OpenGLException: Invalid operation (1282)
    at org.lwjgl.opengl.Util.checkGLError(Util.java:59)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.checkGLError(LwjglAbstractDisplay.java:136)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(LwjglAbstractDisplay.java:157)
    at com.jme3.system.lwjgl.LwjglDisplay.runLoop(LwjglDisplay.java:193)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:232)
    at java.lang.Thread.run(Thread.java:745)

Do you have assertion enabled?

Not that I am aware of;) I just gradle ran the jme3-examples subproject

Then you have it enabled yes. opengl errors are only checked when assertions are enabled.That would explain why you don’t have it when you run the editor
I’ll look into it.

Great, thanks!

Are the opengl assertions also disabled using the jvm parameter “-da” ?

no, also if you don’t set -ea. But the example project enables them explicitely

Oh, thanks - that also explains why I could not find any assertion specific looking statement in the spaceshift editor, because I was simply looking into the wrong project;)

in jme3-example it’s set in this file

you can set assertions to false and it should work.

Yes, its working with the assertions turned off. Any hint on how i can find the reason for this assertion error?

well hat’s the thing with opengl… this 1280 error is about all we can have as an information…
The only thing we know is that itoccured between 2 error check:p
It’s usually very tedious to debug