Login  Register

Resizing GLCanvas does not redraw immediately

classic Classic list List threaded Threaded
14 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Resizing GLCanvas does not redraw immediately

frederic.bon
4 posts
Using the attached reproducer
reproducer_jogl.java

 make the window fullscreen by clicking the window decoration fullscreen button.

Only a portion of the fullscreen window is drawn in orange, while the whole window should be drawn orange.
This can also be reproduced by resizing the window very fast, a small portion of the window is not drawn with the correct color.

This bug does not happen on windows.

Adding a call to redraw() in display() works around the issue.

This bug has first been reported to SWT team
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=542915)
Their conclusion is that the problem should come from JOGL.

Thanks
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

gouessej
Administrator
6041 posts
Hello

Please check in our bug tracker whether someone else hasn't already reported this bug.

Is it this bug?
https://jogamp.org/bugzilla/show_bug.cgi?id=1395
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

frederic.bon
4 posts
Indeed, you're right, it is the same issue reported by a colleague.
Sorry for the misunderstanding.
Thanks for your watchfulness.

Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

gouessej
Administrator
6041 posts
You're welcome. Feel free to contribute. Please try to reproduce your bug with the latest release candidate.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

frederic.bon
4 posts
We actually use the 2.3.2 version.
We wait for 2.4.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

frederic.bon
4 posts
Have you an idea about a release date for this future version?
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

gouessej
Administrator
6041 posts
Please try the release candidate anyway, don't "wait". I don't tell you to use it in production, just give it a try to confirm whether it fixes your bug or not.

According to the roadmap, there are a few (but not trivial) bugs to fix before releasing JOGL 2.4.0. We are volunteers, some help is welcome.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

frederic.bon
2 posts
Hi,

of course, we are ready to test a release candidate of 2.4.0 if it can help.
But, in bugzilla, it seems that our bug is not yet fixed (https://jogamp.org/bugzilla/show_bug.cgi?id=1395)
and the wiki page about 2.4.0 release does not even mention it.
Maybe it's too early to test a version in this case.

What do you think?
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

gouessej
Administrator
6041 posts
I think that some changes might have fixed this bug but as I'm not sure, I advise you to give it a try.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

gouessej
Administrator
6041 posts
In reply to this post by frederic.bon
I suspect the fix of the bug 1358 to have fixed this bug too, that's why I ask you to test with JOGL 2.4.0 RC.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

frederic.bon
2 posts
Thanks for your response.
Your reason seems sufficient to follow your advice and test the candidate version.
We'll keep you informed as soon as it is done.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

gouessej
Administrator
6041 posts
Thank you. I don't want to make you waste your time. I cross my fingers ;)
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

Celine
14 posts
Hi Julien,
I tested 2.4.0-rc and the bug is still there.
Sorry but the fix of the bug 1358 doesn't seem to fix bug 1395 too.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Resizing GLCanvas does not redraw immediately

gouessej
Administrator
6041 posts
Hello

Thank you for the feedback. Please post a comment into the bug report 1358, the very latest RC should have fixed it. I have no workaround to provide, I don't know how to disable HiDPI in SWT.
Julien Gouesse | Personal blog | Website