Fatal error when equipping cloth that has a bad script
short s_do_once ; I know that this will infinitely remove and add that item in each ; frame. It looks like that becomes a problem when that item is ; equipped or dropped or taken taken from the ground. if ( s_do_once == 0 ) player->RemoveItem asmo_test_cloth 1 player->AddItem asmo_test_cloth 1 endif
- The fatal error happens when I equip that shirt - see crash.log.
- When that item is dropped I get
Error in framelistener: Item to remove not found in container store
- When that item is taken from the ground the game +freezes+ instantly with no error message.
In the last case I get this backtrace when I use ctrl-D:
#0 0x00007ffff1196d91 in std::basic_ios >::_M_cache_locale(std::locale const&) () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6 #1 0x00007ffff1196f50 in std::basic_ios >::init(std::basic_streambuf >*) () from /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6 #2 0x0000000000d7ce21 in boost::io::basic_oaltstringstream, std::allocator >::basic_oaltstringstream ( this=0x7fffffffc5a0, buf=0x7fffffffcd10, __in_chrg=, __vtt_parm=) at /usr/include/boost/format/alt_sstream.hpp:146 #3 0x0000000000d7b8d6 in boost::io::detail::put, std::allocator, boost::io::detail::put_holder > const&> (x=..., specs=..., res="", buf=..., loc_p=0x0) at /usr/include/boost/format/feed_args.hpp:174 #4 0x0000000000d7a652 in boost::io::detail::distribute, std::allocator, boost::io::detail::put_holder > const&> (self=..., x=...) at /usr/include/boost/format/feed_args.hpp:285 #5 0x0000000000d795be in boost::io::detail::feed_impl, std::allocator, boost::io::detail::put_holder > const&> (self=..., x=...) at /usr/include/boost/format/feed_args.hpp:295 #6 0x0000000000e5485b in boost::io::detail::feed, std::allocator, std::string&> (self=..., x="rm test shirt") at /usr/include/boost/format/feed_args.hpp:307 #7 0x0000000000e547b9 in boost::basic_format, std::allocator >::operator% (this=0x7fffffffccb0, x="rm test shirt") at /usr/include/boost/format/format_class.hpp:68 #8 0x0000000000e51c5b in MWScript::Container::OpRemoveItem::execute (this=0xff641d0, runtime=...) at /home/atti/tmp/openmw/openmw/apps/openmw/mwscript/containerextensions.cpp:164 #9 0x00000000012267e0 in Interpreter::Interpreter::execute (this=0x6f84740, code=3388997755) at /home/atti/tmp/openmw/openmw/components/interpreter/interpreter.cpp:108 #10 0x0000000001227743 in Interpreter::Interpreter::run (this=0x6f84740, code=0x10c357a0, codeSize=40, context=...) at /home/atti/tmp/openmw/openmw/components/interpreter/interpreter.cpp:246 #11 0x0000000000e273f5 in MWScript::ScriptManager::run (this=0x6f842a0, name="asmo_rm_test", interpreterContext=...) at /home/atti/tmp/openmw/openmw/apps/openmw/mwscript/scriptmanagerimp.cpp:123 #12 0x000000000110b088 in OMW::Engine::executeLocalScripts (this=0x1886730) at /home/atti/tmp/openmw/openmw/apps/openmw/engine.cpp:79 #13 0x000000000110b3c3 in OMW::Engine::frame (this=0x1886730, frametime=0.016725) at /home/atti/tmp/openmw/openmw/apps/openmw/engine.cpp:122 #14 0x000000000111068d in OMW::Engine::go (this=0x1886730) at /home/atti/tmp/openmw/openmw/apps/openmw/engine.cpp:689 #15 0x00000000010f95ea in main (argc=1, argv=0x7fffffffdc58) at /home/atti/tmp/openmw/openmw/apps/openmw/main.cpp:386
OpenMW version 0.36.1 Revision: 6c12c9a4
(RM-2998 from redmine: created on 2015-11-08 by Who Knows, )
Attachments: crash.log
Edited by redmine