Skip to content

Player base record cannot have weapons in the inventory

Interesting part of the crash log:

#2  0x00007f501717ebb0 in <signal handler called> () at /lib64/libc.so.6
#3  MWClass::Weapon::canBeEquipped(MWWorld::ConstPtr const&, MWWorld::Ptr const&) const (this=this@entry=0x1b511d0 <MWWorld::RegisteredClass<MWClass::Weapon, MWWorld::Class>::registerSelf()::instance>, ptr=..., npc=...) at /home/capostrophic/openmw/components/misc/notnullptr.hpp:14
#4  0x0000000000e22cb7 in MWWorld::InventoryStore::autoEquipWeapon(std::vector<MWWorld::ContainerStoreIteratorBase<MWWorld::Ptr>, std::allocator<MWWorld::ContainerStoreIteratorBase<MWWorld::Ptr> > >&) (this=this@entry=0xa9577a8, slots_=std::vector of length 19, capacity 32 = {...}) at /home/capostrophic/openmw/apps/openmw/mwworld/inventorystore.cpp:328
#5  0x0000000000e241a3 in MWWorld::InventoryStore::autoEquip() (this=0xa9577a8) at /home/capostrophic/openmw/apps/openmw/mwworld/inventorystore.cpp:527
#6  0x0000000000f7e59a in MWClass::Npc::ensureCustomData(MWWorld::Ptr const&) const (this=0x1b511f0 <MWWorld::RegisteredClass<MWClass::Npc, MWClass::Actor>::registerSelf()::instance>, ptr=...) at /home/capostrophic/openmw/apps/openmw/mwclass/npc.cpp:394
#7  0x0000000000f7f5bb in MWClass::Npc::getInventoryStore(MWWorld::Ptr const&) const (ptr=..., this=<optimized out>) at /home/capostrophic/openmw/apps/openmw/mwclass/npc.cpp:947
#8  MWClass::Npc::getContainerStore(MWWorld::Ptr const&) const (this=<optimized out>, ptr=...) at /home/capostrophic/openmw/apps/openmw/mwclass/npc.cpp:942
#9  0x00000000005c44bc in MWRender::ActorAnimation::ActorAnimation(MWWorld::Ptr const&, osg::ref_ptr<osg::Group>, Resource::ResourceSystem*) (this=this@entry=0xa956bb0, ptr=..., parentNode=..., resourceSystem=<optimized out>) at /home/capostrophic/openmw/apps/openmw/mwrender/actoranimation.cpp:47
#10 0x000000000058aca1 in MWRender::NpcAnimation::NpcAnimation(MWWorld::Ptr const&, osg::ref_ptr<osg::Group>, Resource::ResourceSystem*, bool, MWRender::NpcAnimation::ViewMode, float) (this=this@entry=0xa956bb0, ptr=..., parentNode=..., resourceSystem=<optimized out>, disableSounds=disableSounds@entry=true, viewMode=MWRender::NpcAnimation::VM_Normal, firstPersonFieldOfView=firstPersonFieldOfView@entry=55) at /home/capostrophic/openmw/apps/openmw/mwrender/npcanimation.cpp:266
#11 0x00000000005a78fa in MWRender::CharacterPreview::rebuild() (this=0xa946bb0) at /home/capostrophic/openmw/apps/openmw/mwrender/characterpreview.cpp:377

playerweapon.omwaddon

Edited by Alexei Kotov