MegaGlest / megaglest-source

MegaGlest real-time strategy game engine (cross-platform, 3-d)
http://megaglest.org/
348 stars 89 forks source link

Stack trace when clicking the "Windowed" check box #173

Closed adam4235 closed 6 years ago

adam4235 commented 7 years ago

I installed Megaglest 3.13.0 on LInux by downloading it from the website. I already had older versions installed.

I started the game, went to the video options, and tried to click the "Windowed" check box to switch from Windowed mode to Full-screen mode. I got a stack trace shown on the screen, which also appeared in the console output. Here's the console output:

adam>./start_megaglest megaglest v3.13.0 Compiled using: GNUC: 40804 [64bit] platform: Linux-X64 endianness: little GIT: [Rev: 5607.967257e] - using STREFLOP [SSE] - [no-denormals] ERROR [2017-08-28 19:42:46] In [window.cpp::handleEvent Line: 485] (a2) Couldn't process event: [selectedMode == NULL Stack Trace: /home/adam/megaglest/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb1565d] line: 346 /home/adam/megaglest/megaglest:Glest::Game::MenuStateOptionsGraphics::mouseClick(int, int, Shared::Platform::MouseButton)address [0x6fadd3] line: 602 /home/adam/megaglest/megaglest:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton)address [0x6b78dc] line: 917 /home/adam/megaglest/megaglest:Shared::Platform::Window::handleMouseDown(SDL_Event)address [0xb100a4] line: 699 /home/adam/megaglest/megaglest:Shared::Platform::Window::handleEvent()address [0xb11533] line: 235 /home/adam/megaglest/megaglest:Glest::Game::glestMain(int, char)address [0x6c1c68] line: 5622 /home/adam/megaglest/megaglest:Glest::Game::glestMainSEHWrapper(int, char)address [0x6c85c6] line: 5975 /lib/x86_64-linux-gnu/libc.so.6:libc_start_main()address [0x7f98bbbf1830] line: 0 /home/adam/megaglest/megaglest() [0x4f1a1a]address [0x4f1a1a] ] codeLocation = f Error saved to logfile [/home/adam/.megaglest/error.log] ERROR [2017-08-28 19:42:47] In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/main/main.cpp::handleRuntimeError Line: 646] [selectedMode == NULL Stack Trace: /home/adam/megaglest/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb1565d] line: 346 /home/adam/megaglest/megaglest:Glest::Game::MenuStateOptionsGraphics::mouseClick(int, int, Shared::Platform::MouseButton)address [0x6fadd3] line: 602 /home/adam/megaglest/megaglest:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton)address [0x6b78dc] line: 917 /home/adam/megaglest/megaglest:Shared::Platform::Window::handleMouseDown(SDL_Event)address [0xb100a4] line: 699 /home/adam/megaglest/megaglest:Shared::Platform::Window::handleEvent()address [0xb11533] line: 235 /home/adam/megaglest/megaglest:Glest::Game::glestMain(int, char)address [0x6c1c68] line: 5622 /home/adam/megaglest/megaglest:Glest::Game::glestMainSEHWrapper(int, char)address [0x6c85c6] line: 5975 /lib/x86_64-linux-gnu/libc.so.6:libc_start_main()address [0x7f98bbbf1830] line: 0 /home/adam/megaglest/megaglest() [0x4f1a1a]address [0x4f1a1a]

Stack Trace: /home/adam/megaglest/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&, bool)address [0xb1565d] line: 346 /home/adam/megaglest/megaglest:Shared::Platform::Window::handleEvent()address [0xb12d23] line: 487 /home/adam/megaglest/megaglest:Glest::Game::glestMain(int, char)address [0x6c1c68] line: 5622 /home/adam/megaglest/megaglest:Glest::Game::glestMainSEHWrapper(int, char)address [0x6c85c6] line: 5975 /lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f98bbbf1830] line: 0 /home/adam/megaglest/megaglest() [0x4f1a1a]address [0x4f1a1a] ] gameInitialized = 1, program = 0x2ac3f80

adam4235 commented 7 years ago

I tried renaming my .megaglest config files, and the issue went away. I think it's something left over from the older versions I had installed. However, no matter what was left behind, it still shouldn't cause a stack trace.