Menu

#24 App crash in case the RTU server fails to start

1.0
closed
nobody
BUG (7)
2021-12-30
2021-12-02
No

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)

Discussion

  • elbar

    elbar - 2021-12-02

    Hello.

    Thanks for writing in. I will fix the bug asap.

    Best Regards

     
  • elbar

    elbar - 2021-12-02
    • labels: --> BUG
     
  • elbar

    elbar - 2021-12-30
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel