Eraser tool can't cut certain paths, deletes them instead

Summary:

The Eraser Tool cannot cut through certain paths and deletes them entirely.

Steps to reproduce:

  • open the attached file in Inkscape: eraser-malfunction.svg
  • switch to the Eraser Tool and put it in the mode: "Cut out from paths and shapes"
  • erase a part of the green circle: everything works
  • now try the same with the red circle

What happened?

The entire red circle disappears.

What should have happened?

Only a part of the red circle should be erased, just like with the green circle.

Sample attachments: eraser-malfunction.svg

Version info

Inkscape 1.2-alpha (0901cf3998, 2022-02-16)

    GLib version:     2.70.4
    GTK version:      3.24.31
    glibmm version:   2.66.2
    gtkmm version:    3.24.5
    libxml2 version:  2.9.12
    libxslt version:  1.1.34
    Cairo version:    1.17.4
    Pango version:    1.50.4
    HarfBuzz version: 3.4.0

    OS version:       Arch Linux