Re: Crash while starting a scene (work on different computer
Posted: 30 Apr 2014, 10:41
Thank you, we'll look into this.
Cheers
Cheers
Discussions and questions about CoppeliaSim
http://forum.coppeliarobotics.com/
Code: Select all
// start streaming:
simxGetJointPosition(clientID,motorHandle,&pos,simx_opmode_streaming);
// stop streaming:
simxGetJointPosition(clientID,motorHandle,&pos,simx_opmode_discontinue);
Code: Select all
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffab969700 (LWP 27723)]
0x00007ffff15cd269 in glDeleteTextures () from /usr/lib/nvidia-current/libGL.so.1
Code: Select all
Add-on script 'vrepAddOnScript-addOnScriptDemo.lua' was loaded.
Simulator launched.
Plugin 'Dynamics': loading...
Plugin 'Dynamics': load succeeded.
Plugin 'BubbleRob': loading...
Plugin 'BubbleRob': load succeeded.
Plugin 'Collada': loading...
Plugin 'Collada': load succeeded.
Plugin 'K3': loading...
Plugin 'K3': load succeeded.
Plugin 'Mtb': loading...
Plugin 'Mtb': load succeeded.
Plugin 'ReflexxesTypeIV': loading...
Plugin 'ReflexxesTypeIV': load succeeded.
Plugin 'RemoteApi': loading...
Starting a remote API server on port 19997
Plugin 'RemoteApi': load succeeded.
Plugin 'Ros': loading...
Plugin 'Ros': load succeeded.
Plugin 'SimpleFilter': loading...
Plugin 'SimpleFilter': load succeeded.
Plugin 'Urdf': loading...
Plugin 'Urdf': load succeeded.
Plugin 'Vision': loading...
Plugin 'Vision': load succeeded.
Using the internal 'MeshCalc' functionality.
Using the 'Dynamics' plugin.
Using the internal 'PathPlanning' functionality.
Segmentation fault (core dumped)
Thank you very much for pointing out! I tried it and it seems much faster. However, at some point it still does not stop the simulation and enter forever in the following loop:Finally, when doing hundreds of different simulation run on the same scene, there is no need to close and reload the scene: simply stop and restart the simulation (most parameters and values are automatically reset at simulation stop).
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);
}
Code: Select all
$ rosservice call /vrep/simRosLoadScene a.ttt
ERROR: transport error completing service call: unable to receive data from sender, check sender's logs for details
Code: Select all
$ ./vrep.sh
Add-on script 'vrepAddOnScript-addOnScriptDemo.lua' was loaded.
Simulator launched.
Plugin 'Dynamics': loading...
Plugin 'Dynamics': load succeeded.
Plugin 'BubbleRob': loading...
Plugin 'BubbleRob': load succeeded.
Plugin 'Collada': loading...
Plugin 'Collada': load succeeded.
Plugin 'K3': loading...
Plugin 'K3': load succeeded.
Plugin 'Mtb': loading...
Plugin 'Mtb': load succeeded.
Plugin 'ReflexxesTypeIV': loading...
Plugin 'ReflexxesTypeIV': load succeeded.
Plugin 'RemoteApi': loading...
Starting a remote API server on port 19997
Plugin 'RemoteApi': load succeeded.
Plugin 'Ros': loading...
Plugin 'Ros': load succeeded.
Plugin 'SimpleFilter': loading...
Plugin 'SimpleFilter': load succeeded.
Plugin 'Urdf': loading...
Plugin 'Urdf': load succeeded.
Using the internal 'MeshCalc' functionality.
Using the 'Dynamics' plugin.
Using the internal 'PathPlanning' functionality.
Segmentation fault (core dumped)
Code: Select all
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
Code: Select all
00011892 <-- (SIM C API) simSetBooleanParameter_internal
00011892 --> (SIM C API) simLoadScene_internal
00011892 $$S 0,0,1,0 (SIM) 'locking for write' (simLoadScene_internal)
00011892 $$S
00011892 $$S +++++++++++++++++++++++++++++++++++++++++++++++++++++++
00011892 $$S +++++++++++++++++++++++++++++++++++++++++++++++++++++++
00011892 $$S 0,0,1,1 (SIM) 'locked for write' (simLoadScene_internal)
00011892 --> (SIM FUNC) loadScene
00011892 --> (SIM FUNC) closeDlg
00011892 --> (GUI FUNC) __closeDlg
00011892 <-- (GUI FUNC) __closeDlg
00011892 <-- (SIM FUNC) closeDlg
00011892 --> (SIM FUNC) newSceneProcedure
00011893 <-- (SIM FUNC) newSceneProcedure
00011897 ... (SIM) (setParent) 'easy unlocking'
00011897 ... (SIM) (setParent) 'easy unlocked'
00011898 ... (SIM) (setParent) 'easy locking'
00011898 ... (SIM) (setParent) 'easy locked'
00011899 ... (SIM) (setParent) 'easy unlocking'
00011899 ... (SIM) (setParent) 'easy unlocked'
00011899 ... (SIM) (setParent) 'easy locking'
00011899 ... (SIM) (setParent) 'easy locked'
00011900 ... (SIM) (setParent) 'easy unlocking'
00011900 ... (SIM) (setParent) 'easy unlocked'
00011901 ... (SIM) (setParent) 'easy locking'
00011901 ... (SIM) (setParent) 'easy locked'
00011902 ... (SIM) (setParent) 'easy unlocking'
00011902 ... (SIM) (setParent) 'easy unlocked'
00011903 ... (SIM) (setParent) 'easy locking'
00011903 ... (SIM) (setParent) 'easy locked'
00011904 ... (SIM) (setParent) 'easy unlocking'
00011904 ... (SIM) (setParent) 'easy unlocked'
00011904 ... (SIM) (setParent) 'easy locking'
00011904 ... (SIM) (setParent) 'easy locked'
00011905 ... (SIM) (setParent) 'easy unlocking'
00011905 ... (SIM) (setParent) 'easy unlocked'
00011906 ... (SIM) (setParent) 'easy locking'
00011906 ... (SIM) (setParent) 'easy locked'
Code: Select all
$ ./vrep.sh
Error: could not find or correctly load the V-REP library
I also use a NVidia gpu (GTX 660), but using the CUDA development drivers. Additionally, my Ubuntu is 64bit, too. Maybe the problem can only be found in the 64bit version? If you have questions regarding my system, feel free to ask.$ ./vrep.sh
Error: could not find or correctly load the V-REP library