2025-07-31 21:45 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002779Spring engineGeneralpublic2011-12-04 12:39
ReporterLicho 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version84.0 
Target VersionFixed in Version85.0 
Summary0002779: Demo file name reported by dedi server does not match reality
DescriptionDedicated server reports invalid demo file name for example:

For example dedi server reports

20111126_041350_Red Comet_84.0.sdf

but actual filename is

http://springdemos.licho.eu/20111126_041350_unnamed_84.0.sdf

(even after game ends).
Might be related to the fact that we have to kill dedi server because it wont end (other reported issue).
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0002767closedhoijui Dedicated server not exiting after game over (within few seconds) and does not respond to /kill 
+Relationships

-Notes

~0007721

abma (administrator)

side-effect of 0002767. the demo file is renamed when spring is shutdown. -> if it doesn't shutdown correctly, the demofile isn't renamed correctly...

~0007724

abma (administrator)

maybe a workaround in springie would be, to check for both filenames? (afaik both are reported to infolog.txt)

this would also work, if spring-dedicated crashes...

~0007725

abma (administrator)

imo this can't be fixed, will be indirectly fixed by 0002767

~0007728

Licho (reporter)

Just a question - is there a reason it works this way? Why does it use different filename and rename after the game...

It knows the map from the very start it could name it correctly from there (or delay creation until then)

~0007730

abma (administrator)

Last edited: 2011-11-27 13:37

If i understood the code right, a connecting client receives first some data before the filename is known. To fix that, the client would have to buffer data in memory and then start writing to demofile after the filename is known.

https://github.com/spring/spring/blob/develop/rts/System/LoadSave/DemoRecorder.cpp#L101

afaik "Player ... connected" is a message, that is recorded before the mapname is known.

-> could be fixed, but imo to many work for a very small improvement with some drawbacks (if it crashes before something is written to demofile -> no demofile -> harder to debug). other stuff would be much more important, like 0002767 :)

correct?

~0007732

Licho (reporter)

In this case its dedicated server it knows the map from start because it has the script...

On clients it should be buffered, on dedi server its known and does not have to be buffered even...

~0007734

abma (administrator)

hm, looks like not correct, thanks Kloot!

https://github.com/spring/spring/commit/f9aca8bfbd5b8496f323f6c2b423cafda73f6b18
+Notes

-Issue History
Date Modified Username Field Change
2011-11-26 17:57 Licho New Issue
2011-11-26 23:21 abma Relationship added related to 0002767
2011-11-26 23:22 abma Note Added: 0007721
2011-11-27 06:01 abma Note Added: 0007724
2011-11-27 06:02 abma Note Added: 0007725
2011-11-27 06:02 abma Status new => resolved
2011-11-27 06:02 abma Resolution open => not fixable
2011-11-27 06:02 abma Assigned To => abma
2011-11-27 12:17 Licho Note Added: 0007728
2011-11-27 12:17 Licho Status resolved => feedback
2011-11-27 12:17 Licho Resolution not fixable => reopened
2011-11-27 13:36 abma Note Added: 0007730
2011-11-27 13:37 abma Note Edited: 0007730
2011-11-27 14:11 Kloot Status feedback => assigned
2011-11-27 14:11 Kloot Assigned To abma => Kloot
2011-11-27 14:37 Licho Note Added: 0007732
2011-11-27 21:26 Kloot Status assigned => resolved
2011-11-27 21:26 Kloot Fixed in Version => 84.0.1
2011-11-27 21:26 Kloot Resolution reopened => fixed
2011-11-27 22:53 abma Note Added: 0007734
2011-12-04 12:39 hoijui Fixed in Version 84.0.1 => 85.0
+Issue History