﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
18397	[PATCH] Provide more helpful error message when loading an invalid gpx file	GerdP	team	"==== What steps will reproduce the problem?
1. Try to load attached gpx file (I removed most of the points, problem is in the header)

==== What is the expected result?
track is displayed
==== What happens instead?
popup ""Could not read gpx file x.gpx"" Error is: Parsing data for layer `x.gpx` failed.
==== Please provide any additional information below. Attach a screenshot if possible.
I have a lot of files which show this error, other tools can load them.
{{{
URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-12-01 23:10:15 +0100 (Sun, 01 Dec 2019)
Build-Date:2019-12-02 02:30:57
Revision:15553
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15553 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 1903 (18362)
Memory Usage: 715 MB / 4551 MB (381 MB allocated, but free)
Java version: 1.8.0_221-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080

Plugins:
+ OpeningHoursEditor (35242)
+ apache-commons (35092)
+ buildings_tools (35171)
+ continuosDownload (82)
+ ejml (35122)
+ geotools (35169)
+ jaxb (35014)
+ jts (35122)
+ merge-overlap (35072)
+ o5m (34908)
+ opendata (35179)
+ pbf (35033)
+ poly (34991)
+ reverter (35226)
+ undelete (34977)
+ utilsplugin2 (35238)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: Region [TMS_BLOCK_v2] Resetting cache
- E: org.xml.sax.SAXParseException: The prefix ""gpxx"" for element ""gpxx:TrackExtension"" is not bound.
- E: java.io.IOException: Parsing data for layer 'x.gpx' failed. Cause: org.xml.sax.SAXParseException: The prefix ""gpxx"" for element ""gpxx:TrackExtension"" is not bound.
- E: Error - <html>Could not read file 'x.gpx'.<br>Error is:<br>Parsing data for layer 'x.gpx' failed</html>
}}}
"	enhancement	closed	normal	19.12	Core		fixed	template_report gpx	Bjoeni
