Getting starting problem

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

Getting starting problem

Alex Kozlov
Hi!
I get example from Using JOGL in AWT SWT and Swing and run it (i try all examples). See blank window.
I do the the same in debug mode... if I have any breakpoints - all work correct. If no - still the same blank window.

Then I add this after GLProfile.initSingleton( false ) :
try {
            Thread.sleep(1000); // sleep 1 second
        } catch(Exception e){}

And now all work properly in any cases... but I think it's like magic and there are better way?

Reply | Threaded
Open this post in threaded view
|

Re: Getting starting problem

gouessej
Administrator
Hi

It is not magic, maybe Wade did something wrong. Please try GLProfile.initSingleton(true); instead.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Getting starting problem

Sven Gothel
Administrator
In reply to this post by Alex Kozlov
On Thursday, October 20, 2011 09:44:08 AM Alex Kozlov [via jogamp] wrote:
>
> Hi!
> I get example from
> http://jogamp.org/wiki/index.php/Using_JOGL_in_AWT_SWT_and_Swing Using JOGL
> in AWT SWT and Swing  and run it (i try all examples). See blank window.
> I do the the same in debug mode... if I have any breakpoints - all work
> correct. If no - still the same blank window.
>
> Then I add this after

> GLProfile.initSingleton( false ) :
this line only impacts X11 currently, where 'false'
is required if using an IDE or applet for example,
ie you can't assure you are the 1st X11 user.
Read the API doc in this regard!

You also failed to state OS, arch, JVM, .. see Wiki/FAQ

> try {
>             Thread.sleep(1000); // sleep 1 second
>         } catch(Exception e){}

SWT is a general issue here, even though our unit tests pass on
many platforms, see our jenkins/chuck test results.

Maybe .. on your platform w/ your SWT installation it behaves differently ?
Maybe your in you case SWT needs time to initialize things in a spawn off thread ?
I don't know.

>
> And now all work properly in any cases... but I think it's like magic and
> there are better way?

not enough information, sorry.

~Sven
Reply | Threaded
Open this post in threaded view
|

Re: Getting starting problem

Alex Kozlov
Sven Gothel wrote
not enough information, sorry.
What information you need?
Reply | Threaded
Open this post in threaded view
|

Re: Getting starting problem

gouessej
Administrator
Which build of JOGL 2 do you use? On which platform? Which OS? Which graphics card? Which driver version?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Getting starting problem

Alex Kozlov
This post was updated on .
first of all I add -Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all to Run Configuration.

Console output after added delay - all work properly,

Console output before I add delay - have blank window.

OS: Ubuntu 11.10
IDE: Eclipse 3.7.1
JOGL:
This is build version 2.0-b41-20110916, based on:
              branch  rc
              commit  64feda2fa7611627e31f55ecc7cf86e290fdf4e3

Java:
I tried Java JDK 1.6.0.29, 1.7.0.1 downloaded from Sun and 1.6.0.26 comes with OS(sun-java package): result is the same.

videocard: VGA compatible controller: ATI Technologies Inc RV530 [Radeon X1600]
Reply | Threaded
Open this post in threaded view
|

Re: Getting starting problem

Sven Gothel
Administrator
On Thursday, October 20, 2011 04:13:10 PM Alex Kozlov [via jogamp] wrote:
>

Thank you Julien for decipher my hint to the FAQ, I am tired of it :)
(Hint hint hint)

> first of all I add -Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all
> to Run Configuration.
>
> https://docs.google.com/document/d/1SN0qslZZKtz6MdXkpaZtWeLcADl3pJRNZtXFelTBIIk/edit?hl=en_US
> Console output after added delay  - all work properly,
>
> https://docs.google.com/document/d/16WvOl84F7hZzPtrPNWfwiPgugOXnw6cWsqvdu2NYgy4/edit?hl=en_US
> Console output before I add delay  - have blank window.
>
> OS: Ubuntu 11.10
> IDE: Eclipse 3.7.1
> JOGL:
> This is build version 2.0-b41-20110916, based on:
>               branch  rc
>               commit  64feda2fa7611627e31f55ecc7cf86e290fdf4e3
>
> Java:
> I tried Java JDK 1.6.0.29, 1.7.0.1 downloaded from Sun and 1.6.0.26 comes
> with OS(sun-java packet): result is the same.
>
> videocard: VGA compatible controller: ATI Technologies Inc RV530 [Radeon
> X1600]

Thank you Alex!

However, it would be much more readable if you:
  - not cutting of the start w/ os/arch/version information
  - redirect the output to a simple text file
  - attach it here, or
  - maybe even open a bug on our bugzilla page
    and attach it there

Hence my Q:
  - I assume ubuntu 64bit ?
  - Jave 64bit JVM ?

I will validate your test case soon
after I have updated my machine w/ ubuntu 11.10.

Cheers, Sven
Reply | Threaded
Open this post in threaded view
|

Re: Getting starting problem

Alex Kozlov
Sven Gothel wrote
  - I assume ubuntu 64bit ?
  - Jave 64bit JVM ?
Ubuntu 32bit with PAE
Java 32bit too

Console output as text files
with 1sec delay
w/o 1sec delay