Login  Register

Re: Pls test new JOGL aggregated build (pre RC11) - no XInitThreads() ..

Posted by Sven Gothel on Oct 08, 2012; 10:53pm
URL: https://forum.jogamp.org/Pls-test-new-JOGL-aggregated-build-pre-RC11-no-XInitThreads-tp4026312p4026437.html

On 10/08/2012 02:03 PM, Jan Ekholm [via jogamp] wrote:
> I'm the Twitter user referred to above.
>

Thank you for joining here.

> OSX is 10.8.1.
> JOGL is jogl-2.0-b825-20121006-macosx-universal (daily build).
>
> My canvas is set up as follows:
>
>         GLProfile glprofile = GLProfile.get(GLProfile.GL3);
>         GLCapabilities glcapabilities = new GLCapabilities( glprofile );
>         glcapabilities.setHardwareAccelerated( true );
>         final Canvas canvas = new Canvas( glcapabilities );

Can you pls do the following:

- see our wiki/faq/bugreport

- post a complete [unit] test here which fails for you ?
  - this can be one of our existing (preferable),
    which you may have modified.
  - run with -Djogl.debug=all -Dnewt.debug=all
    and post log file here / bug-report

- debugging a JOGL app.
  - find general error:
    - -Djogl.debug=all -Dnewt.debug=all

  - find opengl error
    - -Djogl.debug.DebugGL -Djogl.debug.TraceGL, or just
    - -Djogl.debug.DebugGL

>
> Some added checks removed (such as a check for glprofile.isGL3()). So far no
> errors. Later there is
> code like this to do some sanity checks:
>
>     public void initialize(GL3 gl) {
>         System.out.println( "Scene.initialize" );
>
>         System.out.println( "Scene.initialize: INIT GL IS:  " +
> gl.getClass().getName() );
>         System.out.println( "Scene.initialize: GL_VENDOR:   " +
> gl.glGetString( GL.GL_VENDOR ) );
>         System.out.println( "Scene.initialize: GL_RENDERER: " +
> gl.glGetString( GL.GL_RENDERER ) );
>         System.out.println( "Scene.initialize: GL_VERSION:  " +
> gl.glGetString( GL.GL_VERSION ) );
>
>         if ( !gl.isFunctionAvailable( "glGenBuffers" )
>                 || !gl.isFunctionAvailable( "glBindBuffer" )
>                 || !gl.isFunctionAvailable( "glBufferData" )
>                 || !gl.isFunctionAvailable( "glDeleteBuffers" ) ) {
>             System.exit( 1 );
>         }
>         ...
> }
Always check the extension availability 1st,
function may be available even though not implement.

~Sven

>
> This gives:
>
> Scene.initialize: INIT GL IS:  jogamp.opengl.gl4.GL4bcImpl
> Scene.initialize: GL_VENDOR:   NVIDIA Corporation
> Scene.initialize: GL_RENDERER: NVIDIA GeForce GT 650M OpenGL Engine
> Scene.initialize: GL_VERSION:  3.2 NVIDIA-8.0.61
>
> When my shaders are compiled and linked I see this error:
>
> createAndCompileShader: Pre GL Error: 0x500
>
> No error in the info log and everything completes nicely and seems to be ok
> apart from that printed error.
>
> Later when rendering I see:
>
> 2012-10-08 14:58:10.779 java[3950:707] invalid share context
> 2012-10-08 14:58:10.779 java[3950:707] invalid context
>
> Nothing is shown.
>
>
>
> ------------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/Pls-test-new-JOGL-aggregated-build-pre-RC11-no-XInitThreads-tp4026312p4026424.html
>
> To start a new topic under jogl, email [hidden email]
> To unsubscribe from jogl, click here
> <
> NAML
> <
http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>

--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; fax : +49 (471) 4707741
Timezone CET: PST+9, EST+6, UTC+1


signature.asc (907 bytes) Download Attachment