Not logged inOpenClonk Forum
Up Topic Development / Developer's Corner / Segfault in StdMeshInstance::ExecuteAnimation
- - By Günther [de] Date 2013-05-26 18:51 Edited 2013-05-26 19:09
Controls branch (8a8aff0388). The attached record reproduces this for me. (I don't have my bugtracker passwort here.)

#0  StdMeshInstance::ExecuteAnimation (this=0xa6183c0, dt=<error reading variable: Could not find type for DW_OP_GNU_const_type>)
    at /home/guenther/source/src/lib/StdMesh.cpp:979
        submesh = <optimized out>
        i = <optimized out>
#1  0x00000000005913ae in StdMeshInstance::ExecuteAnimation (this=<optimized out>, dt=<optimized out>)
    at /home/guenther/source/src/lib/StdMesh.cpp:1007
        iter = {_M_current = 0xf2d78e8}
#2  0x000000000063d035 in C4Object::Execute (this=0xf623280) at /home/guenther/source/src/object/C4Object.cpp:1040
No locals.
#3  0x000000000046c84a in C4Game::ExecObjects (this=this@entry=0xa06d20) at /home/guenther/source/src/game/C4Game.cpp:1331
        cObj = <optimized out>
        clnk = 0xf628be0
#4  0x0000000000471c4b in C4Game::Execute (this=0xa06d20) at /home/guenther/source/src/game/C4Game.cpp:746
        fControl = <optimized out>
#5  0x0000000000469782 in C4Application::GameTick (this=0xa425a0) at /home/guenther/source/src/game/C4Application.cpp:658
No locals.
#6  0x000000000046986a in Execute (this=0xb60d00, iTimeout=<optimized out>) at /home/guenther/source/src/game/C4Application.cpp:854
        Now = <optimized out>
#7  C4ApplicationGameTimer::Execute (this=0xb60d00, iTimeout=<optimized out>) at /home/guenther/source/src/game/C4Application.cpp:837
No locals.
#8  0x00000000006deec5 in StdScheduler::ScheduleProcs (this=0xa425a0, iTimeout=4) at /home/guenther/source/src/platform/StdScheduler.cpp:293
        j = <optimized out>
        begin = <optimized out>
        end = <optimized out>
        any_executed = <optimized out>
        i = <optimized out>
        fds = {<std::_Vector_base<pollfd, std::allocator<pollfd> >> = {
            _M_impl = {<std::allocator<pollfd>> = {<__gnu_cxx::new_allocator<pollfd>> = {<No data fields>}, <No data fields>},
              _M_start = 0x7fffd8018810, _M_finish = 0x7fffd8018838, _M_end_of_storage = 0x7fffd8018840}}, <No data fields>}
        fds_for_proc = {_M_t = {
            _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<StdSchedulerProc* const, std::pair<unsigned int, unsigned int> > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<StdSchedulerProc* const, std::pair<unsigned int, unsigned int> > > >> = {<No data fields>}, <No data fields>}, _M_key_compare = {<std::binary_function<StdSchedulerProc*, StdSchedulerProc*, bool>> = {<No data fields>}, <No data fields>}, _M_header = {
                _M_color = std::_S_red, _M_parent = 0x7fffd80f2d70, _M_left = 0x7fffd8006010, _M_right = 0x7fffd80fbd50}, _M_node_count = 4}}}
        cnt = <optimized out>
        iProcTick = <optimized out>
        Now = 734309
        fSuccess = <optimized out>
#9  0x00000000006631ad in C4AbstractApp::Run (this=0xa425a0) at /home/guenther/source/src/platform/C4App.cpp:27
No locals.
#10 0x0000000000418a3a in main (argc=1, argv=0x7fffffffe3d8) at /home/guenther/source/src/game/ClonkMain.cpp:210
No locals.
Attachment: 007-DarkCastle.ocs.7z - Record to reproduce this (5932k)
Reply
Parent - - By Clonk-Karl [de] Date 2013-05-27 09:35
I get a ton of script errors when running the record, but I can reproduce the bug in frame 9690. Will have a look...
Reply
Parent - - By Maikel Date 2013-05-27 10:14
Because we played on Controls branch maybe?
Parent - By Clonk-Karl [de] Date 2013-05-27 10:37
I replayed with the controls branch as well...
Reply
Parent - By Clonk-Karl [de] Date 2013-05-27 10:37
==10702== Invalid read of size 8
==10702==    at 0x90807E: std::vector<StdMeshInstance::AnimationNode*, std::allocator<StdMeshInstance::AnimationNode*> >::size() const (stl_vector.h:571)
==10702==    by 0x902719: StdMeshInstance::ExecuteAnimation(float) (StdMesh.cpp:970)
==10702==    by 0x902A38: StdMeshInstance::ExecuteAnimation(float) (StdMesh.cpp:1007)
==10702==    by 0x9DF7FD: C4Object::Execute() (C4Object.cpp:1040)
==10702==    by 0x78A475: C4Game::ExecObjects() (C4Game.cpp:1331)
==10702==    by 0x788633: C4Game::Execute() (C4Game.cpp:746)
==10702==    by 0x784B16: C4Application::GameTick() (C4Application.cpp:658)
==10702==    by 0x7851C1: C4ApplicationGameTimer::Execute(int, pollfd*) (C4Application.cpp:854)
==10702==    by 0xAAE9EF: StdScheduler::ScheduleProcs(int) (StdScheduler.cpp:293)
==10702==    by 0xA287C2: C4AbstractApp::ScheduleProcs(int) (C4App.cpp:39)
==10702==    by 0xA2877E: C4AbstractApp::Run() (C4App.cpp:27)
==10702==    by 0x6FA9A4: main (ClonkMain.cpp:210)
==10702==  Address 0x241f5c58 is 72 bytes inside a block of size 176 free'd
==10702==    at 0x4C2A4BC: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==10702==    by 0x9EBDDF: C4Object::Clear() (C4Object.cpp:2559)
==10702==    by 0x9DC001: C4Object::~C4Object() (C4Object.cpp:313)
==10702==    by 0x9DC0FF: C4Object::~C4Object() (C4Object.cpp:319)
==10702==    by 0x78A40D: C4Game::ObjectRemovalCheck() (C4Game.cpp:1315)
==10702==    by 0x78A516: C4Game::ExecObjects() (C4Game.cpp:1362)
==10702==    by 0x788633: C4Game::Execute() (C4Game.cpp:746)
==10702==    by 0x784B16: C4Application::GameTick() (C4Application.cpp:658)
==10702==    by 0x7851C1: C4ApplicationGameTimer::Execute(int, pollfd*) (C4Application.cpp:854)
==10702==    by 0xAAE9EF: StdScheduler::ScheduleProcs(int) (StdScheduler.cpp:293)
==10702==    by 0xA287C2: C4AbstractApp::ScheduleProcs(int) (C4App.cpp:39)
==10702==    by 0xA2877E: C4AbstractApp::Run() (C4App.cpp:27)
Reply
Parent - - By Clonk-Karl [de] Date 2013-05-27 14:58
Reply
Parent - By Günther [de] Date 2013-05-27 16:36
Thanks!
Reply
Up Topic Development / Developer's Corner / Segfault in StdMeshInstance::ExecuteAnimation

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill