Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 50894 invoked from network); 19 Aug 2008 18:47:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Aug 2008 18:47:21 -0000 Received: (qmail 43440 invoked by uid 500); 19 Aug 2008 18:47:19 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 43429 invoked by uid 500); 19 Aug 2008 18:47:19 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 43418 invoked by uid 99); 19 Aug 2008 18:47:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2008 11:47:19 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of giselle.mnr@gmail.com designates 64.233.184.233 as permitted sender) Received: from [64.233.184.233] (HELO wr-out-0506.google.com) (64.233.184.233) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2008 18:46:23 +0000 Received: by wr-out-0506.google.com with SMTP id 50so86889wra.13 for ; Tue, 19 Aug 2008 11:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=EY9uWAzrdxsym6GbvhadRsKoXoklW+WdZeKhNsy3bm4=; b=DhGVok0VA2H3asIy/8Qu8dAlttzXXXcKAN5QJOZInh/AXZZCNVw23h8j0p+2nx2uGG 7eyvS2ELkv56R4PK9IdYBpsyH7/PXd+zi8+fZSLtLdTuUJR051KLQpCfImFS9wepL1xx yQAHt5Si4pkAFgWnIJnjoejcnNLHInc3BvehE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=En8zpqNZRDJdWD8GmRoLLofTddWEsrpyPGdR8w3YL1UCsJ7qF1FoJJaqFxbNumWumq YoE3K0wiG2lD0HuH/VxMRmv3MET6o3pS65e58XyMnXgth8yE8MYG5aicopLMGu8rew8m lCN5In8B7qWMNvC6Ga52UpMUbLmGJE+0QUyww= Received: by 10.90.71.16 with SMTP id t16mr10027019aga.47.1219171611819; Tue, 19 Aug 2008 11:46:51 -0700 (PDT) Received: by 10.90.115.10 with HTTP; Tue, 19 Aug 2008 11:46:51 -0700 (PDT) Message-ID: <21cf58250808191146i21dd63b6i1e879e73a305fc76@mail.gmail.com> Date: Tue, 19 Aug 2008 15:46:51 -0300 From: "Giselle Machado" To: batik-users@xmlgraphics.apache.org Subject: Re: Squiggle in Ubuntu 8.04 In-Reply-To: <3bc8237c0808191043r4a660e2arb0eb09fd00852030@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_50724_6390198.1219171611793" References: <21cf58250808181116i627a1fb8sd5d530e70e50607b@mail.gmail.com> <2a1ddf8a0808190317o79e200b4of1002abf5e5f00da@mail.gmail.com> <6e1d61f50808190738n5cf0716cv8f3ad71cc6c1dcf9@mail.gmail.com> <21cf58250808191021iba2d8fbkb647164f394f3dc1@mail.gmail.com> <3bc8237c0808191043r4a660e2arb0eb09fd00852030@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_50724_6390198.1219171611793 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Here it is the thread dump. I can't see anything wrong... Full thread dump Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing): "Timer-0" daemon prio=10 tid=0x08150c00 nid=0x2cbb in Object.wait() [0xb4f26000..0xb4f26fc0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8ca0a9e8> (a java.util.TaskQueue) at java.lang.Object.wait(Object.java:485) at java.util.TimerThread.mainLoop(Timer.java:483) - locked <0x8ca0a9e8> (a java.util.TaskQueue) at java.util.TimerThread.run(Timer.java:462) "RunnableQueue-0" daemon prio=10 tid=0x08159c00 nid=0x2cba in Object.wait() [0xb5019000..0xb501a040] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8ca176f0> (a org.apache.batik.util.DoublyLinkedList) at java.lang.Object.wait(Object.java:485) at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:225) - locked <0x8ca176f0> (a org.apache.batik.util.DoublyLinkedList) at java.lang.Thread.run(Thread.java:619) "DestroyJavaVM" prio=10 tid=0x08058400 nid=0x2ca3 waiting on condition [0x00000000..0xb7d63090] java.lang.Thread.State: RUNNABLE "Batik CleanerThread" daemon prio=10 tid=0x0890d400 nid=0x2cb3 in Object.wait() [0xb506a000..0xb506ae40] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8c6e6740> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x8c6e6740> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at org.apache.batik.util.CleanerThread.run(CleanerThread.java:106) "TimerQueue" daemon prio=10 tid=0x08588800 nid=0x2caf in Object.wait() [0xb50fb000..0xb50fc0c0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8c691478> (a javax.swing.TimerQueue) at javax.swing.TimerQueue.run(TimerQueue.java:236) - locked <0x8c691478> (a javax.swing.TimerQueue) at java.lang.Thread.run(Thread.java:619) "AWT-EventQueue-0" prio=10 tid=0x08336400 nid=0x2cae in Object.wait() [0xb5188000..0xb5189140] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8c5f4c18> (a java.awt.EventQueue) at java.lang.Object.wait(Object.java:485) at java.awt.EventQueue.getNextEvent(EventQueue.java:479) - locked <0x8c5f4c18> (a java.awt.EventQueue) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:245) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) "AWT-Shutdown" prio=10 tid=0x08335800 nid=0x2cad in Object.wait() [0xb5214000..0xb5214fc0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8c5c0660> (a java.lang.Object) at java.lang.Object.wait(Object.java:485) at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259) - locked <0x8c5c0660> (a java.lang.Object) at java.lang.Thread.run(Thread.java:619) "AWT-XAWT" daemon prio=10 tid=0x0832ac00 nid=0x2cac runnable [0xb5265000..0xb5266040] java.lang.Thread.State: RUNNABLE at sun.awt.X11.XToolkit.waitForEvents(Native Method) at sun.awt.X11.XToolkit.run(XToolkit.java:544) at sun.awt.X11.XToolkit.run(XToolkit.java:519) at java.lang.Thread.run(Thread.java:619) "Java2D Disposer" daemon prio=10 tid=0x082e5800 nid=0x2cab in Object.wait() [0xb52d8000..0xb52d8ec0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8c5b8830> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x8c5b8830> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at sun.java2d.Disposer.run(Disposer.java:125) at java.lang.Thread.run(Thread.java:619) "Low Memory Detector" daemon prio=10 tid=0x08096c00 nid=0x2ca9 runnable [0x00000000..0x00000000] java.lang.Thread.State: RUNNABLE "CompilerThread0" daemon prio=10 tid=0x0808c000 nid=0x2ca8 waiting on condition [0x00000000..0xb59b48f8] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" daemon prio=10 tid=0x0808ac00 nid=0x2ca7 waiting on condition [0x00000000..0x00000000] java.lang.Thread.State: RUNNABLE "Finalizer" daemon prio=10 tid=0x08081c00 nid=0x2ca6 in Object.wait() [0xb5a9c000..0xb5a9d140] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8c593b88> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x8c593b88> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) "Reference Handler" daemon prio=10 tid=0x08080800 nid=0x2ca5 in Object.wait() [0xb5aed000..0xb5aedfc0] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x8c593c10> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:485) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked <0x8c593c10> (a java.lang.ref.Reference$Lock) "VM Thread" prio=10 tid=0x0807f400 nid=0x2ca4 runnable "VM Periodic Task Thread" prio=10 tid=0x080aa400 nid=0x2caa waiting on condition JNI global references: 796 Heap def new generation total 960K, used 389K [0x8c080000, 0x8c180000, 0x8c560000) eden space 896K, 43% used [0x8c080000, 0x8c0e17b8, 0x8c160000) from space 64K, 0% used [0x8c160000, 0x8c160000, 0x8c170000) to space 64K, 0% used [0x8c170000, 0x8c170000, 0x8c180000) tenured generation total 9016K, used 5409K [0x8c560000, 0x8ce2e000, 0x90080000) the space 9016K, 59% used [0x8c560000, 0x8caa8650, 0x8caa8800, 0x8ce2e000) compacting perm gen total 12288K, used 7905K [0x90080000, 0x90c80000, 0x94080000) the space 12288K, 64% used [0x90080000, 0x908387c8, 0x90838800, 0x90c80000) ro space 8192K, 73% used [0x94080000, 0x946634a0, 0x94663600, 0x94880000) rw space 12288K, 58% used [0x94880000, 0x94f78668, 0x94f78800, 0x95480000) On Tue, Aug 19, 2008 at 2:43 PM, Archie Cobbs wrote: > On Tue, Aug 19, 2008 at 12:21 PM, Giselle Machado wrote: > >> Ok, I downloaded the nightly build but I still have the same problem... It >> works with java 6 though, not with 5. But what I am developing must work >> with java 5 =/ >> >> In this application I use a JSVGCanvas to display a SVG, and, according to >> the listeners, the render is completed, but nothing appears in the window... >> only the background that was set (even if I resize it). Nevertheless, when I >> save the image as a jpg, it actually is there. >> > > Sometimes I've seen Swing lock up temporarily on Linux. If you hit CTRL-\ > in the Java console, you'll get a thread dump that shows two threads > deadlocked somewhere in the X11 native code. > > May or may not be your problem, but it would be interesting to see what's > going on in the thread dump (in particular, check the Swing event dispatcher > thread). > > -Archie > > -- > Archie L. Cobbs > > -- "Things do not change; we change." (Henry David Thoreau) ------=_Part_50724_6390198.1219171611793 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Here it is the thread dump. I can't see anything wrong...

Full thread dump Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing):

"Timer-0" daemon prio=10 tid=0x08150c00 nid=0x2cbb in Object.wait() [0xb4f26000..0xb4f26fc0]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8ca0a9e8> (a java.util.TaskQueue)
    at java.lang.Object.wait(Object.java:485)
    at java.util.TimerThread.mainLoop(Timer.java:483)
    - locked <0x8ca0a9e8> (a java.util.TaskQueue)
    at java.util.TimerThread.run(Timer.java:462)

"RunnableQueue-0" daemon prio=10 tid=0x08159c00 nid=0x2cba in Object.wait() [0xb5019000..0xb501a040]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8ca176f0> (a org.apache.batik.util.DoublyLinkedList)
    at java.lang.Object.wait(Object.java:485)
    at org.apache.batik.util.RunnableQueue.run(RunnableQueue.java:225)
    - locked <0x8ca176f0> (a org.apache.batik.util.DoublyLinkedList)
    at java.lang.Thread.run(Thread.java:619)

"DestroyJavaVM" prio=10 tid=0x08058400 nid=0x2ca3 waiting on condition [0x00000000..0xb7d63090]
   java.lang.Thread.State: RUNNABLE

"Batik CleanerThread" daemon prio=10 tid=0x0890d400 nid=0x2cb3 in Object.wait() [0xb506a000..0xb506ae40]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8c6e6740> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x8c6e6740> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at org.apache.batik.util.CleanerThread.run(CleanerThread.java:106)

"TimerQueue" daemon prio=10 tid=0x08588800 nid=0x2caf in Object.wait() [0xb50fb000..0xb50fc0c0]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8c691478> (a javax.swing.TimerQueue)
    at javax.swing.TimerQueue.run(TimerQueue.java:236)
    - locked <0x8c691478> (a javax.swing.TimerQueue)
    at java.lang.Thread.run(Thread.java:619)

"AWT-EventQueue-0" prio=10 tid=0x08336400 nid=0x2cae in Object.wait() [0xb5188000..0xb5189140]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8c5f4c18> (a java.awt.EventQueue)
    at java.lang.Object.wait(Object.java:485)
    at java.awt.EventQueue.getNextEvent(EventQueue.java:479)
    - locked <0x8c5f4c18> (a java.awt.EventQueue)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:245)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

"AWT-Shutdown" prio=10 tid=0x08335800 nid=0x2cad in Object.wait() [0xb5214000..0xb5214fc0]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8c5c0660> (a java.lang.Object)
    at java.lang.Object.wait(Object.java:485)
    at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259)
    - locked <0x8c5c0660> (a java.lang.Object)
    at java.lang.Thread.run(Thread.java:619)

"AWT-XAWT" daemon prio=10 tid=0x0832ac00 nid=0x2cac runnable [0xb5265000..0xb5266040]
   java.lang.Thread.State: RUNNABLE
    at sun.awt.X11.XToolkit.waitForEvents(Native Method)
    at sun.awt.X11.XToolkit.run(XToolkit.java:544)
    at sun.awt.X11.XToolkit.run(XToolkit.java:519)
    at java.lang.Thread.run(Thread.java:619)

"Java2D Disposer" daemon prio=10 tid=0x082e5800 nid=0x2cab in Object.wait() [0xb52d8000..0xb52d8ec0]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8c5b8830> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x8c5b8830> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at sun.java2d.Disposer.run(Disposer.java:125)
    at java.lang.Thread.run(Thread.java:619)

"Low Memory Detector" daemon prio=10 tid=0x08096c00 nid=0x2ca9 runnable [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"CompilerThread0" daemon prio=10 tid=0x0808c000 nid=0x2ca8 waiting on condition [0x00000000..0xb59b48f8]
   java.lang.Thread.State: RUNNABLE

"Signal Dispatcher" daemon prio=10 tid=0x0808ac00 nid=0x2ca7 waiting on condition [0x00000000..0x00000000]
   java.lang.Thread.State: RUNNABLE

"Finalizer" daemon prio=10 tid=0x08081c00 nid=0x2ca6 in Object.wait() [0xb5a9c000..0xb5a9d140]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8c593b88> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
    - locked <0x8c593b88> (a java.lang.ref.ReferenceQueue$Lock)
    at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=10 tid=0x08080800 nid=0x2ca5 in Object.wait() [0xb5aed000..0xb5aedfc0]
   java.lang.Thread.State: WAITING (on object monitor)
    at java.lang.Object.wait(Native Method)
    - waiting on <0x8c593c10> (a java.lang.ref.Reference$Lock)
    at java.lang.Object.wait(Object.java:485)
    at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
    - locked <0x8c593c10> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=10 tid=0x0807f400 nid=0x2ca4 runnable

"VM Periodic Task Thread" prio=10 tid=0x080aa400 nid=0x2caa waiting on condition

JNI global references: 796

Heap
 def new generation   total 960K, used 389K [0x8c080000, 0x8c180000, 0x8c560000)
  eden space 896K,  43% used [0x8c080000, 0x8c0e17b8, 0x8c160000)
  from space 64K,   0% used [0x8c160000, 0x8c160000, 0x8c170000)
  to   space 64K,   0% used [0x8c170000, 0x8c170000, 0x8c180000)
 tenured generation   total 9016K, used 5409K [0x8c560000, 0x8ce2e000, 0x90080000)
   the space 9016K,  59% used [0x8c560000, 0x8caa8650, 0x8caa8800, 0x8ce2e000)
 compacting perm gen  total 12288K, used 7905K [0x90080000, 0x90c80000, 0x94080000)
   the space 12288K,  64% used [0x90080000, 0x908387c8, 0x90838800, 0x90c80000)
    ro space 8192K,  73% used [0x94080000, 0x946634a0, 0x94663600, 0x94880000)
    rw space 12288K,  58% used [0x94880000, 0x94f78668, 0x94f78800, 0x95480000)


On Tue, Aug 19, 2008 at 2:43 PM, Archie Cobbs <archie@dellroad.org> wrote:
On Tue, Aug 19, 2008 at 12:21 PM, Giselle Machado <giselle.mnr@gmail.com> wrote:
Ok, I downloaded the nightly build but I still have the same problem... It works with java 6 though, not with 5. But what I am developing must work with java 5 =/

In this application I use a JSVGCanvas to display a SVG, and, according to the listeners, the render is completed, but nothing appears in the window... only the background that was set (even if I resize it). Nevertheless, when I save the image as a jpg, it actually is there.

Sometimes I've seen Swing lock up temporarily on Linux. If you hit CTRL-\ in the Java console, you'll get a thread dump that shows two threads deadlocked somewhere in the X11 native code.

May or may not be your problem, but it would be interesting to see what's going on in the thread dump (in particular, check the Swing event dispatcher thread).

-Archie

--
Archie L. Cobbs




--
"Things do not change; we change."
(Henry David Thoreau)
------=_Part_50724_6390198.1219171611793--