[osg-users] [osgPlugins] Infinite loop loading OBJ with a new osgDB::Options

Julien Valentin julienvalentin51 at gmail.com
Sat Jul 9 03:34:23 PDT 2016


Hi,
I don't understand:
when i open wavefront obj with osgviewer all is right but in my application i get stuck in an infinite loop.
I set a new osgDB::Options to readrefnodefile, could it come from that?
Here's the stacktrace when i break the inf loop.
Any help is welcome

Code:

#0  0x00007ffff635a850 in void std::_Construct<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc, triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc>(triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*, triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc const&)@plt ()
   from /home/pascal/SRC/OSGmyGIT/lib/libosgUtild.so.145
#1  0x00007ffff6521b42 in std::__uninitialized_copy<false>::__uninit_copy<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*, triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*> (__first=0x7fff941f0b88, __last=0x7fff96b6b010, 
    __result=0x7fff5f66a010) at /usr/include/c++/4.8/bits/stl_uninitialized.h:75
#2  0x00007ffff652079d in std::uninitialized_copy<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*, triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*> (__first=0x7fff8446b010, __last=0x7fff96b6b010, __result=0x7fff5f66a010)
    at /usr/include/c++/4.8/bits/stl_uninitialized.h:117
#3  0x00007ffff651f151 in std::__uninitialized_copy_a<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*, triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*, triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc> (__first=0x7fff8446b010, __last=0x7fff96b6b010, __result=0x7fff5f66a010) at /usr/include/c++/4.8/bits/stl_uninitialized.h:258
#4  0x00007ffff6526536 in std::__uninitialized_move_if_noexcept_a<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*, triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc*, std::allocator<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc> > (__first=0x7fff8446b010, __last=0x7fff96b6b010, __result=0x7fff5f66a010, __alloc=...)
    at /usr/include/c++/4.8/bits/stl_uninitialized.h:281
#5  0x00007ffff6526204 in std::vector<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc, std::allocator<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc> >::_M_insert_aux (this=0x7fffffffbb60, __position=..., __x=...)
    at /usr/include/c++/4.8/bits/vector.tcc:362
#6  0x00007ffff6526006 in std::vector<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc, std::allocator<triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::arc> >::push_back (this=0x7fffffffbb60, __x=...)
---Type <return> to continue, or q <return> to quit---
    at /usr/include/c++/4.8/bits/stl_vector.h:913
#7  0x00007ffff6525e91 in triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::insert_arc (this=0x7fffffffbb48, 
    Initial=..., Terminal=...) at /home/pascal/SRC/OSGmyGIT/src/osgUtil/tristripper/include/detail/graph_array.h:426
#8  0x00007ffff6525c85 in triangle_stripper::detail::graph_array<triangle_stripper::detail::triangle>::insert_arc (this=0x7fffffffbb48, 
    Initial=1820, Terminal=2358) at /home/pascal/SRC/OSGmyGIT/src/osgUtil/tristripper/include/detail/graph_array.h:400
#9  0x00007ffff6523710 in triangle_stripper::detail::(anonymous namespace)::LinkNeighbours (Triangles=..., 
    EdgeMap=std::vector of length 14160, capacity 14160 = {...}, Edge=...)
    at /home/pascal/SRC/OSGmyGIT/src/osgUtil/tristripper/src/connectivity_graph.cpp:119
#10 0x00007ffff6523556 in triangle_stripper::detail::make_connectivity_graph (Triangles=..., 
    Indices=std::vector of length 14160, capacity 16384 = {...})
    at /home/pascal/SRC/OSGmyGIT/src/osgUtil/tristripper/src/connectivity_graph.cpp:86
#11 0x00007ffff6515eb9 in triangle_stripper::tri_stripper::tri_stripper (this=0x7fffffffbb30, 
    TriIndices=std::vector of length 14160, capacity 16384 = {...}) at /home/pascal/SRC/OSGmyGIT/src/osgUtil/tristripper/src/tri_stripper.cpp:37
#12 0x00007ffff652749c in osgUtil::TriStripVisitor::stripify (this=0x7fffffffbda0, geom=...)
    at /home/pascal/SRC/OSGmyGIT/src/osgUtil/TriStripVisitor.cpp:423
#13 0x00007fffae0c64f6 in ReaderWriterOBJ::convertModelToSceneGraph (this=0x1990200, model=..., localOptions=..., options=0x18c98a0)





Thank you!

Cheers,
Julien
Code:




------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68076#68076








More information about the osg-users mailing list