[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/27913] New: JTextArea and Graphics2D repaint problems
From: |
hendrich at informatik dot uni-hamburg dot de |
Subject: |
[Bug swing/27913] New: JTextArea and Graphics2D repaint problems |
Date: |
6 Jun 2006 09:59:31 -0000 |
Please compile and run the attached testcase (hopefully I got rid of the
external depencies now), which creates a JTextArea inside a JScrollPane and
writes some text to it. The ArrayIndexOutOfBoundsException reported in
#27837/#27834 seems fixed.
Running with jamvm and classpath cvs (2006.06.06) I observe several issues:
1. The frame is shown pretty fast, but the text repainting is extremely slow.
It takes 10+ seconds before the text is first repainted (if at all).
2. See attached screenshots for some fancy contents in the textarea.
These were taken when scrolling before/during the first repaint of the text,
but it sometimes also happens without any user interaction.
The JDK docs state that setText() should be threadsafe...
3. From time to time, the app crashes like this:
** ERROR **: file gnu_java_awt_peer_gtk_CairoSurface.c: line 267
(Java_gnu_java_awt_peer_gtk_CairoSurface_copyAreaNative): assertion failed:
(temp != NULL)
aborting...
java.lang.InternalError
at gnu.java.awt.peer.gtk.CairoSurface.copyAreaNative(Native Method)
at
gnu.java.awt.peer.gtk.CairoSurfaceGraphics.copyAreaImpl(CairoSurfaceGraphics.java:98)
at gnu.java.awt.peer.gtk.CairoGraphics2D.copyArea(CairoGraphics2D.java:959)
at javax.swing.JViewport.paintBlit(JViewport.java:916)
at javax.swing.JViewport.paint(JViewport.java:515)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:2197)
at javax.swing.JComponent.paintImmediately2(JComponent.java:2145)
at javax.swing.JViewport.paintImmediately2(JViewport.java:948)
at javax.swing.JComponent.paintImmediately(JComponent.java:2131)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:552)
at javax.swing.RepaintManager$RepaintWorker.run(RepaintManager.java:127)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:200)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:465)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:95)
Abort
--
Summary: JTextArea and Graphics2D repaint problems
Product: classpath
Version: 0.92
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: roman at kennke dot org
ReportedBy: hendrich at informatik dot uni-hamburg dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27913
- [Bug swing/27913] New: JTextArea and Graphics2D repaint problems,
hendrich at informatik dot uni-hamburg dot de <=