Text disappears when its width overflow some limit

Summary:

When a text is edited so its width overflows some limit the text disappears. If finally edited to come back below the width limit it reappears. But if is deselected while hidden due to is too large width, the text object is deleted and only be retrieved by undo.

Steps to reproduce:

Unfortunately I have no idea how I got that text object to behave like that. But this is stable in the sense that once obtained this can be reproduced for ever and ever copied, saved and reloaded. The attached files contains the text with the anomaly.

  • Open the attached file below with Inkscape 1.2.1 (9c6d41e410, 2022-07-14)
  • Press T to get A cursor
  • Left-click on the text object to enter edit mode
  • Press few characters on keyboard to enlarge the string

What happened?

As the result the text object disappears.

What should have happened?

I would have expected that the dotted rectangle get enlarged to fit the whole new entered text.

Sample attachments:

File with corrupted text field: TestBug.svg

Video of an alternate way to produce the same anomaly: 2022-08-20_15-01-43.mkv

Version info

Inkscape 1.2.1 (9c6d41e410, 2022-07-14)

Inkscape 1.2.1 (9c6d41e410, 2022-07-14)

    GLib version:     2.72.2
    GTK version:      3.24.34
    glibmm version:   2.66.4
    gtkmm version:    3.24.6
    libxml2 version:  2.9.14
    libxslt version:  1.1.35
    Cairo version:    1.17.6
    Pango version:    1.50.7
    HarfBuzz version: 4.4.1

    OS version:       Windows 10 21H2

Edited by Philippe Chevrier