Re: [Inkscape-devel] Powerstroke: adding/deleting width nodes
Augh, can someone do something about those "WARNING **: Inkscape currently only supports color-interpolation-filters = sRGB" messages? They're clogging up my console while I'm trying to get other bug messages. :( (but all my text tool problems are gone, yay!)
Anyway, sorry for the delay.
This is weird, because it is exactly these two things that I fixed! Can you send me an example file?
Still Inkscape 0.48+devel r11297.
There are two files attached: - The New doc file is the first file that crashed when I was testing Powerstroke. In fact, even now, it crashes Right when I open it. :P Which is rather fortunate because I wasn't able to get a second file that crashed once to crash again, nor the Tests file. - The Tests file is my more systematic attempt to reproduce the error messages. I basically started with the same-ish shape for different algorithms and cusps and attempted to torture the lines until I got a proper error message.
In particular, I've marked one shape where it was quite easy to reproduce this error message: WARNING **: Exception during LPE [Unstable!] Power stroke execution. lib2geom exception: Invariants violation (./2geom/piecewise.h:144)
Just select with the F2 tool, and drag the diamond back and forth between where the two lines point at.
The error message should pop up. I was able to reproduce that error in several other lines but not as systematically. It seems to affect mostly the Linear and Spiro algorithms, though it may affect other line types too. It usually happens when editing the powerstroke width.
No matter what I did though, I wasn't able to reproduce a crash in this session (and not for lack of trying).
Augh, can someone do something about those "WARNING **: Inkscape currently only supports color-interpolation-filters = sRGB" messages? They're clogging up my console ...
You can probably get rid of most of these messages by editing the preferences.xml file. In the color-interpolation-filters property, replace all occurrences of 'linearRGB' with 'sRGB' instead. There should probably be seven occurrences, one for each tool. Below is the typical entry for the 'rect' tool. I have no idea what the impact is if you are using filters, but if you are not using filters, this should be a safe change to make.
Unfortunately, the original default behaviour, and the error message, will probably return if you edit the default style preference for that particular tool.
As a matter of principle, I think it would be desirable to make this preference editable using the GUI. It does not seem reasonable to have data in a preferences file that is not accessible using the GUI unless there is absolutely no ambiguity as to what the default value should be, in which case it should be hard-coded and not accessible at all, but perhaps I have not looked hard enough to find it in the GUI.
<eventcontext id="rect"
style="color:#000000;color-interpolation:sRGB;color-interpolation-filters:linearRGB;fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;clip-rule:nonzero" usecurrent="0" width="94.285713195800781" height="260" rx="0" ry="0" />
hth, Alvin Penner
-- View this message in context: http://inkscape.13.n6.nabble.com/Powerstroke-adding-deleting-width-nodes-tp4... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
participants (2)
-
alvinpenner
-
Valerie