<?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>1386</bug_id>
          
          <creation_ts>2019-08-23 07:51:21 +0200</creation_ts>
          <short_desc>Mesa 18.3.6 hardware renderer (Intel/AMD) freezes after native parenting</short_desc>
          <delta_ts>2019-12-08 03:56:15 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>opengl</component>
          <version>2.4.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>critical</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>ANNOTATION</cf_type>
          <cf_scm_refs>jogamp-scripting 6f2281165da079fe718ed340cb4c6102a45d0ddb</cf_scm_refs>
          <cf_workaround>TRUE</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6289</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-08-23 07:51:21 +0200</bug_when>
    <thetext>Testing on Debian 10 Buster with Mesa 18.3.6 and 
GL_RENDERER
1) AMD ARUBA (DRM 2.50.0 / 4.19.0-5-amd64, LLVM 7.0.1)
2) Mesa DRI Intel(R) Iris 6100 (Broadwell GT3)

Reveals freezes after native reparenting via NEWT,
which were non-existent on Debian 9 Mesa 13.0.6.

It probably is not a DEFECT of JOGL, but a regression with Mesa,
however, first we have to support and document this issue in more detail.

Freezes occurred in different places according to GL_RENDERER:
1) AMD ARUBA (DRM 2.50.0 / 4.19.0-5-amd64, LLVM 7.0.1)
&quot;main&quot; #1 prio=5 os_prio=0 cpu=2114.62ms elapsed=24.73s tid=0x00007fd6d8012800 nid=0x54c0 runnable  [0x00007fd6df5e4000]
   java.lang.Thread.State: RUNNABLE
        at jogamp.opengl.x11.glx.GLX.dispatch_glXMakeContextCurrent0(Native Method)
        at jogamp.opengl.x11.glx.GLX.glXMakeContextCurrent(GLX.java:767)
        at jogamp.opengl.x11.glx.X11GLXContext.glXMakeContextCurrent(X11GLXContext.java:164)
        at jogamp.opengl.x11.glx.X11GLXContext.makeCurrentImpl(X11GLXContext.java:474)
        at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:842)
        at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:650)
        at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:588)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1279)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at com.jogamp.opengl.test.junit.newt.parenting.TestParenting01dAWT.testGLWindowInvisibleReparentRecreateImpl(TestParenting01dAWT.java:165)
        at com.jogamp.opengl.test.junit.newt.parenting.TestParenting01dAWT.test01GLWindowReparentRecreateNoPreserve(TestParenting01dAWT.java:94)

2) Mesa DRI Intel(R) Iris 6100 (Broadwell GT3)
 &quot;main-Display-.x11_:0.0-1-EDT-2&quot; #24 daemon prio=5 os_prio=0 cpu=12.40ms elapsed=19.73s tid=0x00007f0c9c1bb000 nid=0x113f runnable  [0x00007f0cacc8b000]
   java.lang.Thread.State: RUNNABLE
        at jogamp.opengl.gl4.GL4bcImpl.dispatch_glClear1(Native Method)
        at jogamp.opengl.gl4.GL4bcImpl.glClear(GL4bcImpl.java:63)
        at jogamp.opengl.GLDrawableHelper.setViewportAndClear(GLDrawableHelper.java:738)
        at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:742)
        at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:440)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
        at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
        at jogamp.opengl.GLAutoDrawableBase.defaultWindowResizedOp(GLAutoDrawableBase.java:260)
        at com.jogamp.newt.opengl.GLWindow.access$200(GLWindow.java:119)
        at com.jogamp.newt.opengl.GLWindow$2.windowResized(GLWindow.java:141)
        at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4381)
        at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4315)
        at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1306)
        at jogamp.newt.WindowImpl$2.run(WindowImpl.java:1907)
        at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:143)
        - locked &lt;0x000000071cb142d0&gt; (a java.lang.Object)
        at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:375)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6290</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-08-23 07:55:02 +0200</bug_when>
    <thetext>Used test case where freezing occurred is:  &apos;com.jogamp.opengl.test.junit.newt.parenting.TestParenting01dAWT&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6291</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-08-23 08:02:57 +0200</bug_when>
    <thetext>Further testing w/ different Mesa 18.3.6 renderer

- Software Rendering LIBGL_ALWAYS_SOFTWARE=true
-- GL_RENDERER    llvmpipe (LLVM 7.0, 128 bits)
-- Result: OK (No freeze)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6292</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-08-23 08:05:21 +0200</bug_when>
    <thetext>This is now an Annotation, as the bug does not come from JogAmp,
but is a regression from Mesa 13.0.6 -&gt; 18.3.6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6293</commentid>
    <comment_count>4</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-08-23 08:10:14 +0200</bug_when>
    <thetext>Workaround in jogamp-scripting 6f2281165da079fe718ed340cb4c6102a45d0ddb
for unit tests, i.e.: export LIBGL_ALWAYS_SOFTWARE=true</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6437</commentid>
    <comment_count>5</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-12-08 03:56:15 +0100</bug_when>
    <thetext>DEFECT -&gt; ANNOTATION

Resolved for us, but we should communicated this issue w/ Mesa and the driver developer if resources and time allows.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>