Insert (Repeat) fails and ultimately crashes the Schematic Editor when trying to repeat "Unfold from Bus"
Description
When I draw a signal from a bus using the "Unfold from Bus" menu item, and then try to repeat it using the Insert key, it fails to correctly repeat it. Then, the undo doesn't work. Then, if I try to manually delete, the Schematic Editor crashes. The expected behavior is for the repeat to function correctly, and to create a new signal coming off the bus, with the signal number incremented.
I have recorded a 2-minute video demonstrating the problem: https://youtu.be/HkVZjAAzKRw
The Insert (repeat) command fails for "Unfold from Bus", because it doesn't repeat correctly. Then, trying to undo fails. Then, trying to delete causes a crash.
Steps to reproduce
See the video recording. https://youtu.be/HkVZjAAzKRw The KiCad project that exhibits the problem is available here: https://1drv.ms/u/s!AlgR3ZgXGd0MtxKUuylpr7rPyYNu?e=dMjYo6
The project that I demonstrated in the video is downloadable here: https://1drv.ms/u/s!AlgR3ZgXGd0MtxKUuylpr7rPyYNu?e=dMjYo6
- Download the project from https://1drv.ms/u/s!AlgR3ZgXGd0MtxKUuylpr7rPyYNu?e=dMjYo6
- Open the schematic
- Use the "Unfold from Bus" menu option on the bus that is visible on the schematic, and draw a partial signal going nowhere, as shown in the video.
- Now try to repeat using the Insert key, and notice when moving it, that the repeat was partial.
- Now try to undo, and notice that the undo is not fully successful
- Now try to delete the remaining artifact of the Insert(repeat), and the software will crash.
KiCad Version
Application: KiCad x64 on x64
Version: 7.0.5, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: May 27 2023 02:48:13
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1936 without C++ ABI
Build settings:
KICAD_SPICE=ON