The blit-scrolling in Swing is broken due to misbehaviour in copyArea (presumably) - see various examples in the Swing demo. Note that this bug is kindof Swing-specific, I put it in AWT anyway, since it's caused by the Java2D rewrite and thus will show up by applications that use copyArea too. I set severity to critical because that can't go into the release. Note that this can be worked around by setting the system property -Dgnu.javax.swing.JViewport.scrollMode=SIMPLE .
Confirmed, blitting was broken immediately after patches that made GraphicsD default. As far as I remember it was never working very well with Cairo.
Fixed.
Reopened - not fixed, sorry. Turining the blitting off, while useful, is a not a fix but a temporary workaround.
Created attachment 11585 [details] Broken blitting on the morning of the June 3, 2006 Broken blitting on the morning of the June 3, 2006 (reason for reopening)
(In reply to comment #3) > Reopened - not fixed, sorry. Turining the blitting off, while useful, is a not > a fix but a temporary workaround. Are you sure you have the following patch? 2006-06-02 Sven de Marothy <sven@physto.se> PR 27879 * gnu/java/awt/peer/gtk/CairoGraphics2D.java (copyArea): Implement. (copyAreaImpl, getRealBounds): New methods. * gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java * gnu/java/awt/peer/gtk/ComponentGraphics.java * gnu/java/awt/peer/gtk/BufferedImageGraphics.java (copyAreaImpl, getRealBounds): Implement. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c (nativeCopyArea): Reimplement. With this installed blitting can be on and works fine for me. Our free swing demo example (except for other drawing issues reported in bug #27833) look fine. Before this patch I got similar issues as you show in attachement #1, but after the patch all those issues were resolved.
Seems to be fixed. However, I now hit this sometimes (while scrolling), which is very likely related and kills the app: ** ERROR **: file gnu_java_awt_peer_gtk_CairoSurface.c: line 244 (Java_gnu_java_awt_peer_gtk_CairoSurface_copyAreaNative): assertion failed: (temp != NULL) aborting... java.lang.InternalError <<No stacktrace available>> Aborted
The patch was present but probably there were some Eclipse problems - after I did the whole build from console, the scrolling problems are not longer present. Probably the native code was not compiled. Closing again. Sorry.