I can now reproduce the issue e.g.:
1. import the sample SimpleDataField in Eclipse
2. generate a Run Configuration for device e.g. Fenix 5
3. run the SimpleDataField in the sim
4. in the sim menu select 'Simulation > FIT Data > Simulate Data'
5. start the timer in the sim by klicking on the start button and let it run for e.g. 1 min
6. stop the timer in the sim by kicking on the start button again
7. in the sim menu select 'Simulation > FIT Data > Stop'
8. in the sim menu select 'Simulation > FIT Data > Save FIT session > enter a file name'
In the generated .fit there is something wrong or it's not properly recorded.
If replaying the .fit in the sim using 'Simulation > FIT Data > Playback File > select the file name' nothing happens.
If converting the .fit to .csv with the FIT CSV Tool an error occurs:
>>>java -jar F:\FitSDKRelease_21.20.00\java\FitCSVTool.jar -b SimpleDataFieldF5.fit SimpleDataFieldF5.csv
FIT CSV Tool - Protocol 2.0 Profile 21,20 Release
Exception in thread "main" java.lang.RuntimeException: com.garmin.fit.FitRuntime
Exception: FIT decode error: File is not FIT format. Check file header data typ
e. Error at byte: 24
at com.garmin.fit.csv.CSVTool.run(CSVTool.java:246)
at com.garmin.fit.csv.CSVTool.main(CSVTool.java:332)
Caused by: com.garmin.fit.FitRuntimeException: FIT decode error: File is not FIT
format. Check file header data type. Error at byte: 24
at com.garmin.fit.Decode.read(Decode.java:659)
at com.garmin.fit.Decode.resume(Decode.java:371)
at com.garmin.fit.Decode.read(Decode.java:348)
at com.garmin.fit.csv.CSVTool.run(CSVTool.java:220)
... 1 more
If the timer isn't started in the sim (#5. and #6. above) the saved .fit is correct and can be replayed or converted to .csv without an error. But some values in Activity.Info are initially 'null' (e.g. info.elapsedDistance and info.elapsedTime) and contains only results if the timer is running. So if the timer can't be started because of corrupting the .fit, the device in the sim can't display results and the user can't control the results during recording af the .fit.
So I'm not sure about the logic of the sim. Is this behavior correct or is it a bug?