2025-07-20 17:59 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002157Spring engineLinuxpublic2012-06-03 20:42
ReporterMitmat 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusresolvedResolutionfixed 
Product Version0.82.5 
Target VersionFixed in Version 
Summary0002157: Bug with game restart functionality
DescriptionSteps to reproduce: Linux (Kubuntu 10.04), Spring 0.82.5.1, KP 4.1. Load a mission and restart it several times until the bug appears.

After several restarts (5 on average), display is bugged (see picture and log files in attachment) and/or loading is very slow. I suggest this is due to the "LuaUnsyncedCtrl::Restart(lua_State*)" function that uses the "execlp" function. I'm not sure but I suspect that the new game find old data of the previous game's instance...

I propose you a solution that is functional in my case: just use a "fork()" and call the "execlp" function only in the child's process and let the parent's process ended cleanly. Then the game restarts with a new PID and a clean execution context.

You will find in attachment my modified "rts/Lua/LuaUnsyncedCtrl.cpp" file.

Note: In the parent's process the "LuaUnsyncedCtrl::Restart(lua_State*)" function now returns.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.bak.txt (13,939 bytes) 2010-12-27 01:35 -
    LogOutput initialized.
    Spring 0.82.5.1
    Build date/time: Sep 29 2010 09:49:50
    Available log subsystems: CollisionVolume, unit, VFS-detail, VFS, ArchiveScanner, Sound
    Enabled log subsystems: Sound
    Enable or disable log subsystems using the LogSubsystems configuration key
      or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
    using default configuration source "/home/muratet/.springrc"
    [CMyMath::Init] CPU SSE mask: 120, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  0
    	SSE 4.1:  0,  SSE 4.2:  0
    	SSE 4.0A: 0,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    OS: Linux
    OS: 32bit native mode
    Using read-write data directory: /home/muratet/spring/
    Using read-only data directory: /home/muratet/docs/Applications/Spring/ProgAndPlay/Spring_dev/spring_0.82.5.1/
    Using read-only data directory: /home/muratet/.spring/
    Using read-only data directory: /usr/share/games/spring/
    Scanning: /usr/share/games/spring/base
    Scanning: /home/muratet/.spring/base
    Scanning: /home/muratet/docs/Applications/Spring/ProgAndPlay/Spring_dev/spring_0.82.5.1/base
    Scanning: /home/muratet/spring/maps
    Scanning: /home/muratet/spring/base
    Scanning: /home/muratet/spring/mods
    Supported Video modes: 1680x1050, 1600x1024, 1440x900, 1400x1050, 1360x768, 1280x1024, 1280x960, 1152x864, 1024x768, 960x600, 960x540, 896x672, 840x525, 832x624, 800x600, 800x512, 720x450, 680x384, 640x512, 640x480, 576x432, 512x384, 416x312, 400x300, 320x240
    Video mode set to 1024x768/32bit (windowed)
    [      0] SDL:  1.2.14
    [      0] GL:   2.1.2 NVIDIA 256.53
    [      0] GL:   NVIDIA Corporation
    [      0] GL:   GeForce 7800 GTX/PCI/SSE2/3DNOW!
    [      0] GLSL: 1.20 NVIDIA via Cg compiler
    [      0] GLEW: 1.5.2
    [      0] Joysticks found: 0
    [      0] Joystick 0 not found
    [      0] Loading startscript from: /home/muratet/spring/script.txt
    [      0] Connecting to local server
    [      0] Starting GameServer: 11 ms
    [      0] Starting demo recording
    [      0] Using map Spooler Buffer 0.5 (beta)
    [      0] Recording demo demos/20101001_133627_Spooler Buffer 0_0.82.5.sdf
    [      0] Using mod Kernel Panic 4.1
    [      0] Sound: OpenAL info:
    [      0] Sound:   Vendor:     OpenAL Community
    [      0] Sound:   Version:    1.1 ALSOFT 1.12.854
    [      0] Sound:   Renderer:   OpenAL Soft
    [      0] Sound:   AL Extensions: AL_EXTX_buffer_sub_data AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_model AL_LOKI_quadriphonic
    [      0] Sound:   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context
    [      0] Sound:                   ALC_EXT_EFX found (required for air absorption): yes
    [      0] Sound:   Device:     PulseAudio Software
    [      0] Sound:   Available Devices:  
    [      0] Sound:                       PulseAudio Software
    [      0] Sound:                       ALSA Software
    [      0] Sound:                       OSS Software
    [      0] Sound: air absorption enabled: 0.1
    [      0] Using mod archive Kernel_Panic_4.1.sd7
    [      0] Loading client data: 35 ms
    [      0] User number 0 (team 0, allyteam 0)
    [      0] Sound:  parsed 4 sounds from gamedata/sounds.lua
    [      0] Loading sounds: 8 ms
    [      0] Camera and mouse: 87 ms
    [      0] Parsing unit icons
    [      0] Loading GameData Definitions
    [      0] Loading all definitions:  0.098000
    [      0] Loading GameData Definitions: 104 ms
    [      0] Parsing Map Information
    [      0] Loading SMF
    [      0] Loading Map
    [      0] Calculating smooth height mesh
    [      0] Calculating smooth mesh: 7 ms
    [      0] Number of damage types: 13
    [      0] Creating unit textures
    [      0] Loading weapon definitions
    [      0] Could not load sound from def: Explosion5
    [      0] Could not load sound from def: Explosion5
    [      0] Could not load sound from def: Explosion5
    [      0] Loading unit definitions
    [      0] Prog&Play initialized
    [      0] Loading feature definitions
    [      0] Initializing map features
    [      0] Unknown map feature type 
    [      0] Reading estimate path costs
    [      0] [CPathManager] pathing data checksum: b08f3807
    [      0] You are missing the "ARB_shadow_ambient" extension (this will probably make shadows darker than they should be)
    [      0] FBO-SHADOW: has no images/buffers attached!
    [      0] Loading .smt tile-file "maps/Spooler Buffer 0.5 (beta).smt"
    [      0] Loading 29 tiles from file 1/1
    [      0] Reading tiles
    [      0] Reading tile map
    [      0] generating MipMaps: 1 ms
    [      0] Generating 3D trees
    [      0] Creating Projectile Textures
    [      0] FBO-PERLIN error: GL_FRAMEBUFFER_UNSUPPORTED_EXT
    [      0] Creating sky
    [      0] Loading console: 30 ms
    [      0] Sound: Unable to open audio file: FailedCommand
    [      0] Sound: CSound::GetSoundId: could not find sound: FailedCommand
    [      0] Loading LuaRules
    [      0] Loaded gadget:  Color Wars!         <colorwars.lua>
    [      0] Loaded gadget:  Force LUA UI        <luaui_force.lua>
    [      0] Loaded gadget:  Hand autobuild      <hand_autobuild.lua>
    [      0] Loaded gadget:  Kernel Panic S.O.S.  <sos.lua>
    [      0] Loaded gadget:  Pre-placed Minifacs  <preplaced.lua>
    [      0] Loaded gadget:  Spawn               <game_spawn.lua>
    [      0] Loaded gadget:  Spawn Units         <spawn_units.lua>
    [      0] Loaded gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [      0] Loaded gadget:  kpunittypes.lua     <kpunittypes.lua>
    [      0] Loaded gadget:  new_cmd_id.lua      <new_cmd_id.lua>
    [      0] Loaded gadget:  Touhou Build        <touhou_build.lua>
    [      0] Loaded gadget:  Metal To Geo converter  <metaltogeo.lua>
    [      0] Loaded gadget:  set Alpha Threshold  <set_alpha_threshold.lua>
    [      0] Loaded gadget:  Pseudo Orders       <pseudo_orders.lua>
    [      0] Loaded gadget:  Burrow              <burrow.lua>
    [      0] Loaded gadget:  UnitAutoHold        <autohold.lua>
    [      0] Loaded gadget:  Airstrike           <airstrike.lua>
    [      0] Loaded gadget:  Area Denial         <areadenial.lua>
    [      0] Loaded gadget:  Bombard             <bug_bombard.lua>
    [      0] Loaded gadget:  Infection           <infection.lua>
    [      0] Loaded gadget:  Kernel boost        <kernelboost.lua>
    [      0] Loaded gadget:  LuaCOB              <luacob.lua>
    [      0] Loaded gadget:  Network Arc Effect  <network_arceffect.lua>
    [      0] Loaded gadget:  Network Buffer      <network_buffer.lua>
    [      0] Loaded gadget:  Network Build       <network_build.lua>
    [      0] Loaded gadget:  Special Attack      <specialattack.lua>
    [      0] Loaded gadget:  Launcher            <launcher.lua>
    [      0] Loaded gadget:  Network Dispatch    <network_dispatch.lua>
    [      0] Loaded gadget:  Network Enter       <network_enter.lua>
    [      0] Loaded gadget:  Flow Speed          <network_flowspeed.lua>
    [      0] Loaded gadget:  Network Reflectorshield  <network_reflectorshield.lua>
    [      0] Loaded gadget:  Kernel Panic O.N.S.  <ons.lua>
    [      0] Loaded gadget:  Kernel Panic AI     <kpai.lua>
    [      0] Loaded gadget:  Fair KPAI           <kpai_fair.lua>
    [      0] Loaded gadget:  Regenerative AI     <regenai.lua>
    [      0] Loaded gadget:  Evilless            <evilless.lua>
    [      0] Loaded gadget:  Shoot'n'Run         <shoot_n_run.lua>
    [      0] Loaded gadget:  Lua hotfixes        <hotfixes.lua>
    [      0] Loaded gadget:  Color Wars!         <colorwars.lua>
    [      0] Loaded gadget:  Force LUA UI        <luaui_force.lua>
    [      0] Loaded gadget:  Hand autobuild      <hand_autobuild.lua>
    [      0] Loaded gadget:  Kernel Panic S.O.S.  <sos.lua>
    [      0] Loaded gadget:  Pre-placed Minifacs  <preplaced.lua>
    [      0] Loaded gadget:  Spawn Units         <spawn_units.lua>
    [      0] Loaded gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [      0] Loaded gadget:  kpunittypes.lua     <kpunittypes.lua>
    [      0] Loaded gadget:  new_cmd_id.lua      <new_cmd_id.lua>
    [      0] Loaded gadget:  Touhou Build        <touhou_build.lua>
    [      0] Loaded gadget:  set Alpha Threshold  <set_alpha_threshold.lua>
    [      0] Loaded gadget:  Pseudo Orders       <pseudo_orders.lua>
    [      0] Loaded gadget:  Burrow              <burrow.lua>
    [      0] Loaded gadget:  UnitAutoHold        <autohold.lua>
    [      0] Loaded gadget:  Airstrike           <airstrike.lua>
    [      0] Loaded gadget:  Area Denial         <areadenial.lua>
    [      0] Loaded gadget:  Bombard             <bug_bombard.lua>
    [      0] Loaded gadget:  Infection           <infection.lua>
    [      0] Loaded gadget:  LuaCOB              <luacob.lua>
    [      0] Loaded gadget:  Network Arc Effect  <network_arceffect.lua>
    [      0] Loaded gadget:  Network Buffer      <network_buffer.lua>
    [      0] Loaded gadget:  Network Build       <network_build.lua>
    [      0] Loaded gadget:  Special Attack      <specialattack.lua>
    [      0] Loaded gadget:  Launcher            <launcher.lua>
    [      0] Loaded gadget:  Network Dispatch    <network_dispatch.lua>
    [      0] Loaded gadget:  Network Enter       <network_enter.lua>
    [      0] Loaded gadget:  Network Reflectorshield  <network_reflectorshield.lua>
    [      0] Loaded gadget:  Kernel Panic O.N.S.  <ons.lua>
    [      0] Loaded gadget:  Kernel Panic AI     <kpai.lua>
    [      0] Loaded gadget:  Fair KPAI           <kpai_fair.lua>
    [      0] Loaded gadget:  Regenerative AI     <regenai.lua>
    [      0] Loaded gadget:  Evilless            <evilless.lua>
    [      0] Loaded gadget:  Shoot'n'Run         <shoot_n_run.lua>
    [      0] Loaded gadget:  Lua hotfixes        <hotfixes.lua>
    [      0] Loading LuaGaia
    [      0] Loading LuaUI
    [      0] Using LUAUI_DIRNAME = LuaUI/
    [      0] Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
    [      0] LuaUI: bound F11 to the widget selector
    [      0] LuaUI: bound CTRL+F11 to tweak mode
    [      0] Hardware is incompatible with Xray shader requirements
    [      0] Loaded widget from mod:   Hide commands       <hide_commands.lua>
    [      0] Loaded widget from mod:   Keep Morpheds Selected  <kp_keep_morphed_selected.lua>
    [      0] Loaded widget from mod:   Kernel Panic Build Bar  <kp_buildbar.lua>
    [      0] Loaded widget from mod:   Kernel Panic Console Commands  <kp_cnslcmd.lua>
    [      0] Loaded widget from mod:   Kernel Panic MidKnight's tooltip background  <kp_midknight_bg.lua>
    [      0] Loaded widget from mod:   Kernel Panic autospam  <kp_autospam.lua>
    [      0] Loaded widget from mod:   Write GameState     <gamestate_write.lua>
    [      0] Loaded widget from mod:   Kernel Panic Mission Briefing  <kp_mission_briefing.lua>
    [      0] Loaded widget from mod:   Kernel Panic Hotkeys  <kp_hotkeys.lua>
    [      0] Loaded widget from mod:   Kernel Panic Default Commands  <kp_defaultcommands.lua>
    [      0] movewarnings disabled
    [      0] buildwarnings disabled
    [      0] Loaded widget from mod:   noResBar NoMoveWarnings  <noresbar.lua>
    [      0] Loaded widget from mod:   Kernel Panic Geos Highlight  <kp_geoshighlight.lua>
    [      0] Loaded widget from mod:   Kernel Panic Automatic Tip Dispenser  <kp_automatic_tip_dispenser.lua>
    [      0] Reloaded ctrlpanel with: LuaUI/Widgets/KP_CtrlPanel.txt
    [      0] Loaded widget from mod:   Kernel Panic Tooltip  <kp_tooltip.lua>
    [      0] Loaded widget from mod:   Kernel Panic O.N.S. help tips  <kp_onshelp.lua>
    [      0] Loaded widget from mod:   Spring Direct Launch 2  <kp_spring_direct_launch.lua>
    [      0] Loaded widget from mod:   Heroes Right Click  <kp_heroes_right_click.lua>
    [      0] LuaUI v0.3
    [      0] Finalizing...
    [      0] Connection attempt from Yourself
    [      0]  -> Version: 0.82.5.1
    [      0]  -> Connection established (given id 0)
    [      0] Player Yourself finished loading and is now ingame
    [      0] Spring Direct Launch 2: Wanting to reload "Missions/KP/script exemple 1 - spooler buffer.txt"
    [      0] 
    
    <<BEGIN DUMPING TRIMMED>>
    
    [      0] 
    
    
    
    
    
    [GAME]
    {
    	GameType=Kernel Panic 4.1;
    	Mapname=Spooler Buffer 0.5 (beta);
    
    	[MODOPTIONS]
    	{
    	FullScript=script.sav;
    
    		MissionScript=Missions/KP/script exemple 1 - spooler buffer.txt;
    
    		MissionTitle="Not a playable mission!";
    		MissionBriefing="This is more a demonstration and reference\nscript than something you can play.\nBut at least the pointers trail & NX should look pretty.\nAnyway, go play \"Herd and Pick\", it's the same except playable.";
    
    		
    		nowalls=1;
    		nospecials=2;
    		ons=2;
    		sos=0;
    		colorwars=0;
    		
    		GameMode=4;
    		  
    		  
    		  
    		  
    		ghostedbuildings=1;
    		fixedallies=0;
    		MaxUnits=512;
    		MinSpeed=0.1;
    		MaxSpeed=10;
    
    		
    		StartMetal=1024;
    		StartEnergy=1024;
    		LauncherName=Hand Written;
    		LauncherVersion=1.2;
    	}
    
    	HostIP=localhost;
    	HostPort=0;
    	IsHost=1;
    
    	StartPosType=0;
    	MyPlayerNum=0;
    	MyPlayerName=Yourself;
    	NumPlayers=1;
    	NumUsers=4;
    	NumTeams=4;
    	NumAllyTeams=2;
    
    	
    	[PLAYER0]
    	{
    		name=Yourself;
    		Team=0;
    		Spectator=0;
    	}
    
    	
    	[AI0]
    	{
    		Name=Bot0;
    		ShortName=Kernel Panic AI;
    		
    		Team=1;
    		Host=0;
    	}
    	[AI1]
    	{
    		Name=Bot1;
    		ShortName=Kernel Panic AI;
    		
    		Team=2;
    		Host=0;
    	}
    	[AI2]
    	{
    		Name=Bot2;
    		ShortName=Kernel Panic AI;
    		
    		Team=3;
    		Host=0;
    	}
    
    
    	
    	[TEAM0]
    	{
    		TeamLeader=0;
    		AllyTeam=0;
    		Handicap=0;
    		Side=system;
    		RGBColor=0 1 1;
    	}
    	[TEAM1]
    	{
    		TeamLeader=0;
    		AllyTeam=0;
    		Handicap=0;
    		Side=network;
    		RGBColor=1 1 0;
    		AIDLL=Kernel Panic AI;
    		aioverride=Regenerative AI;
    	}
    	[TEAM2]
    	{
    		TeamLeader=0;
    		AllyTeam=1;
    		Handicap=0;
    		Side=system;
    		RGBColor=1 0 1;
    		AIDLL=Kernel Panic AI;
    		aioverride=Regenerative AI;
    	}
    	[TEAM3]
    	{
    		TeamLeader=0;
    		AllyTeam=1;
    		Handicap=0;
    		Side=system;
    		RGBColor=1 0.25 0;
    		AIDLL=Kernel Panic AI;
    		aioverride=Regenerative AI;
    	}
    
    	
    	[ALLYTEAM0]
    	{
    		NumAllies=0;
    	}
    	[ALLYTEAM1]
    	{
    		NumAllies=0;
    	}
    
    	
    	NumRestrictions=0;
    	[RESTRICT]
    	{
    	}
    }
    [      0] 
    
    <<END DUMPING TRIMMED>>
    
    [      0] Making infolog.txt copy into infolog.bak.txt
    
    txt file icon infolog.bak.txt (13,939 bytes) 2010-12-27 01:35 +
  • txt file icon infolog.txt (12,118 bytes) 2010-12-27 01:36 -
    LogOutput initialized.
    Spring 0.82.5.1
    Build date/time: Sep 29 2010 09:49:50
    Available log subsystems: CollisionVolume, unit, VFS-detail, VFS, ArchiveScanner, Sound
    Enabled log subsystems: Sound
    Enable or disable log subsystems using the LogSubsystems configuration key
      or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
    using default configuration source "/home/muratet/.springrc"
    [CMyMath::Init] CPU SSE mask: 120, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  0
    	SSE 4.1:  0,  SSE 4.2:  0
    	SSE 4.0A: 0,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    OS: Linux
    OS: 32bit native mode
    Using read-write data directory: /home/muratet/spring/
    Using read-only data directory: /home/muratet/docs/Applications/Spring/ProgAndPlay/Spring_dev/spring_0.82.5.1/
    Using read-only data directory: /home/muratet/.spring/
    Using read-only data directory: /usr/share/games/spring/
    Scanning: /usr/share/games/spring/base
    Scanning: /home/muratet/.spring/base
    Scanning: /home/muratet/docs/Applications/Spring/ProgAndPlay/Spring_dev/spring_0.82.5.1/base
    Scanning: /home/muratet/spring/maps
    Scanning: /home/muratet/spring/base
    Scanning: /home/muratet/spring/mods
    Supported Video modes: 1680x1050, 1600x1024, 1440x900, 1400x1050, 1360x768, 1280x1024, 1280x960, 1152x864, 1024x768, 960x600, 960x540, 896x672, 840x525, 832x624, 800x600, 800x512, 720x450, 680x384, 640x512, 640x480, 576x432, 512x384, 416x312, 400x300, 320x240
    Video mode set to 1024x768/32bit (windowed)
    [      0] SDL:  1.2.14
    [      0] GL:   2.1.2 NVIDIA 256.53
    [      0] GL:   NVIDIA Corporation
    [      0] GL:   GeForce 7800 GTX/PCI/SSE2/3DNOW!
    [      0] GLSL: 1.20 NVIDIA via Cg compiler
    [      0] GLEW: 1.5.2
    [      0] Joysticks found: 0
    [      0] Joystick 0 not found
    [      0] Loading startscript from: /home/muratet/spring/script.txt
    [      0] Connecting to local server
    [      0] Starting GameServer: 10 ms
    [      0] Sound: OpenAL info:
    [      0] Sound:   Vendor:     OpenAL Community
    [      0] Sound:   Version:    1.1 ALSOFT 1.12.854
    [      0] Sound:   Renderer:   OpenAL Soft
    [      0] Sound:   AL Extensions: AL_EXTX_buffer_sub_data AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_model AL_LOKI_quadriphonic
    [      0] Sound:   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context
    [      0] Sound:                   ALC_EXT_EFX found (required for air absorption): yes
    [      0] Sound:   Device:     PulseAudio Software
    [      0] Sound:   Available Devices:  
    [      0] Sound:                       PulseAudio Software
    [      0] Sound:                       ALSA Software
    [      0] Sound:                       OSS Software
    [      0] Sound: air absorption enabled: 0.1
    [      0] Starting demo recording
    [      0] Using map Spooler Buffer 0.5 (beta)
    [      0] Recording demo demos/20101001_133633_Spooler Buffer 0_0.82.5.sdf
    [      0] Using mod Kernel Panic 4.1
    [      0] Using mod archive Kernel_Panic_4.1.sd7
    [      0] Loading client data: 32 ms
    [      0] User number 0 (team 0, allyteam 0)
    [      0] Sound:  parsed 4 sounds from gamedata/sounds.lua
    [      0] Loading sounds: 6 ms
    [      0] Camera and mouse: 93 ms
    [      0] Parsing unit icons
    [      0] Loading GameData Definitions
    [      0] Loading all definitions:  0.091000
    [      0] Loading GameData Definitions: 1485 ms
    [      0] Parsing Map Information
    [      0] Loading SMF
    [      0] Loading Map
    [      0] Calculating smooth height mesh
    [      0] Calculating smooth mesh: 5 ms
    [      0] Number of damage types: 13
    [      0] Creating unit textures
    [      0] Loading weapon definitions
    [      0] Could not load sound from def: Explosion5
    [      0] Could not load sound from def: Explosion5
    [      0] Could not load sound from def: Explosion5
    [      0] Loading unit definitions
    [      0] Prog&Play initialized
    [      0] Loading feature definitions
    [      0] Initializing map features
    [      0] Unknown map feature type 
    [      0] Reading estimate path costs
    [      0] [CPathManager] pathing data checksum: b08f3807
    [      0] You are missing the "ARB_shadow_ambient" extension (this will probably make shadows darker than they should be)
    [      0] FBO-SHADOW: has no images/buffers attached!
    [      0] Loading .smt tile-file "maps/Spooler Buffer 0.5 (beta).smt"
    [      0] Loading 29 tiles from file 1/1
    [      0] Reading tiles
    [      0] Reading tile map
    [      0] generating MipMaps: 0 ms
    [      0] Generating 3D trees
    [      0] Creating Projectile Textures
    [      0] Creating sky
    [      0] Loading console: 135 ms
    [      0] Sound: Unable to open audio file: FailedCommand
    [      0] Sound: CSound::GetSoundId: could not find sound: FailedCommand
    [      0] Loading LuaRules
    [      0] Loaded gadget:  Color Wars!         <colorwars.lua>
    [      0] Loaded gadget:  Force LUA UI        <luaui_force.lua>
    [      0] Loaded gadget:  Hand autobuild      <hand_autobuild.lua>
    [      0] Loaded gadget:  Kernel Panic S.O.S.  <sos.lua>
    [      0] Loaded gadget:  Pre-placed Minifacs  <preplaced.lua>
    [      0] Loaded gadget:  Spawn               <game_spawn.lua>
    [      0] Loaded gadget:  Spawn Units         <spawn_units.lua>
    [      0] Loaded gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [      0] Loaded gadget:  kpunittypes.lua     <kpunittypes.lua>
    [      0] Loaded gadget:  new_cmd_id.lua      <new_cmd_id.lua>
    [      0] Loaded gadget:  Touhou Build        <touhou_build.lua>
    [      0] Loaded gadget:  Metal To Geo converter  <metaltogeo.lua>
    [      0] Loaded gadget:  set Alpha Threshold  <set_alpha_threshold.lua>
    [      0] Loaded gadget:  Pseudo Orders       <pseudo_orders.lua>
    [      0] Loaded gadget:  Burrow              <burrow.lua>
    [      0] Loaded gadget:  UnitAutoHold        <autohold.lua>
    [      0] Loaded gadget:  Airstrike           <airstrike.lua>
    [      0] Loaded gadget:  Area Denial         <areadenial.lua>
    [      0] Loaded gadget:  Bombard             <bug_bombard.lua>
    [      0] Loaded gadget:  Infection           <infection.lua>
    [      0] Loaded gadget:  Kernel boost        <kernelboost.lua>
    [      0] Loaded gadget:  LuaCOB              <luacob.lua>
    [      0] Loaded gadget:  Network Arc Effect  <network_arceffect.lua>
    [      0] Loaded gadget:  Network Buffer      <network_buffer.lua>
    [      0] Loaded gadget:  Network Build       <network_build.lua>
    [      0] Loaded gadget:  Special Attack      <specialattack.lua>
    [      0] Loaded gadget:  Launcher            <launcher.lua>
    [      0] Loaded gadget:  Network Dispatch    <network_dispatch.lua>
    [      0] Loaded gadget:  Network Enter       <network_enter.lua>
    [      0] Loaded gadget:  Flow Speed          <network_flowspeed.lua>
    [      0] Loaded gadget:  Network Reflectorshield  <network_reflectorshield.lua>
    [      0] Loaded gadget:  Kernel Panic O.N.S.  <ons.lua>
    [      0] Loaded gadget:  Kernel Panic AI     <kpai.lua>
    [      0] Loaded gadget:  Fair KPAI           <kpai_fair.lua>
    [      0] Loaded gadget:  Regenerative AI     <regenai.lua>
    [      0] Loaded gadget:  Evilless            <evilless.lua>
    [      0] Loaded gadget:  Shoot'n'Run         <shoot_n_run.lua>
    [      0] Loaded gadget:  Lua hotfixes        <hotfixes.lua>
    [      0] Loaded gadget:  Color Wars!         <colorwars.lua>
    [      0] Loaded gadget:  Force LUA UI        <luaui_force.lua>
    [      0] Loaded gadget:  Hand autobuild      <hand_autobuild.lua>
    [      0] Loaded gadget:  Kernel Panic S.O.S.  <sos.lua>
    [      0] Loaded gadget:  Pre-placed Minifacs  <preplaced.lua>
    [      0] Loaded gadget:  Spawn Units         <spawn_units.lua>
    [      0] Loaded gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [      0] Loaded gadget:  kpunittypes.lua     <kpunittypes.lua>
    [      0] Loaded gadget:  new_cmd_id.lua      <new_cmd_id.lua>
    [      0] Loaded gadget:  Touhou Build        <touhou_build.lua>
    [      0] Loaded gadget:  set Alpha Threshold  <set_alpha_threshold.lua>
    [      0] Loaded gadget:  Pseudo Orders       <pseudo_orders.lua>
    [      0] Loaded gadget:  Burrow              <burrow.lua>
    [      0] Loaded gadget:  UnitAutoHold        <autohold.lua>
    [      0] Loaded gadget:  Airstrike           <airstrike.lua>
    [      0] Loaded gadget:  Area Denial         <areadenial.lua>
    [      0] Loaded gadget:  Bombard             <bug_bombard.lua>
    [      0] Loaded gadget:  Infection           <infection.lua>
    [      0] Loaded gadget:  LuaCOB              <luacob.lua>
    [      0] Loaded gadget:  Network Arc Effect  <network_arceffect.lua>
    [      0] Loaded gadget:  Network Buffer      <network_buffer.lua>
    [      0] Loaded gadget:  Network Build       <network_build.lua>
    [      0] Loaded gadget:  Special Attack      <specialattack.lua>
    [      0] Loaded gadget:  Launcher            <launcher.lua>
    [      0] Loaded gadget:  Network Dispatch    <network_dispatch.lua>
    [      0] Loaded gadget:  Network Enter       <network_enter.lua>
    [      0] Loaded gadget:  Network Reflectorshield  <network_reflectorshield.lua>
    [      0] Loaded gadget:  Kernel Panic O.N.S.  <ons.lua>
    [      0] Loaded gadget:  Kernel Panic AI     <kpai.lua>
    [      0] Loaded gadget:  Fair KPAI           <kpai_fair.lua>
    [      0] Loaded gadget:  Regenerative AI     <regenai.lua>
    [      0] Loaded gadget:  Evilless            <evilless.lua>
    [      0] Loaded gadget:  Shoot'n'Run         <shoot_n_run.lua>
    [      0] Loaded gadget:  Lua hotfixes        <hotfixes.lua>
    [      0] Loading LuaGaia
    [      0] Loading LuaUI
    [      0] Using LUAUI_DIRNAME = LuaUI/
    [      0] Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
    [      0] LuaUI: bound F11 to the widget selector
    [      0] LuaUI: bound CTRL+F11 to tweak mode
    [      0] Hardware is incompatible with Xray shader requirements
    [      0] Loaded widget from mod:   Hide commands       <hide_commands.lua>
    [      0] Loaded widget from mod:   Keep Morpheds Selected  <kp_keep_morphed_selected.lua>
    [      0] Loaded widget from mod:   Kernel Panic Build Bar  <kp_buildbar.lua>
    [      0] Loaded widget from mod:   Kernel Panic Console Commands  <kp_cnslcmd.lua>
    [      0] Loaded widget from mod:   Kernel Panic MidKnight's tooltip background  <kp_midknight_bg.lua>
    [      0] Loaded widget from mod:   Kernel Panic autospam  <kp_autospam.lua>
    [      0] Loaded widget from mod:   Write GameState     <gamestate_write.lua>
    [      0] Loaded widget from mod:   Kernel Panic Mission Briefing  <kp_mission_briefing.lua>
    [      0] Loaded widget from mod:   Kernel Panic Hotkeys  <kp_hotkeys.lua>
    [      0] Loaded widget from mod:   Kernel Panic Default Commands  <kp_defaultcommands.lua>
    [      0] movewarnings disabled
    [      0] buildwarnings disabled
    [      0] Loaded widget from mod:   noResBar NoMoveWarnings  <noresbar.lua>
    [      0] Loaded widget from mod:   Kernel Panic Geos Highlight  <kp_geoshighlight.lua>
    [      0] Loaded widget from mod:   Kernel Panic Automatic Tip Dispenser  <kp_automatic_tip_dispenser.lua>
    [      0] Reloaded ctrlpanel with: LuaUI/Widgets/KP_CtrlPanel.txt
    [      0] Loaded widget from mod:   Kernel Panic Tooltip  <kp_tooltip.lua>
    [      0] Loaded widget from mod:   Kernel Panic O.N.S. help tips  <kp_onshelp.lua>
    [      0] Loaded widget from mod:   Spring Direct Launch 2  <kp_spring_direct_launch.lua>
    [      0] Loaded widget from mod:   Heroes Right Click  <kp_heroes_right_click.lua>
    [      0] LuaUI v0.3
    [      0] Finalizing...
    [      0] Connection attempt from Yourself
    [      0]  -> Version: 0.82.5.1
    [      0]  -> Connection established (given id 0)
    [      0] Player Yourself finished loading and is now ingame
    [      0] GameID: f1c7a54c03a72906c6eabf751cdf4421
    [      0] Yourself added point: Start 0
    [     59] Skirmish AI "Bot0" took over control of team 1
    [     59] Skirmish AI "Bot1" took over control of team 2
    [     59] Skirmish AI "Bot2" took over control of team 3
    [    349] Prog&Play shut down and cleaned up
    [    349] Path cache hits 2 50%
    [    349] Path cache hits 4 50%
    [    349] Statistics for local connection:
    Received: 7390 bytes
    Sent: 8902 bytes
    
    txt file icon infolog.txt (12,118 bytes) 2010-12-27 01:36 +
  • cpp file icon LuaUnsyncedCtrl.cpp (58,812 bytes) 2010-12-27 01:36
  • png file icon snapshot1.png (279,485 bytes) 2010-12-27 01:36

-Relationships
related to 0002246resolvedabma Make newbies life easier (some ideas for first start) 
related to 0002253resolvedabma crash in current master, when running spring + then select "Start SpringSettings" or "Start the Lobby" 
+Relationships

-Notes

~0005684

hoijui (reporter)

i would say, a better solution would be:
instead of calling execvp() right away, we should store the arguments for the restart, set globalQuit = true (as you do), wait till spring is ready stop its process, and at that moment, check if there is a restart request pending, and execute if so. with this, we would probably not have to rely on fork(), which means the solution is platform independent.

in the future, the restart could probably be executed by the launcher executable, by using a temp file to store the restart arguments, if that has any advantages.

comments?

~0005695

Mitmat (reporter)

I tested to call execvp() between Shutdown() and return 0 of the SpringApp::Run function but the bug is always the same.

The second solution should be settle the matter...

~0006159

hoijui (reporter)

Hmm...
SDL (which also manages OpenGL stuff, if i remember correctly) shuts down after that. it redefines the main function, to be always the first and last thing in control. which means.. yeah.. i guess we can not use the first solution. :/

~0008701

abma (administrator)

Last edited: 2012-05-23 10:51

is this still a problem in spring 88? i cannot reproduce it...

~0008733

abma (administrator)

seems to be fixed, reopen report if not...
+Notes

-Issue History
Date Modified Username Field Change
2010-10-01 15:33 Mitmat New Issue
2010-10-01 15:33 Mitmat File Added: attachment.tar.gz
2010-10-02 12:54 hoijui Note Added: 0005684
2010-10-05 15:45 Mitmat Note Added: 0005695
2010-12-06 21:01 abma Relationship added related to 0002246
2010-12-07 10:13 abma Relationship added related to 0002253
2010-12-27 01:35 abma File Added: infolog.bak.txt
2010-12-27 01:36 abma File Added: infolog.txt
2010-12-27 01:36 abma File Added: LuaUnsyncedCtrl.cpp
2010-12-27 01:36 abma File Added: snapshot1.png
2010-12-27 01:36 abma File Deleted: attachment.tar.gz
2010-12-27 23:38 hoijui Note Added: 0006159
2012-05-23 10:51 abma Note Added: 0008701
2012-05-23 10:51 abma Status new => feedback
2012-05-23 10:51 abma Note Edited: 0008701
2012-06-03 20:42 abma Note Added: 0008733
2012-06-03 20:42 abma Status feedback => resolved
2012-06-03 20:42 abma Resolution open => fixed
2012-06-03 20:42 abma Assigned To => abma
+Issue History