URL:
  <http://gna.org/bugs/?15571>

                 Summary: Access Violation originated on std::xtree
                 Project: Battle for Wesnoth
            Submitted by: None
            Submitted on: Wednesday 03/10/2010 at 03:59 CET
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: User Interface
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.13
        Operating System: Win XP

    _______________________________________________________

Details:

Unhandled exception at 0x00f2d626 in wesnoth.exe: 0xC0000005: Access
violation reading location 0x00000004.

>       
> wesnoth.exe!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,gui2::twindow::tlinked_size,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>
>,std::allocator<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> const ,gui2::twindow::tlinked_size> >,0> >::_Lbound(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
_Keyval="icon_area")  Line 1264 + 0x8 bytes     C++

        
wesnoth.exe!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,gui2::twindow::tlinked_size,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>
>,std::allocator<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> const ,gui2::twindow::tlinked_size> >,0> >::lower_bound(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
_Keyval="icon_area")  Line 1004 + 0x10 bytes    C++

        
wesnoth.exe!std::_Tree<std::_Tmap_traits<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,gui2::twindow::tlinked_size,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char>
>
>,std::allocator<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char>
> const ,gui2::twindow::tlinked_size> >,0> >::find(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
_Keyval="icon_area")  Line 978 + 0x10 bytes     C++
        wesnoth.exe!gui2::twindow::has_linked_size_group(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
id="icon_area")  Line 702 + 0x3c bytes  C++
        wesnoth.exe!gui2::twindow::remove_linked_widget(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &
id="icon_area", const gui2::twidget * widget=0x059a0d00)  Line 723 + 0xc
bytes   C++

...

This happens if I open a new instance and click on Campaign. If I click Ok or
Cancel Wesnoth crashes.

After debugging I found that the issue is generated on xtree.

I found that if you add a check for twindow::linked_size_ being empty in
twindow::remove_linked_wideget_ this can be avoided, but I don't think this
is the "orthodox" way.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?15571>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to