Page 3 of 3

Re: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries

Posted: 17 Apr 2019, 10:40
by agsdyson
It does not crash overnight but as I mentioned before this alternative connection method is unreliable and causes other problems for running parallel instances.

Re: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries

Posted: 18 Apr 2019, 14:21
by coppelia
Sorry, forgot that you already tried that option.

I have uploaded a new version of the legacy remote API plugin here. Can you try with that one? Make sure to set value of useAlternateSocketRoutines to false again in file remoteApiConnections.txt

Cheers

Re: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries

Posted: 24 Apr 2019, 14:13
by agsdyson
Thanks for the patch,

I've been running with new version of the legacy remote api plugin. It has failed to connect as before, but I want to perform more tests before I say for certain.

If I set useAlternateSocketRoutines to true, does that have exactly the same behaviour as the unupdated plugin?

Thanks

Re: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries

Posted: 24 Apr 2019, 14:36
by coppelia
That's strange. Here it works with the new version of the plugin. The only thing that was changed is to correctly close sockets when disconnecting (thus not causing the memory leak).
Make sure that useAlternateSocketRoutines is false with the new plugin (otherwise it behaves as the old plugin, when useAlternateSocketRoutines is true).

Cheers

Re: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries

Posted: 05 Sep 2022, 15:13
by xixisphere
agsdyson wrote: 20 Mar 2019, 12:26 ...

The code does not break nicely with ctrl-c so use ./minimalExample/killAll.sh which will kill all open vrep and minimalExample.py processes.

I hope this is helpful.
Hi, may I ask what this killAll.sh is? I have the same problem here and don't know how to kill the instances. Thank you.

Re: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries

Posted: 07 Sep 2022, 06:43
by coppelia
Hello,

this thread relates to the legacy remote API. We highly recommend that you instead use the ZeroMQ remote API, which is easier, and much more flexible to use, since it allows to use all the same API functions as from within CoppeliaSim.

Cheers

Re: VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries

Posted: 07 Sep 2022, 07:56
by agsdyson
I don't use vrep any more but I dug out the old script.

Code: Select all

#bash
#!/usr/bin/env bash
pkill -9 vrep &
kill $(pgrep -f minimalExample.py)
you will need to update it to match your code.