php-fit-file-analysis icon indicating copy to clipboard operation
php-fit-file-analysis copied to clipboard

data_mesgs['record'] null

Open LudoWeb opened this issue 5 years ago • 8 comments

Hello Adrian :)

I have an issue with the parser. Unfortunatly, data_mesgs['record'] is null and i don't have any data.

This line seems to be the problem : $this->file_header['data_size'] = $this->file_header['crc'] - $header_size + 2;

It's a session recorded with Garmin Forerunner 920XT.

Many thanks,

LudoWeb avatar Jul 03 '19 13:07 LudoWeb

If you insert the following after that line, what do you get?

var_dump($this->file_header['crc']);
var_dump($header_size);
die();

adriangibbons avatar Jul 04 '19 04:07 adriangibbons

$this->file_header['crc']: int 635 $header_size: int 14

LudoWeb avatar Jul 04 '19 20:07 LudoWeb

Hmmm, seems like a small file $this->file_header['data_size'] = 635 - 14 + 2 = 623 I will try find some time at the weekend to investigate

adriangibbons avatar Jul 05 '19 01:07 adriangibbons

Hey @adriangibbons,

Any idea about this issue and how to fix it ?

Thanks!

LudoWeb avatar Jul 15 '19 07:07 LudoWeb

Are you able to share the file? You will probably have to change the file extension to .txt

Presumably the file works fine with Garmin Connect / Strava / etc?

adriangibbons avatar Jul 19 '19 13:07 adriangibbons

Yes, the file seems to work fine with Garmin Connect and Strava.

Here's the share file: error-file.txt

Thanks,

LudoWeb avatar Jul 19 '19 13:07 LudoWeb

Hello @adriangibbons,

Were you able to check the issue ?

LudoWeb avatar Aug 06 '19 07:08 LudoWeb

Hi, I had a quick look but didn't get anywhere. Then I've been on holiday a couple of weeks. Back in about a week or so and then will have more time. Have been so busy!

adriangibbons avatar Aug 08 '19 19:08 adriangibbons