Skip to content

BGApiConnHandler thread exceptions, no way to catch and recover #2

@karlp

Description

@karlp

I've got some long lived applications using bgapi, and they (far too) regularly have the internal thread die:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
  File "/usr/lib/python3.10/site-packages/bgapi/bglib.py", line 165, in run
  File "/usr/lib/python3.10/site-packages/bgapi/serdeser.py", line 226, in parse
KeyError: 0

I presume this is related to the inherent unreliable nature of the serial channel, but that's unfixable...

Unfortunately, there's no event generated, or caught, so there doesn't seem to be any way for my application to handle this. It would be nice if it could all be safely caught and generate some system level event please...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions