indigo3d / coral-repo

Automatically exported from code.google.com/p/coral-repo
0 stars 0 forks source link

Seg fault tiping "ids" in GeoDrawNode #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a Geo*Node
2. connect it to a GeoDrawNode
3. tip "ids" in GeoDrawNode
4. Crash

OS: Linux

I have a seg fault tiping "ids" in GeoDrawNode:

# info: running coral standalone
executeCommand('CreateNode', className = 'GeoSphereNode', name = 
'GeoSphereNode', parentNode = 'root')
executeCommand('CreateNode', className = 'GeoDrawNode', name = 'GeoDrawNode', 
parentNode = 'root')
executeCommand('ConnectAttributes', sourceAttribute = 'root.GeoSphereNode.out', 
destinationAttribute = 'root.GeoDrawNode.geo')
freeglut  ERROR:  Function <glutBitmapCharacter> called without first calling 
'glutInit'.
Erreur de segmentation

When I do:

/*for(int k = 0; k < len; ++k){
    glutBitmapCharacter(GLUT_BITMAP_8_BY_13, idStr[k]);
}*/

There is no prob anymore.

If it can help, there is the backtrace I tried to get during the error with gdb:

Program received signal SIGSEGV, Segmentation fault.
0x00007f9e721a6932 in std::less<int>::operator()(int const&, int const&) const 
() from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
(gdb) bt
#0  0x00007f9e721a6932 in std::less<int>::operator()(int const&, int const&) 
const () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#1  0x00007f9e721c3754 in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > 
>::_M_lower_bound(std::_Rb_tree_node<std::pair<int const, 
boost::python::api::object> >*, std::_Rb_tree_node<std::pair<int const, 
boost::python::api::object> >*, int const&) ()
   from /media/Seagate 1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#2  0x00007f9e721c2a5d in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > >::find(int const&) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#3  0x00007f9e721c23f5 in std::map<int, boost::python::api::object, 
std::less<int>, std::allocator<std::pair<int const, boost::python::api::object> 
> >::find(int const&) ()
   from /media/Seagate 1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#4  0x00007f9e721c1e8a in coral::PythonDataCollector::findPyObjectPtr(int) () 
from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#5  0x00007f9e720d3af8 in object_removeReferenceCallback(coral::Object*) () 
from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#6  0x00007f9e721c18e6 in coral::Object::removeReference() () from 
/media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#7  0x00007f9e721b44e8 in 
coral::NestedObject::removeObject(coral::NestedObject*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#8  0x00007f9e721b8370 in coral::Node::removeAttribute(coral::Attribute*) () 
from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#9  0x00007f9e7219f232 in coral::Attribute::deleteIt() () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#10 0x00007f9e720d4d2e in attribute__del__(coral::Attribute&) () from 
/media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#11 0x00007f9e7218de4b in _object* boost::python::detail::invoke<int, void 
(*)(coral::Attribute&), boost::python::arg_from_python<coral::Attribute&> 
>(boost::python::detail::invoke_tag_<true, false>, int const&, void 
(*&)(coral::Attribute&), boost::python::arg_from_python<coral::Attribute&>&) () 
from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#12 0x00007f9e7217ce62 in boost::python::detail::caller_arity<1u>::impl<void 
(*)(coral::Attribute&), boost::python::default_call_policies, 
boost::mpl::vector2<void, coral::Attribute&> >::operator()(_object*, _object*) 
()
   from /media/Seagate 1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#13 0x00007f9e7216a7c9 in 
boost::python::objects::caller_py_function_impl<boost::python::detail::caller<vo
id (*)(coral::Attribute&), boost::python::default_call_policies, 
boost::mpl::vector2<void, coral::Attribute&> > >::operator()(_object*, 
_object*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#14 0x00007f9e711ef71e in boost::python::objects::function::call(_object*, 
_object*) const () from /usr/lib/libboost_python-py27.so.1.42.0
#15 0x00007f9e711ef978 in ?? () from /usr/lib/libboost_python-py27.so.1.42.0
#16 0x00007f9e711f8c63 in 
boost::python::handle_exception_impl(boost::function0<void>) () from 
/usr/lib/libboost_python-py27.so.1.42.0
#17 0x00007f9e711f0e74 in ?? () from /usr/lib/libboost_python-py27.so.1.42.0
#18 0x000000000045d864 in PyObject_Call ()
#19 0x000000000045f43f in ?? ()
#20 0x000000000045d864 in PyObject_Call ()
#21 0x0000000000495d46 in PyEval_CallObjectWithKeywords ()
#22 0x00000000004dab0a in ?? ()
#23 0x000000000048a1ac in ?? ()
#24 0x00007f9e720d8fc7 in boost::python::api::object_base::~object_base() () 
from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#25 0x00007f9e720d8e5c in boost::python::api::object::~object() () from 
/media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#26 0x00007f9e721c22a4 in std::pair<int const, 
boost::python::api::object>::~pair() () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#27 0x00007f9e721c5736 in __gnu_cxx::new_allocator<std::pair<int const, 
boost::python::api::object> >::destroy(std::pair<int const, 
boost::python::api::object>*) ()
   from /media/Seagate 1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#28 0x00007f9e721c4633 in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > 
>::_M_destroy_node(std::_Rb_tree_node<std::pair<int const, 
boost::python::api::object> >*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#29 0x00007f9e721c3031 in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > 
>::_M_erase(std::_Rb_tree_node<std::pair<int const, boost::python::api::object> 
>*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#30 0x00007f9e721c300e in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > 
>::_M_erase(std::_Rb_tree_node<std::pair<int const, boost::python::api::object> 
>*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#31 0x00007f9e721c300e in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > 
>::_M_erase(std::_Rb_tree_node<std::pair<int const, boost::python::api::object> 
>*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#32 0x00007f9e721c300e in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > 
>::_M_erase(std::_Rb_tree_node<std::pair<int const, boost::python::api::object> 
>*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#33 0x00007f9e721c300e in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > 
>::_M_erase(std::_Rb_tree_node<std::pair<int const, boost::python::api::object> 
>*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#34 0x00007f9e721c300e in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > 
>::_M_erase(std::_Rb_tree_node<std::pair<int const, boost::python::api::object> 
>*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#35 0x00007f9e721c27d9 in std::_Rb_tree<int, std::pair<int const, 
boost::python::api::object>, std::_Select1st<std::pair<int const, 
boost::python::api::object> >, std::less<int>, std::allocator<std::pair<int 
const, boost::python::api::object> > >::~_Rb_tree() () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#36 0x00007f9e721c60ec in std::map<int, boost::python::api::object, 
std::less<int>, std::allocator<std::pair<int const, boost::python::api::object> 
> >::~map() ()
   from /media/Seagate 1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/_coral.so
#37 0x00007f9e72b74961 in exit () from /lib/x86_64-linux-gnu/libc.so.6
#38 0x00007f9e70390431 in fgError () from /usr/lib/libglut.so.3
#39 0x00007f9e70388c15 in glutBitmapCharacter () from /usr/lib/libglut.so.3
#40 0x00007f9e70650431 in coralUi::GeoDrawNode::drawPointIds(coral::Geo*) () 
from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/coralUi/_coralUi.
so
#41 0x00007f9e706506bc in coralUi::GeoDrawNode::draw() () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/coralUi/_coralUi.
so
#42 0x00007f9e70650c08 in coralUi::MainDrawRoutine::drawAll() () from 
/media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/coralUi/_coralUi.
so
#43 0x00007f9e70653c41 in coralUi::Viewport::draw() () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/coralUi/_coralUi.
so
#44 0x00007f9e7064cbef in _object* boost::python::detail::invoke<int, void 
(coralUi::Viewport::*)(), boost::python::arg_from_python<coralUi::Viewport&> 
>(boost::python::detail::invoke_tag_<true, true>, int const&, void 
(coralUi::Viewport::*&)(), boost::python::arg_from_python<coralUi::Viewport&>&) 
() from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/coralUi/_coralUi.
so
#45 0x00007f9e7064ab28 in boost::python::detail::caller_arity<1u>::impl<void 
(coralUi::Viewport::*)(), boost::python::default_call_policies, 
boost::mpl::vector2<void, coralUi::Viewport&> >::operator()(_object*, _object*)
    () from /media/Seagate 1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/coralUi/_coralUi.so
#46 0x00007f9e7064882d in 
boost::python::objects::caller_py_function_impl<boost::python::detail::caller<vo
id (coralUi::Viewport::*)(), boost::python::default_call_policies, 
boost::mpl::vector2<void, coralUi::Viewport&> > >::operator()(_object*, 
_object*) () from /media/Seagate 
1To/Prog/coral-repo-read-only/build/coralStandaloneBuild/coral/coralUi/_coralUi.
so
#47 0x00007f9e711ef71e in boost::python::objects::function::call(_object*, 
_object*) const () from /usr/lib/libboost_python-py27.so.1.42.0
#48 0x00007f9e711ef978 in ?? () from /usr/lib/libboost_python-py27.so.1.42.0
#49 0x00007f9e711f8c63 in 
boost::python::handle_exception_impl(boost::function0<void>) () from 
/usr/lib/libboost_python-py27.so.1.42.0
#50 0x00007f9e711f0e74 in ?? () from /usr/lib/libboost_python-py27.so.1.42.0
#51 0x000000000045d864 in PyObject_Call ()
#52 0x0000000000496c4e in PyEval_EvalFrameEx ()

Original issue reported on code.google.com by dorian.f...@gmail.com on 8 Oct 2011 at 12:12

GoogleCodeExporter commented 8 years ago
Duplicate of 4, very sorry for that. :(

Original comment by dorian.f...@gmail.com on 8 Oct 2011 at 12:42

GoogleCodeExporter commented 8 years ago

Original comment by aintergu...@gmail.com on 25 Nov 2011 at 12:52