CRITICAL: error while rendering output: invalid matrix (not invertible)

Summary:

The PDF export breaks because of this critical bug. I could narrow this down to a single line.

Steps to reproduce:

inkscape --export-pdf-version=1.4 --export-type=pdf --export-filename=inkscape_BUG.pdf inkscape_BUG.svg

or

inkscape --export-pdf-version=1.5 --export-type=pdf --export-filename=inkscape_BUG.pdf inkscape_BUG.svg

What happened?

** (org.inkscape.Inkscape:111042): CRITICAL **: 09:21:19.885: error while rendering output: invalid matrix (not invertible)

What should have happened?

I should have obtained a PDF without issuing an error. In larger diagrams this error breaks the PDF export and the resulting PDF is mangled.

Sample attachments:

inkscape_BUG.svg

Version info

Inkscape 1.3 (1:1.3+202307231459+0e150ed6) Ubuntu 20.04.6 LTS