[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-users
Subject:    SVG text and tspan content disappears or gets distorted, restart necessary
From:       Robert Gurol <robert.gurol () signavio ! com>
Date:       2013-05-08 14:01:36
Message-ID: CAPxgbL4TpcBY0AC_gt3oPeJoYtPcCh5eXk_F-bFtV4N2K7_nMQ () mail ! gmail ! com
[Download RAW message or body]

Hi all,

my company has been using batik for several years now.

We are using batik for both SVG-to-PNG transcoding, and for rendering done
by Apache FOP 1.1.

The library is used in a running apache web server (see system stats below)
where its functionality may be accessed by multiple users at the same time.

# SYMPTOMS:
After running the system for a while, the text in the output disappears,
loses formatting or overlaps with itself; the corresponding SVG elements
whose content is painted inaccurately are text and tspan. The issue occurs
for all transcoding that is done once it occurred; a restart of the system
(Tomcat) fixes the issue, though only temporarily.

This has happened more frequently recently, I have already spent some time
trying to figure out the reasons.

Unfortunately, I have no exception output or similar (this part of the
system is supposed not to fail; possible Exceptions are ignored), but we
changed logging configuration so I may have more info soon, though I doubt
it considering there is a valid PNG output, though incorrectly rendered.

# SYSTEM:
OS: Debian Squeeze 64 Bit
Java: version 1.6.0_26
JRE: Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
VM: Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
Server: Tomcat 6.0.35-1+squeeze2
Batik: Version 1.7 (most recent)

# STEPS TAKEN:
I have searched for quite some time, assuming a thread safety / concurrency
issue (like, a Singleton instance changed static variables incorrectly, and
this state pertains until the system is restarted and the static variable
gets re-initialized), so far without success.

I used the FindBugs checker on the batik source, but found no direct hints
as to where there may be defects causing an issue like this; I will present
the FindBugs output in a separate mail, though. I also investigated the
StrokingTextPainter class (implemented as a singleton) which does the
actual text rendering (as far as I can see), but cannot see issues with it.

I'll be glad for any help or pointers,

best regards

Robert


-- 
________________________________________________________

Besuchen Sie uns/Meet us:

Process Solutions Day <http://www.gfo-kongress.de/>: 2013: 14.+15.05.2013
in Frankfurt, Germany
Signavio Customer
Day<http://www.signavio.com/de/events/signavio-ladt-zum-kundentag-in-berlin-ein/>:
13.09.2013 in Berlin, Germany
Frankfurter Buchmesse <http://www.buchmesse.de/>: 09.-13.10.2013 in
Frankfurt, Germany
Messekongress "IT für
Versicherungsunternehmen"<http://www.assekuranz-messekongress.de/portal/de/messekongresse/it/aktuelles_2/index.xhtml>:
 26.+27.11.2013
in Leipzig, Germany
________________________________________________________


Robert Gurol
Software Developer
robert.gurol@signavio.com
T +49 30 488 172 50
F +49 30 250 43 747

Signavio GmbH
Goethestr. 2-3
10623 Berlin

HRB 121584 B Amtsgericht Charlottenburg, Ust-ID: DE265675123
Geschäftsführer: Dr. Gero Decker, Torben Schreiter
________________________________________________________

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorised copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


[Attachment #3 (text/html)]

<div dir="ltr"><div><div>Hi all, <br></div><div><br></div><div>my company has been \
using batik for several years now. </div><div><br></div><div>We are using batik for \
both SVG-to-PNG transcoding, and for rendering done by Apache FOP 1.1.</div> \
<div><br></div><div>The library is used in a running apache web server (see system \
stats below) where its functionality may be accessed by multiple users at the same \
time.</div><div><br></div><div># SYMPTOMS: </div><div>After running the system for a \
while, the text in the output disappears, loses formatting or overlaps with itself; \
the corresponding SVG elements whose content is painted inaccurately are text and \
tspan. The issue occurs for all transcoding that is done once it occurred; a restart \
of the system (Tomcat) fixes the issue, though only temporarily.</div> \
<div><br></div><div>This has happened more frequently recently, I have already spent \
some time trying to figure out the reasons. </div><div><br></div><div>Unfortunately, \
I have no exception output or similar (this part of the system is supposed not to \
fail; possible Exceptions are ignored), but we changed logging configuration so I may \
have more info soon, though I doubt it considering there is a valid PNG output, \
though incorrectly rendered.</div> <div><br></div><div># SYSTEM: </div><div>OS: \
Debian Squeeze 64 Bit</div><div>Java: version 1.6.0_26</div><div>JRE: Java(TM) SE \
Runtime Environment (build 1.6.0_26-b03)</div><div>VM: Java HotSpot(TM) 64-Bit Server \
VM (build 20.1-b02, mixed mode)</div> <div>Server: Tomcat \
6.0.35-1+squeeze2</div><div>Batik: Version 1.7 (most \
recent)</div><div><br></div><div># STEPS TAKEN:</div><div>I have searched for quite \
some time, assuming a thread safety / concurrency issue (like, a Singleton instance \
changed static variables incorrectly, and this state pertains until the system is \
restarted and the static variable gets re-initialized), so far without success. \
</div> <div><br></div><div>I used the FindBugs checker on the batik source, but found \
no direct hints as to where there may be defects causing an issue like this; I will \
present the FindBugs output in a separate mail, though. I also investigated the \
StrokingTextPainter class (implemented as a singleton) which does the actual text \
rendering (as far as I can see), but cannot see issues with it. </div> \
<div><br></div><div>I&#39;ll be glad for any help or \
pointers,</div><div><br></div><div style>best \
regards</div><div><br></div><div>Robert</div><div><br></div><div><br></div></div>-- \
<br><div dir="ltr"><div><div \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
 <div><div>________________________________________________________<br></div><div><br></div><div><div><font \
color="#000000">Besuchen Sie uns/Meet us:</font></div><div><font \
color="#000000"><br></font></div><div><font color="#000000"><a \
href="http://www.gfo-kongress.de/" style="color:rgb(17,85,204)" \
target="_blank">Process Solutions Day</a>: 2013: 14.+15.05.2013 in Frankfurt, \
Germany</font></div> <div><a \
href="http://www.signavio.com/de/events/signavio-ladt-zum-kundentag-in-berlin-ein/" \
style="color:rgb(17,85,204)" target="_blank">Signavio Customer Day</a>: 13.09.2013 in \
Berlin, Germany<br></div><font color="#000000"><a href="http://www.buchmesse.de/" \
style="color:rgb(17,85,204)" target="_blank">Frankfurter Buchmesse</a>: \
09.-13.10.2013 in Frankfurt, Germany </font></div> <div><font color="#000000"><a \
href="http://www.assekuranz-messekongress.de/portal/de/messekongresse/it/aktuelles_2/index.xhtml" \
style="color:rgb(17,85,204)" target="_blank">Messekongress &quot;IT für \
Versicherungsunternehmen&quot;</a>: 26.+27.11.2013 in Leipzig, Germany<br> \
</font></div><div><font \
color="#000000">________________________________________________________</font></div></div><div><br></div><div><br></div></div>Robert \
Gurol<br> Software Developer<br>
<a href="mailto:robert.gurol@signavio.com" \
target="_blank">robert.gurol@signavio.com</a> <br>

T +49 30 488 172 50<br>

F +49 30 250 43 747<br><br>Signavio GmbH<br>Goethestr. 2-3<br>10623 \
Berlin<br><br></div> <div>HRB 121584 B Amtsgericht Charlottenburg, <span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">Ust-ID: \
DE265675123</span><br> </div><span \
style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><span \
style="border-collapse:separate;font-family:arial;font-size:small">Geschäftsführer: \
Dr. Gero Decker, Torben Schreiter</span></span><br> <div><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">______________________________</span><span \
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">__________________________</span> \
<br> <div><br></div>
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte<br>
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail<br>
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und<br>
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte<br>
Weitergabe dieser E-Mail ist nicht gestattet.<br>
<br>
This e-mail may contain confidential and/or privileged information. If you<br>
are not the intended recipient (or have received this e-mail in error)<br>
please notify the sender immediately and destroy this e-mail. Any<br>
unauthorised copying, disclosure or distribution of the material in this<br>
e-mail is strictly forbidden.</div></div>
</div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic