--shell on windows crashes due to spaces in inkscape pathname

Bug #1630371 reported by Stephen Parry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned

Bug Description

Inkscape 0.91 r13725 64 bit
Windows 10 Pro 64bit version 1607 build 14393.222

When inkscape is installed in its default directory (c:\program files (x86)\Inkscape or c:\program files\Inkscape) and executed by full pathname with --shell, shell mode gets confused and bombs out with warnings when commands are issued.

Steps to reproduce:
1. create a simple svg called shell_test_0.svg with a few shapes in
2. open a command prompt in the directory containing the test files
3. Enter this command to enter shell mode:

 "c:\Program Files\Inkscape\inkscape" --shell

Note that the quotes are required to work around Redmond's twisted notion of what makes a good folder name for executables. Different placement of the quotes causes variations of the bug, but no workaround.

4. The shell will open:

 Inkscape 0.91 r13725 interactive shell mode. Type 'quit' to quit.
 >

5. In shell mode enter the following:

 --query-all shell_test_0.svg

6. The shell produces the following output and then exits unexpectedly:

** (inkscape.exe:8560): WARNING **: Can't open file: FilesInkscapeinkscape (doesn't exist)

** (inkscape.exe:8560): WARNING **: Can't open file: FilesInkscapeinkscape (doesn't exist)

** (inkscape.exe:8560): WARNING **: Specified document FilesInkscapeinkscape cannot be opened (does not exist or not a valid SVG file)
svg2,51.17857,92.112206,591.92855,766.2143
layer1,51.17857,92.112206,591.92855,766.2143
path4136,194.03571,92.112206,186.21428,214.78572
path4138,254.0357,234.96934,174.78572,151.92857
path4140,388.32144,506.39791,80.5,194.78572
path4142,51.17857,374.96935,117.64286,289.07144
path4144,302.60715,663.54075,231.92857,77.64286
path4146,582.60712,212.1122,60.5,223.35715
path4148,262.60715,569.25509,6.2142859,14.785714
path4150,151.17857,792.11222,303.35715,66.214287
path4152,139.75,254.96936,223.35715,74.785713
path4154,282.60713,537.82647,3.3571429,49.07143
path4156,351.17858,477.82648,169.07143,40.5
path4158,434.0357,680.68361,114.78571,63.357143
path4160,179.74998,677.82649,203.35715,43.357143
path4162,322.60714,512.11219,254.78572,111.92857

Tags: cli crash win32
jazzynico (jazzynico)
tags: added: cli crash
Revision history for this message
jazzynico (jazzynico) wrote :

Thanks for taking the time to write a report!

Reproduced on Windows XP (32-bit), lp:inkscape/0.92.x rev. 15207.

Changed in inkscape:
status: New → Confirmed
tags: added: win32
Revision history for this message
Alvin Penner (apenner) wrote :

on Windows 10, Inkscape 0.92pre3 15195,
replacing the backslash with a forward slash will work:

- for example, the command : >--query-all \windows\temp\catan.svg fails.
- but the command : >--query-all /windows/temp/catan.svg succeeds

Revision history for this message
Stephen Parry (sgparry) wrote :

@Alvin No: It's the _program_ path that is the problem, not the svg file path. Look at my example. I did not use a path for my svg at all.

@jazzynico: This may be how I have the program installed on my system, but preview 2 will not --shell at all. It just returns to the console. No command line args seem to work at all.

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.