Editor OpenGL Error (SOLVED)

Hi guys I m a noob
i m using unity usually and thought about trying defold to see how it how it works

i m stuck at the getting started tutorial
when trying to build the ground i get an error saying

Error occurred while rendering

what am i doing wrong ?
how do i solve it ?

thanks for taking the time to reply

Check through the steps of the tutorial and compare to what you have now. It’s likely there is something you left out or did incorrectly.

1 Like

Do you get any more information than just “Error occurred wile rendering”? Could you post a screenshot?

1 Like
Error occurred while rendering


javax.media.opengl.GLException: Method "glCreateShader" not available
	at jogamp.opengl.gl4.GL4bcImpl.glCreateShader(GL4bcImpl.java:3223)
	at com.dynamo.cr.sceneed.ui.util.Shader.<init>(Shader.java:26)
	at com.dynamo.cr.tileeditor.scene.AtlasRenderer.loadShader(AtlasRenderer.java:42)
	at com.dynamo.cr.tileeditor.scene.AtlasRenderer.setup(AtlasRenderer.java:56)
	at com.dynamo.cr.tileeditor.scene.AtlasRenderer.setup(AtlasRenderer.java:1)
	at com.dynamo.cr.sceneed.ui.RenderView.setupNode(RenderView.java:978)
	at com.dynamo.cr.sceneed.ui.SceneRenderViewProvider.setup(SceneRenderViewProvider.java:65)
	at com.dynamo.cr.sceneed.ui.RenderView.renderNodes(RenderView.java:763)
	at com.dynamo.cr.sceneed.ui.RenderView.render(RenderView.java:739)
	at com.dynamo.cr.sceneed.ui.RenderView.paint(RenderView.java:718)
	at com.dynamo.cr.sceneed.ui.RenderView.access$3(RenderView.java:699)
	at com.dynamo.cr.sceneed.ui.RenderView$1.run(RenderView.java:693)
	at org.eclipse.swt.widgets.Display.runTimer(Display.java:4270)
	at org.eclipse.swt.widgets.Display.messageProc(Display.java:3357)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at com.dynamo.cr.editor.Application.start(Application.java:42)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:
1 Like

Seems like the editor had some problem rendering with OpenGL.

What platform are you running the editor on, Windows? Do you have multiple graphics cards on the computer you are using?

Create a new Defold project with one of the pre-made tutorial projects and see if that works to check?

i m using an old laptop
i m running on vista business version 6
i dont think i have a graphics card

i ve been using unity and have no problem rendering 2d sprites
while I have issues when it comes to 3D gameobject with lots of vertex and poly counts

javax.media.opengl.GLException: Method “glCreateShader” not available
at jogamp.opengl.gl4.GL4bcImpl.glCreateShader(GL4bcImpl.java:3223)
at com.dynamo.cr.sceneed.ui.util.Shader.(Shader.java:26)
at com.dynamo.cr.tileeditor.scene.SpriteRenderer.loadShader(SpriteRenderer.java:48)
at com.dynamo.cr.tileeditor.scene.SpriteRenderer.setup(SpriteRenderer.java:62)
at com.dynamo.cr.tileeditor.scene.SpriteRenderer.setup(SpriteRenderer.java:1)
at com.dynamo.cr.sceneed.ui.RenderView.setupNode(RenderView.java:978)
at com.dynamo.cr.sceneed.ui.RenderView.setupNode(RenderView.java:986)
at com.dynamo.cr.sceneed.ui.RenderView.setupNode(RenderView.java:986)
at com.dynamo.cr.sceneed.ui.SceneRenderViewProvider.setup(SceneRenderViewProvider.java:65)
at com.dynamo.cr.sceneed.ui.RenderView.renderNodes(RenderView.java:763)
at com.dynamo.cr.sceneed.ui.RenderView.render(RenderView.java:739)
at com.dynamo.cr.sceneed.ui.RenderView.paint(RenderView.java:718)
at com.dynamo.cr.sceneed.ui.RenderView.access$3(RenderView.java:699)
at com.dynamo.cr.sceneed.ui.RenderView$1.run(RenderView.java:693)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:4270)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:3357)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2546)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.dynamo.cr.editor.Application.start(Application.java:42)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

same issue with a different tutorial as well
i tried the side scroller

I see, strange.
Would you mind downloading a tool called GLview and check what OpenGL version your graphics card support? You can get the latest version from this site: http://www.realtech-vr.com/glview/download.php

I think you should be able to just download, install and start it. It should be displayed right on the startup screen like this:

2 Likes

I see, OpenGL 1.5 is a bit low. I think you would need at least OpenGL 2 to run both the editor and engine. Could you try updating your graphics drivers?

1 Like

it seems to have resolved the issue !
thanks for your help
i m now running version 2.0

2 Likes

Fantastic! :smiley: Marking this as solved and making a small change to the topic so people can find it easier in the future.

1 Like