2025-07-21 08:08 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004478Spring engineGeneralpublic2014-08-05 14:14
ReporterKingRaptor 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version97.0.1+git 
Target Version98.0Fixed in Version 
Summary0004478: Loading save game: "User name not authorized to connect"
DescriptionWhen a Spring game is started in any way other than directly launching the executable (e.g. with a lobby client), and that game is saved (/save[game]), attempting to open the save file with Spring quits with the error: "Remote requested quit: Connection rejected: User name not authorized to connect"

Tested with Spring 97.0.1-183-g3335a9e develop. Example save file (from a BA v8.00 game launched with SpringLobby 0.196) and infolog attached.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • txt file icon infolog.txt (10,132 bytes) 2014-07-27 12:08 -
    [ParseCmdLine] command-line args: "C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\TestSave_Comet_Catcher_Redux_BA_v8.00.ssf"
    Using configuration source: "C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\springsettings.cfg"
    Using additional configuration source: "C:\Users\Rattlesnark\AppData\Local\springsettings.cfg"
    Using additional configuration source: "C:\Users\Rattlesnark\Documents\My Games\Spring\springsettings.cfg"
    Available log sections: KeyBindings, AutohostInterface, GameServer, 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(N)
    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 97.0.1-183-g3335a9e develop
    Build Date & Time: Jul 17 2014 12:13:33
    Build Environment: boost-105500, GNU libstdc++ version 20130531
    Compiler Version:  gcc-4.8.1
    Operating System:  Microsoft Windows
    Microsoft Windows 7 Home Premium Edition, 32-bit Service Pack 1 (build 7601)
    Intel(R) Core(TM) i5 CPU         760  @ 2.80GHz; 3543MB RAM, 11733MB pagefile
    Word Size:         32-bit (native mode)
             CPU Clock: win32::TimeGetTime
    Physical CPU Cores: 4
     Logical CPU Cores: 4
    [CMyMath::Init] CPU SSE mask: 127, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  1
    	SSE 4.1:  1,  SSE 4.2:  1
    	SSE 4.0A: 0,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    Supported Video modes: 640x480, 640x480, 640x480, 640x480, 640x480, 640x480, 720x480, 720x480, 720x480, 720x480, 720x480, 720x480, 720x576, 720x576, 720x576, 720x576, 800x600, 800x600, 800x600, 800x600, 800x600, 800x600, 1024x768, 1024x768, 1024x768, 1024x768, 1152x648, 1152x648, 1152x864, 1152x864, 1152x864, 1152x864, 1152x864, 1152x864, 1280x720, 1280x720, 1280x720, 1280x720, 1280x720, 1280x720, 1280x768, 1280x768, 1280x768, 1280x768, 1280x800, 1280x800, 1280x800, 1280x800, 1280x960, 1280x960, 1280x960, 1280x960, 1280x1024, 1280x1024, 1280x1024, 1280x1024, 1360x768, 1360x768, 1360x768, 1360x768, 1360x1024, 1360x1024, 1360x1024, 1360x1024, 1366x768, 1366x768, 1366x768, 1366x768, 1400x1050, 1400x1050, 1400x1050, 1400x1050, 1440x900, 1440x900, 1440x900, 1440x900, 1600x900, 1600x900, 1600x900, 1600x900, 1680x1050, 1680x1050, 1680x1050, 1680x1050, 1776x1000, 1776x1000, 1920x1080, 1920x1080, 1920x1080, 1920x1080, 1920x1080, 1920x1080
    SDL version:  linked 2.0.2; compiled 2.0.2
    GL version:   4.4.12874 Compatibility Profile Context 14.100.0.0
    GL vendor:    ATI Technologies Inc.
    GL renderer:  AMD Radeon HD 5700 Series
    GLSL version: 4.30
    GLEW version: 1.5.8
    Video RAM:    unknown
    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: 32/29
    	maximum drawbuffers: 8, maximum recommended indices/vertices: 16777215/2147483647
    	number of UniformBufferBindings: 75 (64kB)
    VSync disabled
    [InitOpenGL] video mode set to 1440x900:24bit @60Hz (windowed)
    [WatchDogInstall] Installed (HangTimeout: 10sec)
    [ThreadPool::SetThreadCount][1] #wanted=4 #current=1 #max=4
    [ThreadPool::SetThreadCount][2] #threads=3
    [DataDirs] Portable Mode!
    Using read-write data directory: C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\
    Using read-only data directory: C:\Users\Rattlesnark\Documents\My Games\Spring\
    Using read-only data directory: C:\ProgramData\Spring\
    Scanning: C:\Users\Rattlesnark\Documents\My Games\Spring\maps
    Scanning: C:\Users\Rattlesnark\Documents\My Games\Spring\base
    Scanning: C:\Users\Rattlesnark\Documents\My Games\Spring\games
    Warning: [Watchdog] Hang detection triggered for Spring 97.0.1-183-g3335a9e develop.
    Warning:   (in thread: main)
    Warning: DLL information:
    Error: 0x00400000	spring
    Error: 0x771c0000	ntdll
    Error: 0x749e0000	kernel32
    Error: 0x74880000	KERNELBASE
    Error: 0x74d10000	ADVAPI32
    Error: 0x76480000	msvcrt
    Error: 0x75a70000	sechost
    Error: 0x74ac0000	RPCRT4
    Error: 0x59fa0000	GLU32
    Error: 0x59fd0000	OPENGL32
    Error: 0x74990000	GDI32
    Error: 0x760f0000	USER32
    Error: 0x76750000	LPK
    Error: 0x761c0000	USP10
    Error: 0x59370000	DDRAW
    Error: 0x59360000	DCIMAN32
    Error: 0x74b70000	SETUPAPI
    Error: 0x748d0000	CFGMGR32
    Error: 0x762c0000	OLEAUT32
    Error: 0x75d70000	ole32
    Error: 0x74860000	DEVOBJ
    Error: 0x72ec0000	dwmapi
    Error: 0x75ff0000	IMAGEHLP
    Error: 0x74db0000	SHELL32
    Error: 0x76350000	SHLWAPI
    Error: 0x709f0000	WINMM
    Error: 0x763b0000	WS2_32
    Error: 0x766f0000	NSI
    Error: 0x10000000	DevIL
    Error: 0x70480000	MSVCP80
    Error: 0x703e0000	MSVCR80
    Error: 0x6b600000	OpenAL32
    Error: 0x70780000	vorbisfile
    Error: 0x68140000	ogg
    Error: 0x64cc0000	vorbis
    Error: 0x62e80000	zlib1
    Error: 0x70e40000	libfreetype-6
    Error: 0x64f80000	libfontconfig-1
    Error: 0x68f40000	libexpat-1
    Error: 0x6cec0000	libgcc_s_sjlj-1
    Error: 0x62aa0000	glew32
    Error: 0x6c740000	SDL2
    Error: 0x75a50000	IMM32
    Error: 0x76020000	MSCTF
    Error: 0x741f0000	VERSION
    Error: 0x66e20000	dsound
    Error: 0x741b0000	POWRPROF
    Error: 0x745e0000	CRYPTBASE
    Error: 0x763f0000	CLBCatQ
    Error: 0x731f0000	MMDevApi
    Error: 0x733f0000	PROPSYS
    Error: 0x62190000	wdmaud
    Error: 0x63180000	ksuser
    Error: 0x73fb0000	AVRT
    Error: 0x72a40000	AUDIOSES
    Error: 0x61470000	msacm32
    Error: 0x662e0000	MSACM32
    Error: 0x61460000	midimap
    Error: 0x74690000	profapi
    Error: 0x740a0000	uxtheme
    Error: 0x51a60000	FRAPS32
    Error: 0x5e660000	atiglpxx
    Error: 0x04f80000	atioglxx
    Error: 0x720f0000	atiadlxx
    Error: 0x742c0000	USERENV
    Error: 0x741e0000	WTSAPI32
    Error: 0x77300000	PSAPI
    Error: 0x729c0000	IPHLPAPI
    Error: 0x72970000	WINNSI
    Error: 0x74830000	WINTRUST
    Error: 0x74710000	CRYPT32
    Error: 0x74700000	MSASN1
    Error: 0x63110000	atigktxx
    Error: 0x6ebe0000	dbghelp
    Warning: Stacktrace (main) for Spring 97.0.1-183-g3335a9e develop:
    Warning: (0) C:\Windows\SYSTEM32\ntdll.dll(KiFastSystemCallRet+0) [0x772070F4]
    Warning: (1) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x50ae4) [0x009803C4]
    Warning: (2) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe [0x008F4FDE]
    Warning: (3) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe [0x008E1938]
    Warning: (4) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe [0x008E864E]
    Warning: (5) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe [0x008E8ECF]
    Warning: (6) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe [0x008F70E0]
    Warning: (7) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe [0x008C0128]
    Warning: (8) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe [0x0089CB56]
    Warning: (9) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x626a04) [0x00F562E4]
    Warning: (10) C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\spring.exe [0x00401402]
    Warning: (11) C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+0x12) [0x74A2EE1C]
    Warning: (12) C:\Windows\SYSTEM32\ntdll.dll(RtlInitializeExceptionChain+0xef) [0x772237EB]
    Warning: (13) C:\Windows\SYSTEM32\ntdll.dll(RtlInitializeExceptionChain+0xc2) [0x772237BE]
    Scanning: C:\Users\Rattlesnark\Documents\My Games\Spring\packages
    Scanning: C:\Users\Rattlesnark\Documents\My Games\Spring\engine\97.0.1-183-g3335a9e\base
    [f=0000000] Joysticks found: 0
    [f=0000000] Warning: Joystick 0 not found
    [f=0000000] [ThreadPool::SetThreadCount][1] #wanted=3 #current=4 #max=4
    [f=0000000] [ThreadPool::SetThreadCount][2] #threads=2
    [f=0000000] [Threading] Main thread CPU affinity mask set: 12
    [f=0000000] Hosting on: localhost:8452
    [f=0000000] Connecting to local server
    [f=0000000] [Sound] Warning: Could not open the sound device "", trying the default device ...
    [f=0000000] Warning: Opening socket on loopback address. Other users will not be able to connect!
    [f=0000000] Binding UDP socket to IP (v6) ::1 port 8452
    [f=0000000] [UDPListener] successfully bound socket on port 8452
    [f=0000000] PreGame::StartServer: 21 ms
    [f=0000000] [Sound] Error: Could not open a sound device, disabling sounds
    [f=0000000] [Sound] Error: CSound::InitAL: Unknown error
    [f=0000000] Connection rejected: User name not authorized to connect
    [f=0000000] Error: [ErrorMessageBox][1] msg="Remote requested quit: Connection rejected: User name not authorized to connect" IsMainThread()=1 fromMain=0
    [f=0000000] Error: [ErrorMessageBox][2]
    [f=0000000] [SpringApp::ShutDown][1]
    [f=0000000] [ThreadPool::SetThreadCount][1] #wanted=0 #current=3 #max=4
    [f=0000000] [ThreadPool::SetThreadCount][2] #threads=0
    [f=0000000] [SpringApp::ShutDown][2]
    [f=0000000] [SpringApp::ShutDown][3]
    [f=0000000] Statistics for local connection:
    Received: 60 bytes
    Sent: 4 bytes
    
    [f=0000000] [SpringApp::ShutDown][4]
    [f=0000000] [SpringApp::ShutDown][5]
    [f=0000000] [SpringApp::ShutDown][6]
    [f=0000000] [SpringApp::ShutDown][7]
    [LuaSocket] Dumping luasocket rules:
    [LuaSocket] TCP_CONNECT ALLOW * -1
    [LuaSocket] TCP_LISTEN  ALLOW * -1
    [LuaSocket] UDP_LISTEN  ALLOW * -1
    [SpringApp::ShutDown][8]
    [WatchDog::Uninstall][1] hangDetectorThread=02967F50
    [WatchDog::Uninstall][2]
    [WatchDog::Uninstall][3]
    [SpringApp::ShutDown][9]
    Error: [ErrorMessageBox][3]
    Error: [ErrorMessageBox][4]
    Fatal: Quit message
    Remote requested quit: Connection rejected: User name not authorized to connect
    
    txt file icon infolog.txt (10,132 bytes) 2014-07-27 12:08 +
  • ? file icon TestSave_Comet_Catcher_Redux_BA_v8.00.ssf (4,162 bytes) 2014-07-27 12:09

-Relationships
+Relationships

-Notes

~0013444

abma (administrator)

it doesn't crash, stacktrace is from a hang:

C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x009803C4 path.cpp:0
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008F4FDE /slave/mingwlibs/include/boost/filesystem/operations.hpp:174
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008E1938 rts/System/FileSystem/ArchiveScanner.cpp:458
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008E864E rts/System/FileSystem/ArchiveScanner.cpp:389
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008E8ECF rts/System/FileSystem/ArchiveScanner.cpp:362
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008F70E0 FileSystemInitializer.cpp:0
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x008C0128 rts/System/SpringApp.cpp:881
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x0089CB56 rts/System/Main.cpp:48
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x00F562E4 rts/System/Main.cpp:107
C:\\Users\\Rattlesnark\\Documents\\My Games\\Spring\\engine\\97.0.1-183-g3335a9e\\spring.exe 0x00401402 crtexe.c:0

~0013449

KingRaptor (reporter)

Last edited: 2014-07-28 09:39

View 2 revisions

That's just a temporary hang during loading, I get those all the time.

Upon further testing, I can open the save file if I set (player) name in springsettings to match the one in the script. So I just need a way to find out ahead of time what name to use and tell Spring to use it for this specific run.

ETA: Though it would still be preferable if Spring automatically used the playername in the startscript as the playername connecting. That way the save can simply be opened directly, without needing to check for the correct player name and pass it to Spring.

~0013450

jK (developer)

how should it know the username when there are multiple players in the savegame?

~0013451

abma (administrator)

Last edited: 2014-07-30 11:21

View 2 revisions

a local stored save game should store the local used username/password so it can be (re)used when loading a savegame ?!

a lobby could optionally set the username but imo it should work without interaction of a lobby.

~0013452

KingRaptor (reporter)

Last edited: 2014-07-30 13:03

View 2 revisions

It's already stored in the save game's startscript as myplayername=<name>;

~0013461

jK (developer)

the error has nothing to do with the save game. the file path contains spaces and the lobby forgot to quote. I will commit an improved reporting of that when my internet is fixed
+Notes

-Issue History
Date Modified Username Field Change
2014-07-27 12:08 KingRaptor New Issue
2014-07-27 12:08 KingRaptor File Added: infolog.txt
2014-07-27 12:09 KingRaptor File Added: TestSave_Comet_Catcher_Redux_BA_v8.00.ssf
2014-07-27 20:46 abma Note Added: 0013444
2014-07-27 20:46 abma Description Updated View Revisions
2014-07-28 08:12 KingRaptor Note Added: 0013449
2014-07-28 09:39 KingRaptor Note Edited: 0013449 View Revisions
2014-07-30 03:05 jK Note Added: 0013450
2014-07-30 11:18 abma Note Added: 0013451
2014-07-30 11:21 abma Note Edited: 0013451 View Revisions
2014-07-30 13:02 KingRaptor Note Added: 0013452
2014-07-30 13:03 KingRaptor Note Edited: 0013452 View Revisions
2014-07-30 14:04 abma Target Version => 98.0
2014-08-03 04:39 jK Assigned To => jK
2014-08-03 04:39 jK Status new => assigned
2014-08-03 04:49 jK Note Added: 0013461
2014-08-05 14:14 jK Changeset attached => spring develop fbc9e91f
2014-08-05 14:14 jK Status assigned => resolved
2014-08-05 14:14 jK Resolution open => fixed
+Issue History