unwanted DOS output: 'WARNING **: SPIStyle::readIfUnset()' due to preference.xml file

Bug #1758536 reported by Alvin Penner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

while attempting to diagnose a bug last week, I accidentally corrupted my preferences file in some way. Preferences.xml file is attached here. Now, whenever I run Inkscape I get the following unwanted output. I can fix this by deleting the preferences.xml file, but would very much prefer not to do so.

- reproduced on Windows 10, Inkscape 0.92.3 (2405546, 2018-03-11)
- reproduced on Windows 10, Inkscape 0.92.2 (6c06d47, 2018-02-06)
- reproduced on Windows 10, Inkscape 0.91 r13725 (Jan 30 2015)
- not reproduced on Windows 10, Inkscape 0.92+devel (d821bc6, 2018-03-13)

Note: on 0.92.2 and 0.92.3 the style property id = 103. On 0.91 the style property id = 93.

...........................
C:\Program Files (x86)\Inkscape>inkscape

** (inkscape.exe:5192): WARNING **: SPIStyle::readIfUnset(): Invalid style property id: 103 value: m 218.44336000000001263, 191.60546999999999684 c -0.54847999999999997, 0.00800000000000000 -1.09078999999999993, 0.23696999999999999 -1.47852000000000006, 0.62500000000000000 -0.39530999999999999, 0.39522000000000002 -0.62500000000000000, 0.95077000000000000 -0.62500000000000000, 1.50975999999999999 0, 0.55900000000000005 0.22969000000000001, 1.11454999999999993 0.62500000000000000, 1.50977000000000006 l 1.76757999999999993, 1.76757999999999993 a 0.51098896000000005, 0.51098896000000005 0 0 1 -0.36132999999999998, 0.87304000000000004 h -14.18553999999999959 -0.00600000000000000 c -0.05800000000000000

** (inkscape.exe:5192): WARNING **: SPIStyle::readIfUnset(): Invalid style property id: 103 value: m 218.44336000000001263, 191.60546999999999684 c -0.54847999999999997, 0.00800000000000000 -1.09078999999999993, 0.23696999999999999 -1.47852000000000006, 0.62500000000000000 -0.39530999999999999, 0.39522000000000002 -0.62500000000000000, 0.95077000000000000 -0.62500000000000000, 1.50975999999999999 0, 0.55900000000000005 0.22969000000000001, 1.11454999999999993 0.62500000000000000, 1.50977000000000006 l 1.76757999999999993, 1.76757999999999993 a 0.51098896000000005, 0.51098896000000005 0 0 1 -0.36132999999999998, 0.87304000000000004 h -14.18553999999999959 -0.00600000000000000 c -0.05800000000000000

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

fwiw the path in the error message has the attached shape

Revision history for this message
Patrick Storz (ede123) wrote :

Seems to be related to Tavmjong's latest attempts to support the path "d" property (i.e. the actual path data) as a CSS style attribute.

To fix in your preferences.xml simply delete the unwanted styles from the entry
  <group id="desktop" style="...">

You might want to ping Tavmjong, though, if this gets always added when using the master branch (we wouldn't want to store arbitrary path data as a "default style")

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

thanks, that worked well.
my original preferences.xml had the entry:

  <group
     id="desktop"
     style="-inkscape-font-specification:'Lucida Console';font-family:'Lucida Console';font-size:53.33333333px;writing-mode:lr;line-height:125%;fill:#000000;fill-rule:evenodd;stroke:#b1d700;text-anchor:middle;text-align:center;stroke-width:7.55905512;d:m 218.44336000000001263, 191.60546999999999684 c -0.54847999999999997, 0.00800000000000000 -1.09078999999999993, 0.23696999999999999 -1.47852000000000006, 0.62500000000000000 -0.39530999999999999, 0.39522000000000002 -0.62500000000000000, 0.95077000000000000 -0.62500000000000000, 1.50975999999999999 0, 0.55900000000000005 0.22969000000000001, 1.11454999999999993 0.62500000000000000, 1.50977000000000006 l 1.76757999999999993, 1.76757999999999993 a 0.51098896000000005, 0.51098896000000005 0 0 1 -0.36132999999999998, 0.87304000000000004 h -14.18553999999999959 -0.00600000000000000 c -0.05800000000000000;vector-effect:none;stroke-miterlimit:4;stroke-dasharray:none">

I deleted the part that says:
d:m 218.44336000000001263, 191.60546999999999684 c -0.54847999999999997, 0.00800000000000000 -1.09078999999999993, 0.23696999999999999 -1.47852000000000006, 0.62500000000000000 -0.39530999999999999, 0.39522000000000002 -0.62500000000000000, 0.95077000000000000 -0.62500000000000000, 1.50975999999999999 0, 0.55900000000000005 0.22969000000000001, 1.11454999999999993 0.62500000000000000, 1.50977000000000006 l 1.76757999999999993, 1.76757999999999993 a 0.51098896000000005, 0.51098896000000005 0 0 1 -0.36132999999999998, 0.87304000000000004 h -14.18553999999999959 -0.00600000000000000 c -0.05800000000000000

and the problem disappeared.
It seems this is probably related to commit:
https://gitlab.com/inkscape/inkscape/commit/0326e4287a1f6a4f52d9a3998adf8670e25c85da

This commit has the following addition to the code in 'attributes.cpp':

/* SVG 2 Attributes promoted to properties */
+ {SP_ATTR_D, "d"},

Revision history for this message
Alvin Penner (apenner) wrote :
Alvin Penner (apenner)
Changed in inkscape:
status: New → Invalid
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.