Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
banchan86 opened this issue Jan 26, 2025 · 1 comment

Comments

@banchan86
Copy link

banchan86 commented Jan 26, 2025

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

@PathogenDavid
Copy link
Member

Still need to look at the main issue more but:

Bonsai 2.9 preview starting the workflow actually throws an unhandled exception that I was able to get a log from.

This is maybe related to the generally broken behavior of visualizer mapping in 2.9: bonsai-rx/bonsai#2071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants