Jogl Viewer Texture Bug

Found a bug? Post here.
Post Reply
Posts: 69
Joined: Tue 2. Oct 2007, 09:20

Jogl Viewer Texture Bug

Post by sechel » Fri 18. Oct 2013, 17:00

Hi, this is probably for Charles: I have problems using textures. If I change the texture image of a geometry a few times or if I show frequently changing lables. I run into the following Exception pretty soon:

Code: Select all

	at java.awt.EventQueue.invokeAndWait(
	at java.awt.EventQueue.invokeAndWait(
	at de.jreality.jogl.AbstractViewer.render(
	at de.jreality.ui.viewerapp.ViewerSwitch.render(
	at de.jreality.util.RenderTrigger$RenderTriggerSingleCaster.render(
	at de.jreality.util.RenderTrigger.fireRender(
	at de.jreality.util.RenderTrigger.finishCollect(
	at de.jreality.toolsystem.ToolSystem.processToolEvent(
	at de.jreality.toolsystem.ToolEventQueue$
Caused by: java.lang.NullPointerException
	at jogamp.opengl.gl4.GL4bcImpl.glDeleteTextures(
	at de.jreality.jogl.shader.Texture2DLoaderJOGL.render(
	at de.jreality.jogl.shader.Texture2DLoaderJOGL.render(
	at de.jreality.jogl.JOGLRendererHelper.renderLabels(
	at de.jreality.jogl.JOGLRendererHelper.drawPointLabels(
	at de.jreality.jogl.JOGLPeerGeometry.render(
	at de.jreality.jogl.JOGLPeerComponent$
	at de.jreality.scene.Scene.executeReader(
	at de.jreality.jogl.JOGLPeerComponent.preRender(
	at de.jreality.jogl.JOGLPeerComponent.render(
This is very annoying as one has to restart the program after such an exception to continue working with textures. The machine which I'm working on is:


Modellname: MacBook Pro
Modell-Identifizierung: MacBookPro10,2
Prozessortyp: Intel Core i7
Prozessorgeschwindigkeit: 2,9 GHz
Anzahl der Prozessoren: 1
Gesamtanzahl der Kerne: 2
L2-Cache (pro Kern): 256 KB
L3-Cache: 4 MB
Speicher: 8 GB

Intel HD Graphics 4000:

Chipsatz-Modell: Intel HD Graphics 4000
Typ: GPU
Bus: Integriert
VRAM (gesamt): 768 MB
Hersteller: Intel (0x8086)
Geräte-ID: 0x0166
Versions-ID: 0x0009
Auflösung: 1920 x 1200
Pixeltiefe: 32-Bit Farbe (ARGB8888)
Monitor-Seriennummer: 31653127
Hauptmonitor: Ja
Synchronisierung: Aus
Eingeschaltet: Ja
Rotation: Unterstützt

User avatar
Posts: 323
Joined: Thu 14. Dec 2006, 09:56
Location: TU Berlin

Re: Jogl Viewer Texture Bug

Post by gunn » Mon 28. Oct 2013, 13:50

I have had some problems related to textures on my relatively new Macbook Pro recently which I solved by backing out changes to the jreality jogl package to mid-summer. Please try that first.

Then if you still have the problem, please try to isolate example code that displays the problem. I'm not seeing this error in the code I'm running right now.
jReality core developer

Post Reply