I believe I have found a bug, but if I have missed something, then I apologise in advanced.
The issue is when calling 'simxCallScriptFunction' from python when using shared memory, and the function itself does a lot of computation.
The bug can be reproduced by simply having a script function like so:
Code: Select all
test=function(inInts,inFloats,inStrings,inBuffer)
for i=1,99999,1 do
print(i)
end
return {1},{},{},''
end
I have made sure that my port number <0, and have set a high negative timeout (e.g. -50000).
Note, that when I use port communication, it works fine. Perhaps there is timeout happening with shared memory?
Also of note, when I set 'doNotReconnectOnceDisconnected=False' when connected via shared memory, I get the following after the loop in the script finishes:
Connect (0): Failed to open the shared memory "/LocalVREP_REMOTE_API00001"
Thanks!