Author Topic: [Fixed] Crash when going to load game menu  (Read 830 times)

hailstone

  • Local Moderator
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
[Fixed] Crash when going to load game menu
« on: 17 April 2011, 04:58:11 »
I have no save games.

Code: [Select]
> glestadv.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Grow(unsigned int _Newsize=7, bool _Trim=false)  Line 2122 + 0x3 bytes C++
  glestadv.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::assign(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & _Right="FPS: 58", unsigned int _Roff=0, unsigned int _Count=4294967295)  Line 1055 + 0xe bytes C++
  glestadv.exe!Glest::Widgets::TextWidget::setText(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & txt="FPS: 58", int ndx=0)  Line 1152 C++
  glestadv.exe!Glest::Menu::MenuState::setDebugString(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & s="FPS: 58")  Line 283 C++
  glestadv.exe!Glest::Menu::MainMenu::tick()  Line 161 C++
  glestadv.exe!Glest::Main::Program::loop()  Line 294 + 0x1b bytes C++
  glestadv.exe!Glest::Main::glestMain(int argc=3, char * * argv=0x01a02b80)  Line 206 C++
  glestadv.exe!main(int argc=3, char * * argv=0x01a02b80)  Line 224 + 0x10 bytes C++
  glestadv.exe!__tmainCRTStartup()  Line 266 + 0x19 bytes C
  glestadv.exe!mainCRTStartup()  Line 182 C

m_texts = [2380380992]({m_text={...} m_pos={...} m_colour=??? ...},{m_text={...} m_pos={...} m_colour=??? ...},{m_text={...} m_pos={...} m_colour=??? ...},{m_text={...} m_pos={...} m_colour=??? ...},{m_text={...} m_pos={...} m_colour=??? ...},{m_text={...} m_pos={......
« Last Edit: 17 April 2011, 16:06:15 by silnarm »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: Crash when going to load game menu
« Reply #1 on: 17 April 2011, 06:12:53 »
Confirmed...the solution should be related to removing the fps debug text, I guess. The weird thing was for the first time I tried this, it didn't crash.
Code: [Select]
Description: Access violation (Writing address: 0x4ACEBF6B)
Call Stack:
  Frame       Code address
  0x009FEF88  0x012D44CC LeadUpVec+0x60 at memcpy.asm(280)
  0x009FEFA4  0x012CBF92 memcpy_s+0x4a at memcpy_s.c(67)
  0x009FEFC8  0x01047A8E std::basic_string<char,std::char_traits<char>,std::allocator<char> >::assign+0xbe at xstring(1057)
  0x009FF04C  0x011EAA83 Glest::Widgets::TextWidget::setText+0xf3 at widgets_base.cpp(1152)
  0x009FF0C0  0x010FFD50 Glest::Menu::MainMenu::tick+0xb0 at main_menu.cpp(160)
  0x009FF124  0x010FE939 Glest::Main::Program::loop+0x519 at program.cpp(294)
  0x009FF764  0x010FC2DC Glest::Main::glestMain+0x39c at main.cpp(16707566)
  0x009FF76C  0x010FC4FD main+0x1d at main.cpp(224)
  0x009FF7B4  0x012D1393 __tmainCRTStartup+0xfb at crt0.c(266)
  0x009FF7C0  0x76651194 BaseThreadInitThunk+0x12
  0x009FF800  0x772CB429 RtlInitializeExceptionChain+0x63
  0x009FF818  0x772CB3FC RtlInitializeExceptionChain+0x36

 

anything