×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Address already in use

  • Posts: 245
  • Thank you received: 56
Hi All

I am just about to modify the SensoSesto focusser driver.

I have followed the instructions to setup a dev environment. I have built it in Kubuntu 18.04 with Qt Creator.
I have everything setup and I can build "libindi". The only thing I had to change was using sudo to run "make install" as kdesudo has been removed from the 18.04 distribution.

The first time I ran the driver under debug it worked fine but now each time I start up the debugger I get the message:
Debugging starts
2019-05-31T19:10:00: startup: /usr/local/bin/indiserver -v indi_sestosenso_focus
2019-05-31T19:10:00: Driver indi_sestosenso_focus: pid=53296 rfd=3 wfd=6 efd=7
2019-05-31T19:10:00: bind: Address already in use
2019-05-31T19:10:00: good bye
It also throws a signal:
The inferior stopped because it received a signal from the operating system.

Signal name :
SIGPIPE
Signal meaning :
Broken pipe

I have stopped everything (Kstars and Qt Creator) but (nearly) every time I try and run the debugger I get these messages.

Any idea's where I should be looking?

Cheers

Rishi
4 years 10 months ago #39737

Please Log in or Create an account to join the conversation.

  • Posts: 245
  • Thank you received: 56

Replied by Rishi Garrod on topic Address already in use

I have a work around but I would love to know if there is a better way.

The root cause it that the indiserver keeps running and holding onto the port.
I used netstat to find the PID of the process holding port 7624 which was of cource the indiserver
Then a kill -9 of the PID kills off the indiserver. Then I can debug again.

Is there a neat way of ensuring the indiserver is killed off when I finish a debug session from within Qt Creator?

Update:

This was just my unfamiliarity with Qt Creator. Each time you debug Qt creates a tab for that debug session. Removing the tab removes that instance of indiserver.
Last edit: 4 years 10 months ago by Rishi Garrod.
4 years 10 months ago #39739

Please Log in or Create an account to join the conversation.

Time to create page: 0.422 seconds