Crash while starting a scene (work on different computer)

Report crashes, strange behaviour, or apparent bugs
zweifel
Posts: 14
Joined: 24 Apr 2014, 05:09

Re: Crash while starting a scene (work on different computer

Post by zweifel »

Hey there!

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);

                        }

Another thing, I am using simxSynchronous(clientID, true);
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:
$ ./vrep.sh
Error: could not find or correctly load the V-REP library
So I am waiting for the new release.

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?

zweifel
Posts: 14
Joined: 24 Apr 2014, 05:09

Re: Crash while starting a scene (work on different computer

Post by zweifel »

Just to let you know, the problem about the simulation not stopping is solved!!! \o/
It seems to be related with both the window system and the simxSynchronousTrigger(). I havent realized before that even a stop of the simulation is synchronous (need a trigger to be executed by the server).
Now the simulation stops when I change between one X client to the other (wonder why this happens, perhaps something related to the operation system) but either way when I go back to the application it continue from where it stopped.

So I am just waiting for the new realease to test it out and probably set this thread as solved!

Thank you for all the help!

zweifel
Posts: 14
Joined: 24 Apr 2014, 05:09

Re: Crash while starting a scene (work on different computer

Post by zweifel »

There are two news, one good and one bad.

The good one is that I tested the new release here and it works!!
Therefore, now V-REP can run on all my computers.

The bad news is that it is extremely slow. (0.5fps) while in the other computers (with worse graphic card) it is aroung 40fps during simulation.

I wil take a look at the drivers to see if everything is in order. Do any other user experience something similar?

coppelia
Site Admin
Posts: 10504
Joined: 14 Dec 2012, 00:25

Re: Crash while starting a scene (work on different computer

Post by coppelia »

Hello,

yes, this is very probably linked to your graphic card driver, specially if you are running on Linux. Try to use the official, up-to-date drivers. You can also try to play with some of the settings in the file system/usrset.txt, typically the OpenGl section, to see if that makes a difference.

Cheers

Post Reply