Author Topic: [fixed]r4497: Server crashes while loading, Japanese  (Read 828 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed]r4497: Server crashes while loading, Japanese
« on: 22 June 2013, 20:00:00 »
While initializing a game with lots of titi*'s on a game I was hosting I ran into this while pressing Alt-Enter:

Code: [Select]
[2013-06-22 21:55:44] *ERROR* In [model.cpp::loadMeshTexture Line: 736] Error v4 model is missing texture [/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner/../castle/models/muzzleflash.tga] textureFlags = 1 meshIndex = 10 textureIndex = 0 modelFile [/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner/../castle/models/taketaba_teppo_death.g3d]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5528] Error detected: signal 11:
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
[2013-06-22 21:55:44] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 643] [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5528] Error detected: signal 11:
] gameInitialized = 1, program = 0x18da100
[2013-06-22 21:55:46] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 662] [In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5528] Error detected: signal 11:

Stack Trace:
./megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x68ab37] line: 653
./megaglest() [0x68adaf]address [0x68adaf]
/lib/x86_64-linux-gnu/libc.so.6:()address [0x7f5e487060b0] line: 0
./megaglest:Shared::Graphics::Model::autoJoinMeshFrames()address [0x99d315] line: 1569
./megaglest:Shared::Graphics::Model::loadG3d(std::string const&, bool, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >*, std::string)address [0x9a5417] line: 1302
./megaglest:Shared::Graphics::Model::load(std::string const&, bool, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >*, std::string*)address [0x9a6c35] line: 1144
./megaglest:Glest::Game::SkillType::load(Shared::Xml::XmlNode const*, Shared::Xml::XmlNode const*, std::string const&, Glest::Game::TechTree const*, Glest::Game::FactionType const*, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >&, std::string)address [0x8ba84a] line: 426
./megaglest:Glest::Game::DieSkillType::load(Shared::Xml::XmlNode const*, Shared::Xml::XmlNode const*, std::string const&, Glest::Game::TechTree const*, Glest::Game::FactionType const*, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >&, std::string)address [0x8bcdf4] line: 1124
./megaglest:Glest::Game::UnitType::loaddd(int, std::string const&, Glest::Game::TechTree const*, std::string const&, Glest::Game::FactionType const*, Shared::Util::Checksum*, Shared::Util::Checksum*, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >&)address [0x8cdb3a] line: 625
./megaglest:Glest::Game::FactionType::load(std::string const&, Glest::Game::TechTree const*, Shared::Util::Checksum*, Shared::Util::Checksum*, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >&)address [0x8dbdd0] line: 167
./megaglest:Glest::Game::TechTree::load(std::string const&, std::set<std::string, std::less<std::string>, std::allocator<std::string> >&, Shared::Util::Checksum*, Shared::Util::Checksum*, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >&)address [0x8ea82c] line: 278
./megaglest:Glest::Game::TechTree::loadTech(std::string const&, std::set<std::string, std::less<std::string>, std::allocator<std::string> >&, Shared::Util::Checksum*, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >&)address [0x8ec4a8] line: 115
./megaglest:Glest::Game::World::loadTech(std::vector<std::string, std::allocator<std::string> >, std::string const&, std::set<std::string, std::less<std::string>, std::allocator<std::string> >&, Shared::Util::Checksum*, std::map<std::string, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > >, std::less<std::string>, std::allocator<std::pair<std::string const, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > > > >&)address [0x9492db] line: 464
./megaglest:Glest::Game::Game::load(int)address [0x5b6aad] line: 1100
./megaglest:Glest::Game::Program::setState(Glest::Game::ProgramState*, bool)address [0x6b06d1] line: 625
./megaglest:Glest::Game::MenuStateCustomGame::PlayNow(bool)address [0x773fcc] line: 1715
./megaglest:Glest::Game::MenuStateCustomGame::mouseClick(int, int, Shared::Platform::MouseButton)address [0x780e13] line: 984
./megaglest:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton)address [0x68be0e] line: 890
./megaglest:Shared::Platform::Window::handleMouseDown(SDL_Event)address [0xa29484] line: 681
./megaglest:Shared::Platform::Window::handleEvent()address [0xa2a285] line: 162
./megaglest:Glest::Game::glestMain(int, char**)address [0x698335] line: 5292
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x69bf16] line: 5626
./megaglest:Glest::Game::glestMainWrapper(int, char**)address [0x69c0ae] line: 5698
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f5e486f0ea5] line: 0
]

Code: [Select]
Core was generated by `./megaglest --starthost'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000061f580 in Glest::Game::Renderer::loadGameCameraMatrix (this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:1158
1158            glRotatef(gameCamera->getVAng(), -1, 0, 0);
#0  0x000000000061f580 in Glest::Game::Renderer::loadGameCameraMatrix (this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:1158
#1  0x000000000059bcc3 in Glest::Game::Game::render3d (this=this@entry=0x37aa6a0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:4934
#2  0x00000000005acb6d in Glest::Game::Game::renderWorker (this=this@entry=0x37aa6a0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:3118
#3  0x00000000005b3108 in Glest::Game::Game::render (this=0x37aa6a0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:3048
#4  0x00000000006b32c4 in Glest::Game::Program::loopWorker (this=0x18da100) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:422
#5  0x00000000006b61d5 in Glest::Game::Program::loop (this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:369
#6  0x000000000068aa3d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=msg@entry=0x7ffff8859440 "In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5528] Error detected: signal 11:\n", getStackTraceString=getStackTraceString@entry=true) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:684
#7  0x000000000068adaf in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:5532
#8  <signal handler called>
#9  0x000000000099d315 in Shared::Graphics::Model::autoJoinMeshFrames (this=this@entry=0x92c7ad0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/graphics/model.cpp:1569
#10 0x00000000009a5417 in Shared::Graphics::Model::loadG3d (this=this@entry=0x92c7ad0, path="/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner/../castle/models/taketaba_teppo_death.g3d", deletePixMapAfterLoad=deletePixMapAfterLoad@entry=false, loadedFileList=loadedFileList@entry=0x7ffff886afe0, sourceLoader="/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner/taketaba_gunner.xml") at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/graphics/model.cpp:1302
#11 0x00000000009a6c35 in Shared::Graphics::Model::load (this=0x92c7ad0, path="/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner/../castle/models/taketaba_teppo_death.g3d", deletePixMapAfterLoad=deletePixMapAfterLoad@entry=false, loadedFileList=loadedFileList@entry=0x7ffff886afe0, sourceLoader=sourceLoader@entry=0x7ffff88601b0) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/graphics/model.cpp:1144
Python Exception <type 'exceptions.IndexError'> list index out of range:
#12 0x00000000008ba84a in Glest::Game::SkillType::load (this=this@entry=0x92c9d20, sn=sn@entry=0x81377c0, attackBoostsNode=attackBoostsNode@entry=0x0, dir="/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner", tt=0x2ca5de0, ft=0x2393a50, loadedFileList=std::map with 796 elements, parentLoader="/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner/taketaba_gunner.xml") at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/types/skill_type.cpp:424
Python Exception <type 'exceptions.IndexError'> list index out of range:
#13 0x00000000008bcdf4 in Glest::Game::DieSkillType::load (this=this@entry=0x92c9d20, sn=sn@entry=0x81377c0, attackBoostsNode=attackBoostsNode@entry=0x0, dir="/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner", tt=tt@entry=0x2ca5de0, ft=ft@entry=0x2393a50, loadedFileList=std::map with 796 elements, parentLoader="/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner/taketaba_gunner.xml") at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/types/skill_type.cpp:1124
Python Exception <type 'exceptions.IndexError'> list index out of range:
#14 0x00000000008cdb3a in Glest::Game::UnitType::loaddd (this=<optimized out>, id=id@entry=18, dir="/home/tomreyn/.megaglest/techs/japanese/factions/japanese/units/taketaba_gunner", techTree=techTree@entry=0x2ca5de0, techTreePath="/home/tomreyn/.megaglest/techs/japanese/", factionType=factionType@entry=0x2393a50, checksum=checksum@entry=0x37abec0, techtreeChecksum=techtreeChecksum@entry=0x2ca5e78, loadedFileList=std::map with 796 elements) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/types/unit_type.cpp:625
Python Exception <type 'exceptions.IndexError'> list index out of range:
#15 0x00000000008dbdd0 in Glest::Game::FactionType::load (this=0x2393a50, factionName="japanese", techTree=techTree@entry=0x2ca5de0, checksum=checksum@entry=0x37abec0, techtreeChecksum=techtreeChecksum@entry=0x2ca5e78, loadedFileList=std::map with 796 elements) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/types/faction_type.cpp:166
Python Exception <type 'exceptions.IndexError'> list index out of range:
Python Exception <type 'exceptions.IndexError'> list index out of range:
#16 0x00000000008ea82c in Glest::Game::TechTree::load (this=this@entry=0x2ca5de0, dir=<Fehler beim Lesen der Variable: Cannot access memory at address 0x7fff00000000>, factions=std::set with 1 elements, checksum=checksum@entry=0x37abec0, techtreeChecksum=techtreeChecksum@entry=0x7ffff886a8c0, loadedFileList=std::map with 796 elements) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/types/tech_tree.cpp:275
Python Exception <type 'exceptions.IndexError'> list index out of range:
Python Exception <type 'exceptions.IndexError'> list index out of range:
#17 0x00000000008ec4a8 in Glest::Game::TechTree::loadTech (this=0x2ca5de0, techName="japanese", factions=std::set with 1 elements, checksum=checksum@entry=0x37abec0, loadedFileList=std::map with 796 elements) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/types/tech_tree.cpp:110
Python Exception <type 'exceptions.IndexError'> list index out of range:
Python Exception <type 'exceptions.IndexError'> list index out of range:
#18 0x00000000009492db in Glest::Game::World::loadTech (this=this@entry=0x37aa6e0, pathList=std::vector of length 2, capacity 2 = {...}, techName="japanese", factions=std::set with 1 elements, checksum=checksum@entry=0x37abec0, loadedFileList=std::map with 796 elements) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/world/world.cpp:464
#19 0x00000000005b6aad in Glest::Game::Game::load (this=0x37aa6a0, loadTypes=31) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/game/game.cpp:1100
#20 0x00000000006b06d1 in Glest::Game::Program::setState (this=0x18da100, programStateNew=programStateNew@entry=0x37aa6a0, cleanupOldState=cleanupOldState@entry=true) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:623
#21 0x0000000000773fcc in Glest::Game::MenuStateCustomGame::PlayNow (this=this@entry=0x2a9fbb0, saveGame=saveGame@entry=true) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp:1715
#22 0x0000000000780e13 in Glest::Game::MenuStateCustomGame::mouseClick (this=0x2a9fbb0, x=675, y=188, mouseButton=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/menu/menu_state_custom_game.cpp:984
#23 0x000000000068be0e in Glest::Game::MainWindow::eventMouseDown (this=0x18db560, x=<optimized out>, y=<optimized out>, mouseButton=Shared::Platform::mbLeft) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:889
#24 0x0000000000a29484 in Shared::Platform::Window::handleMouseDown (this=0x18db560, event=...) at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/window.cpp:679
#25 0x0000000000a2a285 in Shared::Platform::Window::handleEvent () at /home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/window.cpp:161
#26 0x0000000000698335 in Glest::Game::glestMain (argc=argc@entry=2, argv=argv@entry=0x7ffff887c9c8) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:5292
#27 0x000000000069bf16 in Glest::Game::glestMainSEHWrapper (argc=argc@entry=2, argv=argv@entry=0x7ffff887c9c8) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:5624
#28 0x000000000069c0ae in Glest::Game::glestMainWrapper (argc=2, argv=0x7ffff887c9c8) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:5697
#29 0x00007f5e486f0ea5 in __libc_start_main (main=0x50f090 <main(int, char**)>, argc=2, ubp_av=0x7ffff887c9c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffff887c9b8) at libc-start.c:260
#30 0x0000000000515a69 in _start ()
« Last Edit: 23 June 2013, 01:52:32 by titi »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r4497: Server crashes while loading, Japanese
« Reply #1 on: 22 June 2013, 21:41:55 »
Fixed in 4499

 

anything