OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Infinite loop loading OBJ with a new osgDB::Options


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins]
View previous topic :: View next topic  
Author Message
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 337

PostPosted: Sat Jul 09, 2016 10:34 am    Post subject:
Infinite loop loading OBJ with a new osgDB::Options
Reply with quote

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:
Back to top
View user's profile Send private message
Alberto Luaces
Guest





PostPosted: Mon Jul 11, 2016 8:31 am    Post subject:
Infinite loop loading OBJ with a new osgDB::Options
Reply with quote

"Julien Valentin" writes:

Quote:
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

Hi Julien,

that sometimes happens if your locale does not interpret dots as the
decimal separator. Therefore, all the vertices are read as integers
having almost the same value, so the tri-stripper creates a lot of
common edges.

Try setting LANG=C as a environment variable, or just before reading the
file: I have issues because Qt was changing the locale for me.

--
Alberto



------------------
Post generated by Mail2Forum
Back to top
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 337

PostPosted: Mon Jul 11, 2016 8:44 am    Post subject:
Re: Infinite loop loading OBJ with a new osgDB::Options
Reply with quote

Thanks Alberto!
I hadn't think about it
Good catch

Alberto Luaces wrote:
"Julien Valentin" writes:

Quote:
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

Hi Julien,

that sometimes happens if your locale does not interpret dots as the
decimal separator. Therefore, all the vertices are read as integers
having almost the same value, so the tri-stripper creates a lot of
common edges.

Try setting LANG=C as a environment variable, or just before reading the
file: I have issues because Qt was changing the locale for me.

--
Alberto



------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Plugins [osgPlugins] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osgDB::ImagePaged don't have "Pa... tang General 0 Mon Nov 13, 2017 2:51 am View latest post
No new posts [CubeMap with mipmaps] About loading IBL mp3butcher General 3 Sat Nov 04, 2017 12:37 am View latest post
No new posts Problem compiling OSG 3.4.1 osgDB 64 bit tonyor Build system [build] 0 Thu Sep 21, 2017 12:41 am View latest post
No new posts Dynamical loading of resources robertosfield General 8 Mon Aug 14, 2017 8:15 am View latest post
No new posts PHYSFS / VFS - How to make a custom o... Steal General 4 Mon Jul 10, 2017 1:28 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP