java.lang.IllegalArgumentException: object id must be greater than zero on Mac

I know nothing about Mac’s (except they seem to be a hassle working with), but a guy testing the mac version of Marvelous Marbles reports the following error:

SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.IllegalArgumentException: object id must be greater than zero
	at com.jme3.util.NativeObjectManager.registerObject(NativeObjectManager.java:106)
	at com.jme3.renderer.opengl.GLRenderer.updateFrameBuffer(GLRenderer.java:1946)
	at com.jme3.renderer.opengl.GLRenderer.setFrameBuffer(GLRenderer.java:2113)
	at com.jme3.renderer.RenderManager.renderViewPort(RenderManager.java:1150)
	at com.jme3.renderer.RenderManager.render(RenderManager.java:1248)
	at com.jme3.app.SimpleApplication.update(SimpleApplication.java:278)
	at com.jme3.system.lwjgl.LwjglWindow.runLoop(LwjglWindow.java:580)
	at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:669)
	at com.jme3.system.lwjgl.LwjglWindow.create(LwjglWindow.java:493)
	at com.jme3.app.LegacyApplication.start(LegacyApplication.java:490)
	at com.jme3.app.LegacyApplication.start(LegacyApplication.java:442)
	at com.jme3.app.SimpleApplication.start(SimpleApplication.java:126)
	at

Right on app.start();

There are a couple of threads in the forum with this issue. One related to an old graphics card (2015), and another to a Galaxy phone. Possibly related to objects being added and removed quickly to the frame buffer. But at this point in my app nothing but the creation of settings has happened and showSettings is false.

I’m using lwjgl3. The mac’s an “i9 from around 2019”.

Has anyone encountered this before?

2 Likes

I’ve not encountered it. However, I suspect the assertion is incorrect and negative IDs are valid in some situations.

EDIT I’ve done a little research and filed an issue at GitHub: IllegalArgumentException in registerObject() · Issue #1982 · jMonkeyEngine/jmonkeyengine · GitHub

1 Like

Adding a link to them just in case.

2 Likes