App crash in case the RTU server fails to start
Modbus TCP/RTU Slave Software.
Brought to you by:
elbar
In case the modbus RTU server is created with wrong parameters, or in case the user does not have permission to open the serial devices; when clicking connect the app gives the following error:
ERROR modbus._run_server Thread-1 server error: [Errno 13] Permission denied
However, the status is displayed as connected, and clicking disconnect crashes the app with the following traceback:
Traceback (most recent call last):
File "/home/user/pymodslave/pyModSlave.py", line 305, in _start_stop
self.svr.stop()
File "/home/user/pymodslave/modbus_tk/modbus.py", line 918, in stop
if self._thread.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'
Aborted (core dumped)
Anonymous
Hello.
Thanks for writing in. I will fix the bug asap.
Best Regards