You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2005/07/26 22:45:11 UTC

DO NOT REPLY [Bug 35878] New: - In Batik 1.6, complete GUI application freeze due to thread deadlock that occurs during the rendering of multiple SVG's.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35878>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35878

           Summary: In Batik 1.6, complete GUI application freeze due to
                    thread deadlock that occurs during the rendering of
                    multiple SVG's.
           Product: Batik
           Version: 1.5
          Platform: Other
        OS/Version: HP-UX
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: SVG Viewer
        AssignedTo: batik-dev@xml.apache.org
        ReportedBy: dvanwate@mail.donaldson.com


We are using Batik 1.6. Our Java application GUI uses mutliple JSVGCanvas 
components to render various SVG's to help our users. Depending on the panel 
that is being displayed, about 2-8 JSVGCanvas components are displayed. During 
the display of these SVG's we are seeing the Swing GUI lock, completely 
freezing the application. 

I have not tried to reproduce this problem in a test case program as it would 
take a fair bit of time. Our application instaniates the JSVGCanvas, does a 
setURI(..), and then adds the panel to a parent panel that is then displayed. 
This takes place multiple times depending on the number of SVG's being 
displayed.

Below is a partial listing of the thread dump showing the two threads and 
objects that caused the deadlock. 

Java stack information for the threads listed above:
===================================================
"RunnableQueue-5":
	at 
org.apache.batik.bridge.UpdateManager$UpdateManagerRunHander.executionResumed
(Unknown Source)
	- waiting to lock <66b91388> (a org.apache.batik.bridge.UpdateManager)
	at org.apache.batik.util.RunnableQueue.executionResumed(Unknown Source)
	- locked <66dd01c0> (a org.apache.batik.util.RunnableQueue)
	at org.apache.batik.util.RunnableQueue.run(Unknown Source)
	- locked <66dd02f0> (a java.lang.Object)
	at java.lang.Thread.run(Thread.java:595)
"AWT-EventQueue-0":
	at org.apache.batik.util.RunnableQueue.getQueueState(Unknown Source)
	- waiting to lock <66dd02f0> (a java.lang.Object)
	at org.apache.batik.bridge.UpdateManager.resume(Unknown Source)
	- locked <66b91388> (a org.apache.batik.bridge.UpdateManager)
	at org.apache.batik.bridge.UpdateManager.interrupt(Unknown Source)
	- locked <66b91388> (a org.apache.batik.bridge.UpdateManager)
	at org.apache.batik.swing.svg.JSVGComponent.stopProcessing(Unknown 
Source)
	at org.apache.batik.swing.svg.JSVGComponent.stopThenRun(Unknown Source)
	at org.apache.batik.swing.svg.JSVGComponent.loadSVGDocument(Unknown 
Source)
	at org.apache.batik.swing.JSVGCanvas.setURI(Unknown Source)
	at 
com.donaldson.dtools.gui.superwidget.SVGSuperWidgetRenderer.gvtRenderingComplete
d(SVGSuperWidgetRenderer.java:84)
	at org.apache.batik.swing.gvt.GVTTreeRenderer$4.dispatch(Unknown Source)
	at org.apache.batik.util.EventDispatcher.dispatchEvent(Unknown Source)
	at org.apache.batik.util.EventDispatcher.fireEvent(Unknown Source)
	at org.apache.batik.util.EventDispatcher$1.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:234)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Found 1 deadlock.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org