<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>308</bug_id>
          
          <creation_ts>2007-07-05 01:22:27 +0200</creation_ts>
          <short_desc>Assymetry in null GLCapabilities parameter for off-screen context creation</short_desc>
          <delta_ts>2010-11-19 01:12:41 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>324</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:50:42 +0100</bug_when>
    <thetext>


---- Reported by moorej 2007-07-05 13:22:27 ----

Passing a null for the GLCapabilities when creating a pbuffer throws a
NullPointerException.  This is not the same for the onscreen drawables.  After
looking at the source code, it appears that this is only a problem for Mac and
Windows, the X11 version checks for null.

Here&apos;s the stack trace

Exception in thread &quot;AWT-EventQueue-0&quot; java.lang.NullPointerException
        at com.sun.opengl.impl.windows.WindowsGLDrawable.&lt;init&gt;(WindowsGLDrawabl
e.java:58)
        at com.sun.opengl.impl.windows.WindowsPbufferGLDrawable.&lt;init&gt;(WindowsPb
ufferGLDrawable.java:62)
        at com.sun.opengl.impl.windows.WindowsGLDrawableFactory$2.run(WindowsGLD
rawableFactory.java:147)
        at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.maybeDoSingleThr
eadedWorkaround(WindowsGLDrawableFactory.java:219)
        at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.createGLPbuffer(
WindowsGLDrawableFactory.java:164)
        at SharedPBuffer.init(SharedPBuffer.java:87)
        at com.sun.opengl.impl.GLDrawableHelper.init(GLDrawableHelper.java:72)
        at javax.media.opengl.GLCanvas$InitAction.run(GLCanvas.java:307)
        at com.sun.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1
89)
        at javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.
java:301)
        at javax.media.opengl.GLCanvas.display(GLCanvas.java:133)
        at javax.media.opengl.GLCanvas.paint(GLCanvas.java:166)
        at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
        at sun.awt.RepaintArea.paint(RepaintArea.java:224)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:293)
        at java.awt.Component.dispatchEventImpl(Component.java:4483)
        at java.awt.Component.dispatchEvent(Component.java:4237)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
pBuffer = GLDrawableFactory.getFactory().createGLPbuffer(
          null, null, 400, 400, canvas.getContext());

WindowsGLDrawable.java:58
    this.capabilities = (GLCapabilities) capabilities.clone();

MacOSXGLDrawable.java:86
	this.capabilities = (GLCapabilities) capabilities.clone();

- whereas -
X11GLDrawable.java:57
    this.capabilities = (capabilities == null) ? null :
      ((GLCapabilities) capabilities.clone());



--- Bug imported by sgothel@jausoft.com 2010-03-24 07:50 EDT  ---

This bug was previously known as _bug_ 308 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=308
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>580</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-11-19 01:12:41 +0100</bug_when>
    <thetext>it works .. see junit offscreen tests</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>