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

Freeze after Start Experiment #301

Open
tiffanyona opened this issue Sep 13, 2024 · 7 comments · May be fixed by #289
Open

Freeze after Start Experiment #301

tiffanyona opened this issue Sep 13, 2024 · 7 comments · May be fixed by #289
Labels
bonsai bug Something isn't working

Comments

@tiffanyona
Copy link
Collaborator

tiffanyona commented Sep 13, 2024

Screen freezes (but doesn't crash) after clicking Start Experiment. After quitting bonsai and opening a new client, most of the time it resolves right away, without having to interact with the hardware

@tiffanyona tiffanyona added bug Something isn't working bonsai labels Sep 13, 2024
@katrinanguyen7
Copy link

katrinanguyen7 commented Sep 13, 2024

Occurrences of freezing:

9/12 - occurred on 4A, 4D, and 5B for Katrina. Also occurred on 4D again for Olivia that day.
9/13 - occurred on 4A and 5B for Katrina.
916 - occurred on 4A for Katrina

I'll continue to add to this when it happens.

@bruno-f-cruz
Copy link
Collaborator

While the date is useful, I am more interested in knowing what happens around the time it freezes. Is it the first time after restarting the computer? Is it always on the second time you start bonsai? Is it always when you click START close to when you launch bonsai?
What does freezing mean? Do sensors keep playing? Is the editor responsive?

@katrinanguyen7
Copy link

@bruno-f-cruz like Tiffany stated above, it is after clicking Start Experiment. It is not always after restarting the computer or always after the 2nd time starting Bonsai. It is usually a few minutes after Bonsai is opened.
Freezing means the left and middle cameras freeze. The script doesn't play (the mouse is running in the box to black screens), and no sensors are recording or starting.
The 'end experiment' button does not work. The 'stop' button on the Bonsai node window does not work. The program has be force closed out and then re-opened.
After opening the 2nd time and starting right away, the program does not crash.

@bruno-f-cruz
Copy link
Collaborator

"By forced out" do you mean clicking the "Stop button" at the top of the bonsai IDE works? Or do you need to kill the process (by either terminating the task via task manager OR right-clicking the closing the black terminal window associated with bonsai). We need to figure out whether this is just one of the many conditions to start the task not being fulfilled OR an actual bug in the code.

@katrinanguyen7
Copy link

The process needs to be closed by right-clicking the black terminal window. The stop button on the Bonsai IDE does not work.

@bruno-f-cruz
Copy link
Collaborator

kk sounds good. Next time this happens please ping me so I can try to take a look. If I don't answer feel free to attempt to restart but I need to try to get a sense on how to reproduce this bug, ideally in the testing rig

@bruno-f-cruz
Copy link
Collaborator

This seems to be a bug related with the opengl context when the logging starts.

  • The bug happens much less frequently when running the workflow remotely than on the local machine
  • The bug seems to be happen more frequently when using the ffmpeg encoder rather than the opencv one.

At some point, we should review the chain of events that take place during logging initialization. It may be a good idea to add a small delay to ensure that logging settles before starting the vr experimental environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bonsai bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants