Bug 1027 - Atomics seem to be somewhat broken with NEWT
Summary: Atomics seem to be somewhat broken with NEWT
Alias: None
Product: Newt
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
Depends on:
Reported: 2014-06-27 14:59 CEST by Mark Raynsford
Modified: 2014-06-29 08:37 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
Workaround: ---

Script to run the test program (edit BASE to point to the directory containing jogl and gluegen) (735 bytes, text/plain)
2014-06-27 14:59 CEST, Mark Raynsford
Simple test program (1.34 KB, text/x-java)
2014-06-27 15:00 CEST, Mark Raynsford

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Raynsford 2014-06-27 14:59:38 CEST
Created attachment 617 [details]
Script to run the test program (edit BASE to point to the directory containing jogl and gluegen)

Attempting to run a simple test program with NEWT and the atomic jars results in the following:

NEWT X11Display: can't find jogamp/newt/driver/x11/WindowDriver
FATAL ERROR in native method: NEWT X11Display: can't find jogamp/newt/driver/x11/WindowDriver
	at jogamp.newt.driver.x11.DisplayDriver.initIDs0(Native Method)
	at jogamp.newt.driver.x11.DisplayDriver.<clinit>(DisplayDriver.java:56)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:190)
	at com.jogamp.newt.NewtFactory.getCustomClass(NewtFactory.java:110)
	at jogamp.newt.DisplayImpl.getDisplayClass(DisplayImpl.java:259)
	at jogamp.newt.DisplayImpl.create(DisplayImpl.java:269)
	at com.jogamp.newt.NewtFactory.createDisplay(NewtFactory.java:202)
	at com.jogamp.newt.NewtFactory.createWindowImpl(NewtFactory.java:308)
	at com.jogamp.newt.NewtFactory.createWindow(NewtFactory.java:233)
	at com.jogamp.newt.opengl.GLWindow.create(GLWindow.java:156)
	at TestGL3.main(TestGL3.java:17)
Aborted (core dumped)
Comment 1 Mark Raynsford 2014-06-27 15:00:01 CEST
Created attachment 618 [details]
Simple test program
Comment 2 Sven Gothel 2014-06-29 08:37:37 CEST

Issue was that 'com.jogamp.opengl.util.PNGPixelRect'
was included in jogl-core.jar and that NEWT assumes
PNG conversion is possible having this class available.
However, PNGPixelRect requires 'jogamp.opengl.util.pngj'
which is only included within jogl-util.jar.
Moved PNGPixelRect from jogl-core.jar to jogl-util.jar.
Added manual test launch 'testnoawtatomics' in make/scripts/tests.sh
to test atomic usage.
Works now w/ com.jogamp.opengl.test.junit.jogl.demos.es2.newt.TestGearsES2NEWT,
showing that the window/application icon is _not_ set due to not having PNG* available.