Skip to content

Editing text in TextBox in TableLayoutPanel causes Bonsai to hang sometimes #35

Description

@banchan86

Description

Using a minimal workflow here:

Image

The first string I type in the GUI that pops up when I double click on TableLayoutPanel is ok, but editing the text subsequently can sometimes hang Bonsai.

  1. You do not need to save/stop the workflow, it can happen on the first run.
  2. It does not always happen, sometimes I can get 1 or 2 edits in before it hangs. It's like a particular action (or character?) misconfigures the stream (not sure if I am using the right words here).

Steps to reproduce

I managed to isolate a reproducible example that worked on two different computers. On Bonsai 2.8.5 it just freezes and becomes unresponsive, on Bonsai 2.9 preview starting the workflow actually throws an unhandled exception that I was able to get a log from. Files attached.

To reproduce in Bonsai 2.8.5:

  1. Start the workflow
  2. Double click the TableLayoutPanel to bring up the textbox.
  3. Select all the text in there
  4. Type b and continue typing (should hang)

The attached workflow will crash every time.

Workaround

I have taken to clearing the textbox on every workflow run and making sure I just type the string as it is without messing around with it.

#2059_textbox_tablelayoutpanel_unhandled_exception.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions