Closed mt-from-sf-to-gh closed 2 years ago
Anhänge, die Fehlerbild beim Import zeigen.
Original comment by: klayer2
The import of the trackname is fixed in the next version
When the distance values are set to absolute in the pref page, then the import looks OK
Original comment by: wolfgang-ch
Original comment by: wolfgang-ch
No Progress: Export function in V 19.7.10 is not working both on Windows and MacOS GPX files are corrupt and crash on reimport TCX files loose title and description.
It seems that the exported files have bugs. Using the import function on file which have been exported by older versions of Mytourbook are working.
Log:
17:51:58 Touren Importieren
17:51:58 EXCEPTION Could not read data file 'C:\Users\marti\Desktop\letzter Versuch.gpx'<br>java.lang.NullPointerException<br> at net.tourbook.device.gpx.GPX_SAX_Handler.endElement_MT_Tour(GPX_SAX_Handler.java:576)<br> at net.tourbook.device.gpx.GPX_SAX_Handler.endElement(GPX_SAX_Handler.java:492)<br> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)<br> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)<br> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)<br> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)<br> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)<br> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)<br> at javax.xml.parsers.SAXParser.parse(Unknown Source)<br> at net.tourbook.device.gpx.GPXDeviceDataReader.processDeviceData(GPXDeviceDataReader.java:196)<br> at net.tourbook.importdata.RawDataManager.importRawData_10(RawDataManager.java:1602)<br> at net.tourbook.importdata.RawDataManager.access$8(RawDataManager.java:1552)<br> at net.tourbook.importdata.RawDataManager$5.run(RawDataManager.java:1465)<br> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:55)<br> at net.tourbook.importdata.RawDataManager.importRawData(RawDataManager.java:1422)<br> at net.tourbook.importdata.RawDataManager$7.run(RawDataManager.java:1936)<br> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)<br>
17:51:58 EXCEPTION Could not read data file 'C:\Users\marti\Desktop\letzter Versuch.gpx'<br>java.lang.NullPointerException<br> at net.tourbook.device.gpx.GPX_SAX_Handler.endElement_MT_Tour(GPX_SAX_Handler.java:576)<br> at net.tourbook.device.gpx.GPX_SAX_Handler.endElement(GPX_SAX_Handler.java:492)<br> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)<br> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)<br> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)<br> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)<br> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)<br> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)<br> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)<br> at javax.xml.parsers.SAXParser.parse(Unknown Source)<br> at net.tourbook.device.gpx.GPXDeviceDataReader.processDeviceData(GPXDeviceDataReader.java:196)<br> at net.tourbook.importdata.RawDataManager.importRawData_10(RawDataManager.java:1602)<br> at net.tourbook.importdata.RawDataManager.access$8(RawDataManager.java:1552)<br> at net.tourbook.importdata.RawDataManager$5.run(RawDataManager.java:1497)<br> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:55)<br> at net.tourbook.importdata.RawDataManager.importRawData(RawDataManager.java:1422)<br> at net.tourbook.importdata.RawDataManager$7.run(RawDataManager.java:1936)<br> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)<br>
17:51:59 ERROR C:\Users\marti\Desktop\letzter Versuch.gpx
17:51:59 Importiert in 0,451 s
17:52:36 Touren Importieren
17:52:38 OK 25.07.09 11:03 <- C:\Users\marti\Backups\Martin-Backup\MyTourBox export\2009-07-25_11-03-13.gpx
17:52:38 INFO 1 Touren wurden importiert von der Datei C:\Users\marti\Backups\Martin-Backup\MyTourBox export\2009-07-25_11-03-13.gpx
17:52:38 Importiert in 1,664 s
Original comment by: klayer2
I have narrowed down the bug.
If I am removing the
Original comment by: klayer2
When I test the gpx export/import of a tour with version 19.10, there is no problem but I see in your log above, that there is an exception.
Can you attach the file letzter Versuch.gpx so I can debug this problem.
Original comment by: wolfgang-ch
HI Wolfgang, here you are.
regards Martin
Original comment by: klayer2
I can import this file without problems
Original comment by: wolfgang-ch
Ok. Maybe this is the version in which I already removed the extension section. Currently I am not able to produce another example because I have no access to a Windows PC and the new Mytookbook version is not executable on Macs. As soon as I have access again I will provide further examples.
Thanks for taking a look at it. Please leave the issue open.
Kind regards Martin
Original comment by: klayer2
In the attachment you find an example of an exported gpx file which provides and error when being reimported. The test were performed under MacOS Catalina using version 19.10.0.
Original comment by: klayer2
I also tried to import this file using version 19.10.1 and this seems to work. Strange?
Original comment by: klayer2
I fiddled with the export and import setting. It seems that the default value do not match. If I explicitly export using absolut values and the in the settings import again select absolut values. The import/export is working.
Allthough the export/import is working now I still get tons of error in the log.
Original comment by: klayer2
When this file is reimported and change the distance from relative -> absolute then this error occures
09:06:12 Reimport tour
09:06:13 Tour "10/12/19 12:43 PM" cannot be reimported from the file "C:\DAT\mytourbook-DEVICE-DATA\GPX\Martin Klimke - Klayer\2019-10-12_12-43-09.gpx" because it has a different tour ID, current tour: 20191012124374388 - reimport file: 20191012124333037
09:06:13 Reimported in 0.187 s
But this is OK because the tour id is created also from the distance of a tour which is different between absolute and relative distances
Original comment by: wolfgang-ch
It seems that the default value do not match.
This issue is fixed in the next version, the default values for gpx import/export is now set to absolute distance and not a mix and match
Allthough the export/import is working now I still get tons of error in the log.
can you attach the tons of errors
Original comment by: wolfgang-ch
Original comment by: wolfgang-ch
Die Version 19.7.1 (MacOS Version) hat Fehler in in der Export/Import Funktion.
Der Export nach TCX scheint zu funktionieren, es wird allerdings beim Import der Name des Tracks nicht mehr importiert.
Der Export nach GPX funktioniert nicht mehr. Beim Import des vorher exportierten Files werden neben anderen Fehlern völlig falsche Werte für die Tracklänge angezeigt.neben. Eine Tour mit 43 km wurde danach mit über 60000 km angezeigt. Außerdem wird der Name der Tour nicht exportiert.
Source: https://sourceforge.net/p/mytourbook/discussion/622811/thread/54bd12736f/?limit=25#7712
Reported by: wolfgang-ch
Original Ticket: mytourbook/bugs/111