Crash on copy-paste of shape with rectangle avoided by connectors (debug/ppa builds)

Summary:

On pasting after copy operation, following error appears in terminal: "inkscape: /build/inkscape-oJVYlm/inkscape-1.2.1+202207142221+cd75a1ee6d~ubuntu20.04.1/src/3rdparty/adaptagrams/libavoid/router.cpp:814: unsigned int Avoid::Router::assignId(unsigned int): Assertion `objectIdIsUnused(assignedId)' failed."

Steps to reproduce:

  • open Inkscape
  • open a multi-page multi-layer svg
  • copy an element from the svg
  • paste the copied element

What happened?

consistently produces the error noted above; sometimes autosaves a new svg with the pasted element where it is wanted

What should have happened?

should paste the copied element every time

Sample attachments:

Version info


Inkscape 1.2 (1:1.2.1+202207142221+cd75a1ee6d)

    GLib version:     2.64.6
    GTK version:      3.24.20
    glibmm version:   2.64.2
    gtkmm version:    3.24.2
    libxml2 version:  2.9.10
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.44.7
    HarfBuzz version: 2.6.4

    OS version:       Linux Mint 20.3

Edited by Nathan Lee