I believe that this may affect all telescopes, as it is a base telescope class.

I'm pooling data from Indi each 10 seconds calling ind_getprop (without any parameters) on raspberry pi.
Each time ind_getprop runs, I noted that open files grows by 2. Few time later, I receive messages on Ekos that there's too many files open.

Using lsof, I could verify that the driver indi_ieq_telescope has 1024 open files: 3 pipes, 1 ttyUSB, sometimes few ParkData.xml and more then 1000 ScopeConfig.xml.

$ lsof -p $(ps -e|grep indi_ieq|awk '{print $1}')|egrep -v mem\|rtd\|txt\|cwd\|FD

Verifing inditelescope.cpp in GitHub I could check that there's certainly some places that the file ScopeConfig.xml is left open, but I'm not sure about ParkData.xml, I believe that this second file is ok.

Maybe need some fclose(FilePtr); in few places on inditelescope.cpp to solve this issue.

Thanks,
Mastria.

Read More...