tne-lab / py-behav-box-v2

Pybehave is an open source software interface and framework for controlling behavioral experiments in neuroscience and psychology.
https://py-behav-box-v2.readthedocs.io/en/latest/
MIT License
3 stars 8 forks source link

Error Handling System Needs to be Streamlined #94

Open theonlydvr opened 2 weeks ago

theonlydvr commented 2 weeks ago

Issues with error handler:

  1. Some errors are never reported to the user or logged (seems to be restricted to async cases)
  2. Some errors are logged but the stack trace is not shown to the user
  3. Chambers aren't properly stopped or removed after an error
  4. Errors in one chamber sometimes crash other chambers or the GUI entirely

Potential improvements

  1. Give user the option to choose to remove a chamber or attempt to recover following an error (possibly add a remember this choice option)
  2. Give option to refresh a source if it crashes irreversibly