2025-06-30 03:00 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004262Spring engineLuapublic2014-01-14 02:29
Reporterzwzsg 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version96.0 
Target VersionFixed in Version 
Summary0004262: Spring.Restart with startscript content as second argument
Descriptionkp_spring_direct_launch.lua line 465 is:

Spring.Restart("",trimmed)

where trimmed is a fairly large string containing the content of the startscript that I wish to restart Spring with.

It used to work in Spring 95. In Spring 96, the infolog reads:

[f=0000000] Spring Direct Launch 2: Ok, calling Spring.Restart("","[GAME]{..}") now!
[f=0000000] [Sound] [~CSound][1] soundThread=027629E8
[f=0000000] [Sound] [~CSound][2]
[f=0000000] [Sound] [~CSound][3]
[f=0000000] Error: [Spring.Restart] error Invalid argument
[f=0000000] Spring Direct Launch 2: Just called Spring.Restart("","[GAME]{..}")
[f=0000000] Spring Direct Launch 2: Wait, we shouldn't be here, should have restarted or crashed or quitted by now.

And then, Spring.exe crashes for reasons that may or may not be related (to me it looks likes something about CSound having being half reintialised by Spring.Restart and then causing a crash next frame, but ianad. Anyway, it'll become irrelevant once Spring.Restart works again.)

https://github.com/spring/spring/blob/master/rts/Game/Game.cpp#L1115
spring.exe 0x0042ABAB rts/Game/Game.cpp:1115
spring.exe 0x0042AEFA rts/Game/Game.cpp:1173
spring.exe 0x008900A3 rts/System/SpringApp.cpp:968
spring.exe 0x008968A4 rts/System/SpringApp.cpp:1034
spring.exe 0x00872956 rts/System/Main.cpp:65
spring.exe 0x0087376C rts/System/Main.cpp:125
spring.exe 0x0087398D rts/System/Main.cpp:134
spring.exe 0x00401402 crtexe.c:0
kernel32.dll 0x7C817077 ??:0

So, what exactly is invalid in my Spring.Restart arguments?
Steps To Reproduce- Get a WinXP machine
- Download Spring 96 portable for windows, unzip
- Download Kernel Panic 4.6, unzip in same folder
- Run Spring.exe directly, run Kernel Panic game to get Kernel Panic menu
- Once in KP ingame menu, click mission, Challenge 1 - Bug Squashing
- Wait a few seconds for crash to occur
- Read infolog.txt
Additional InformationSpring.Restart fails the same with http://springrts.com/dl/buildbot/default/develop/96.0.1-141-g059f13c/win32/
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.txt (23,907 bytes) 2014-01-11 02:04 -
    [ParseCmdLine] command-line args: "C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe"
    Using configuration source: "C:\A\Jeux\RTS\Spring\Run\spring-96.0\springsettings.cfg"
    Using additional configuration source: "C:\Documents and Settings\A\Local Settings\Application Data\springsettings.cfg"
    Available log sections: KeyBindings, AutohostInterface, Net, CSMFGroundTextures, RoamMeshDrawer, BumpWater, DynWater, SkyBox, DecalsDrawerGL4, FarTextureHandler, Model, Piece, ModelDrawer, OBJParser, WorldObjectModelRenderer, Shader, Texture, Font, GroundMoveType, Path, UnitScript, CregSerializer, ArchiveScanner, VFS, Sound, LuaSocket
    Enabled log sections: Sound(LOG_LEVEL_INFO)
    Enable or disable log sections using the LogSections configuration key
      or the SPRING_LOG_SECTIONS environment variable (both comma separated).
      Use "none" to disable the default log sections.
    LogOutput initialized.
    Spring 96.0
    Build date/time: Jan  3 2014 14:01:37
    Build environment: boost-105300, GNU libstdc++ version 20130531
    Compiler: gcc-4.8.1
    OS: Microsoft Windows
    Microsoft Windows XP Professional Service Pack 3 (build 2600)
    AMD Athlon(tm) 64 X2 Dual Core Processor 4200+; 2047MB RAM, 3939MB pagefile
    OS: 32bit native mode
    [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
    Supported Video modes: 1280x1024, 1280x960, 1280x768, 1280x720, 1152x864, 1024x768, 800x600, 640x480
    [SetSDLVideoMode] video mode set to 1280x1024/32bit
    [WatchDog::Install] disabled
    [ThreadPool::SetThreadCount][1] #wanted=2 #current=1
    [ThreadPool::SetThreadCount][2] #threads=1
    [DataDirs] Portable Mode!
    Using read-write data directory: C:\A\Jeux\RTS\Spring\Run\spring-96.0\
    Using read-only data directory: C:\Documents and Settings\A\Mes documents\My Games\Spring\
    Scanning: C:\Documents and Settings\A\Mes documents\My Games\Spring\maps
    Scanning: C:\Documents and Settings\A\Mes documents\My Games\Spring\packages
    Scanning: C:\A\Jeux\RTS\Spring\Run\spring-96.0\maps
    Scanning: C:\A\Jeux\RTS\Spring\Run\spring-96.0\base
    Scanning: C:\A\Jeux\RTS\Spring\Run\spring-96.0\games
    [ThreadPool::SetThreadCount][1] #wanted=1 #current=2
    [ThreadPool::SetThreadCount][2] #threads=0
    [Threading] Main thread CPU affinity mask set: 3
    [f=0000000] SDL version:  1.2.10
    [f=0000000] GL version:   3.2.9655 Compatibility Profile Context
    [f=0000000] GL vendor:    ATI Technologies Inc.
    [f=0000000] GL renderer:  ASUS EAH5770 Series
    [f=0000000] GLSL version: 1.50
    [f=0000000] GLEW version: 1.5.8
    [f=0000000] Video RAM:    total 255MB, available 413MB
    [f=0000000] GL info:
    	haveARB: 1, haveGLSL: 1, ATI hacks: 1
    	FBO support: 1, NPOT-texture support: 1, 24bit Z-buffer support: 0
    	maximum texture size: 16384, compress MIP-map textures: 0
    	maximum SmoothPointSize: 63, maximum vec4 varying/attributes: 16/16
    	maximum drawbuffers: 8, maximum recommended indices/vertices: 16777215/2147483647
    	number of UniformBufferBindings: 75 (64kB)
    [f=0000000] VSync disabled
    [f=0000000] Joysticks found: 0
    [f=0000000] Warning: Joystick 0 not found
    [f=0000000] [Initialize] CPU Clock: win32::TimeGetTime
    [f=0000000] [Initialize] CPU Cores: 2
    [f=0000000] [Sound] OpenAL info:
    [f=0000000] [Sound]   Available Devices:
    [f=0000000] [Sound]               DirectSound Software
    [f=0000000] [Sound]   Device:     DirectSound Software
    [f=0000000] [Sound]   Vendor:         OpenAL Community
    [f=0000000] [Sound]   Version:        1.1 ALSOFT 1.11.753
    [f=0000000] [Sound]   Renderer:       OpenAL Soft
    [f=0000000] [Sound]   AL Extensions:  AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_model AL_LOKI_quadriphonic
    [f=0000000] [Sound]   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_disconnect ALC_EXT_EFX ALC_EXTX_thread_local_context
    [f=0000000] [Sound]   EFX Enabled: yes
    [f=0000000] [Sound]   Max Sounds: 96
    [f=0000000] Connecting to local server
    [f=0000000] PreGame::StartServer: 17 ms
    [f=0000000] Using map: Data Cache L1
    [f=0000000] Using game: Kernel Panic 4.6
    [f=0000000] Using game archive: Kernel_Panic_4.6.sd7
    [f=0000000] recording demo: demos/20140111_020529_Data Cache L1_96.sdf
    [f=0000000] PreGame::GameDataReceived: 26 ms
    [f=0000000] [PreGame::UpdateClientNet] user number 0 (team 0, allyteam 0)
    [f=0000000] [LuaIntro] Searching for new Widgets
    [f=0000000] [LuaIntro] Scanning: LuaIntro/Addons/
    [f=0000000] [LuaIntro] Scanning: LuaIntro/Widgets/
    [f=0000000] [LuaIntro] Scanning: LuaIntro/SystemAddons/
    [f=0000000] [LuaIntro] Scanning: LuaIntro/SystemWidgets/
    [f=0000000] [LuaIntro] Scanning: LuaIntro/chili/
    [f=0000000] [LuaIntro] Found new widget "SpringLogo"
    [f=0000000] [LuaIntro] Found new widget "LoadTexture"
    [f=0000000] [LuaIntro] Found new widget "Circuit Growth"
    [f=0000000] [LuaIntro] Found new widget "LoadProgress"
    [f=0000000] [LuaIntro] Found new widget "Main"
    [f=0000000] [LuaIntro] Found new widget "Music"
    [f=0000000] [LuaIntro] Loading widgets   <>=vfs  **=raw  ()=unknown
    [f=0000000] [LuaIntro] Loading widget:      Circuit Growth         <circuitgrowth.lua>
    [f=0000000] [LuaIntro] Loading widget:      LoadProgress           <loadprogress.lua>
    [f=0000000] [LuaIntro] LuaIntro v1.0 (Lua 5.1)
    [f=0000000] Parsing Map Information
    [f=0000000] Loading SMF
    [f=0000000] Loading Map (19 MB)
    [f=0000000] Loading Radar Icons
    [f=0000000] Loading GameData Definitions
    [f=0000000] Loading all definitions:  0.074000
    [f=0000000] Game::LoadDefs (GameData): 210 ms
    [f=0000000] Loading Sound Definitions
    [f=0000000] [Sound]  parsed 6 sounds from gamedata/sounds.lua
    [f=0000000] Game::LoadDefs (Sound): 85 ms
    [f=0000000] Creating Smooth Height Mesh
    [f=0000000] SmoothHeightMesh::MakeSmoothMesh: 32 ms
    [f=0000000] Creating QuadField & CEGs
    [f=0000000] [CDamageArrayHandler] number of ArmorDefs: 13
    [f=0000000] [RegisterAssimpModelFormats] supported Assimp model formats: *.3ds;*.blend;*.dae;*.lwo;
    [f=0000000] Creating Unit Textures
    [f=0000000] Creating Sky
    [f=0000000] Loading Weapon Definitions
    [f=0000000] Warning: WeaponDef (homebaseshieldbad) The "isShield" tag has been removed. Use the weaponType="Shield" tag instead!
    [f=0000000] Warning: WeaponDef (homebaseshieldgood) The "isShield" tag has been removed. Use the weaponType="Shield" tag instead!
    [f=0000000] Warning: WeaponDef (minifacshieldbad) The "isShield" tag has been removed. Use the weaponType="Shield" tag instead!
    [f=0000000] Warning: WeaponDef (minifacshieldgood) The "isShield" tag has been removed. Use the weaponType="Shield" tag instead!
    [f=0000000] Loading Unit Definitions
    [f=0000000] Loading Feature Definitions
    [f=0000000] Reading Estimate PathCosts [8]
    [f=0000000] Reading Estimate PathCosts [32]
    [f=0000000] [CPathManager] pathing data checksum: 723f6baf
    [f=0000000] [IPathManager::GetInstance] using DEFAULT path-manager
    [f=0000000] Initializing Map Features
    [f=0000000] Error: [LoadFeaturesFromMap] unknown map feature type ""
    [f=0000000] Creating ShadowHandler & DecalHandler
    [f=0000000] FBO::maxSamples: 8
    [f=0000000] Creating GroundDrawer
    [f=0000000] Loading Map Tiles
    [f=0000000] Loading Square Textures
    [f=0000000] CSMFGroundTextures::ConvolveHeightMap: 3 ms
    [f=0000000] Switching to ROAM Mesh Rendering
    [f=0000000] Creating TreeDrawer
    [f=0000000] Creating ProjectileDrawer & UnitDrawer
    [f=0000000] Creating Projectile Textures
    [f=0000000] Creating Water
    [f=0000000] Game::LoadInterface (Camera&Mouse): 316 ms
    [f=0000000] Game::LoadInterface (Console): 0 ms
    [f=0000000] Loading LuaRules
    [f=0000000] Loaded SYNCED gadget:  Color Wars!         <colorwars.lua>
    [f=0000000] Loaded SYNCED gadget:  Force LUA UI        <luaui_force.lua>
    [f=0000000] Loaded SYNCED gadget:  Game Over           <game_over.lua>
    [f=0000000] Loaded SYNCED gadget:  Hand autobuild      <hand_autobuild.lua>
    [f=0000000] Loaded SYNCED gadget:  Has Taken The Lead  <taken_the_lead.lua>
    [f=0000000] Loaded SYNCED gadget:  Kernel Panic K.O.T.H.  <koth.lua>
    [f=0000000] Loaded SYNCED gadget:  Kernel Panic S.O.S.  <sos.lua>
    [f=0000000] Loaded SYNCED gadget:  Pre-placed Minifacs  <preplaced.lua>
    [f=0000000] Loaded SYNCED gadget:  Spawn               <game_spawn.lua>
    [f=0000000] Loaded SYNCED gadget:  Spawn Units         <spawn_units.lua>
    [f=0000000] Loaded SYNCED gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [f=0000000] Loaded SYNCED gadget:  kpunittypes.lua     <kpunittypes.lua>
    [f=0000000] Loaded SYNCED gadget:  new_cmd_id.lua      <new_cmd_id.lua>
    [f=0000000] Loaded SYNCED gadget:  Touhou Build        <touhou_build.lua>
    [f=0000000] Loaded SYNCED gadget:  Metal To Geo converter  <metaltogeo.lua>
    [f=0000000] Loaded SYNCED gadget:  set Alpha Threshold  <set_alpha_threshold.lua>
    [f=0000000] Loaded SYNCED gadget:  Pseudo Orders       <pseudo_orders.lua>
    [f=0000000] Loaded SYNCED gadget:  Burrow              <burrow.lua>
    [f=0000000] Loaded SYNCED gadget:  UnitAutoHold        <autohold.lua>
    [f=0000000] Loaded SYNCED gadget:  Airstrike           <airstrike.lua>
    [f=0000000] Loaded SYNCED gadget:  Area Denial         <areadenial.lua>
    [f=0000000] Loaded SYNCED gadget:  Bombard             <bug_bombard.lua>
    [f=0000000] Loaded SYNCED gadget:  Infection           <infection.lua>
    [f=0000000] Loaded SYNCED gadget:  Kernel boost        <kernelboost.lua>
    [f=0000000] Loaded SYNCED gadget:  LuaCOB              <luacob.lua>
    [f=0000000] Loaded SYNCED gadget:  Network Arc Effect  <network_arceffect.lua>
    [f=0000000] Loaded SYNCED gadget:  Network Buffer      <network_buffer.lua>
    [f=0000000] Loaded SYNCED gadget:  Network Build       <network_build.lua>
    [f=0000000] Loaded SYNCED gadget:  Special Attack      <specialattack.lua>
    [f=0000000] Loaded SYNCED gadget:  Launcher            <launcher.lua>
    [f=0000000] Loaded SYNCED gadget:  Network Dispatch    <network_dispatch.lua>
    [f=0000000] Loaded SYNCED gadget:  Network Enter       <network_enter.lua>
    [f=0000000] Loaded SYNCED gadget:  Flow Speed          <network_flowspeed.lua>
    [f=0000000] Loaded SYNCED gadget:  Network Reflectorshield  <network_reflectorshield.lua>
    [f=0000000] Loaded SYNCED gadget:  Armor Bonus         <armor_bonus.lua>
    [f=0000000] Loaded SYNCED gadget:  Kernel Panic O.N.S.  <ons.lua>
    [f=0000000] Loaded SYNCED gadget:  Invasion AI         <kpai_invasion.lua>
    [f=0000000] Loaded SYNCED gadget:  Kernel Panic AI     <kpai.lua>
    [f=0000000] Loaded SYNCED gadget:  Fair KPAI           <kpai_fair.lua>
    [f=0000000] Loaded SYNCED gadget:  Regenerative AI     <regenai.lua>
    [f=0000000] Loaded SYNCED gadget:  Evilless            <evilless.lua>
    [f=0000000] Loaded SYNCED gadget:  Shoot'n'Run         <shoot_n_run.lua>
    [f=0000000] Loaded SYNCED gadget:  Lua hotfixes        <hotfixes.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Color Wars!         <colorwars.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Force LUA UI        <luaui_force.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Game Over           <game_over.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Hand autobuild      <hand_autobuild.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Has Taken The Lead  <taken_the_lead.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Kernel Panic K.O.T.H.  <koth.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Kernel Panic S.O.S.  <sos.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Pre-placed Minifacs  <preplaced.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Spawn Units         <spawn_units.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Start Point Remover Gadget  <init_start_point_remover_gadget.lua>
    [f=0000000] Loaded UNSYNCED gadget:  kpunittypes.lua     <kpunittypes.lua>
    [f=0000000] Loaded UNSYNCED gadget:  new_cmd_id.lua      <new_cmd_id.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Touhou Build        <touhou_build.lua>
    [f=0000000] Loaded UNSYNCED gadget:  set Alpha Threshold  <set_alpha_threshold.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Pseudo Orders       <pseudo_orders.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Burrow              <burrow.lua>
    [f=0000000] Loaded UNSYNCED gadget:  UnitAutoHold        <autohold.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Airstrike           <airstrike.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Area Denial         <areadenial.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Bombard             <bug_bombard.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Infection           <infection.lua>
    [f=0000000] Loaded UNSYNCED gadget:  LuaCOB              <luacob.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Network Arc Effect  <network_arceffect.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Network Buffer      <network_buffer.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Network Build       <network_build.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Special Attack      <specialattack.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Launcher            <launcher.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Network Dispatch    <network_dispatch.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Network Enter       <network_enter.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Network Reflectorshield  <network_reflectorshield.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Armor Bonus         <armor_bonus.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Kernel Panic O.N.S.  <ons.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Invasion AI         <kpai_invasion.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Kernel Panic AI     <kpai.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Fair KPAI           <kpai_fair.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Regenerative AI     <regenai.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Evilless            <evilless.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Shoot'n'Run         <shoot_n_run.lua>
    [f=0000000] Loaded UNSYNCED gadget:  Lua hotfixes        <hotfixes.lua>
    [f=0000000] Loading LuaGaia
    [f=0000000] Loading LuaUI
    [f=0000000] LuaSocketEnabled: yes
    [f=0000000] Using LUAUI_DIRNAME = LuaUI/
    [f=0000000] Reloaded ctrlpanel from file: LuaUI/ctrlpanel.txt
    [f=0000000] LuaUI: bound F11 to the widget selector
    [f=0000000] LuaUI: bound CTRL+F11 to tweak mode
    [f=0000000] Reloaded ctrlpanel from file: LuaUI/Widgets/KP_CtrlPanel.txt
    [f=0000000] Sound is disabled!
    [f=0000000] LuaUI v0.3
    [f=0000000] Initializing PathCache
    [f=0000000] Finalizing
    [f=0000000] Loaded DecalsDrawer: Legacy
    [f=0000000] Removing, Hide commands
    [f=0000000] Removing, Keep Morpheds Selected
    [f=0000000] Removing, Kernel Panic Build Bar
    [f=0000000] Removing, Kernel Panic Console Commands
    [f=0000000] Removing, Kernel Panic MidKnight's tooltip background
    [f=0000000] Removing, Kernel Panic autospam
    [f=0000000] Removing, Write GameState
    [f=0000000] Removing, Kernel Panic Default Commands
    [f=0000000] Removing, Kernel Panic Geos Highlight
    [f=0000000] Removing, TeamDiedMessages
    [f=0000000] Removing, Kernel Panic Automatic Tip Dispenser
    [f=0000000] Removing, Kernel Panic Tooltip
    [f=0000000] The line below may complain about 'w' being nil, that is normal, and a result of my closing all widgets.
    [f=0000000] Error: LuaUI::RunCallIn: error = 2, DrawScreenEffects, [string "LuaUI/widgets.lua"]:1294: attempt to index local 'w' (a nil value)
    [f=0000000] Connection attempt from Player
    [f=0000000]  -> Version: 96.0
    [f=0000000]  -> Connection established (given id 0)
    [f=0000000] Player Player finished loading and is now ingame
    [f=0000000] GameID: e598d052686c979c98abf5da97174d8b
    [f=0000000] Error: Unknown skirmish AI specified:  
    [f=0000000] 
    [f=0000000] 
    [f=0000000] 
    [f=0000011] Skirmish AI "AI: Commanders" (ID:0), which controlled team 1 is now dead
    [f=0000025] Spring Direct Launch 2: Wanting to reload "Missions/KP/challenge 1 - bug squashing.txt"
    [f=0000025] 
    
    <<BEGIN DUMPING TRIMMED>>
    
    
    [f=0000025] 
    
    
    
    
    
    
    [GAME]
    
    {
    
    	GameType=Kernel Panic 4.6;
    
    	Mapname=Marble_Madness_Map;
    
    
    
    	[MODOPTIONS]
    
    	{
    	FullScript=script.sav;
    
    		MissionScript=Missions/KP/challenge 1 - bug squashing.txt;
    
    
    		MissionTitle="Mouse-over for details...";
    
    		MissionBriefing="Your only chance to win this mission is\nto learn how to keep your bits in formation:\n \n- Press left mouse button,\nkeep it down while moving mouse,\nto draw a selection rectangle.\n \n- Press right mouse button,\nkeep it down while moving mouse,\nto draw a formation line:\nthe selected units will move to that formation shape.\n \nOh and keep damaged bits at the back.\nIdle bits will slowly heal.";
    
    
    
    		
    		nowalls=0;
    		nospecials=0;
    		ons=0;
    		sos=0;
    		colorwars=0;
    		
    		GameMode=0;
    
    		  
    		  
    		  
    		  
    		ghostedbuildings=1;
    
    		fixedallies=0;
    
    		MaxUnits=512;
    
    		MinSpeed=0.1;
    
    		MaxSpeed=10;
    
    
    
    		
    		StartMetal=1024;
    
    		StartEnergy=1024;
    
    		LauncherName=Hand Written;
    
    		LauncherVersion=1.2;
    
    	}
    
    
    
    	OnlyLocal=1;
    
    	
    	HostPort=0;
    
    	IsHost=1;
    
    
    
    	StartPosType=3;
    	MyPlayerNum=0;
    
    	MyPlayerName=Player;
    
    	NumPlayers=1;
    
    	NumUsers=2;
    
    	NumTeams=2;
    
    	NumAllyTeams=2;
    
    
    
    	
    	[PLAYER0]
    
    	{
    
    		name=Player;
    
    		Team=0;
    
    		Spectator=0;
    
    	}
    
    
    
    	
    	[AI1]
    
    	{
    
    		Name=Stray Bugs;
    
    		ShortName=Kernel Panic AI;
    		
    		Team=1;
    
    		Host=0;
    	}
    
    
    
    	
    	[TEAM0]
    
    	{
    
    		TeamLeader=0;
    
    		AllyTeam=0;
    
    		Handicap=0;
    
    		Side=system;
    
    		RGBColor=0.5 0.5 1;
    
    		StartPosX=1024;
    
    		StartPosZ=1024;
    
    	}
    
    	[TEAM1]
    
    	{
    
    		TeamLeader=0;
    
    		AllyTeam=1;
    
    		Handicap=0;
    
    		Side=hacker;
    
    		RGBColor=1 0.2 0.2;
    
    		AIDLL=Kernel Panic AI;
    
    		aioverride=Nothing;
    
    		StartPosX=1024;
    
    		StartPosZ=256;
    
    	}
    
    
    
    	
    	[ALLYTEAM0]
    
    	{
    
    		NumAllies=0;
    
    	}
    
    	[ALLYTEAM1]
    
    	{
    
    		NumAllies=0;
    
    	}
    
    
    
    	
    	NumRestrictions=0;
    
    	[RESTRICT]
    
    	{
    
    	}
    
    }
    
    
    [f=0000025] 
    
    <<END DUMPING TRIMMED>>
    
    
    [f=0000025] Making infolog.txt copy into infolog.bak.txt
    [f=0000025] Spring Direct Launch 2: Ok, calling Spring.Restart("","[GAME]{..}") now!
    [f=0000025] [Sound] [~CSound][1] soundThread=02749F88
    [f=0000025] [Sound] [~CSound][2]
    [f=0000025] [Sound] [~CSound][3]
    [f=0000025] Error: [Spring.Restart] error Invalid argument
    [f=0000025] Spring Direct Launch 2: Just called Spring.Restart("","[GAME]{..}")
    [f=0000025] Spring Direct Launch 2: Wait, we shouldn't be here, should have restarted or crashed or quitted by now.
    [f=0000026] Error: Spring 96.0 has crashed.
    [f=0000026] Error: DLL information:
    [f=0000026] Error: 0x00400000	spring
    [f=0000026] Error: 0x7c910000	ntdll
    [f=0000026] Error: 0x7c800000	kernel32
    [f=0000026] Error: 0x77da0000	ADVAPI32
    [f=0000026] Error: 0x77e50000	RPCRT4
    [f=0000026] Error: 0x77fc0000	Secur32
    [f=0000026] Error: 0x6cef0000	GLU32
    [f=0000026] Error: 0x77be0000	msvcrt
    [f=0000026] Error: 0x5f070000	OPENGL32
    [f=0000026] Error: 0x77ef0000	GDI32
    [f=0000026] Error: 0x7e390000	USER32
    [f=0000026] Error: 0x736b0000	DDRAW
    [f=0000026] Error: 0x73b10000	DCIMAN32
    [f=0000026] Error: 0x76c40000	IMAGEHLP
    [f=0000026] Error: 0x7c9d0000	SHELL32
    [f=0000026] Error: 0x77f40000	SHLWAPI
    [f=0000026] Error: 0x76ae0000	WINMM
    [f=0000026] Error: 0x719f0000	WS2_32
    [f=0000026] Error: 0x719e0000	WS2HELP
    [f=0000026] Error: 0x10000000	DevIL
    [f=0000026] Error: 0x7c420000	MSVCP80
    [f=0000026] Error: 0x78130000	MSVCR80
    [f=0000026] Error: 0x6b600000	OpenAL32
    [f=0000026] Error: 0x70780000	vorbisfile
    [f=0000026] Error: 0x68140000	ogg
    [f=0000026] Error: 0x64cc0000	vorbis
    [f=0000026] Error: 0x62e80000	zlib1
    [f=0000026] Error: 0x66fc0000	freetype6
    [f=0000026] Error: 0x62aa0000	glew32
    [f=0000026] Error: 0x012c0000	SDL
    [f=0000026] Error: 0x7c340000	MSVCR71
    [f=0000026] Error: 0x76320000	IMM32
    [f=0000026] Error: 0x62dc0000	LPK
    [f=0000026] Error: 0x753c0000	USP10
    [f=0000026] Error: 0x77390000	comctl32
    [f=0000026] Error: 0x58b50000	comctl32
    [f=0000026] Error: 0x73e60000	dsound
    [f=0000026] Error: 0x774a0000	ole32
    [f=0000026] Error: 0x77bd0000	VERSION
    [f=0000026] Error: 0x76be0000	WINTRUST
    [f=0000026] Error: 0x779e0000	CRYPT32
    [f=0000026] Error: 0x77a80000	MSASN1
    [f=0000026] Error: 0x72c70000	wdmaud
    [f=0000026] Error: 0x72c60000	msacm32
    [f=0000026] Error: 0x77bb0000	MSACM32
    [f=0000026] Error: 0x77ba0000	midimap
    [f=0000026] Error: 0x74690000	MSCTF
    [f=0000026] Error: 0x75140000	msctfime
    [f=0000026] Error: 0x06330000	SSSensor
    [f=0000026] Error: 0x69030000	atioglxx
    [f=0000026] Error: 0x02980000	atiadlxx
    [f=0000026] Error: 0x778e0000	SETUPAPI
    [f=0000026] Error: 0x721f0000	DINPUT
    [f=0000026] Error: 0x68d50000	HID
    [f=0000026] Error: 0x73e30000	KsUser
    [f=0000026] Error: 0x770e0000	OLEAUT32
    [f=0000026] Error: 0x5d3f0000	DBGHELP
    [f=0000026] Error: Exception: Access violation (0xc0000005)
    [f=0000026] Error: Exception Address: 0x00426336
    [f=0000026] Error: Stacktrace for Spring 96.0:
    [f=0000026] Error: (0) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x00426336]
    [f=0000026] Error: (1) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x0050EA36]
    [f=0000026] Error: (2) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x0042F3F9]
    [f=0000026] Error: (3) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x00887CA4]
    [f=0000026] Error: (4) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x008968A4]
    [f=0000026] Error: (5) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x00872956]
    [f=0000026] Error: (6) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x0087376C]
    [f=0000026] Error: (7) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x0087398D]
    [f=0000026] Error: (8) C:\A\Jeux\RTS\Spring\Run\spring-96.0\spring.exe [0x00401402]
    [f=0000026] Error: (9) C:\WINDOWS\system32\kernel32.dll(RegisterWaitForInputIdle+0x49) [0x7C817077]
    [f=0000026] Error: [ErrorMessageBox][1] msg="Spring has crashed:
      Access violation.
    
    A stacktrace has been written to:
      C:\A\Jeux\RTS\Spring\Run\spring-96.0\infolog.txt" IsMainThread()=1 fromMain=0
    [f=0000026] Error: [ErrorMessageBox][2]
    [f=0000026] [SpringApp::ShutDown][1]
    [f=0000026] [ThreadPool::SetThreadCount][1] #wanted=0 #current=1
    [f=0000026] [ThreadPool::SetThreadCount][2] #threads=0
    [f=0000026] [SpringApp::ShutDown][2]
    [f=0000026] [~CGame][1]
    [f=0000026] [~CGame][2]
    [f=0000026] [~CGame][3]
    [f=0000026] [~CGame][4]
    [f=0000026] [~CGame][5]
    [f=0000026] [~CGame][6]
    [f=0000026] [~CGame][7]
    [f=0000026] [~CGame][8]
    [f=0000026] [CCollisionHandler] dis-/continuous tests: 0/0
    [f=0000026] [~CGame][9]
    [f=0000026] [~CGame][10]
    [f=0000026] [~CPathCache(16x12)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
    [f=0000026] [~CPathCache(16x12)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
    [f=0000026] [~CPathCache(64x48)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
    [f=0000026] [~CPathCache(64x48)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
    [f=0000026] Statistics for RectangleOptimizer: 0%
    [f=0000026] Statistics for RectangleOptimizer: 0%
    [f=0000026] [~CGame][11]
    [f=0000026] [~CGame][12]
    [f=0000026] [~CGame][13]
    [f=0000026] [~CGame][14]
    [f=0000026] [~CGame][15]
    [f=0000026] [~CGameServer][1]
    [f=0000026] [~CGameServer][2]
    [f=0000026] [~CGame][16]
    [f=0000026] [~CGame][17]
    [f=0000026] [SpringApp::ShutDown][3]
    [f=0000026] [SpringApp::ShutDown][4]
    [f=0000026] Statistics for local connection:
    Received: 543 bytes
    Sent: 302 bytes
    
    [f=0000026] Writing demo: demos/20140111_020529_Data Cache L1_96.sdf
    [f=0000026] [SpringApp::ShutDown][5]
    [f=0000026] [SpringApp::ShutDown][6]
    [f=0000026] [SpringApp::ShutDown][7]
    [f=0000026] [SpringApp::ShutDown][8]
    [f=0000026] [SpringApp::ShutDown][9]
    [SpringApp::ShutDown][10]
    [SpringApp::ShutDown][11]
    [WatchDog::Uninstall][1] hangDetectorThread=00000000
    [SpringApp::ShutDown][12]
    Error: [ErrorMessageBox][3]
    Error: [ErrorMessageBox][4]
    Fatal: Spring: Unhandled exception
    Spring has crashed:
      Access violation.
    
    A stacktrace has been written to:
      C:\A\Jeux\RTS\Spring\Run\spring-96.0\infolog.txt
    
    txt file icon infolog.txt (23,907 bytes) 2014-01-11 02:04 +

-Relationships
has duplicate 0004329resolvedabma Spring.Restart crashes spring.exe, no new instance is started 
+Relationships

-Notes

~0012670

zwzsg (reporter)

I modified my widget to:
- Write the string trimmed into the file Kernel_Panic_script.txt
- Use Spring.Restart("Kernel_Panic_script.txt","")
And it failed the same:
- Error: [Spring.Restart] error Invalid argument

~0012674

zwzsg (reporter)

knorke's Spring Tank uses:
    local file=VFS.LoadFile(startscriptfilename)
    Spring.Restart("-s", file)
And fails the same:
[f=0000644] Error: [Spring.Restart] error Invalid argument
[f=0000645] Error: Spring 96.0 has crashed.

~0012675

cleanrock (reporter)

I believe jk have tried to fix this:
https://github.com/spring/spring/commit/059f13c
Have you tried latest develop ?

~0012676

zwzsg (reporter)

See "Additional Information"

~0012679

cleanrock (reporter)

looks like kloot also tried to fix this now, dunno why they dont want to ref this bug report
https://github.com/spring/spring/commit/f501cb4

~0012680

Kloot (developer)

when testing f501cb4, *also* check your space-in-path case (4161) because the behavior between Windows and Linux seems to be different

~0012684

zwzsg (reporter)

I tested http://springrts.com/dl/buildbot/default/develop/96.0.1-144-ge0802a4/win32/
Spring.Restart works correctly with this build.

Then I added some space in my folder name. This time Spring crashed during restart.

~0012686

abma (administrator)

Last edited: 2014-01-13 09:15

View 3 revisions

did someone take into account that length of command line args on windows are limited?

http://stackoverflow.com/questions/3205027/maximum-length-of-command-line-string

is the parameter written to a script.txt or is it called directly?

~0012691

zwzsg (reporter)

Yeah, I hit this limit years ago, it was 32k. But this is not the problem now.

- With the build f501cb4, and no space in path, I can pass a 1558 char long string as parameter and Spring restarts fine.

- With 96 and no space in path, it crashes even if I write the script to a txt (so with a short command line).

- With space in path and f501cb4, it crashes.
+Notes

-Issue History
Date Modified Username Field Change
2014-01-11 02:04 zwzsg New Issue
2014-01-11 02:04 zwzsg File Added: infolog.txt
2014-01-11 02:22 zwzsg Note Added: 0012670
2014-01-11 17:27 zwzsg Note Added: 0012674
2014-01-11 17:30 cleanrock Note Added: 0012675
2014-01-11 17:30 cleanrock Assigned To => jK
2014-01-11 17:30 cleanrock Status new => feedback
2014-01-11 18:36 zwzsg Note Added: 0012676
2014-01-11 18:36 zwzsg Status feedback => assigned
2014-01-11 19:41 cleanrock Note Added: 0012679
2014-01-11 19:41 cleanrock Assigned To jK =>
2014-01-11 19:41 cleanrock Status assigned => new
2014-01-11 20:57 Kloot Note Added: 0012680
2014-01-12 16:47 zwzsg Note Added: 0012684
2014-01-13 09:13 abma Note Added: 0012686
2014-01-13 09:15 abma Note Edited: 0012686 View Revisions
2014-01-13 09:15 abma Note Edited: 0012686 View Revisions
2014-01-14 00:32 zwzsg Note Added: 0012691
2014-01-14 02:29 jK Changeset attached => spring develop 65a9d0b7
2014-01-14 02:29 jK Assigned To => jK
2014-01-14 02:29 jK Status new => resolved
2014-01-14 02:29 jK Resolution open => fixed
2014-10-07 19:14 abma Relationship added has duplicate 0004329
+Issue History