Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • inkscape inkscape
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,668
    • Issues 1,668
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 146
    • Merge requests 146
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • InkscapeInkscape
  • inkscapeinkscape
  • Issues
  • #2502
Closed
Open
Issue created May 25, 2021 by Arie Lakeman@arie.lakeman

Stroke to path fails if path has no fill/stroke/marker

Summary:

The SVG file found here USA.svg when running stroke to path via the CLI throws an exception

Steps to reproduce:

When I run Inkscape from the CLI with this command (to convert paths to strokes) inkscape "in_file.svg" --export-plain-svg --batch-process --actions "EditSelectAll;StrokeToPath;FileSave" --export-filename "out_file.svg" (this is the input SVG https://jsfiddle.net/zoe6ayL3/), I get this error. This command works for other files I am testing it on.

Alternative:

  • Open inkscape
  • draw a rectangle
  • Object to Path
  • change fill to None
  • unset stroke
  • Stroke to path

What happened?

ERROR:/Users/Shared/work/6DxXS3HP/0/inkscape/inkscape/src/xml/repr-css.cpp:474:void sp_repr_css_change(Inkscape::XML::Node *, SPCSSAttr *, const gchar *): assertion failed: (repr != nullptr)
Bail out! ERROR:/Users/Shared/work/6DxXS3HP/0/inkscape/inkscape/src/xml/repr-css.cpp:474:void sp_repr_css_change(Inkscape::XML::Node *, SPCSSAttr *, const gchar *): assertion failed: (repr != nullptr)

What should have happened?

No Exception should have been thrown

Version Info:

- Inkscape Version: 1.02, 1.10
- Operating System: MacOS 
- Operating System version: 11.2.3
Edited May 25, 2021 by Nathan Lee
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking