VREP randomly cannot find remoteApiCommandServer.lua or any related .so libraries
Posted: 08 Mar 2019, 08:55
I am launching VREP from python and am using a slightly modified version of the remoteApiCommandServer.ttt file
I've been leaving a batch job to run overnight where it will spawn vrep, do some calculation, shut down vrep and spawn a new instance over and over. The spawning code works fine in general, but after at least an hour it randomly comes up with this error. Sometimes it can run for several hours before crashing.
Any ideas of what could be causing this?
Code: Select all
args = [os.path.join(vrepPath, "vrep.sh"), "-gREMOTEAPISERVERSERVICE_" + str(portNum) + "_FALSE_FALSE", remoteAPIscene.ttt]
subprocess.Popen(args, shell=False, cwd=vrepPath)
Code: Select all
stack traceback:
[C]: in function 'require'
[string "CHILD SCRIPT remoteApiCommandServer"]:1: in main chunk
Lua runtime error: [string "CHILD SCRIPT remoteApiCommandServer"]:1: module 'lua.remoteApiCommandServer' not found:
no field package.preload['lua.remoteApiCommandServer']
no file './lua/remoteApiCommandServer.lua'
no file '/usr/local/share/lua/5.1/lua/remoteApiCommandServer.lua'
no file '/usr/local/share/lua/5.1/lua/remoteApiCommandServer/init.lua'
no file '/usr/local/lib/lua/5.1/lua/remoteApiCommandServer.lua'
no file '/usr/local/lib/lua/5.1/lua/remoteApiCommandServer/init.lua'
no file '/home/ags/vrep/lua/remoteApiCommandServer.lua'
no file '/home/ags/vrep/lua/lua/remoteApiCommandServer.lua'
no file '/home/ags/vrep/BlueWorkforce/lua/remoteApiCommandServer.lua'
no file '/home/ags/vrep/../../scenes/lua/remoteApiCommandServer.lua'
no file './lua/remoteApiCommandServer.so'
no file './liblua/remoteApiCommandServer51.so'
no file '/usr/local/lib/lua/5.1/lua/remoteApiCommandServer.so'
no file '/usr/local/lib/lua/5.1/liblua/remoteApiCommandServer51.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './lua.so'
no file './liblua51.so'
no file '/usr/local/lib/lua/5.1/lua.so'
no file '/usr/local/lib/lua/5.1/liblua51.so'
no file '/usr/local/lib/lua/5.1/loadall.so'