Yaribz / SPADS

SpringRTS Perl Autohost for Dedicated Server
GNU General Public License v3.0
17 stars 16 forks source link

Perl Warn : Use of uninit value in SpadsConf.pm #38

Closed FabriceFABS closed 6 years ago

FabriceFABS commented 7 years ago

Yop !

Today, I restarted autohost [ACE]Ticots (remind : ustable), and I received an error in the console at the end :

NOTICE   - [SPADS] Initializing SPADS 0.12.2a
NOTICE   - [SPADS] Loading Spring archives using unitsync library version 104 ...
WARNING  - [SPADS] Spring archives loading process took 2 minutes and 32 seconds
NOTICE   - [SPADS] Spring server mode: dedicated
NOTICE   - [SimpleEvent] Event loop initialized using internal model
NOTICE   - [SPADS] <AutoSpec> Plugin loaded (version 0.1)
NOTICE   - [SPADS] <CustomAliases> Plugin loaded (version 0.1): 77 aliases configured
NOTICE   - [SPADS] <DownloadArchives> Plugin loaded (version 0.1)
NOTICE   - [SPADS] <Resign> Plugin loaded (version 0.2)
NOTICE   - [SPADS] <InGameMute> Plugin loaded (version 0.4)
NOTICE   - [SPADS] <Poke> Plugin loaded (version 0.2)
NOTICE   - [SPADS] <PreventVoteExploit> Plugin loaded (version 0.4)
NOTICE   - [SimpleEvent] Starting event loop...
NOTICE   - [SPADS] TrueSkill service available
ERROR    - [SPADS] PERL WARNING: Use of uninitialized value in string eq at /home/.../SpadsConf.pm line 2235.

If you want me publishing extra logs, plz remind me how to enable, I will post it back as soon as I can.

FabriceFABS commented 7 years ago

Same on [ACE]Pirateur, but add this extra-line after the error mentioned above : ERROR - [SPADS] PERL WARNING: Use of uninitialized value $ts in subtraction (-) at /home/.../SpadsConf.pm line 1380.

Yaribz commented 7 years ago

It seems you just copy-pasted the standard output of the SPADS console, can you provide the corresponding parts of the log file instead (spads.log) ?

(the spads.log file is basically always needed when you report an error, the standard output doesn't contain all the information)

FabriceFABS commented 7 years ago

Sure, yeah :+1:

20171106212931 - NOTICE   - [SPADS] Initializing SPADS 0.12.2a
20171106212934 - NOTICE   - [SPADS] Loading Spring archives using unitsync library version 104 ...
20171106213206 - WARNING  - [SPADS] Spring archives loading process took 2 minutes and 32 seconds
20171106213206 - NOTICE   - [SPADS] Spring server mode: dedicated
20171106213206 - NOTICE   - [SimpleEvent] Event loop initialized using internal model
20171106213206 - NOTICE   - [SpringAutoHostInterface] Listening on AutoHost port (*****************)
20171106213206 - NOTICE   - [SPADS] <AutoSpec> Plugin loaded (version 0.1)
20171106213206 - NOTICE   - [SPADS] <CustomAliases> Plugin loaded (version 0.1): 77 aliases configured
20171106213206 - NOTICE   - [SPADS] <DownloadArchives> Plugin loaded (version 0.1)
20171106213206 - NOTICE   - [SPADS] <Resign> Plugin loaded (version 0.2)
20171106213206 - NOTICE   - [SPADS] <InGameMute> Plugin loaded (version 0.4)
20171106213206 - NOTICE   - [SPADS] <Poke> Plugin loaded (version 0.2)
20171106213206 - NOTICE   - [SPADS] <PreventVoteExploit> Plugin loaded (version 0.4)
20171106213206 - NOTICE   - [SimpleEvent] Starting event loop...
20171106213206 - NOTICE   - [SpringLobbyInterface] Connecting to lobby.springrts.com:8200
20171106213206 - INFO     - [SPADS] Following *****************************
20171106213206 - INFO     - [SPADS] Logged on lobby server
20171106213206 - WARNING  - [SpringLobbyInterface] Found invalid accountId parameter value "None" (should be integer) in lobby command ADDUSER
20171106213207 - NOTICE   - [SPADS] TrueSkill service available
20171106213207 - ERROR    - [SPADS] PERL WARNING: Use of uninitialized value in string eq at /***/SpadsConf.pm line 2235.
20171106213207 - INFO     - [SPADS] Channel [ACE] joined
20171106213207 - INFO     - [SPADS] Channel fr joined
20171106213207 - INFO     - [SPADS] Channel main joined
20171106213837 - WARNING  - [SPADS] Unable to get skill of player [ACE]FabriceFABS #******** (unrated account)
20171106213947 - INFO     - [SPADS] Spring server started
20171106214017 - INFO     - [SPADS] Game started
20171106214025 - INFO     - [SPADS] Spring server shutting down (running time: 39 seconds)...
20171106214028 - INFO     - [SPADS] Executing end game command (pid 19045)
20171106214028 - INFO     - [SPADS] Game data report cancelled, game too short
20171106214028 - INFO     - [SPADS] End game command finished (pid: 19045, execution time: 0 second, return code: 5)
20171106214028 - WARNING  - [SPADS] End game commmand exited with non-null return code (5)
20171106222935 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171106222935 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171106222935 - ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $ts in subtraction (-) at /***/SpadsConf.pm line 1380.
20171106222936 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171106232937 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171106232937 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171106232937 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107002938 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107002938 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107002938 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107012939 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107012939 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107012939 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107022940 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107022940 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107022940 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107032941 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107032941 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107032941 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107042943 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107042943 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107042943 - INFO     - [SPADS] File "/***/userData.dat" dumped

And for [ACE]Pirateur :

20171106205815 - NOTICE   - [SPADS] Initializing SPADS 0.12.2a
20171106205818 - NOTICE   - [SPADS] Loading Spring archives using unitsync library version 104.0.1-289-g62f4019 develop ...
20171106210041 - WARNING  - [SPADS] Spring archives loading process took 2 minutes and 23 seconds
20171106210041 - NOTICE   - [SPADS] Spring server mode: dedicated
20171106210041 - NOTICE   - [SimpleEvent] Event loop initialized using internal model
20171106210041 - NOTICE   - [SpringAutoHostInterface] Listening on AutoHost port (*********)
20171106210041 - NOTICE   - [SPADS] <AutoSpec> Plugin loaded (version 0.1)
20171106210041 - NOTICE   - [SPADS] <CustomAliases> Plugin loaded (version 0.1): 77 aliases configured
20171106210041 - NOTICE   - [SPADS] <DownloadArchives> Plugin loaded (version 0.1)
20171106210041 - NOTICE   - [SPADS] <Resign> Plugin loaded (version 0.2)
20171106210041 - NOTICE   - [SPADS] <InGameMute> Plugin loaded (version 0.4)
20171106210041 - NOTICE   - [SPADS] <Poke> Plugin loaded (version 0.2)
20171106210041 - NOTICE   - [SPADS] <PreventVoteExploit> Plugin loaded (version 0.4)
20171106210041 - NOTICE   - [SimpleEvent] Starting event loop...
20171106210041 - NOTICE   - [SpringLobbyInterface] Connecting to lobby.springrts.com:8200
20171106210041 - NOTICE   - [SPADS] Lobby server default engine is Spring 104, UnitSync is using Spring 104.0.1-289-g62f4019 develop
20171106210041 - INFO     - [SPADS] Following **************
20171106210041 - INFO     - [SPADS] Logged on lobby server
20171106210041 - WARNING  - [SpringLobbyInterface] Found invalid accountId parameter value "None" (should be integer) in lobby command ADDUSER
20171106210041 - NOTICE   - [SPADS] TrueSkill service available
20171106210041 - ERROR    - [SPADS] PERL WARNING: Use of uninitialized value in string eq at /***/SpadsConf.pm line 2235.
20171106210041 - INFO     - [SPADS] Channel [ACE] joined
20171106210041 - INFO     - [SPADS] Channel fr joined
20171106210041 - INFO     - [SPADS] Channel main joined
20171106215818 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171106215818 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171106215818 - ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $ts in subtraction (-) at /***/SpadsConf.pm line 1380.
20171106215818 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171106225819 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171106225819 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171106225820 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171106235821 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171106235821 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171106235821 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107005822 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107005822 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107005823 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107015824 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107015824 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107015824 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107025825 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107025825 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107025825 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107035826 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107035826 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107035827 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107045828 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107045828 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107045828 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107055829 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107055829 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107055830 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107065636 - WARNING  - [SPADS] TrueSkill service unavailable!
20171107065831 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107065831 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107065832 - INFO     - [SPADS] File "/***/userData.dat" dumped
20171107065832 - NOTICE   - [SPADS] TrueSkill service available
20171107073050 - WARNING  - [SPADS] TrueSkill service unavailable!
20171107073316 - NOTICE   - [SPADS] TrueSkill service available
20171107074820 - WARNING  - [SPADS] TrueSkill service unavailable!
20171107074945 - NOTICE   - [SPADS] TrueSkill service available
20171107075833 - INFO     - [SPADS] File "/***/preferences.dat" dumped
20171107075833 - INFO     - [SPADS] File "/***/mapHashes.dat" dumped
20171107075834 - INFO     - [SPADS] File "/***/userData.dat" dumped
Yaribz commented 7 years ago

Thank you, yet another case of inconsistent data sent by lobby server... I will make SPADS more resilient when I have some time.

Yaribz commented 6 years ago

Should be fixed in SPADS 0.12.3, please reopen if it happens again.