Author Topic: [fixed] r3119: xml_parser.cpp::load Line: 168: Exception while loading  (Read 932 times)

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
I ran MegaGlest r3119 and started a game against one CPU on the Conflict map with titi's new volcano tileset (which is available in the game mods menu), built a building, sent workers to harvest gold, and started a fight with the enemy (attacking their base with a single unit). While the first struggle was ongoing I quit the game.

Code: [Select]
tomreyn@atibox:~/SCM/megaglest-trunk/mk/linux$ ./dev_rungame
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
megaglest v3.6.1-dev
Compiled using: GNUC: 40601 [64bit] on: Mar 13 2012 15:48:07
SVN: [Rev: 3119M] - using STREFLOP [SSE] - [no-denormals]

Then I tried to reload this game, but ran into an XML parsing issue:
Code: [Select]
tomreyn@atibox:~/SCM/megaglest-trunk/mk/linux$ ./dev_rungame --load-saved-game
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: default value of option vblank_mode overridden by environment.
ATTENTION: option value of option vblank_mode ignored.
megaglest v3.6.1-dev
Compiled using: GNUC: 40601 [64bit] on: Mar 13 2012 15:48:07
SVN: [Rev: 3119M] - using STREFLOP [SSE] - [no-denormals]
[2012-03-13 22:10:45] *ERROR* In [xml_parser.cpp::load Line: 168] Exception while loading: [/home/tomreyn/.megaglest/megaglest-saved.xml], attempt is made to reference a node in a context where it does not exist
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
[2012-03-13 22:10:45] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 416] [Exception while loading: /home/tomreyn/.megaglest/megaglest-saved.xml: attempt is made to reference a node in a context where it does not exist] gameInitialized = 0, program = 0x245f650
[2012-03-13 22:10:45] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 509] [Exception while loading: /home/tomreyn/.megaglest/megaglest-saved.xml: attempt is made to reference a node in a context where it does not exist
Stack Trace:
./megaglest:Glest::Game::glestMain(int, char**) address [0x5fc131] line: 3800
./megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x601c96] line: 3909
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7f919523b30d] line: 0
./megaglest() [0x4aa179] address [0x4aa179] line: 0
]
******************************************************
    #2 An error occurred and MegaGlest will close.
Error msg = [Exception while loading: /home/tomreyn/.megaglest/megaglest-saved.xml: attempt is made to reference a node in a context where it does not exist
Stack Trace:
./megaglest:Glest::Game::glestMain(int, char**) address [0x5fc131] line: 3800
./megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x601c96] line: 3909
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7f919523b30d] line: 0
./megaglest() [0x4aa179] address [0x4aa179] line: 0
]

Please report this bug to  http://bugs.megaglest.org
******************************************************

Segmentation fault detected, analyzing...

warning: [New LWP 25890]
[New LWP 25930]
[New LWP 25928]
[New LWP 25929]
Can't read pathname for load map: Eingabe-/Ausgabefehler.
[Thread debugging using libthread_db enabled]
64    ../nptl/sysdeps/unix/sysv/linux/raise.c: Datei oder Verzeichnis nicht gefunden.
Core was generated by `./megaglest --load-saved-game'.
Program terminated with signal 6, Aborted.
#0  0x00007f91952503a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
    in ../nptl/sysdeps/unix/sysv/linux/raise.c
#0  0x00007f91952503a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007f9195253b0b in __GI_abort () at abort.c:92
#2  0x0000000000606350 in Glest::Game::ExceptionHandler::handleRuntimeError (msg=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:602
#3  0x00000000005fc131 in Glest::Game::glestMain (argc=<optimized out>, argv=<optimized out>) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3800
#4  0x0000000000601c96 in Glest::Game::glestMainWrapper (argc=2, argv=0x7fff61a68da8) at /home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp:3907
#5  0x00007f919523b30d in __libc_start_main (main=0x4a4e50 <main(int, char**)>, argc=2, ubp_av=0x7fff61a68da8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff61a68d98) at libc-start.c:226
#6  0x00000000004aa179 in _start ()

lastCustomGamSettings.mgg :
Code: [Select]
Description=Conflict
MapFilterIndex=0
Map=conflict
Tileset=volcanic_island
TechTree=megapack
DefaultUnits=1
DefaultResources=1
DefaultVictoryConditions=1
FogOfWar=1
AdvancedIndex=0
AllowObservers=0
FlagTypes1=0
EnableObserverModeAtEndGame=1
AiAcceptSwitchTeamPercentChance=30
PathFinderType=0
EnableServerControlledAI=1
NetworkFramePeriod=20
NetworkPauseGameForLaggedClients=1
FactionThisFactionIndex=0
FactionCount=2
FactionControlForIndex0=7
ResourceMultiplierIndex0=5
FactionTeamForIndex0=7
FactionStartLocationForIndex0=0
FactionTypeNameForIndex0=egypt
FactionPlayerNameForIndex0=tomreyn
FactionControlForIndex3=1
ResourceMultiplierIndex3=0
FactionTeamForIndex3=3
FactionStartLocationForIndex3=3
FactionTypeNameForIndex3=norsemen
FactionPlayerNameForIndex3=AI1
FactionControlForIndex1=0
ResourceMultiplierIndex1=10
FactionTeamForIndex1=1
FactionStartLocationForIndex1=1
FactionTypeNameForIndex1=indian
FactionPlayerNameForIndex1=Closed
FactionControlForIndex2=0
ResourceMultiplierIndex2=10
FactionTeamForIndex2=2
FactionStartLocationForIndex2=2
FactionTypeNameForIndex2=magic
FactionPlayerNameForIndex2=Closed
FactionControlForIndex4=0
ResourceMultiplierIndex4=10
FactionTeamForIndex4=4
FactionStartLocationForIndex4=4
FactionTypeNameForIndex4=persian
FactionPlayerNameForIndex4=Closed
FactionControlForIndex5=0
ResourceMultiplierIndex5=10
FactionTeamForIndex5=5
FactionStartLocationForIndex5=5
FactionTypeNameForIndex5=romans
FactionPlayerNameForIndex5=Closed
FactionControlForIndex6=0
ResourceMultiplierIndex6=10
FactionTeamForIndex6=6
FactionStartLocationForIndex6=6
FactionTypeNameForIndex6=tech
FactionPlayerNameForIndex6=Closed
FactionControlForIndex7=0
ResourceMultiplierIndex7=10
FactionTeamForIndex7=7
FactionStartLocationForIndex7=7
FactionTypeNameForIndex7=*Random*
FactionPlayerNameForIndex7=Closed

megaglest-saved.xml
I can easily reproduce this, also with --verbose output if it's of any help?
« Last Edit: 14 March 2012, 02:14:11 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 · · ·

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
This is already fixed now, it was related to libxerces 3.1.
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 · · ·

 

anything