supertuxkart-sourceforge-migration / stk-migration-test

0 stars 0 forks source link

Crash in graphics details screen #804

Closed supertuxkart-sourceforge-migration closed 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: hikerstk

When I open settings, graphics, details, and then click on 'close', I get a crash on VS:

    supertuxkart.exe!std::_Tree<std::_Tmap_traits<enum GUIEngine::Property,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<enum GUIEngine::Property>,std::allocator<std::pair<enum GUIEngine::Property const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >,0> >::_Lbound(const GUIEngine::Property & _Keyval) Line 2092  C++
    supertuxkart.exe!std::_Tree<std::_Tmap_traits<enum GUIEngine::Property,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<enum GUIEngine::Property>,std::allocator<std::pair<enum GUIEngine::Property const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >,0> >::lower_bound(const GUIEngine::Property & _Keyval) Line 1572  C++
    supertuxkart.exe!std::map<enum GUIEngine::Property,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::less<enum GUIEngine::Property>,std::allocator<std::pair<enum GUIEngine::Property const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > > >::operator[&& _Keyval) Line 175  C++
    supertuxkart.exe!GUIEngine::RibbonWidget::getSelectionIDString(const int playerID) Line 654 C++
    supertuxkart.exe!GUIEngine::Skin::drawIconButton(const irr::core::rect<int> & rect, GUIEngine::Widget * widget, const bool pressed, bool focused) Line 1378 C++
    supertuxkart.exe!GUIEngine::Skin::process3DPane(irr::gui::IGUIElement * element, const irr::core::rect<int> & rect, const bool pressed) Line 1859   C++
    supertuxkart.exe!GUIEngine::Skin::draw3DButtonPaneStandard(irr::gui::IGUIElement * element, const irr::core::rect<int> & rect, const irr::core::rect<int> * clip) Line 2027 C++
    supertuxkart.exe!irr::gui::CGUIButton::draw() Line 244  C++
    supertuxkart.exe!irr::gui::IGUIElement::draw() Line 318 C++
    supertuxkart.exe!irr::gui::CGUIEnvironment::drawAll() Line 212  C++
    supertuxkart.exe!GUIEngine::render(float elapsed_time) Line 1185    C++
    supertuxkart.exe!IrrDriver::update(float dt) Line 1732  C++
    supertuxkart.exe!MainLoop::run() Line 152   C++
    supertuxkart.exe!main(int argc, char * * argv) Line 1594    C++
    supertuxkart.exe!__tmainCRTStartup() Line 536   C
>   supertuxkart.exe!mainCRTStartup() Line 377  C

It looks like m_active_children[0](](GUIEngine::Property).m_properties is corrupt or incorrect? Even m_selection looks odd:

-       m_selection 0x197ce204 {30217704, 427590168, 0, 0}  int[4]
        [0] 30217704    int
        [1] 427590168   int
        [2] 0   int
        [3] 0   int
supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Fixed in r14627, caused by unsafely casting a DynamicRibbonWidget to a RibbonWidget