[Solved] Application Crashes when editing CustomTreeCtrl nodes

I have just released my app, RIDE v2.1.5.2, which uses CustomTreeCtrl as one most important feature, the selection of test cases.

I have two issues that I can only assume they are dependent of wxPython, CustomTreeCtrl.

On Windows, this:

  • You edit a test case name, add a space in the end, and then click outside the edit box (you are avoiding the change)

On Linux, this:

  • You edit a test case name, add a space in the end, and then press Escape (you are avoiding the change)

The app crashes with no info, except on Linux that we can see an AssertionError. In the Linux issue I have a “fix” to wxPython.

Can someone (@Andrea_Gavana :wink: ) take a look in to this?

We can see this in wxPython 4.2.3, Windows 10 or 11) and Linux I tried in Fedora 42 KDE/Plasma, and Debian bullseye/sid LXDE.
(Python 3.9 to 3.13)

I actually solved this by catching the event for pressing the Escape key, and restoring the original value saved in the init of the edit control. The spaces in the end of labels were stripped and changes not applied if the edit result was equal to original.