<?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>611</bug_id>
          
          <creation_ts>2012-08-29 15:28:40 +0200</creation_ts>
          <short_desc>java.awt.Desktop performance drops after JOGL initialization</short_desc>
          <delta_ts>2012-09-16 15:40:44 +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>windows</component>
          <version>2</version>
          <rep_platform>pc_x86_32</rep_platform>
          <op_sys>windows</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>trnecka_david</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>jogl f2bd50ff25009de477a203460abe8a5597acdbc5</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1777</commentid>
    <comment_count>0</comment_count>
      <attachid>366</attachid>
    <who name="">trnecka_david</who>
    <bug_when>2012-08-29 15:28:40 +0200</bug_when>
    <thetext>Created attachment 366
Minimal repro case

The first invocation of java.awt.Desktop.open() done after the JOGL is initialized by a GLProfile.initSingleton() blocks execution for about 30 seconds.

Any subsequent call to the Desktop API works as expected, with no delay.

Reproduced on Windows XP SP3 x86, JRE 1.7.0_05, JOGL2 rc10. 

Does not happen with Windows 7 x64.

Traced Desktop.open() down to native, the problematic call is the ShellExecute windows API.

Repro case attached.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1788</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2012-09-16 13:58:50 +0200</bug_when>
    <thetext>There are still WinXP machines out there ?
Hmm .. if possible, pls re-test w/ latest sources, or upcoming aggregated autobuild.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1790</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2012-09-16 15:40:44 +0200</bug_when>
    <thetext>Added unit test in commit f2bd50ff25009de477a203460abe8a5597acdbc5.
(Will push it soon)

Will close this bug unless it persist in your configuration, please retest.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>366</attachid>
            <date>2012-08-29 15:28:40 +0200</date>
            <delta_ts>2012-08-29 15:28:40 +0200</delta_ts>
            <desc>Minimal repro case</desc>
            <filename>Test.java</filename>
            <type>text/java</type>
            <size>412</size>
            <attacher>trnecka_david</attacher>
            
              <data encoding="base64">CmltcG9ydCBqYXZhLmF3dC5EZXNrdG9wOwppbXBvcnQgamF2YS5pby5GaWxlOwppbXBvcnQgamF2
YXgubWVkaWEub3BlbmdsLkdMUHJvZmlsZTsKCmNsYXNzIFRlc3QgewogICAgcHVibGljIHN0YXRp
YyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIFN5
c3RlbS5zZXRQcm9wZXJ0eSgiam9nYW1wLmdsdWVnZW4uVXNlVGVtcEphckNhY2hlIiwgImZhbHNl
Iik7CiAgICAgICAgICAgIEdMUHJvZmlsZS5pbml0U2luZ2xldG9uKCk7CiAgICAgICAgICAgIERl
c2t0b3AuZ2V0RGVza3RvcCgpLm9wZW4obmV3IEZpbGUoIkM6XFwiKSk7CiAgICAgICAgfSBjYXRj
aChFeGNlcHRpb24gZXgpIHsKICAgICAgICAgICAgZXgucHJpbnRTdGFja1RyYWNlKCk7CiAgICAg
ICAgfQogICAgfQp9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>