/usr/include/c++/12.2.0/compare:1220:21: runtime error: load of value 3142, which is not a valid value for type 'Type'
#0 0x560d15d71541 in auto std::__detail::_Synth3way::operator()<osg::StateAttribute::Type, osg::StateAttribute::Type>(osg::StateAttribute::Type const&, osg::StateAttribute::Type const&) const /usr/include/c++/12.2.0/compare:1220
#1 0x560d15d7b91b in std::common_comparison_category<decltype (std::__detail::__synth3way((declval<osg::StateAttribute::Type&>)(), (declval<osg::StateAttribute::Type&>)())), decltype (std::__detail::__synth3way((declval<unsigned int&>)(), (declval<unsigned int&>)()))>::type std::operator<=><osg::StateAttribute::Type, unsigned int>(std::pair<osg::StateAttribute::Type, unsigned int> const&, std::pair<osg::StateAttribute::Type, unsigned int> const&) /usr/include/c++/12.2.0/bits/stl_pair.h:649
#2 0x560d15d8269a in std::less<std::pair<osg::StateAttribute::Type, unsigned int> >::operator()(std::pair<osg::StateAttribute::Type, unsigned int> const&, std::pair<osg::StateAttribute::Type, unsigned int> const&) const /usr/include/c++/12.2.0/bits/stl_function.h:408
#3 0x560d15d89ecf in std::_Rb_tree<std::pair<osg::StateAttribute::Type, unsigned int>, std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack>, std::_Select1st<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> >, std::less<std::pair<osg::StateAttribute::Type, unsigned int> >, std::allocator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> > >::_M_get_insert_hint_unique_pos(std::_Rb_tree_const_iterator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> >, std::pair<osg::StateAttribute::Type, unsigned int> const&) (/home/elsid/dev/openmw/build/gcc/ubsan/openmw+0x84bbecf)
#4 0x7f51132ae4c9 in std::_Rb_tree_iterator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> > std::_Rb_tree<std::pair<osg::StateAttribute::Type, unsigned int>, std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack>, std::_Select1st<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> >, std::less<std::pair<osg::StateAttribute::Type, unsigned int> >, std::allocator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<std::pair<osg::StateAttribute::Type, unsigned int> const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> >, std::piecewise_construct_t const&, std::tuple<std::pair<osg::StateAttribute::Type, unsigned int> const&>&&, std::tuple<>&&) /usr/include/c++/12.2.0/bits/stl_tree.h:2462
#5 0x7f51132b0e06 in std::map<std::pair<osg::StateAttribute::Type, unsigned int>, osg::State::AttributeStack, std::less<std::pair<osg::StateAttribute::Type, unsigned int> >, std::allocator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> > >::operator[](std::pair<osg::StateAttribute::Type, unsigned int> const&) /usr/include/c++/12.2.0/bits/stl_map.h:511
#6 0x7f51132b0e06 in osg::State::pushAttributeList(std::map<std::pair<osg::StateAttribute::Type, unsigned int>, osg::State::AttributeStack, std::less<std::pair<osg::StateAttribute::Type, unsigned int> >, std::allocator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, osg::State::AttributeStack> > >&, std::map<std::pair<osg::StateAttribute::Type, unsigned int>, std::pair<osg::ref_ptr<osg::StateAttribute>, unsigned int>, std::less<std::pair<osg::StateAttribute::Type, unsigned int> >, std::allocator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int> const, std::pair<osg::ref_ptr<osg::StateAttribute>, unsigned int> > > > const&) /home/elsid/dev/OpenSceneGraph/include/osg/State:1449
#7 0x7f51132b0e06 in osg::State::pushStateSet(osg::StateSet const*) /home/elsid/dev/OpenSceneGraph/src/osg/State.cpp:519
#8 0x560d1a4f5bfe in Terrain::CompositeMapRenderer::compile(Terrain::CompositeMap&, osg::RenderInfo&, double*) const /home/elsid/dev/openmw/components/terrain/compositemaprenderer.cpp:114
#9 0x560d1a4f3fd4 in Terrain::CompositeMapRenderer::drawImplementation(osg::RenderInfo&) const /home/elsid/dev/openmw/components/terrain/compositemaprenderer.cpp:58
#10 0x7f5113586993 in osgUtil::RenderLeaf::render(osg::RenderInfo&, osgUtil::RenderLeaf*) /home/elsid/dev/OpenSceneGraph/src/osgUtil/RenderLeaf.cpp:81
#11 0x7f5113580fab in osgUtil::RenderBin::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/RenderBin.cpp:487
#12 0x7f511358e7a5 in osgUtil::RenderStage::drawImplementation(osg::RenderInfo&, osgUtil::RenderLeaf*&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/RenderStage.cpp:1404
#13 0x7f51135835d2 in osgUtil::RenderBin::draw(osg::RenderInfo&, osgUtil::RenderLeaf*&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/RenderBin.cpp:430
#14 0x7f511358da43 in osgUtil::RenderStage::drawInner(osg::RenderInfo&, osgUtil::RenderLeaf*&, bool&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/RenderStage.cpp:929
#15 0x7f511358f6b1 in osgUtil::RenderStage::draw(osg::RenderInfo&, osgUtil::RenderLeaf*&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/RenderStage.cpp:1240
#16 0x7f5113586faa in osgUtil::RenderStage::drawPreRenderStages(osg::RenderInfo&, osgUtil::RenderLeaf*&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/RenderStage.cpp:222
#17 0x7f511359b42b in osgUtil::SceneView::draw() /home/elsid/dev/OpenSceneGraph/src/osgUtil/SceneView.cpp:1426
#18 0x7f5113ac978e in osgViewer::Renderer::draw() /home/elsid/dev/OpenSceneGraph/src/osgViewer/Renderer.cpp:797
#19 0x7f51131b0168 in osg::GraphicsContext::runOperations() /home/elsid/dev/OpenSceneGraph/src/osg/GraphicsContext.cpp:696
#20 0x7f5113262a64 in osg::OperationThread::run() /home/elsid/dev/OpenSceneGraph/src/osg/OperationThread.cpp:438
#21 0x7f51131b1c89 in non-virtual thunk to osg::GraphicsThread::run() (/home/elsid/dev/OpenSceneGraph/build/gcc/release/install/lib/libosg.so.162+0x1b1c89)
#22 0x7f511365559d in OpenThreads::ThreadPrivateActions::StartThread(void*) /home/elsid/dev/OpenSceneGraph/src/OpenThreads/pthreads/PThread.cpp:221
#23 0x7f510d09f8fc (/usr/lib/libc.so.6+0x868fc)
#24 0x7f510d121a5f (/usr/lib/libc.so.6+0x108a5f)
/home/elsid/dev/openmw/components/sceneutil/depth.cpp:32:61: runtime error: division by zero
#0 0x560d19d4e1b9 in SceneUtil::getReversedZProjectionMatrixAsOrtho(double, double, double, double, double, double) /home/elsid/dev/openmw/components/sceneutil/depth.cpp:32
#1 0x560d160a5caa in MWRender::PrecipitationOccluder::update() /home/elsid/dev/openmw/apps/openmw/mwrender/precipitationocclusion.cpp:139
#2 0x560d15c85f49 in MWRender::SkyManager::update(float) /home/elsid/dev/openmw/apps/openmw/mwrender/sky.cpp:569
#3 0x560d15b4c503 in MWRender::RenderingManager::update(float, bool) /home/elsid/dev/openmw/apps/openmw/mwrender/renderingmanager.cpp:921
#4 0x560d184c9ac5 in MWWorld::World::update(float, bool) /home/elsid/dev/openmw/apps/openmw/mwworld/worldimp.cpp:1797
#5 0x560d1928aa5d in OMW::Engine::frame(float) /home/elsid/dev/openmw/apps/openmw/engine.cpp:290
#6 0x560d192a71c1 in OMW::Engine::go() /home/elsid/dev/openmw/apps/openmw/engine.cpp:928
#7 0x560d19275e7b in runApplication(int, char**) /home/elsid/dev/openmw/apps/openmw/main.cpp:247
#8 0x560d1a2bad49 in wrapApplication(int (*)(int, char**), int, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) /home/elsid/dev/openmw/components/debug/debugging.cpp:339
#9 0x560d192760db in main /home/elsid/dev/openmw/apps/openmw/main.cpp:259
#10 0x7f510d03c28f (/usr/lib/libc.so.6+0x2328f)
#11 0x7f510d03c349 in __libc_start_main (/usr/lib/libc.so.6+0x23349)
#12 0x560d15b111c4 in _start ../sysdeps/x86_64/start.S:115
/home/elsid/dev/openmw/components/sceneutil/mwshadowtechnique.cpp:2704:40: runtime error: division by zero
#0 0x560d19c914d1 in SceneUtil::MWShadowTechnique::cropShadowCameraToMainFrustum(SceneUtil::MWShadowTechnique::Frustum&, osg::Camera*, double, double, std::vector<osg::Plane, std::allocator<osg::Plane> >&) /home/elsid/dev/openmw/components/sceneutil/mwshadowtechnique.cpp:2704
#1 0x560d19c7c44a in SceneUtil::MWShadowTechnique::cull(osgUtil::CullVisitor&) /home/elsid/dev/openmw/components/sceneutil/mwshadowtechnique.cpp:1496
#2 0x7f51134c2e6a in osgUtil::CullVisitor::apply(osg::Group&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/CullVisitor.cpp:1148
#3 0x7f51138cdfe6 in osgShadow::ShadowedScene::accept(osg::NodeVisitor&) /home/elsid/dev/OpenSceneGraph/include/osgShadow/ShadowedScene:36
#4 0x7f51138cdfe6 in osgShadow::ShadowedScene::accept(osg::NodeVisitor&) /home/elsid/dev/OpenSceneGraph/include/osgShadow/ShadowedScene:36
#5 0x7f51131b3132 in osg::Group::traverse(osg::NodeVisitor&) /home/elsid/dev/OpenSceneGraph/src/osg/Group.cpp:63
#6 0x560d15c0f4ea in osg::NodeVisitor::traverse(osg::Node&) /home/elsid/dev/OpenSceneGraph/build/gcc/release/install/include/osg/NodeVisitor:277
#7 0x560d19a2e4c2 in void SceneUtil::NodeCallback<SceneUtil::StateSetUpdater, osg::Node*, osg::NodeVisitor*>::traverse<osgUtil::CullVisitor*>(osg::Node*, osgUtil::CullVisitor*) /home/elsid/dev/openmw/components/sceneutil/nodecallback.hpp:37
#8 0x560d19a2921a in SceneUtil::StateSetUpdater::applyCull(osg::Node*, osgUtil::CullVisitor*) /home/elsid/dev/openmw/components/sceneutil/statesetupdater.cpp:55
#9 0x560d19a27c81 in SceneUtil::StateSetUpdater::operator()(osg::Node*, osg::NodeVisitor*) /home/elsid/dev/openmw/components/sceneutil/statesetupdater.cpp:17
#10 0x560d15bd2c42 in SceneUtil::NodeCallback<SceneUtil::StateSetUpdater, osg::Node*, osg::NodeVisitor*>::run(osg::Object*, osg::Object*) /home/elsid/dev/openmw/components/sceneutil/nodecallback.hpp:27
#11 0x7f51134c2d8d in osgUtil::CullVisitor::apply(osg::Group&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/CullVisitor.cpp:1148
#12 0x560d15ec4ed2 in osg::Group::accept(osg::NodeVisitor&) /home/elsid/dev/OpenSceneGraph/build/gcc/release/install/include/osg/Group:38
#13 0x7f51131b3132 in osg::Group::traverse(osg::NodeVisitor&) /home/elsid/dev/OpenSceneGraph/src/osg/Group.cpp:63
#14 0x560d160095eb in MWRender::PostProcessor::traverse(osg::NodeVisitor&) /home/elsid/dev/openmw/apps/openmw/mwrender/postprocessor.cpp:312
#15 0x560d15c0f4ea in osg::NodeVisitor::traverse(osg::Node&) /home/elsid/dev/OpenSceneGraph/build/gcc/release/install/include/osg/NodeVisitor:277
#16 0x560d19a2e4c2 in void SceneUtil::NodeCallback<SceneUtil::StateSetUpdater, osg::Node*, osg::NodeVisitor*>::traverse<osgUtil::CullVisitor*>(osg::Node*, osgUtil::CullVisitor*) /home/elsid/dev/openmw/components/sceneutil/nodecallback.hpp:37
#17 0x560d19a2921a in SceneUtil::StateSetUpdater::applyCull(osg::Node*, osgUtil::CullVisitor*) /home/elsid/dev/openmw/components/sceneutil/statesetupdater.cpp:55
#18 0x560d19a27c81 in SceneUtil::StateSetUpdater::operator()(osg::Node*, osg::NodeVisitor*) /home/elsid/dev/openmw/components/sceneutil/statesetupdater.cpp:17
#19 0x560d15bd2c42 in SceneUtil::NodeCallback<SceneUtil::StateSetUpdater, osg::Node*, osg::NodeVisitor*>::run(osg::Object*, osg::Object*) /home/elsid/dev/openmw/components/sceneutil/nodecallback.hpp:27
#20 0x7f51134c2e6a in osgUtil::CullVisitor::apply(osg::Group&) /home/elsid/dev/OpenSceneGraph/src/osgUtil/CullVisitor.cpp:1148
#21 0x560d15ec4ed2 in osg::Group::accept(osg::NodeVisitor&) /home/elsid/dev/OpenSceneGraph/build/gcc/release/install/include/osg/Group:38
#22 0x7f51131b3132 in osg::Group::traverse(osg::NodeVisitor&) /home/elsid/dev/OpenSceneGraph/src/osg/Group.cpp:63
#23 0x560d15c0f4ea in osg::NodeVisitor::traverse(osg::Node&) /home/elsid/dev/OpenSceneGraph/build/gcc/release/install/include/osg/NodeVisitor:277
#24 0x560d16071ece in void SceneUtil::NodeCallback<MWRender::PingPongCull, osg::Node*, osgUtil::CullVisitor*>::traverse<osgUtil::CullVisitor*>(osg::Node*, osgUtil::CullVisitor*) /home/elsid/dev/openmw/components/sceneutil/nodecallback.hpp:37
#25 0x560d1606f864 in MWRender::PingPongCull::operator()(osg::Node*, osgUtil::CullVisitor*) /home/elsid/dev/openmw/apps/openmw/mwrender/pingpongcull.cpp:91
#26 0x560d16072cd1 in SceneUtil::NodeCallback<MWRender::PingPongCull, osg::Node*, osgUtil::CullVisitor*>::run(osg::Object*, osg::Object*) /home/elsid/dev/openmw/components/sceneutil/nodecallback.hpp:27
#27 0x7f511359a69e in osgUtil::SceneView::cullStage(osg::Matrixd const&, osg::Matrixd const&, osgUtil::CullVisitor*, osgUtil::StateGraph*, osgUtil::RenderStage*, osg::Viewport*) /home/elsid/dev/OpenSceneGraph/src/osgUtil/SceneView.cpp:892
#28 0x7f5113597459 in osgUtil::SceneView::cull() /home/elsid/dev/OpenSceneGraph/src/osgUtil/SceneView.cpp:758
#29 0x7f5113ac8641 in osgViewer::Renderer::cull() /home/elsid/dev/OpenSceneGraph/src/osgViewer/Renderer.cpp:683
#30 0x7f5113b07898 in osgViewer::ViewerBase::renderingTraversals() /home/elsid/dev/OpenSceneGraph/src/osgViewer/ViewerBase.cpp:879
#31 0x560d1928c8f9 in OMW::Engine::frame(float) /home/elsid/dev/openmw/apps/openmw/engine.cpp:336
#32 0x560d192a71c1 in OMW::Engine::go() /home/elsid/dev/openmw/apps/openmw/engine.cpp:928
#33 0x560d19275e7b in runApplication(int, char**) /home/elsid/dev/openmw/apps/openmw/main.cpp:247
#34 0x560d1a2bad49 in wrapApplication(int (*)(int, char**), int, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) /home/elsid/dev/openmw/components/debug/debugging.cpp:339
#35 0x560d192760db in main /home/elsid/dev/openmw/apps/openmw/main.cpp:259
#36 0x7f510d03c28f (/usr/lib/libc.so.6+0x2328f)
#37 0x7f510d03c349 in __libc_start_main (/usr/lib/libc.so.6+0x23349)
#38 0x560d15b111c4 in _start ../sysdeps/x86_64/start.S:115