Originally I had only one question: about the crash.
But then I realized that the simulation was not stopping at some moment. So both questions mixed in this thread. Should I start a new thread?
Anyway, about the simulation not stopping.
I did get the info from the simxGetInMessageInfo(clientID,simx_headeroffset_server_state,&info), but it is always 1, meaning the state is always running.
The minimalistic code I sent should be able to reproduce the error if run long enough.
I wounder if the error comes from a unintencional DoS attack ?? However, the simx_opmode_oneshot_wait should in my understanding block and wait for the server and therefore a DoS would be unlike.
Again the code I am using is:
Code: Select all
int error_code= simxStopSimulation(clientID, simx_opmode_oneshot_wait);
while(error_code!=simx_return_ok)
{
printf("error while trying to stop the simulation%d\n",error_code);
printError(error_code);
error_code= simxStopSimulation(clientID, simx_opmode_oneshot_wait);
simxInt info;
simxGetInMessageInfo(clientID,simx_headeroffset_server_state,&info);
printServerState(info);
}
Should I do a simxSynchronousTrigger(clientID) after the request?
I will try it out now.
About the crash, I've got the same results as dknetz and Richard:
So I am waiting for the new release.$ ./vrep.sh
Error: could not find or correctly load the V-REP library
Less important questions: how do I set the accuracy of the physics engine with the Remote API? And how do I speed up the simulation also through the Remote API?