Simulation fail calling sim.loadScene

Typically: "How do I... ", "How can I... " questions
Post Reply
Posts: 9
Joined: 08 Jan 2018, 08:41

Simulation fail calling sim.loadScene

Post by vrepUser94 »


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.
./ line 33: 10029 Aborted (core dumped) "$dirname/$appname" "${PARAMETERS[@]}"

Does anyone have an idea how to solve this problem?

Thanks a lot

Site Admin
Posts: 7909
Joined: 14 Dec 2012, 00:25

Re: Simulation fail calling sim.loadScene

Post by coppelia »


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


Post Reply