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

pyControl crashes when load a working tasks after trying to load a task with bugs #125

Open
guykoy123 opened this issue Jul 28, 2024 · 2 comments

Comments

@guykoy123
Copy link

guykoy123 commented Jul 28, 2024

I've just migrated to v2.0.2.
I'm working on a new task. specificaly for a custom controls gui, when I tried to load the task onto the board I received the following exception:
Transferring state machine WIP\T1_wheel_moving to pyboard. OK
Error: uncaught exception of type: <class 'AttributeError'>
Disconnected from board.

Which may just be an error i made in my code.
However, when I try to load and run a task that wasn't touched and had previously worked just fine I now get an error when I try to load it:
Transferring state machine Experiments\E1_behavioral_experiment to pyboard. OK
Error: uncaught exception of type: <class 'TypeError'>
Disconnected from board.
I have been able to reproduce the issue with different working tasks.

After I reopen the pyControl GUI window all the tasks work just fine until I try to load the broken task
I also managed to reproduce the bug with a different exception, not just AttributeError
Connecting to board COM3
Micropython version: 1.16
Framework version: 2.0.2
Transferring state machine Experiments\E1_behavioral_experiment to pyboard. OK

@guykoy123
Copy link
Author

This is what I pulled from the log file:
2024-08-06 09:53:21,096 Traceback (most recent call last): File "C:\Users\guykoy\Desktop\pyControl - development\Physiology_Lab_BGU\source\gui\run_task_tab.py", line 374, in setup_task self.controls_button.clicked.disconnect() TypeError: disconnect() failed between 'clicked' and all its connections

@ThomasAkam
Copy link
Collaborator

Hi @guykoy123 ,

Apologies, I somehow missed this when first posted. Did you manage to resolve this issue? If not could you upload a minimal task example that reproduces the error?

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