Inkscape crashes with parallel execution

Bug #1183294 reported by Sameer Nage Gowda C V
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

I am currently working on bulk conversion of EPS files to SVG files using Java + Inkscape [ver 0.48] .

I am executing the below the command recursively
inkscape -f "inFile.eps" -l "outFile.jpg

I am making use of Java threads to execute the command through Java Code : Runtime.getRuntime.exec(COMMAND).

I am getting peculiar error that Inkscape is not able to read the EPS file.

Error message:
** (inkscape.exe:13144): WARNING **:
Specified document D:\SomeFolder\acclntp_vd_5.eps cannot be opened (does not exist or not a valid SVG file)
RegistryTool: Could not set the value 'C:\Program Files (x86)\Inkscape\inkscape.exe'
D:\SomeFolder\acclntp_vd_5.eps:1: parser error : Start tag expected, '<' not found%!PS-Adobe-3.0 EPSF-3.0^]

I presume the error is thrown by the under lying GhostScript [ver 8.54] but i am may be wrong.
Any help in this regard is mot appreciated

Revision history for this message
Alvin Penner (apenner) wrote :

- could you attach the .eps file
- does this command work when you execute it from a DOS prompt without using Java
- are you getting the preview window that normally shows up when you load a ps file?

Revision history for this message
su_v (suv-lp) wrote :

> using Java + Inkscape [ver 0.48] .

Please provide detailed information about which Inkscape version you use (see Inkscape menu 'Help > About Inkscape')

Unless you use Inkscape >= 0.48.4, command line opening of EPS files fails unless specifying absolute paths, always:
- Bug #695120 “cannot open relative paths using script extensions ...”
  <https://bugs.launchpad.net/inkscape/+bug/695120>

Changed in inkscape:
status: New → Incomplete
tags: added: cli
tags: added: extensions-plugins
Revision history for this message
Sameer Nage Gowda C V (sameer-nagegowda) wrote :
Revision history for this message
Sameer Nage Gowda C V (sameer-nagegowda) wrote :

The conversion of EPS to SVG works fine when run from the DOS mode.
(I have attached few sample EPS files in the previous post.)

The issue arises only when the conversion is done parallely(asynchronous) form two separate threads.

No preview window is shown during the conversion however an error pop up(attached here with) appears under the failure conditions.

I am using Inkscape 0.48.2 r9819 and all the command line calls have images referred through there fully qualified paths.

su_v (suv-lp)
tags: added: win32
Changed in inkscape:
status: Incomplete → New
Revision history for this message
Alvin Penner (apenner) wrote :

- just writing to confirm that the conversion works normally for me as well, when run from DOS, using Inkscape 0.48.4 and Windows 7
- what is mgs.exe ? Is your java code running it?

http://compgroups.net/comp.text.tex/ps2pdf-fails-mgs.exe-culprit/299528
http://www.latex-community.org/viewtopic.php?f=9&t=1524

do you have multiple versions of Ghostscript installed? When you run gswin32c do you get something like this? gswin32c is the program that Inkscape calls.

C:\Program Files\gs\gs9.00\bin>gswin32c
GPL Ghostscript 9.00 (2010-09-14)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>quit

Revision history for this message
Sameer Nage Gowda C V (sameer-nagegowda) wrote :

Thanks for quick look..
mgs.exe is some kind of error pop-up from ghost script and not part of my java application.
I have only one version of ghost script installed on my system ver [8.54].

on running the gswin32c from my command prompt, i get the below messages
C:\Users\csk1kor>gswin32c
GPL Ghostscript 8.54 (2006-05-17)
Copyright (C) 2006 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>

Revision history for this message
Alvin Penner (apenner) wrote :

are you able to run other types of conversions using Java, that do not require the use of Ghostscript?

For example could you run the conversion of the type
inkscape -f "inFile.svg" -l "outFile.svg"
which would presumably convert Inkscape svg into plain svg.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.