osrf / gazebojs

3 stars 3 forks source link

exiting gazebojs #12

Closed osrf-migration closed 8 years ago

osrf-migration commented 8 years ago

Original report (archived issue) by Mohamd Ayman (Bitbucket: Mohamd Ayman).


I wasn't calling the unsubscribe function the right way, there is no use for this issue now, so if anyone would delete.

whenever i close gazebojs after subscribing to a topic i get this error msg

#!python

node: /usr/include/boost/smart_ptr/shared_ptr.hpp:653: typename boost::detail::sp_member_access<T>::type boost::shared_ptr<T>::operator->() const [with T = gazebo::transport::Connection; typename boost::detail::sp_member_access<T>::type = gazebo::transport::Connection*]: Assertion `px != 0' failed.
Aborted (core dumped)

to reproduce: -run gazebo -run node -> var gazebojs = require("gazebojs") -> var gazebo = new gazebojs.Gazebo() -> gazebo.subscribe('gazebo.msgs.Model','~/model/info',console.log) -insert any model into gazebo if you want to see the log -close nodejs.

osrf-migration commented 8 years ago

Original comment by Mohamd Ayman (Bitbucket: Mohamd Ayman).


osrf-migration commented 8 years ago

Original comment by Mohamd Ayman (Bitbucket: Mohamd Ayman).


had to unsubscribe to the topics i've subscribing to before exiting.