Browser repaint problem - JOGL applet

Hi All,
I encountered a browser repaint problem when scrolling up and down a page that opens my jogl applet.
Then I tried the same thing with the JOGL demo applets and the result is the same.
Basically the browser did not repaint the dirty rectangles properly.

Attached are the screenshots of the JOGL demo applet from both IE (1st pic) and Firefox (2nd pic).

I haven’t seen this behavior. What OS, JRE version and browser version are you running? How are you doing the scrolling, with the arrow keys, dragging the scrollbar thumb, clicking the scrolling arrows, or something different?

Hi Ken,
I’m using Windows, IE7, Firefox1.5, and JRE 1.6
With IE, I clicked the applet once to activate it and then scroll it (with both scrollbar and mouse scroll) and the dirty rectangle would appear.
My colleague who tried it in his PC’s Firefox also encountered the same thing.

the same on my box…

XP SP2, Firefox 2.0.0.2
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce 6600/PCI/SSE2
GL_VERSION: 2.0.3

the faster i scroll, the bigger the dirty rects become. even if the applet bounds dont leave the displayed html page.

edit: and ive never seen a jogl version without this problem.

Cheerie, what video cards are you and your colleague using?

I have reproduced the problem here. As far as I can tell it specifically affects NVidia desktop hardware. We tried testing on two notebooks with NVidia graphics chips and couldn’t reproduce the problem. The problem occurred on two desktop machines, one with GeForce FX 5800 Ultra and one with a GeForce 7800 GTX. Operator’s machine has a GeForce as well. The problem didn’t show up on a Windows XP machine with an ATI Radeon 9800 and ATI’s current drivers. It doesn’t happen on X11 or Mac platforms. The artifacts are independent of the web browser, occurring with both IE and Firefox. This evidence strongly points to a bug in NVidia’s drivers for their desktop hardware.

I’ve filed a bug on NVidia’s developer web site. I’m hoping they will look into it soon. I’m sorry, but I don’t think there is any workaround we can do for this bug either at the Java or JOGL level.

Hi Ken,

I’m using NVidia GeForce 7950 GT. I’m not sure what my colleague is using, will check with him later.

Thanks for the help and confirmation :slight_smile:

Hi Ken (and colleague cheerie…),

I’m using a nVidia 6600GT and is able
to reproduce it, just like you described.
Thanks for pinging nVidia on this.

On a different note, Apple OSX’s recent
Java update (~15th Feb 2007) now crashes
JOGL+AWT apps on exit. I’ve sent the crash
report to Apple already.

.rex

it doesnt seem to be an nvidia driver problem… i have this bad scrolling behaviour on my PowerBook with an ATI Mobility Radeon 9700 running an applet in safari.
os x: 10.4.9, java: 1.5.0_07

interesting:
calls to glReadPixels return wrong values! glReadPixels seems only to work if the scroll position is at the bottom.

are there any other mac and ati users out there?

We have also seen this bug. We did a work around and used a GLJPanel instead, which does not have the repaint problem. Of course, a GLJPanel has slower performance, but in our project performance is not cruicial.

Johan
Agency 9
http://www.agency9.se