Vanishing objects and crashes when arranging a single object on an arc
Migrated from: https://bugs.launchpad.net/inkscape/+bug/1460448
Original reporter: @Moini
Steps to reproduce:
- open Inkscape
- make a circle with circle tool
- drag on one of the handles to make it an arc
- create another element, e.g. stroke of two nodes or a group, an arc, a rectangle, a star, a text
- Select the arc and the element
- Click "Arrange" using the Arrange-> polar coordinates dialog (in standard configuration).
- Click "Arrange" again if Inkscape didn't crash in the last step.
What happened?
This depends on what the second object is:
- Circle or Arc:
- Inkscape crashes, does a crash save and the stack trace is empty.
- Text:
- Everything in the file disappears. It's still there (you can select it), but it's not painted anymore, not even after zooming. Undo works and brings the objects back.
- Rectangle or star:
- Inkscape crashes: inkscape_backtrace.txt
- Path:
- The path simply becomes
M 0,0 V 0
- The path simply becomes
- Group:
- The group gets a
transform:scale(0)
attribute, if "Rotate Objects" is checked. Else, nothing happens.
- The group gets a
Hitting "Arrange" again, without changing the selection:
- Group:
- Path, without "Rotate objects" checked:
- Inkscape crashes. A crash save is created, but the stacktrace is empty. Similar to Circle/Arc in the first step.
When the arc is a full circle, Inkscape behaves well and the element is placed at the start of the circle.
What should have happened?
Either the one element is placed at the start of the arc (as with a full circle), or nothing because it doesn't make sense to distribute a single object. Objects should not disappear and Inkscape should not crash.
Inkscape Version and Operating System:
- Inkscape Version: 1.1-dev (12e2a09, 2020-02-19)
- Operating System: Windows 10
- Operating System version: 10.0.18362
Migration info
The original issue only discussed paths and groups as second objects, for which I need to hit arrange two times. Anyway, here's the replication info:
Reproduced (on OS X 10.7.5) with stacktrace 1460448-bt-full-r14181-debug-osx-quartz-64bit.txt (similar to mine)
- archived build of rev 13221 (merge of the original feature branch)
- Inkscape 0.91 r13725
- Inkscape 0.91+devel r14190
Trunk version from 2014 on Ubuntu 14.04, stacktrace 1460448-full-backtrace.txt