stlehmann / pyads

Python wrapper for TwinCAT ADS
MIT License
252 stars 93 forks source link

Segmentation Fault core dumped after closeing multiple connections #317

Closed Bavop closed 10 months ago

Bavop commented 2 years ago

Hello, I am writing a prgram that connects to multiple plcs at once. For this i have create a class. I wanted to implement a restart functoion in wich i would stop all the plc (.close() ) and then i would reconnect the all (.open()) but after i close the first connection i get a segmentation fault (core dumped). Screenshot_20220420-225909_Termius SPKAAL and GR17A are names of the plcs

chrisbeardy commented 2 years ago

This is likely linked to #256 and i think is an issue with the ADS library on linux. You may have to find a workaround or may not be able to use linux to connect to multiple systems.