<?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>1161</bug_id>
          
          <creation_ts>2015-06-11 15:29:26 +0200</creation_ts>
          <short_desc>Canvas resize stops the rendering in Mac OS X</short_desc>
          <delta_ts>2015-09-27 01:11:16 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>awt</component>
          <version>2.3.2</version>
          <rep_platform>pc_all</rep_platform>
          <op_sys>macosx</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>president</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>4eeddd0d446f8491dde2e5b0e3e11e0d5b0be9b7</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4724</commentid>
    <comment_count>0</comment_count>
    <who name="">president</who>
    <bug_when>2015-06-11 15:29:26 +0200</bug_when>
    <thetext>There is a &quot;resize&quot; problem with JOGL in Mac OS X.

When I run the following jogl demo it works fine at first. But when I try to resize it the canvas disappears. I just see a blank jpanel in its place.

http://jogamp.org/deployment/jogamp-current/jogl-demos/Gears.jnlp

The Mac OS X version is 10.9.5 or higher 
Java 1.8.0_45

It also doesn&apos;t work on Yosemite 10.10.3
It is reproducible both with and without Java Webstart. Our standalone application has same problem.

This bug was first reported in jogl forum here:
http://forum.jogamp.org/Resize-problem-td4034612.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4818</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-07-25 19:17:06 +0200</bug_when>
    <thetext>Test machine 
  - OSX 10.10.4
  - Java 1.8.0_51 x64
  - Java 1.6.0_65-b14-466.1 x32 and x64

JOGL Unit Tests:
  - com.jogamp.opengl.test.junit.jogl.demos.es2.awt.TestGearsES2AWT: OK
  - com.jogamp.opengl.test.junit.jogl.demos.gl2.awt.TestGearsAWT: OK

JOGL Demos:
  - Manual demos.gears.Gears: OK

  - JNLP Launch reproduces the issue: ERROR
      &lt;http://jogamp.org/deployment/archive/master/gluegen_868-joal_596-jogl_1401-jocl_1057-signed/jogl-demos/Gears.jnlp&gt;

    - Error is reproduced if resizing very fast about a bigger amount,
      e.g. 50% - for the first time!

    - Error is not reproduced if first resize happen slowly about
      a tiny amount. Later fast resizes work then.

Hence we do have an issue at least on latest OSX w/ latest java8
when running as WebStart - and w/ &apos;fast resize&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4828</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-07-28 00:36:54 +0200</bug_when>
    <thetext>Root cause:

JAWTWindow&apos;s JAWTComponentListener &apos;isShowing&apos;
state is initialized while attaching it on-thread
and updated via hierarchy-changed event.

JAWTComponentListener attachment to the component 
is issued at JAWTWindow&apos;s creation but on the AWT-EDT,
hence it may happen at a later time.

In this bug scenario, it happens very late,
so that the hierarchy-changed event is missed 
and &apos;isShowing&apos; is never set to &apos;true&apos;.

Solution is to update &apos;isShowing&apos; state
on the actual AWT-EDT when attaching to the component.
Also make &apos;isShowing&apos; volatile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4829</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-07-28 00:38:34 +0200</bug_when>
    <thetext>commit 4eeddd0d446f8491dde2e5b0e3e11e0d5b0be9b7

Fixed as described in comment 2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>