<?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>62</bug_id>
          
          <creation_ts>2004-02-05 01:30:12 +0100</creation_ts>
          <short_desc>errors from glGetError(), not clearing</short_desc>
          <delta_ts>2010-03-24 07:46:14 +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>windows</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</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>78</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:46:14 +0100</bug_when>
    <thetext>


---- Reported by andyskinner 2004-02-05 13:30:12 ----

We&apos;ve got a fairly complex project that has been using the old Jogl project from 
years ago.  We&apos;ve maintained our own version, but now we&apos;d like to see if this Jogl 
project can help us with more platforms.

Our project uses a separate thread for rendering, and I&apos;ve built a callback system 
where the first display() from AWT tells the rendering to get going, and then that 
rendering thread asks for a display, specifying the method to be called.

I recently found and tried the nightly builds.  Maybe it isn&apos;t fair to report issues 
against those, but there has been a release since September, so I decided to try 
those.  I&apos;m running into problems that aren&apos;t there in the September version.

When I use the DebugGL, I get an out of memory error.  It seems that glGetError() 
is checked frequently, and when it is, is called repeatedly until it clears.  But it 
never seems to clear, and the string with the messages in it grows until it can&apos;t 
anymore.

When I try the TraceGL, I don&apos;t get this problem, but I can see that the places 
I&apos;ve called glGetError() a single time to report an invalid operation, and that the 
error is set sometime in between my display() calls.  I don&apos;t think it is reporting 
something I&apos;ve done.

I&apos;ve got a zipped project of java files that I will append to this report if I can.

JoglObj is my interface to Jogl, and it implements GLEventListener and the callback 
system I mention.  JoglPanel is the GLCanvas&apos; parent, and it contains the rendering 
thread object.

If you remove the lines in JoglObj.renderJogl() about setting the no auto redraw 
mode and the render thread, you don&apos;t get any problems.  But I&apos;m having thread 
issues as well (in the September version), and I need to be able to address them.

thanks
andy



---- Additional Comments From andyskinner 2004-02-05 13:31:44 ----

Created an attachment
Zip file of Java project




---- Additional Comments From kbr 2005-01-31 00:04:20 ----

Sorry for not commenting on this bug until now. Many bugs and workarounds for
OpenGL driver bugs relating to multithreading have recently been fixed in JOGL.
Please test with 1.1 b07 and, if problems persist, with the forthcoming 1.1 b08
and reopen this bug if you still see problems. The test application works fine
on my system (Windows XP, NVidia Quadro FX Go700).




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

This bug was previously known as _bug_ 62 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=62
Imported an attachment (id=17)

The original submitter of attachment 17 is unknown.
   Reassigning to the person who moved it here: sgothel@jausoft.com.

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17</attachid>
            <date>2004-02-05 13:31:00 +0100</date>
            <delta_ts>2004-02-05 13:31:00 +0100</delta_ts>
            <desc>Zip file of Java project</desc>
            <filename>JoglTestApp.zip</filename>
            <type>application/x-compressed</type>
            <size>3330</size>
            <attacher name="Sven Gothel">sgothel</attacher>
            
              <data encoding="base64">UEsD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