Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 04-11-2019, 14:26   #1
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 103
Opencpn 5 exporting to GPX poor performance

Hi all,

I am a a long time user of version 4 and have been testing out version 5 to see how it runs in comparison. One problem I have run into is exporting my waypoints, tracks and route to GPX.

I have a GPX with 11,000 marks in it. In version 4.88, it takes about 2 seconds to "export all visible" from Route & Mark Manager. In version 5, it takes 30+ minutes. I've never actually have seen it finish yet. It seems to count up one mark at a time very slowly. The estimated time remaining just keeps climbing.

Why is it so much slower in v5? I am doing a side by side installation on windows 10 with 16gb of ram and a SSD drive.

Click image for larger version

Name:	Capture.JPG
Views:	49
Size:	60.7 KB
ID:	202658
__________________

J805 is offline   Reply With Quote
Old 06-11-2019, 10:38   #2
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 103
Re: Opencpn 5 exporting to GPX poor performance

Bump. Can someone from development chime in on this? It's clearly a night a day difference in the export to GPX process from v4 to v5.

It took over 2 hours to finish on my new install of 5.0.0+9065270 and 2 seconds to finish in 4.88.
__________________

J805 is offline   Reply With Quote
Old 06-11-2019, 10:42   #3
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,706
Re: Opencpn 5 exporting to GPX poor performance

J805...


If you will post (a link to) your giant GPX file, we will test and report.


Thanks
Dave
bdbcat is online now   Reply With Quote
Old 06-11-2019, 10:47   #4
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 103
Re: Opencpn 5 exporting to GPX poor performance

Quote:
Originally Posted by bdbcat View Post
J805...

If you will post (a link to) your giant GPX file, we will test and report.

Thanks
Dave
Hi Dave,

Thanks for the reply. I would rather not publicly post this GPX as it has decades of confidential waypoints. Is there a way to generate a GPX with just a bunch of random waypoints in it? Or I can find/replace mine and edit some random numbers?
J805 is offline   Reply With Quote
Old 06-11-2019, 11:33   #5
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 103
Re: Opencpn 5 exporting to GPX poor performance

Quote:
Originally Posted by J805 View Post
Hi Dave,

Thanks for the reply. I would rather not publicly post this GPX as it has decades of confidential waypoints. Is there a way to generate a GPX with just a bunch of random waypoints in it? Or I can find/replace mine and edit some random numbers?



I'm working on generating a GPX file to test with. I should have something shortly.
J805 is offline   Reply With Quote
Old 06-11-2019, 11:49   #6
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 103
Re: Opencpn 5 exporting to GPX poor performance

Hi Dave,

I have a GPX file for you that I built. Import this into 4.88 and then Export All Visible. It takes about 2-3 seconds to complete. Import it into v5 and it takes 30-60 minutes to complete. As the export grows, it slows down alot. There are roughly 6000 waypoints

You can download it here: https://www36.zippyshare.com/v/Q5gFa4H1/file.html
J805 is offline   Reply With Quote
Old 11-11-2019, 11:19   #7
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 103
Re: Opencpn 5 exporting to GPX poor performance

Dave, were you able to download the GPX and see the issue?
J805 is offline   Reply With Quote
Old 11-11-2019, 17:02   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,706
Re: Opencpn 5 exporting to GPX poor performance

J805...


Not yet, sorry.
Very busy....


Thanks
Dave
bdbcat is online now   Reply With Quote
Old 13-11-2019, 04:34   #9
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,625
Re: Opencpn 5 exporting to GPX poor performance

Quote:
Originally Posted by J805 View Post
Dave, were you able to download the GPX and see the issue?
I tried to download it but that site is filled with malware and unwanted download attempts. I could find no way to get just your file. Can you not put this file on some safe site free of malware?
transmitterdan is offline   Reply With Quote
Old 13-11-2019, 08:27   #10
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 5,706
Re: Opencpn 5 exporting to GPX poor performance

Dan...


If you have the time, here is the file:


https://www.dropbox.com/s/aw2w5yo76x...tv4-1.gpx?dl=0


Thanks
Dave
bdbcat is online now   Reply With Quote
Old 13-11-2019, 11:47   #11
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,625
Re: Opencpn 5 exporting to GPX poor performance

@bdcat

I will look at it tonight.

Dan
transmitterdan is offline   Reply With Quote
Old 14-11-2019, 06:19   #12
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,625
Re: Opencpn 5 exporting to GPX poor performance

Quote:
Originally Posted by J805 View Post
Dave, were you able to download the GPX and see the issue?
Is this a "real" case or a contrived case? There are 17,000 duplicate waypoints in the file. So O spends most of its time checking for duplicates and throwing them away.

Do you have real file with no duplicates?

Also, can you try importing a .GPX file as a permanent layer instead of using the IMPORT GPX button? Go to the Layers tab and then click Create Persistent Layer. How fast does that work?
transmitterdan is offline   Reply With Quote
Old 14-11-2019, 14:43   #13
Registered User

Join Date: Feb 2017
Location: Southern California
Posts: 103
Re: Opencpn 5 exporting to GPX poor performance

Quote:
Originally Posted by transmitterdan View Post
Is this a "real" case or a contrived case? There are 17,000 duplicate waypoints in the file. So O spends most of its time checking for duplicates and throwing them away.

Do you have real file with no duplicates?

Also, can you try importing a .GPX file as a permanent layer instead of using the IMPORT GPX button? Go to the Layers tab and then click Create Persistent Layer. How fast does that work?
Hi Dan,

This is a file I generated using a mouse clicker in ocpn. However a real life file in v5 does the exact same thing. In 4.88 it takes 2 seconds to export it. In v5, it takes a very long time using the exact same file. To the point where I cannot use v5 because backing up is not practical.

Are there duplicates in the real life file as well? It's possible, not really sure how to check. It's not the import that takes a very long time. It's the export to gpx once it's already loaded onto Ocpn 5. The import takes about 3 seconds in v5 for me.
J805 is offline   Reply With Quote
Old 14-11-2019, 14:47   #14
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,625
Re: Opencpn 5 exporting to GPX poor performance

The issue for testing is that when importing the file most of the waypoints get thrown away. So exporting the remainder is pretty quick.

I will see what i can do with the few remaining waypoints.
transmitterdan is offline   Reply With Quote
Old 15-11-2019, 01:47   #15
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 5,625
Re: Opencpn 5 exporting to GPX poor performance

I found the slowdown is related to calling the wxProgressDialog::Update() function once per waypoint exported. For some reason the more times it is called the slower it gets. I think this is related to the calculation of remaining time. In a perverse sort of way the attempt to give the user some idea of how long the export will take makes the export take hundreds of times longer.

I will investigate more and make a PR soon.
__________________

transmitterdan is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skips new Seafrost poor performance problem Richard Kollmann Plumbing Systems and Fixtures 87 19-07-2019 17:08
oBabel plugin - Exporting KML/GPX to Chartplotters Rasbats OpenCPN 22 08-02-2016 09:03
Rookie questions - boundary circles; exporting options; GPX files fredgmeyer OpenCPN 5 23-05-2014 23:22
New Boat , Poor Battery Performance PhilDuhs Electrical: Batteries, Generators & Solar 16 08-07-2011 13:09
Exporting Tracks and Stitched Charts from OpenCPN allanpeda OpenCPN 1 15-05-2011 17:07

Advertise Here


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 20:13.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
×

ShowCase vBulletin Plugins by Drive Thru Online, Inc.