pyControl / code

pyControl GUI and framework code
https://pycontrol.readthedocs.io
GNU General Public License v3.0
21 stars 20 forks source link

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

Open guykoy123 opened 1 month ago

guykoy123 commented 1 month ago

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 commented 1 month ago

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