Inkskape crashes when sculpting tool is applied to object that hasn't had "object to path" applied to it

Bug #1751437 reported by mastorak
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

When an object such as a rectangle or a circle is newly created and "object to path" has not been applied to it inkscape crashes if the user tries to use the sculpting tool on it. This has been happening for several version of inkscape over the past few months.

Version : 0.92.2-8
OS : Arch Linux

Revision history for this message
Hachmann (marenhachmann) wrote :

Cannot confirm this on Linux Mint 18.3. Can you be a bit more specific in your description, and share an example file that has the issue?

Also, can you start Inkscape from the command line, trigger the crash and copy the command line output here?

Revision history for this message
mastorak (mastorak) wrote :

I did more testing and I can consistently reproduce the error in the attached svg file.
Please not that:
-With a file containing just a few elements it does not occur.
-If before sculpting I choose the rectangle and click on "Object to path" it does not occur.
Please find attached an archive containing the svg and the log.
To recreate:
-Open the provided svg
-click on the "create rectangle"
-drag mouse to create rectangle
-click on sculpting tool(with "push parts of path" selected, width=5, force=19).
-click and drag sculpting cursor a little bit outside rectangle's bounds and drag to rectangle to sculpt it.
-inkscape will crash with segmentation fault as soon as the sculpting cursor and rectangle bounds collide.

Revision history for this message
Hachmann (marenhachmann) wrote :

Thank you for providing this very good info.

One note:
if you care about your privacy, better clean out all "inkscape:export-filename="/home/<username>..." occurrances from the SVG file (using search and replace with a text editor or on command line) before posting.

Tried your instructions with your file, and also in a new one:

1. Interestingly, the rectangle is not always automatically converted to a path - maybe there's a change threshold? I can sometimes trigger conversion to path when I try to push in a corner, but it doesn't work at the sides. Seems to have to do with the size of the rectangle, but not sure.

2. Once, I was able to trigger a crash, with a single rectangle in a new file. No interesting info other than yours. I couldn't trigger any further crashes during my testing.

3. The effect of the tool does not appear to be predictable. Sometimes, nothing happens. Sometimes, the rectangle's corners stay sharp, and the edges stay straight lines, only the corners move. Sometimes, the rectangle's corners get rounded only, sometimes, the rectangle's edges get pushed in.

As you seem to be able to trigger the issue more reliably, could you try to obtain a backtrace? Instructions are available here: https://inkscape.org/en/contribute/report-bugs/

Revision history for this message
mastorak (mastorak) wrote :

Thanks for the privacy advice, I did not know that the svg contained such info. I removed the attachement. In case you need a sample again let me know and I 'll upload another one.
I run the debugger and reproduced the bug. Please find attached the debug log.

Revision history for this message
Hachmann (marenhachmann) wrote :

(It's a long-standing issue, with the file paths. At some point, someone wrote a warning here:
https://inkscape.org/en/about/privacy/. There's a bug report for it somewhere, too.)

Thank you for the backtrace. From here on, I hope a developer will take over.
They might at some point ask you to do a test, or for more info.

I'm not sure if a short screencast would be useful or not, but if it's easy for you to do, it might help someone with reproducing.

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

Other bug subscribers

Bug attachments

Remote bug watches

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