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

MAVproxy >= 1.8.66 causes exception in thread log_writer on exit #1414

Open
dbstf opened this issue Jul 1, 2024 · 0 comments
Open

MAVproxy >= 1.8.66 causes exception in thread log_writer on exit #1414

dbstf opened this issue Jul 1, 2024 · 0 comments

Comments

@dbstf
Copy link

dbstf commented Jul 1, 2024

Platform: RaspberryPi, aarch64, kernel 6.1.21-v8+
Python 3.11.2
numpy 2.0.0 (also tested with 1.26.4 --> same error)

Starting mavproxy script with either
python3 mavproxy.py --master=/dev/serial0 --baudrate=921600,
or
python3 mavproxy.py --master=/dev/serial0 --baudrate=921600 --cmd='set requireexit True',
respectively.

When trying to exit the script with either Ctrl-C or entering exit, respectively, MAVproxy version >= 1.8.66 is throwing the following exception:

Exception in thread log_writer:
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run

and

Exception in thread log_writer:
Traceback (most recent call last):
Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedWriter name='<stderr>'> at interpreter shutdown, possibly due to daemon threads
Python runtime state: finalizing (tstate=0x0057a4c8)

Current thread 0xf7b57040 (most recent call first):
  <no Python frame>

Extension modules: numpy._core._multiarray_umath, numpy._core._multiarray_tests, numpy.linalg._umath_linalg (total: 3)

There is no exception when using MAVproxy version <= 1.8.62
(Versions available via pip install: ..., 1.8.62, 1.8.66, 1.8.67, 1.8.68, 1.8.69, 1.8.70)

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

1 participant