iec104-python icon indicating copy to clipboard operation
iec104-python copied to clipboard

Fatal error: terminate called after throwing an instance of 'std::bad_weak_ptr'

Open aklira opened this issue 8 months ago • 4 comments

Hi, I am experiencing an issue with the examples/simple_server.py: After a short time (few seconds) the iec104 server would crash with the following error: terminate called after throwing an instance of 'std::bad_weak_ptr'

Here is the full log of the server instance:

[c104.Server] Created
[c104.Server] add_station] CA 47
[c104.Server] start] Started
[c104.Server] thread_run] Cannot keep up the tick rate: 73616 �s
[c104.Server] connection_event_handler] Connection OPENED by 192.168.230.196:54704 | TOTAL 34 �s
[c104.Server] raw_message_handler] TOTAL 22 �s
[c104.Server] connection_event_handler] Connection ACTIVATED by 192.168.230.196:54704 | TOTAL 23 �s
[c104.Server] raw_message_handler] TOTAL 0 �s
[c104.Server] raw_message_handler] TOTAL 5 �s
[c104.Server] send_activation_confirmation] to requesting MTU
[c104.Server] raw_message_handler] TOTAL 0 �s
[c104.Server] raw_message_handler] TOTAL 0 �s
[c104.Server] send_interrogation_response] Request | TOTAL 227 �s
[c104.Server] raw_message_handler] TOTAL 0 �s
[c104.Server] interrogation_handler] | IP 192.168.230.196:54704 | OA 0 | CA 47 | TOTAL 344 �s
[c104.Server] thread_run] Connected clients: 1
[c104.Server] send_interrogation_response] Periodic | TOTAL 293 �s
[c104.Server] raw_message_handler] TOTAL 13 �s
[c104.Server] raw_message_handler] TOTAL 8 �s
[c104.Server] raw_message_handler] TOTAL 8 �s
[c104.Server] raw_message_handler] TOTAL 1 �s
[c104.Server] send_interrogation_response] Periodic | TOTAL 384 �s
[c104.Server] raw_message_handler] TOTAL 6 �s
[c104.Server] raw_message_handler] TOTAL 4 �s
[c104.Server] raw_message_handler] TOTAL 6 �s
[c104.Server] raw_message_handler] TOTAL 0 �s
[c104.Server] send_interrogation_response] Periodic | TOTAL 134 �s
[c104.Server] raw_message_handler] TOTAL 7 �s
terminate called after throwing an instance of 'std::bad_weak_ptr'
  what():  bad_weak_ptr

aklira avatar Jun 13 '24 08:06 aklira