You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by DG...@mediametrie.fr on 2003/12/01 11:28:37 UTC

rasterizer on linux : process don't die

Hello everyone,

I just installed batik & fop on a linux machine.
I use it to export svg to pdf files.
The pdf export is successfull, but the java process don't die, and use a 
lot of memory.
Does anyone know where this problem comes from ? (I tried it before on a 
windows system, it worked fine)

-------------------------------------------------------

1. Here is the command line :

>>java -jar batik-rasterizer.jar -m application/pdf -d target.pdf 
target.svg
About to transcode 1 SVG file(s)

Converting target.svg to /home/restit/htdocs/svg/target_dir/target.pdf ... 
... success

2. And the process list : 

  PID  PPID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME 
COMMAND
10174 10171 restit    25   0 39808  38M  8764 R    99,9  1,9   0:47 
/opt/IBMJava2-131/jre/bin/exe/java -jar 
/home/restit/htdocs/java/batik-1.5/batik-rasteriz
10176 10171 restit    25   0 39808  38M  8764 R    99,8  1,9   0:33 
/opt/IBMJava2-131/jre/bin/exe/java -jar 
/home/restit/htdocs/java/batik-1.5/batik-rasteriz
10173 10171 restit    25   0 39808  38M  8764 R    50,5  1,9   0:30 
/opt/IBMJava2-131/jre/bin/exe/java -jar 
/home/restit/htdocs/java/batik-1.5/batik-rasteriz
10175 10171 restit    25   0 39808  38M  8764 R    50,5  1,9   0:17 
/opt/IBMJava2-131/jre/bin/exe/java -jar 
/home/restit/htdocs/java/batik-1.5/batik-rasteriz
10179 10171 restit    25   0 39808  38M  8764 R    49,2  1,9   0:23 
/opt/IBMJava2-131/jre/bin/exe/java -jar 
/home/restit/htdocs/java/batik-1.5/batik-rasteriz
10177 10171 restit    25   0 39808  38M  8764 R    48,8  1,9   0:16 
/opt/IBMJava2-131/jre/bin/exe/java -jar 
/home/restit/htdocs/java/batik-1.5/batik-rasteriz
10180  9909 restit    15   0  1076 1076   832 R     0,5  0,0   0:00 top
 99

These process don't die !!!!!!


Re: rasterizer on linux : process don't die

Posted by Thomas DeWeese <Th...@Kodak.com>.
DGIGON@mediametrie.fr wrote:

> I just installed batik & fop on a linux machine.
> I use it to export svg to pdf files.
> The pdf export is successfull, but the java process don't die, and use a 
> lot of memory.
> Does anyone know where this problem comes from ? (I tried it before on a 
> windows system, it worked fine)

    This is a known issue with AWT.  Once you start the AWT Event
thread (which happens when you reference AWT) the only way to
terminate the JVM is to call System.exit.  If you can use
JDK 1.4 you can use headless mode to avoid this issue.  You can
also just call System.exit before your 'main' exits.

    You should have had the same problem with Windows.

> -------------------------------------------------------
> 
> 1. Here is the command line :
> 
>  >>java -jar batik-rasterizer.jar -m application/pdf -d target.pdf 
> target.svg
> About to transcode 1 SVG file(s)
> 
> Converting target.svg to /home/restit/htdocs/svg/target_dir/target.pdf 
> ... ... success
> 
> 2. And the process list :
> 
>   PID  PPID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
> 10174 10171 restit    25   0 39808  38M  8764 R    99,9  1,9   0:47 
> /opt/IBMJava2-131/jre/bin/exe/java -jar 
> /home/restit/htdocs/java/batik-1.5/batik-rasteriz
> 10176 10171 restit    25   0 39808  38M  8764 R    99,8  1,9   0:33 
> /opt/IBMJava2-131/jre/bin/exe/java -jar 
> /home/restit/htdocs/java/batik-1.5/batik-rasteriz
> 10173 10171 restit    25   0 39808  38M  8764 R    50,5  1,9   0:30 
> /opt/IBMJava2-131/jre/bin/exe/java -jar 
> /home/restit/htdocs/java/batik-1.5/batik-rasteriz
> 10175 10171 restit    25   0 39808  38M  8764 R    50,5  1,9   0:17 
> /opt/IBMJava2-131/jre/bin/exe/java -jar 
> /home/restit/htdocs/java/batik-1.5/batik-rasteriz
> 10179 10171 restit    25   0 39808  38M  8764 R    49,2  1,9   0:23 
> /opt/IBMJava2-131/jre/bin/exe/java -jar 
> /home/restit/htdocs/java/batik-1.5/batik-rasteriz
> 10177 10171 restit    25   0 39808  38M  8764 R    48,8  1,9   0:16 
> /opt/IBMJava2-131/jre/bin/exe/java -jar 
> /home/restit/htdocs/java/batik-1.5/batik-rasteriz
> 10180  9909 restit    15   0  1076 1076   832 R     0,5  0,0   0:00 top
>  99
> 
> These process don't die !!!!!!
> 




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


Re: R: Text selection

Posted by Thomas DeWeese <Th...@Kodak.com>.
Fabio Biscaro wrote:

> Excuse me, I did the wrong question:
> 
> Is there a way, in javascript, to get the text that is selected in
> batik?

    Ahhh (figured I was missing something), currently the answer is
basically no.  It wouldn't be very hard to add methods to get it
but right now it is essentially impossible to access from JavaScript.

> -----Messaggio originale-----
> Da: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com] 
> Inviato: lunedì 1 dicembre 2003 13.24
> A: Batik Users
> Oggetto: Re: Text selection
> 
> 
> Fabio Biscaro wrote:
> 
> 
>>Hi, I would like to know how i can get text selection in svg.
> 
> 
>    Click and drag on text?  It should just work.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 




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


R: Text selection

Posted by Fabio Biscaro <bi...@webscience.it>.
Excuse me, I did the wrong question:

Is there a way, in javascript, to get the text that is selected in
batik?

Thanks, 
Fabio

-----Messaggio originale-----
Da: Thomas DeWeese [mailto:Thomas.DeWeese@Kodak.com] 
Inviato: lunedì 1 dicembre 2003 13.24
A: Batik Users
Oggetto: Re: Text selection


Fabio Biscaro wrote:

> Hi, I would like to know how i can get text selection in svg.

   Click and drag on text?  It should just work.



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


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


Re: Text selection

Posted by Thomas DeWeese <Th...@Kodak.com>.
Fabio Biscaro wrote:

> Hi, I would like to know how i can get text selection in svg.

   Click and drag on text?  It should just work.



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


Text selection

Posted by Fabio Biscaro <bi...@webscience.it>.
Hi, I would like to know how i can get text selection in svg.
 
Thanks, 
Fabio