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 26-08-2019, 10:49   #1
Registered User

Join Date: Nov 2008
Location: Ottawa,Canada
Boat: Prout Snowgoose 37' Catamaran
Posts: 570
OpenCPN Freezing

I'm running OCPN on a Raspberry Pi (3B) and it works well when it is working. Our problem is that it randomly freezes. Initially it was freezing up when panning the chart using the mouse - changing the GPU memory seems to have fixed that problem. Now it freezes up for unknown reasons - not as a result of us changing anything - as we motor along.

The rest of the Pi software is working fine, just OCPN.

Can anyone provide any pointers as to what to look at to figure out this problem?

Rpi 3B
Openplotter upgraded to OCPN 5.0
either mbtiles or KAP charts in use
(both installed each in own chart group)
Faytech 10" touchscreen
USB wireless mouse
USB GPS
AIS via 232->USB. (although no boats around transmitting)



thanks,
Geoff.
geoffr is offline   Reply With Quote
Old 26-08-2019, 12:14   #2
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Freezing

YES !

I had exactly the same symptoms.

Here are the things I did to fix it (not sure what actually fixed it).

Update the RPi Kernel:
With the Rpi connected to the internet:
In a terminal window enter:
sudo rpi-update
(wait for download, answer yes,...)
sudo reboot

Update all the software on the RPi:
With the Rpi connected to the internet:
In a terminal window enter:
apt update
sudo apt upgrade
(answer yes,...)
sudo reboot

Add Memory limit to OpenCPN config:
edit /home/pi/.opencpn/opencpn.conf
add line "MEMCacheLimit=200" just after the config version (3rd line).
re-start OpenCPN.

In Old Raspberry Pi config i have the following settings:
This might seem odd, but if you use the new OpenGL driver the memory split is not used, so set it to minimum.
Advanced Options->Memory Split = 16
Advanced Options->GL Driver = G2 GL (Fake KMS) OpenGL desktop driver
reboot

In OpenCPN config:
Display-Advanced->Use accelerated graphics (ticked)
Display-Advanced->Use accelerated graphics->Options-> (nothing ticked)
restart OpenCPN

With all these changes I have a very stable and fast system.
I leave it on for weeks at a time without crashes.

Hope that works as well for you as it did for me.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 26-08-2019, 13:45   #3
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Freezing

One more thing, I had also updated OpenPlotter from 1.0.0 to 1.2.0Alpha using the built in update.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 31-08-2019, 05:14   #4
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Freezing

Did that fix your issues ?
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 31-08-2019, 16:18   #5
Registered User

Join Date: Nov 2008
Location: Ottawa,Canada
Boat: Prout Snowgoose 37' Catamaran
Posts: 570
Re: OpenCPN Freezing

JM,

Thanks - just got internet again, so am updating the Pi as I type this.... I'll let you know in a couple days when I have internet again if it worked.

I did run today with the changes which did not need internet and didn't have any problems, so may have fixed it.

Geoff
geoffr is offline   Reply With Quote
Old 03-09-2019, 16:41   #6
Registered User

Join Date: Nov 2008
Location: Ottawa,Canada
Boat: Prout Snowgoose 37' Catamaran
Posts: 570
Re: OpenCPN Freezing

JM,

Ran yesterday after the updates with lots of zooming in/out and panning and it did not freeze So it looks like that fixed it - thanks!

Will be 100% sure in about a week as we have a number more days of narrow challenging channels to navigate.

thanks,
Geoff.
geoffr is offline   Reply With Quote
Old 13-09-2019, 08:36   #7
Registered User

Join Date: Nov 2008
Location: Ottawa,Canada
Boat: Prout Snowgoose 37' Catamaran
Posts: 570
Re: OpenCPN Freezing

JM,

I've now had it freeze up again a couple of times. I have removed my MbTiles and turned off OpenGL and it's very stable.

I'm going to try to play with a bit more to see which is causing the problem as I need the MBtiles (support which needs OpenGL) in about a months time...
geoffr is offline   Reply With Quote
Old 13-09-2019, 08:54   #8
Registered User

Join Date: Nov 2008
Location: Ottawa,Canada
Boat: Prout Snowgoose 37' Catamaran
Posts: 570
Re: OpenCPN Freezing

JM,

Just played with OpenGL enabled and it was fine when I was using my KAP chart group, but froze up as soon as I used the MBtiles group. So I assume it's an MBtiles issue...

Are you using MBtiles?
geoffr is offline   Reply With Quote
Old 13-09-2019, 08:59   #9
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Freezing

Besides MBtiles, what charts are you using ?

I don't have MBtiles, and Lately, have been using mostly US Raster charts with OpenGL and the Beta OpenGL driver with Fake KMS.

I have not had any crashes in months. I leave the system on all the time.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 13-09-2019, 09:26   #10
Registered User

Join Date: Nov 2008
Location: Ottawa,Canada
Boat: Prout Snowgoose 37' Catamaran
Posts: 570
Re: OpenCPN Freezing

I am using KAP charts (created with GE2KAP) mainly, but would like to use mbtiles (created with SAS Planet).


The MBTiles work fine on my Win10 laptop on OCPN
geoffr is offline   Reply With Quote
Old 13-09-2019, 09:45   #11
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Freezing

As you say, probably something in MBtiles.

When my system was freezing up, I was still able to connect by SSH from another computer on the same network and look at the system log ($dmesg) to get an idea of what was happening.

Checking the OpenCPN log might also reveal an error message.

If you don't have a router aboard to create a network, you can use OpenPlotter on the RPi to create an access point.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 13-09-2019, 17:30   #12
Registered User

Join Date: Nov 2008
Location: Ottawa,Canada
Boat: Prout Snowgoose 37' Catamaran
Posts: 570
Re: OpenCPN Freezing

I have been testing using VNC and when it dies with MBtiles I loose my connection..

I'll check the logs...
geoffr is offline   Reply With Quote
Old 13-09-2019, 18:31   #13
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Freezing

SSH works on a lower level than VNC.

You need to enable SSH access in Rpi config and download a PuTTY like client for Win10.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Old 14-09-2019, 16:38   #14
Registered User

Join Date: Nov 2008
Location: Ottawa,Canada
Boat: Prout Snowgoose 37' Catamaran
Posts: 570
Re: OpenCPN Freezing

JM,

After a crash dmesg (via SSH) I see the following - any ideas?


[ 136.034532] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 136.034546] [drm] V3D: 252964kb BOs (843)
[ 136.034550] [drm] V3D shader: 440kb BOs (106)
[ 136.034553] [drm] dumb: 3088kb BOs (2)
[ 136.035130] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 136.035136] [drm] V3D: 252764kb BOs (837)
[ 136.035140] [drm] V3D shader: 440kb BOs (106)
[ 136.035143] [drm] dumb: 3088kb BOs (2)
[ 136.045796] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 136.045810] [drm] V3D: 252764kb BOs (837)
[ 136.045814] [drm] V3D shader: 440kb BOs (106)
[ 136.045818] [drm] dumb: 3088kb BOs (2)
[ 136.046214] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 136.046219] [drm] V3D: 252764kb BOs (837)
[ 136.046223] [drm] V3D shader: 440kb BOs (106)
[ 136.046226] [drm] dumb: 3088kb BOs (2)
[ 136.046234] vc4_v3d 3fc00000.v3d: Failed to allocate memory for tile binning: -12. You may need to enable CMA or give it more memory.
[ 136.046807] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 136.046812] [drm] V3D: 252764kb BOs (837)
[ 136.046816] [drm] V3D shader: 440kb BOs (106)
[ 136.046819] [drm] dumb: 3088kb BOs (2)
[ 136.047173] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 136.047177] [drm] V3D: 252760kb BOs (836)
[ 136.047180] [drm] V3D shader: 440kb BOs (106)
[ 136.047184] [drm] dumb: 3088kb BOs (2)
[ 136.047600] [drm:vc4_bo_create [vc4]] *ERROR* Failed to allocate from CMA:
[ 136.047604] [drm] V3D: 252760kb BOs (836)
[ 136.047608] [drm] V3D shader: 440kb BOs (106)
[ 136.047611] [drm] dumb: 3088kb BOs (2)
geoffr is offline   Reply With Quote
Old 14-09-2019, 16:55   #15
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN Freezing

I had similar error messages.

Could you have missed a step from my first post ?

Make sure that you have the latest kernel:
$uname -r
should show 4.19.66 or close to that.

Check and Make sure that you added Memory limit to OpenCPN config:
+++be sure to edit the OpenCPN config file with OpenCPN closed or OpenCPN will overwrite your changes when it is shutdown.
edit /home/pi/.opencpn/opencpn.conf
add line "MEMCacheLimit=200" just after the config version (3rd line).
re-start OpenCPN.
__________________
Cheers,
JM
nahannivatsea.blogspot.ca
NahanniV is offline   Reply With Quote
Reply

Tags
enc, opencpn


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 and Navico radar freezing on Intel 4000 video controllers Douwe Fokkema OpenCPN 14 16-10-2018 04:30
CruisAir System Freezing Up on Heat Cycle Big Moe Plumbing Systems and Fixtures 8 07-05-2015 06:04
OPenCPN keeps crashing/freezing Tudorsailor OpenCPN 12 08-07-2014 03:20
New Member Freezing in Florida gardnsailor Meets & Greets 16 31-03-2010 07:04

Advertise Here


All times are GMT -7. The time now is 21:03.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.