Page 1 of 1

Simulation fail calling sim.loadScene

Posted: 11 Jul 2018, 15:37
by vrepUser94
Hello,

I am trying to load scenes by using the function "sim.loadScene", which i call in a customization script. I actually send a message via ROS to trigger the loading process. The problem is though, that the v-rep closes whenever this function is called.

Some of the last lines, that are printed in the terminal are (maybe it helps):

vrep: malloc.c:3722: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed.
./vrep.sh: line 33: 10029 Aborted (core dumped) "$dirname/$appname" "${PARAMETERS[@]}"

Does anyone have an idea how to solve this problem?

Thanks a lot

Re: Simulation fail calling sim.loadScene

Posted: 13 Jul 2018, 17:33
by coppelia
Hello,

you cannot use that function from a customization script, since that function will trigger first a scene erase before a scene load.
You can only use that function from an add-on (or from the sanbox script).

Cheers