Author Topic: [fixed] r3132: Failure to load 'observer' techtree  (Read 1451 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
[fixed] r3132: Failure to load 'observer' techtree
« on: 14 March 2012, 02:24:52 »
I setup a game where I was a human player in the first slot, acting as an observer, with a bunch of CPU players and one  (unused) network slot. When I started the game, it crashed.

Terminal output:
Code: [Select]
megaglest v3.6.1-dev
Compiled using: GNUC: 40601 [64bit] on: Mar 14 2012 01:33:49
SVN: [Rev: 3132M] - using STREFLOP [SSE] - [no-denormals]
[2012-03-14 03:12:30] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/types/tech_tree.cpp::load Line: 221] Error [Can not parse URL: /home/tomreyn/SCM/megaglest-trunk/mk/linux//techs/megapack/factions/*Observer*/*Observer*.xml]
[2012-03-14 03:12:30] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp::setState Line: 562] Error [Error loading Faction Types: /home/tomreyn/SCM/megaglest-trunk/mk/linux//techs/megapack/
Can not parse URL: /home/tomreyn/SCM/megaglest-trunk/mk/linux//techs/megapack/factions/*Observer*/*Observer*.xml]
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:
Code: [Select]
[2012-03-14 03:12:32] 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() [0x5fe302] address [0x5fe302] line: 656
/lib/x86_64-linux-gnu/libc.so.6:() address [0x7fb00cc8e420] line: 0
./megaglest() [0x5ac850] address [0x5ac850] line: 8359
./megaglest:Glest::Game::Renderer::renderTextBoundingBox3D(std::string const&, Shared::Graphics::Font3D*, Shared::Graphics::Vec4<float> const&, int, int, int, int, bool, bool) address [0x5b0b33] line: 2470
./megaglest() [0x5b1085] address [0x5b1085] line: 2807
./megaglest:Glest::Game::Renderer::renderMessageBox(Glest::Game::GraphicMessageBox*) address [0x5b33b9] line: 2678
./megaglest:Glest::Game::Program::renderProgramMsgBox() address [0x61a824] line: 469
./megaglest:Glest::Game::Intro::render() address [0x61ff57] line: 752
./megaglest:Glest::Game::Program::loopWorker() address [0x61994c] line: 386
./megaglest:Glest::Game::glestMain(int, char**) address [0x608010] line: 3757
./megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x60ab56] line: 3915
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fb00cc7930d] line: 0
./megaglest() [0x4aaf59] address [0x4aaf59] line: 0

GDB backtrace:
Code: [Select]
warning: Can't read pathname for load map: I/O error.
[Thread debugging using libthread_db enabled]
Core was generated by `./megaglest'.
Program terminated with signal 11, Segmentation fault.
#0  Glest::Game::Renderer::getCentered3DPos (text=..., font=0x0, pos=..., w=90, h=22, centeredW=true, centeredH=true, this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:8359
8359    }}//end namespace
#0  Glest::Game::Renderer::getCentered3DPos (text=..., font=0x0, pos=..., w=90, h=22, centeredW=true, centeredH=true, this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:8359
#1  0x00000000005b0b33 in Glest::Game::Renderer::renderTextBoundingBox3D (this=0xc28fe0, text=..., font=0x0, color=..., x=<optimized out>, y=<optimized out>, w=90, h=22, centeredW=true, centeredH=true) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2470
#2  0x00000000005b1085 in Glest::Game::Renderer::renderButton (this=0xc28fe0, button=0x2813d30, fontColorOverride=<optimized out>, lightedOverride=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2788
#3  0x00000000005b33b9 in renderButton (button=0x2813d30, this=<optimized out>, fontColorOverride=<optimized out>, lightedOverride=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2678
#4  Glest::Game::Renderer::renderMessageBox (this=0xc28fe0, messageBox=0x27fd6a0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:3219
#5  0x000000000061a824 in Glest::Game::Program::renderProgramMsgBox (this=0x27fd650) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:469
#6  0x000000000061ff57 in Glest::Game::Intro::render (this=0x7faff007c7d0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/intro.cpp:750
#7  0x000000000061994c in Glest::Game::Program::loopWorker (this=0x27fd650) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:384
#8  0x000000000061043d in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:527
#9  0x00000000005fe302 in Glest::Game::handleSIGSEGV (sig=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:656
#10 <signal handler called>
#11 Glest::Game::Renderer::getCentered3DPos (text=..., font=0x0, pos=..., w=90, h=22, centeredW=true, centeredH=true, this=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:8359
#12 0x00000000005b0b33 in Glest::Game::Renderer::renderTextBoundingBox3D (this=0xc28fe0, text=..., font=0x0, color=..., x=<optimized out>, y=<optimized out>, w=90, h=22, centeredW=true, centeredH=true) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2470
#13 0x00000000005b1085 in Glest::Game::Renderer::renderButton (this=0xc28fe0, button=0x2813d30, fontColorOverride=<optimized out>, lightedOverride=0x0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2788
#14 0x00000000005b33b9 in renderButton (button=0x2813d30, this=<optimized out>, fontColorOverride=<optimized out>, lightedOverride=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:2678
#15 Glest::Game::Renderer::renderMessageBox (this=0xc28fe0, messageBox=0x27fd6a0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp:3219
#16 0x000000000061a824 in Glest::Game::Program::renderProgramMsgBox (this=0x27fd650) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:469
#17 0x000000000061ff57 in Glest::Game::Intro::render (this=0x7faff007c7d0) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/intro.cpp:750
#18 0x000000000061994c in Glest::Game::Program::loopWorker (this=0x27fd650) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/program.cpp:384
#19 0x0000000000608010 in Glest::Game::glestMain (argc=<optimized out>, argv=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3757
#20 0x000000000060ab56 in Glest::Game::glestMainWrapper (argc=1, argv=0x7fff1ea3a988) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3913
#21 0x00007fb00cc7930d in __libc_start_main (main=0x4a5c30 <main(int, char**)>, argc=1, ubp_av=0x7fff1ea3a988, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff1ea3a978) at libc-start.c:226
#22 0x00000000004aaf59 in _start ()

lastCustomGamSettings.mgg:
Code: [Select]
Description=8-players-only-1-will-win
 MapFilterIndex=8
 Map=8-players-only-1-will-win
 Tileset=evergreen
 TechTree=megapack
 DefaultUnits=1
 DefaultResources=1
 DefaultVictoryConditions=1
 FogOfWar=1
 AdvancedIndex=1
 AllowObservers=1
 FlagTypes1=2
 EnableObserverModeAtEndGame=1
 AiAcceptSwitchTeamPercentChance=30
 PathFinderType=0
 EnableServerControlledAI=1
 NetworkFramePeriod=20
 NetworkPauseGameForLaggedClients=1
 FactionThisFactionIndex=0
 FactionCount=8
 FactionControlForIndex0=7
 ResourceMultiplierIndex0=5
 FactionTeamForIndex0=8
 FactionStartLocationForIndex0=0
 FactionTypeNameForIndex0=*Observer*
 FactionPlayerNameForIndex0=tomreyn
 FactionControlForIndex1=3
 ResourceMultiplierIndex1=10
 FactionTeamForIndex1=1
 FactionStartLocationForIndex1=1
 FactionTypeNameForIndex1=indian
 FactionPlayerNameForIndex1=AI1
 FactionControlForIndex2=1
 ResourceMultiplierIndex2=0
 FactionTeamForIndex2=2
 FactionStartLocationForIndex2=2
 FactionTypeNameForIndex2=magic
 FactionPlayerNameForIndex2=AI2
 FactionControlForIndex3=1
 ResourceMultiplierIndex3=0
 FactionTeamForIndex3=3
 FactionStartLocationForIndex3=3
 FactionTypeNameForIndex3=norsemen
 FactionPlayerNameForIndex3=AI3
 FactionControlForIndex4=5
 ResourceMultiplierIndex4=5
 FactionTeamForIndex4=6
 FactionStartLocationForIndex4=4
 FactionTypeNameForIndex4=persian
 FactionPlayerNameForIndex4=???
 FactionControlForIndex5=1
 ResourceMultiplierIndex5=0
 FactionTeamForIndex5=5
 FactionStartLocationForIndex5=5
 FactionTypeNameForIndex5=romans
 FactionPlayerNameForIndex5=AI4
 FactionControlForIndex6=1
 ResourceMultiplierIndex6=0
 FactionTeamForIndex6=6
 FactionStartLocationForIndex6=6
 FactionTypeNameForIndex6=tech
 FactionPlayerNameForIndex6=AI5
 FactionControlForIndex7=1
 ResourceMultiplierIndex7=0
 FactionTeamForIndex7=7
 FactionStartLocationForIndex7=7
 FactionTypeNameForIndex7=*Random*
 FactionPlayerNameForIndex7=AI6
 
« Last Edit: 14 March 2012, 16:40:07 by tomreyn »
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: r3132: Failure to load 'observer' techtree
« Reply #1 on: 14 March 2012, 15:16:33 »
Fixed in svn 3134.