Page 1 of 1

ROSInterface crashes, Too many open files

Posted: 06 Mar 2018, 10:18
by rafael.rojas
Hello all,
I'm running V-REP Version 3.5.0 rev 1 PRO EDO in my 64 bit ubuntu machine. I'm currently using the ROS interface to control two UR3. After runing the simulation few times (3 or 4) the ROS interface does not work any more and I get this message

[ERROR] [1520327116.509295159]: accept() on socket [33] failed with error [Too many open files]

In fact, I go to the /proc/pid/fd relative to V-REP and I can see a bunch of file descriptor references as broken symbolic links.

I think that I'm not shooting down the publisher or the subscriber in a correct manner.
I have two child script, one is a threaded script and the other is a non-threaded script. In both I'm using the
same mechanism.

Code: Select all

function sysCall_cleanup()
    simROS.shutdownSubscriber(commandSubscriber)
    simROS.shutdownPublisher(feedbackPublisher)
end

Re: ROSInterface crashes, Too many open files

Posted: 07 Mar 2018, 11:24
by coppelia
Hello,

a simulation script (e.g. a child script) should automatically shut down all publishers/subscribers created that it created.
Did you try if something like this helps?

Cheers