Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 27-08-2024, 04:54   #1
Registered User

Join Date: Aug 2009
Location: Onboard, currently cruising in SE Asia
Boat: St. Francis 44 Mk II (Catamaran)
Posts: 259
Send a message via Skype™ to SoggyPaws
OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

I have a lot of little mbtiles (anchorages mostly and some "area" mbtiles) created by Sat2Chart from Sas.Planet. Plus a CM93 chart.
If I am scrolling the screen around to get to a different area, if I move the chart table too fast, the chart table hangs. But the rest of OpenCPN seems to still work (if I click on an icon in the tollbar, it pops whatever screen is associated with that icon). The chart table just stops responding.
If I hover over the piano keys, it will pop the info about each chart, but not hide the info when not hovering (see screen shot of what this looks like).
It is using very little CPU. (.5-1.5%) and some memory (388 MB).
Here is the last bit of the log file when it hung.
Code:
18:16:28.434 MESSAGE chartdb.cpp:1284 Initializing Chart C:\Charts\Valhalla\IndonesiaRev41\Sendang.mbtiles
18:16:28.450 MESSAGE chartdb.cpp:1169 Creating new chart
18:16:28.450 MESSAGE chartdb.cpp:1284 Initializing Chart C:\Charts\Valhalla\IndonesiaRev41\SVE25.mbtiles
18:16:28.450 MESSAGE chartdb.cpp:1169 Creating new chart
18:16:28.450 MESSAGE chartdb.cpp:1284 Initializing Chart C:\Charts\Valhalla\IndonesiaRev41\Raas.mbtiles
18:16:28.450 MESSAGE chartdb.cpp:1169 Creating new chart
18:16:28.450 MESSAGE chartdb.cpp:1284 Initializing Chart C:\Charts\Valhalla\IndonesiaRev41\PGuiyang.mbtiles
18:16:28.466 MESSAGE chartdb.cpp:1169 Creating new chart
18:16:28.466 MESSAGE chartdb.cpp:1284 Initializing Chart C:\Charts\Valhalla\IndonesiaRev41\KangeanAnch.mbtiles
18:16:30.122 MESSAGE chartdb.cpp:1169 Creating new chart
18:16:30.122 MESSAGE chartdb.cpp:1284 Initializing Chart C:\Charts\Valhalla\IndonesiaRev41\BIYCmarina.mbtiles
18:16:30.137 MESSAGE chartdb.cpp:1169 Creating new chart
18:16:30.137 MESSAGE chartdb.cpp:1284 Initializing Chart C:\Charts\Valhalla\IndonesiaRev41\EnterBoomMarina.mbtiles
18:16:31.231 MESSAGE cm93.cpp:4374 Loading CM93 cell C:\CM93 Oct 2011 Perry\02100300\C\02340336.C
18:16:31.278 MESSAGE cm93.cpp:4374 Loading CM93 cell C:\CM93 Oct 2011 Perry\02100300\C\02460336.C
18:16:31.543 MESSAGE chartdb.cpp:1169 Creating new chart
18:16:31.543 MESSAGE chartdb.cpp:1284 Initializing Chart C:\Charts\Valhalla\IndonesiaRev41\BoonMarina.mbtiles
18:16:33.496 MESSAGE cm93.cpp:4374 Loading CM93 cell C:\CM93 Oct 2011 Perry\02100300\D\02430342.D
18:16:33.512 MESSAGE cm93.cpp:4374 Loading CM93 cell C:\CM93 Oct 2011 Perry\02100300\D\02430345.D
18:16:33.543 MESSAGE cm93.cpp:4374 Loading CM93 cell C:\CM93 Oct 2011 Perry\02100300\D\02460342.D
18:16:33.574 MESSAGE cm93.cpp:4374 Loading CM93 cell C:\CM93 Oct 2011 Perry\02100300\D\02460345.D
18:16:34.871 MESSAGE cm93.cpp:4374 Loading CM93 cell C:\CM93 Oct 2011 Perry\02100300\E\02450345.E
18:16:36.590 WARNING ocpn_app.cpp:959 Caught MainLoopException, continuing...
18:16:59.197 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
18:18:00.226 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
18:19:00.916 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
18:20:01.847 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
18:21:02.494 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
18:22:02.875 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
18:23:03.340 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
18:24:03.649 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
18:25:04.016 MESSAGE NavicoLocate.cpp:521 Failed to allocate info from NavicoLocate to a radar
It hung right about 18:16
I do have the Radar plugin (latest version beta I think) installed and enabled, but the radar is powered off and the plugin hasn't been used since I started OpenCPN this morning.
If I kill OpenCPN now, I lose all my tracks and routes since I started out this morning.
When I finally clicked the X-box, I got the spinning wheel for about 30-60 seconds, and then the chart table came back. I didn't have to kill it to have it recover.
Meanwhile, it created a new log file.
I saved the old log file if anyone wants to see it.
Attached Thumbnails
Click image for larger version

Name:	Hung.jpg
Views:	34
Size:	240.2 KB
ID:	293461  
SoggyPaws is offline   Reply With Quote
Old 27-08-2024, 08:03   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,708
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

Sherry....
This is the critical point:


Code:
8:16:36.590 WARNING ocpn_app.cpp:959 Caught MainLoopException, continuing...

I'll try to reproduce it.
Related github issue:
https://github.com/OpenCPN/OpenCPN/issues/4124


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 27-08-2024, 14:27   #3
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,708
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

Sherry...
Can you direct me to a source for the "lots of little tiles" you are testing with.
Save me some time....


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 27-08-2024, 15:04   #4
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,708
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

Sherry...
Experimenting here some more.
Strange effect concerning longitude 180 (IDL).
It will occasionally freeze up to mouse moves if a large tile is shown, zoomed out widely, and you pan west with mouse until lon180 just appears on the right of screen.
Even more interesting: In this "frozen" state, he will respond to arrow keys. Use left arrow key to pan east (right), and after a few keystrokes the mouse becomes active again.
How does this track with your observations on hanging? Familiar at all, or something entirely different?
Dave
bdbcat is offline   Reply With Quote
Old 28-08-2024, 01:02   #5
Registered User

Join Date: Aug 2009
Location: Onboard, currently cruising in SE Asia
Boat: St. Francis 44 Mk II (Catamaran)
Posts: 259
Send a message via Skype™ to SoggyPaws
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

I was scrolling at a fairly low level of zoom between the Singapore area (around 01° 42.38' N / 102° 58.93' E) and approximately 07° 54.26' S / 115° 00.09' E (Bali area). So, not near the dateline.
Somebody on a forum asked a question about an anchorage and I was trying to get down to our anchor spot.
I have a CM93 chart folder and a bunch of mbtiles in several folders. This is pretty much the structure I've been using for years.
I can zip up my mbtiles folders and upload them somewhere, but it would be maybe several GB.
I have seen this once before in the last week or two, but didn't take the time to look at it, or wait to see if it would unhang itself.
If it happens again, I will see if I can gather more details.
SoggyPaws is offline   Reply With Quote
Old 28-08-2024, 01:19   #6
Registered User

Join Date: Aug 2009
Location: Onboard, currently cruising in SE Asia
Boat: St. Francis 44 Mk II (Catamaran)
Posts: 259
Send a message via Skype™ to SoggyPaws
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

I have another more serious and repeatable issue to report.
The old CM93 offsets again....

It's a full blown crash, I can get it to happen most of the same on both my W11 computer and W10 computer, both running 5.10.0.

Steps to reproduce:
1. You need to be in an area where there is more than one level or layer of the CM93 chart. For me, I was trying to adjust offsets around 02° 51.17' N 101° 16.23' E, and zoomed out to approx 1:36000 on the chart scale.
2. Hit F9, so the piano keys have pointed corners
3. Right click on the chart table and select CM93 Offset and the CM93 offset adjustment screen should pop up. (see screen shot).
4. In order to do an adjustment, you have to click into the line you wish to adjust.
Clicking into that line causes OpenCPN to crash, very consistently.
I can send you the crash dump if it would be of use.
Sherry
Attached Thumbnails
Click image for larger version

Name:	CM93 Offset.jpg
Views:	30
Size:	65.3 KB
ID:	293506  
SoggyPaws is offline   Reply With Quote
Old 28-08-2024, 07:46   #7
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,708
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

Sherry...
If convenient, it would be helpful to have access to your working tile set.
If you have the bandwidth and storage location, please....


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 28-08-2024, 20:07   #8
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,708
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

Sherry...
Found and corrected crash in cm93 offset dialog. Will be fixed in upcoming Service Release.


Thanks for the detailed description and pointers.
Dave
bdbcat is offline   Reply With Quote
Old 28-08-2024, 21:44   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,708
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

Sherry...
And if you would like to test this fix, here is a link:


https://dl.cloudsmith.io/public/davi...0604_setup.exe


Thanks
Dave
bdbcat is offline   Reply With Quote
Old 06-09-2024, 01:12   #10
Registered User

Join Date: Aug 2009
Location: Onboard, currently cruising in SE Asia
Boat: St. Francis 44 Mk II (Catamaran)
Posts: 259
Send a message via Skype™ to SoggyPaws
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

Quote:
Originally Posted by bdbcat View Post
Sherry...
If convenient, it would be helpful to have access to your working tile set.
If you have the bandwidth and storage location, please....
Thanks
Dave
Been working on this... coming soon.
Sherry
SoggyPaws is offline   Reply With Quote
Old 06-09-2024, 01:26   #11
Registered User

Join Date: Aug 2009
Location: Onboard, currently cruising in SE Asia
Boat: St. Francis 44 Mk II (Catamaran)
Posts: 259
Send a message via Skype™ to SoggyPaws
Re: OpenCPN 5.10 hangs if scrolling too fast with many mbtiles

Quote:
Originally Posted by bdbcat View Post
Sherry...
Found and corrected crash in cm93 offset dialog. Will be fixed in upcoming Service Release.
Thanks for the detailed description and pointers.
Dave
Thanks, that fixed it. Works great.
SoggyPaws 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
OpenCPN dialogue boxes not scrolling HeviiSail OpenCPN 11 13-07-2022 12:17
OpenCPN 5.6.2 hangs quite a lot for me mgrouch OpenCPN 10 20-05-2022 22:30
Made fast, or maybe too fast? partingclouds Multihull Sailboats 31 15-09-2021 10:09
Engine Hours: How Many Are Too Many? Velma Engines and Propulsion Systems 38 03-03-2021 22:51
OpenCPN 4.2 crashes and hangs up -- regressed to 3.2 Akka OpenCPN 7 14-05-2016 10:02

Advertise Here


All times are GMT -7. The time now is 02:19.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.