After playing any game on a headless server, the headless server crashes while trying to save the game.
Terminal output:
tomreyn@atibox:~/SCM/megaglest-trunk/mk/linux$ ./dev_rungame --headless-server-mode=vps,exit
Disabled reading from console [vps]
Forcing quit after game has completed [exit]
megaglest v3.6.1-dev
Compiled using: GNUC: 40601 [64bit] on: Mar 14 2012 17:41:23
SVN: [Rev: 3134M] - using STREFLOP [SSE] - [no-denormals]
Waiting for players to join and start a game...
Headless server is now running...
Starting a new game...
New game has started...
== Current in-game stats (interval 600) ==
Render FPS: -1[-1]
Update FPS: 0[-1]
Time: 7.50 [0.00]
Log buffer count: 0
UnitRangeCellsLookupItemCache: pos [0] size [0] range [0][0] total KB: 0
ExploredCellsLookupItemCache: pos [10] sight [10] [1278][1278] total KB: 20
FowAlphaCellsLookupItemCache: pos [10] sight [10] [9438][9438] total KB: 113
Map: conflict
Tileset: forest
Techtree: megapack
Frame count:0
Total unit count: 10
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
error.log:
[2012-03-14 17:43:55] Runtime Error information:
======================================================
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 652] Error detected: signal 11:
Stack Trace:
./megaglest() [0x5ff242] address [0x5ff242] line: 656
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7f158757c420] line: 0
./megaglest:Shared::Graphics::Pixmap2D::getPixelByteCount() const address [0x8897c0] line: 903
./megaglest:Glest::Game::Minimap::saveGame(Shared::Xml::XmlNode*) address [0x822b68] line: 229
./megaglest:Glest::Game::World::saveGame(Shared::Xml::XmlNode*) address [0x86296b] line: 2123
./megaglest:Glest::Game::Game::saveGame(std::string) address [0x537d50] line: 3747
./megaglest:Glest::Game::World::DumpWorldToLog(bool) const address [0x862078] line: 2092
./megaglest:Glest::Game::Game::quitGame() address [0x533196] line: 2636
./megaglest:Glest::Game::Game::quitAndToggleState() address [0x533ba9] line: 355
./megaglest:Glest::Game::Program::loopWorker() address [0x61aa36] line: 373
./megaglest:Glest::Game::glestMain(int, char**) address [0x608f50] line: 3757
./megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x60ba96] line: 3915
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7f158756730d] line: 0
./megaglest() [0x4ab459] address [0x4ab459] line: 0
gdb backtrace:
warning:Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Core was generated by `./megaglest --headless-server-mode=vps,exit'.
Program terminated with signal 11, Segmentation fault.
#0 Shared::Graphics::Pixmap2D::getPixelByteCount (this=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/graphics/pixmap.cpp:903
903 return (h * w * components);
#0 Shared::Graphics::Pixmap2D::getPixelByteCount (this=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/graphics/pixmap.cpp:903
#1 0x0000000000822b68 in Glest::Game::Minimap::saveGame (this=0x7f1570048128, rootNode=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/minimap.cpp:229
#2 0x000000000086296b in Glest::Game::World::saveGame (this=0x7f1570047828, rootNode=0x7f15708f1880) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/world.cpp:2121
#3 0x0000000000537d50 in Glest::Game::Game::saveGame (this=0x7f15700477f0, name=...) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:3454
#4 0x0000000000862078 in Glest::Game::World::DumpWorldToLog (this=0x7f1570047828, consoleBasicInfoOnly=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/world.cpp:2092
#5 0x0000000000533196 in Glest::Game::Game::quitGame (this=0x7f15700477f0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:2636
#6 0x000000000054abfb in Glest::Game::Game::~Game (this=0x7f15700477f0, __in_chrg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:287
#7 0x000000000054bbe9 in Glest::Game::Game::~Game (this=0x7f15700477f0, __in_chrg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:344
#8 0x000000000061b8eb in Glest::Game::Program::~Program (this=0xdaf610, __in_chrg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:267
#9 0x0000000000610e36 in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:568
#10 0x00000000005ff242 in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:656
#11 <signal handler called>
#12 Shared::Graphics::Pixmap2D::getPixelByteCount (this=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/graphics/pixmap.cpp:903
#13 0x0000000000822b68 in Glest::Game::Minimap::saveGame (this=0x7f1570048128, rootNode=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/minimap.cpp:229
#14 0x000000000086296b in Glest::Game::World::saveGame (this=0x7f1570047828, rootNode=0x7f1570093720) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/world.cpp:2121
#15 0x0000000000537d50 in Glest::Game::Game::saveGame (this=0x7f15700477f0, name=...) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:3454
#16 0x0000000000862078 in Glest::Game::World::DumpWorldToLog (this=0x7f1570047828, consoleBasicInfoOnly=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/world.cpp:2092
#17 0x0000000000533196 in Glest::Game::Game::quitGame (this=0x7f15700477f0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:2636
#18 0x0000000000533ba9 in Glest::Game::Game::quitAndToggleState (this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:353
#19 0x000000000061aa36 in Glest::Game::Program::loopWorker (this=0xdaf610) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:371
#20 0x0000000000608f50 in Glest::Game::glestMain (argc=<optimized out>, argv=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3757
#21 0x000000000060ba96 in Glest::Game::glestMainWrapper (argc=2, argv=0x7fffa79836d8) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3913
#22 0x00007f158756730d in __libc_start_main (main=0x4a6130 <main(int, char**)>, argc=2, ubp_av=0x7fffa79836d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffa79836c8) at libc-start.c:226
#23 0x00000000004ab459 in _start ()