{"action":"closed","issue":{"url":"https://api.github.com/repos/Andrettin/Wyrmsun/issues/26","labels_url":"https://api.github.com/repos/Andrettin/Wyrmsun/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/Andrettin/Wyrmsun/issues/26/comments","events_url":"https://api.github.com/repos/Andrettin/Wyrmsun/issues/26/events","html_url":"https://github.com/Andrettin/Wyrmsun/issues/26","id":114374237,"number":26,"title":"Crash when changing resolution ingame","user":{"login":"KroArtem","id":1813101,"avatar_url":"https://avatars.githubusercontent.com/u/1813101?v=3","gravatar_id":"","url":"https://api.github.com/users/KroArtem","html_url":"https://github.com/KroArtem","followers_url":"https://api.github.com/users/KroArtem/followers","following_url":"https://api.github.com/users/KroArtem/following{/other_user}","gists_url":"https://api.github.com/users/KroArtem/gists{/gist_id}","starred_url":"https://api.github.com/users/KroArtem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KroArtem/subscriptions","organizations_url":"https://api.github.com/users/KroArtem/orgs","repos_url":"https://api.github.com/users/KroArtem/repos","events_url":"https://api.github.com/users/KroArtem/events{/privacy}","received_events_url":"https://api.github.com/users/KroArtem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-30T23:50:55Z","updated_at":"2015-10-31T19:26:43Z","closed_at":"2015-10-31T19:26:43Z","body":"Start game (e.g. custom one), go to options -> video, change width or height, press ok and receive a segfault. Didn't manage to debug what's happening.\r\n```\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x00000000007978b1 in CDecoVarSpriteBar::Draw (this=0x92107f0, x=415, y=198, \r\n    var=...) at /home/kroartem/SVN/Wyrmgus/src/unit/unit_draw.cpp:537\r\n537\t\tint n = sprite.NumFrames - 1; // frame of the sprite to show.\r\n(gdb) bt\r\n#0  0x00000000007978b1 in CDecoVarSpriteBar::Draw (this=0x92107f0, x=415, \r\n    y=198, var=...) at /home/kroartem/SVN/Wyrmgus/src/unit/unit_draw.cpp:537\r\n#1  0x0000000000797e23 in DrawDecoration (unit=..., type=..., screenPos=...)\r\n    at /home/kroartem/SVN/Wyrmgus/src/unit/unit_draw.cpp:619\r\n#2  0x0000000000798e1e in DrawInformations (unit=..., type=..., screenPos=...)\r\n    at /home/kroartem/SVN/Wyrmgus/src/unit/unit_draw.cpp:894\r\n#3  0x000000000079a588 in CUnit::Draw (this=0xd80ca60, vp=...)\r\n    at /home/kroartem/SVN/Wyrmgus/src/unit/unit_draw.cpp:1403\r\n#4  0x0000000000645ca8 in CViewport::Draw (this=0x245d950 <UI+1232>)\r\n    at /home/kroartem/SVN/Wyrmgus/src/map/map_draw.cpp:424\r\n#5  0x00000000006dabc6 in DrawMapArea ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/mainloop.cpp:174\r\n#6  0x00000000006dac55 in UpdateDisplay ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/mainloop.cpp:191\r\n#7  0x00000000006dbdb1 in DisplayLoop ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/mainloop.cpp:544\r\n#8  0x00000000006dbdcd in SingleGameLoop ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/mainloop.cpp:563\r\n#9  0x00000000006dbe7a in GameMainLoop ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/mainloop.cpp:601\r\n#10 0x00000000005fcb4d in StartMap (filename=\"maps/alfheim/ulfdalir.smp\", \r\n    clean=true) at /home/kroartem/SVN/Wyrmgus/src/game/game.cpp:173\r\n#11 0x00000000007ef5f8 in tolua_stratagus_StartMap00 (tolua_S=0x2487780)\r\n---Type <return> to continue, or q <return> to quit---\r\n    at /home/kroartem/SVN/Wyrmgus/tolua.cpp:1064\r\n#12 0x00007ffff7bb7360 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#13 0x00007ffff7bc1efa in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#14 0x00007ffff7bb77bd in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#15 0x00007ffff7bb6a9e in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#16 0x00007ffff7bb792b in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#17 0x00007ffff7bb33e8 in lua_pcall ()\r\n   from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#18 0x00000000006da6e9 in LuaCallback::run (this=0x8431758, results=0)\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/luacallback.cpp:149\r\n#19 0x0000000000753caa in LuaActionListener::action (this=0x8431750, \r\n    eventId=\"\") at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:392\r\n#20 0x0000000000618bc6 in gcn::Widget::generateAction (this=0x8431510)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widget.cpp:616\r\n#21 0x000000000061c227 in gcn::Button::mouseClick (this=0x8431510, button=1)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widgets/button.cpp:254\r\n#22 0x00000000006185ff in gcn::Widget::_mouseInputMessage (this=0x8431510, \r\n    mouseInput=...) at /home/kroartem/SVN/Wyrmgus/src/guichan/widget.cpp:502\r\n#23 0x000000000061dd91 in gcn::Container::_mouseInputMessage (this=0x84e76e0, \r\n    mouseInput=...)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widgets/container.cpp:394\r\n#24 0x000000000060ff1e in gcn::Gui::logic (this=0x8129c50)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/gui.cpp:155\r\n---Type <return> to continue, or q <return> to quit---\r\n#25 0x0000000000753ad9 in handleInput (event=0x0)\r\n    at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:341\r\n#26 0x00000000007d5f09 in WaitEventsOneFrame ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/video/sdl.cpp:989\r\n#27 0x000000000075f8a6 in MenuScreen::run (this=0x84e76e0, loop=true)\r\n    at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:3115\r\n#28 0x000000000083465b in tolua_stratagus_CMenuScreen_run00 (tolua_S=0x2487780)\r\n    at /home/kroartem/SVN/Wyrmgus/tolua.cpp:25142\r\n#29 0x00007ffff7bb7360 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#30 0x00007ffff7bc1efa in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#31 0x00007ffff7bb77bd in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#32 0x00007ffff7bb6a9e in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#33 0x00007ffff7bb792b in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#34 0x00007ffff7bb33e8 in lua_pcall ()\r\n   from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#35 0x00000000006da6e9 in LuaCallback::run (this=0xd7a15f8, results=0)\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/luacallback.cpp:149\r\n#36 0x0000000000753caa in LuaActionListener::action (this=0xd7a15f0, \r\n    eventId=\"\") at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:392\r\n#37 0x0000000000618bc6 in gcn::Widget::generateAction (this=0x8ef0a60)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widget.cpp:616\r\n#38 0x000000000061c227 in gcn::Button::mouseClick (this=0x8ef0a60, button=1)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widgets/button.cpp:254\r\n---Type <return> to continue, or q <return> to quit---\r\n#39 0x00000000006185ff in gcn::Widget::_mouseInputMessage (this=0x8ef0a60, \r\n    mouseInput=...) at /home/kroartem/SVN/Wyrmgus/src/guichan/widget.cpp:502\r\n#40 0x000000000061dd91 in gcn::Container::_mouseInputMessage (this=0xd7ab110, \r\n    mouseInput=...)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widgets/container.cpp:394\r\n#41 0x000000000060ff1e in gcn::Gui::logic (this=0x8129c50)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/gui.cpp:155\r\n#42 0x0000000000753ad9 in handleInput (event=0x0)\r\n    at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:341\r\n#43 0x00000000007d5f09 in WaitEventsOneFrame ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/video/sdl.cpp:989\r\n#44 0x000000000075f8a6 in MenuScreen::run (this=0xd7ab110, loop=true)\r\n    at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:3115\r\n#45 0x000000000083465b in tolua_stratagus_CMenuScreen_run00 (tolua_S=0x2487780)\r\n    at /home/kroartem/SVN/Wyrmgus/tolua.cpp:25142\r\n#46 0x00007ffff7bb7360 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#47 0x00007ffff7bc1e97 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#48 0x00007ffff7bb77bd in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#49 0x00007ffff7bb6a9e in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#50 0x00007ffff7bb792b in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#51 0x00007ffff7bb33e8 in lua_pcall ()\r\n   from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#52 0x00000000006da6e9 in LuaCallback::run (this=0xd8a0f08, results=0)\r\n---Type <return> to continue, or q <return> to quit---\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/luacallback.cpp:149\r\n#53 0x0000000000753caa in LuaActionListener::action (this=0xd8a0f00, \r\n    eventId=\"\") at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:392\r\n#54 0x0000000000618bc6 in gcn::Widget::generateAction (this=0xd8a0d10)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widget.cpp:616\r\n#55 0x000000000061c227 in gcn::Button::mouseClick (this=0xd8a0d10, button=1)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widgets/button.cpp:254\r\n#56 0x00000000006185ff in gcn::Widget::_mouseInputMessage (this=0xd8a0d10, \r\n    mouseInput=...) at /home/kroartem/SVN/Wyrmgus/src/guichan/widget.cpp:502\r\n#57 0x000000000061dd91 in gcn::Container::_mouseInputMessage (this=0xd800800, \r\n    mouseInput=...)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/widgets/container.cpp:394\r\n#58 0x000000000060ff1e in gcn::Gui::logic (this=0x8129c50)\r\n    at /home/kroartem/SVN/Wyrmgus/src/guichan/gui.cpp:155\r\n#59 0x0000000000753ad9 in handleInput (event=0x0)\r\n    at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:341\r\n#60 0x00000000007d5f09 in WaitEventsOneFrame ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/video/sdl.cpp:989\r\n#61 0x000000000075f8a6 in MenuScreen::run (this=0xd800800, loop=true)\r\n    at /home/kroartem/SVN/Wyrmgus/src/ui/widgets.cpp:3115\r\n#62 0x000000000083465b in tolua_stratagus_CMenuScreen_run00 (tolua_S=0x2487780)\r\n    at /home/kroartem/SVN/Wyrmgus/tolua.cpp:25142\r\n#63 0x00007ffff7bb7360 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n---Type <return> to continue, or q <return> to quit---\r\n#64 0x00007ffff7bc1e97 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#65 0x00007ffff7bb77bd in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#66 0x00007ffff7bb6a9e in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#67 0x00007ffff7bb792b in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#68 0x00007ffff7bb33e8 in lua_pcall ()\r\n   from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0\r\n#69 0x00000000006e69e8 in LuaCall (narg=0, clear=1, exitOnError=true)\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/script.cpp:168\r\n#70 0x00000000006e6d28 in LuaLoadFile (file=\"scripts/guichan.lua\")\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/script.cpp:225\r\n#71 0x0000000000710b98 in MenuLoop ()\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/stratagus.cpp:305\r\n#72 0x000000000071152f in stratagusMain (argc=1, argv=0x7fffffffdfb8)\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/stratagus.cpp:787\r\n#73 0x00000000006da7cf in main (argc=1, argv=0x7fffffffdfb8)\r\n    at /home/kroartem/SVN/Wyrmgus/src/stratagus/main.cpp:37\r\n```"}}