View Issue Details

IDProjectCategoryView StatusLast Update
0002779Spring engineGeneralpublic2011-12-04 12:39
ReporterLicho Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version84.0 
Fixed 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

Relationships

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

Activities

abma

2011-11-26 23:22

administrator   ~0007721

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...

abma

2011-11-27 06:01

administrator   ~0007724

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...

abma

2011-11-27 06:02

administrator   ~0007725

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

Licho

2011-11-27 12:17

reporter   ~0007728

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)

abma

2011-11-27 13:36

administrator   ~0007730

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?

Licho

2011-11-27 14:37

reporter   ~0007732

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...

abma

2011-11-27 22:53

administrator   ~0007734

hm, looks like not correct, thanks Kloot!

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

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