Error DefaultEDTUtil.class

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Error DefaultEDTUtil.class

Pixelapp
I keep getting this error every other time I try to run my program (see attached picture). It all started when I made the switch to GLWindow (Newt).

Newt Error

My configurations:

Windows Vista.
Intel dual core processor.
Reply | Threaded
Open this post in threaded view
|

Re: Error DefaultEDTUtil.class

gouessej
Administrator
Hi

Please provide a small test case to allow us to reproduce your bug. Do you use both AWT and NEWT? Do you use the latest aggregated build?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Error DefaultEDTUtil.class

Pixelapp
In reply to this post by Pixelapp
After a second look, it seems there is no problem with jogl. It has to do with the larger scheme of my code.

If I'm unable to sort it out, I'll come back.
Reply | Threaded
Open this post in threaded view
|

Re: Error DefaultEDTUtil.class

gouessej
Administrator
Ok. Maybe it has something to do with your threading.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

RE: Error DefaultEDTUtil.class

Pixelapp
Yes, but I used to utilize JPanel with GLCanvas and this never happened.

-------- Original Message --------
Subject: Re: Error DefaultEDTUtil.class
From: "gouessej [via jogamp]"
<[hidden email]>
Date: Wed, June 13, 2012 2:13 am
To: Pixelapp <[hidden email]>

Ok. Maybe it has something to do with your threading.


If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Error-DefaultEDTUtil-class-tp4025181p4025201.html
To start a new topic under jogl, email [hidden email]
To unsubscribe from jogl, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

RE: Error DefaultEDTUtil.class

gouessej
Administrator
A code working with GLCanvas might not work anymore with NEWT because of a problem in the threading. For example, this aspect is not handled in the same way in Ardor3D in which I added the support of GLWindow and NewtCanvasAWT. Are you sure you perform all OpenGL calls in the GLEventListener or by using invoke(boolean,GLRunnable)?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

RE: Error DefaultEDTUtil.class

Pixelapp
This is how I do it.

public class Wavelogy implements GLEventListener
{
        public static void main(String[] args)
        {
                try
                {
                        //Schedule a job for the event dispatch thread:
        //creating and showing this application's GUI.
        SwingUtilities.invokeAndWait(
                  new Runnable()
                  {
            public void run()
                                        {
                new Wavelogy();
            }
        }
                                );
                }
                catch (Exception e)
                {
                        System.out.println("Couldn't start program.");
                }
        }
}

What is it that you mean gouessej?
Reply | Threaded
Open this post in threaded view
|

RE: Error DefaultEDTUtil.class

gouessej
Administrator
Actually, you should not use SwingUtilities.invokeAndWait with GLWindow, I don't see why you do that. Your GLEventListener should not contain the static main method, you should respect the principle of "separation of concerns". Maybe have a look at existing examples in JogAmp repository. Do you use an animator?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

RE: Error DefaultEDTUtil.class

Pixelapp
Yes, I use an animator.
Reply | Threaded
Open this post in threaded view
|

RE: Error DefaultEDTUtil.class

Pixelapp
In reply to this post by gouessej
I'll remove the swing utility, if it doesn't work I'll come back to this post.

Also, I used the swing utility because of the Java 2D API. Since the Java 2D api doesn't work properly without it. Moreover I quit using the Java 2D api a long time ago, this bit of code was just there because It didn't caused any problem before.
Reply | Threaded
Open this post in threaded view
|

RE: Error DefaultEDTUtil.class

Pixelapp
In reply to this post by gouessej
Thanks gouessej, it runs faster and with no halts.
Reply | Threaded
Open this post in threaded view
|

Re: Error DefaultEDTUtil.class

Sven Gothel
Administrator
In reply to this post by Pixelapp
On 06/14/2012 12:17 AM, Pixelapp [via jogamp] wrote:
> I'll remove the swing utility, if it doesn't work I'll come back to this post.
>
> Also, I used the swing utility because of the Java 2D API. Since the Java 2D
> api doesn't work properly without it. Moreover I quit using the Java 2D api a
> long time ago, this bit of code was just there because It didn't caused any
> problem before.

As Julien pointed out, if using NEWT [including NewtCanvasAWT]
all NEWT related stuff, incl. using the GLWindow
[even in combination w/ NewtCanvasAWT] is orthogonal to AWT.

In short: In such cases - don't worry or even use the AWT thread.

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Error DefaultEDTUtil.class

gouessej
Administrator
In reply to this post by Pixelapp
You're welcome. I'm glad for you.
Julien Gouesse | Personal blog | Website