Project

General

Profile

Bug #11435

Unable to parse GPX file

Added by Hardy Wang over 2 years ago. Updated over 2 years ago.

Status:
Fixed
Priority:
Low
Assignee:
-
Category:
Map / Geolocation
Target version:
Start date:
01/05/2017
Due date:
% Done:

100%

Affected Version:
2.2.1
System:
Ubuntu
bitness:
64-bit
hardware architecture:
amd64/x86

Description

I have a GPX file generated from my phone, and synchronized to Run Keeper automatically. I log on to Run Keeper site, I can view the track on map without problem.

I downloaded the file and applied it to lighttable of some selected photos, but Darktable reported with error unable to parse GPX. I used the same file on various online GPX viewer sites, all of them work fine.

I opened the GPX file and tried to remove "trkseg" sections, but it also failed.

RK_gpx _2016-11-22_1616.gpx (12 KB) Hardy Wang, 01/05/2017 04:35 PM

CaledosLab_gpx_11-22-2016_824f8a6253594f8599b3f91cca8b0de1.gpx (16 KB) Hardy Wang, 01/06/2017 02:20 AM

dk-1.png - Screenshot 1 (851 KB) Hardy Wang, 01/06/2017 02:20 AM

dk-2.png - Screenshot 2 (264 KB) Hardy Wang, 01/06/2017 02:20 AM

dt-3.png - Screenshot 3 (822 KB) Hardy Wang, 01/06/2017 02:20 AM

Associated revisions

Revision d5a8c930
Added by Stefan Schöfegger over 2 years ago

ignore UTF-8 BOM on gpx read, fixes #11435

Revision ba5f8912
Added by Roman Lebedev over 2 years ago

Merge remote-tracking branch 'upstream/pr/1410'

  • upstream/pr/1410:
    ignore UTF-8 BOM on gpx read, fixes #11435

Revision 2e7b97c3
Added by Stefan Schöfegger over 2 years ago

ignore UTF-8 BOM on gpx read, fixes #11435

(cherry picked from commit d5a8c930710a728b12900107057896e2b8102548)

History

#1 Updated by Roman Lebedev over 2 years ago

For future reference, it may be best to actually show the darktable's error

#2 Updated by Hardy Wang over 2 years ago

Roman Lebedev wrote:

For future reference, it may be best to actually show the darktable's error

Sure, I can capture the screen at later time.

#3 Updated by Hardy Wang over 2 years ago

I have a GPX file generated from my phone. I downloaded the file and applied it to lighttable of some selected photos, but Darktable reported with error unable to parse GPX. I used the same file on various online GPX viewer sites, all of them work fine.

#4 Updated by Hardy Wang over 2 years ago

Roman Lebedev wrote:

For future reference, it may be best to actually show the darktable's error

I don't know why it won't allow me to edit the original report, please check my update above for the most latest information. Ignore what is in original report.

#5 Updated by Stefan Schöfegger over 2 years ago

Your GPX file contains a Byte Order Mark [[https://en.wikipedia.org/wiki/Byte_order_mark]] in the first three bytes.
Should darktable ignore them?
I added a PR: https://github.com/darktable-org/darktable/pull/1410

#6 Updated by Stefan Schöfegger over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Fixed

#7 Updated by Roman Lebedev over 2 years ago

  • Target version set to 2.4.0

Also available in: Atom PDF