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 23-08-2018, 14:10   #1
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Display errors OpenCPN RPI

Sometimes I get strange errors on my Raspberry Pi with the screen display.

Chart movement slows down and black squares on the Debian taskbar and the OpenCPN screen locks-up.

Restarting OpenCPN then these errors are stil present. Also after restarting the system the errors are the same.

Most of the time the errors appear with zooming in with the Dutch ENC charts.

The only solution is to wipe the opencpn.conf and restart the settings. Then the errors are gone and all worked as before.

Something must be changed in the config file.

Attached is the config file present with the screen errors.

Regards,


Bram

file is too large
verkerkbr is offline   Reply With Quote
Old 23-08-2018, 18:03   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,671
Re: Display errors OpenCPN RPI

Bram...
You can safely delete the logfile, and start OCPN over. A new shorter logfile will be produced with just the latest info logged.

2 logfiles, one with error, one without, are most useful.

Dave
bdbcat is online now   Reply With Quote
Old 24-08-2018, 01:01   #3
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Re: Display errors OpenCPN RPI

Quote:
Originally Posted by bdbcat View Post
Bram...
You can safely delete the logfile, and start OCPN over. A new shorter logfile will be produced with just the latest info logged.

2 logfiles, one with error, one without, are most useful.

Dave

Good morning Dave,

I will make the two logfiles and also compair the working opencpn.conf with the changed one. A first quick look at these config files I see a lot of changes.

I only have this problem on my home RPI and not on the boat RPI with another screen.

Both running the same software.

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 27-08-2018, 13:57   #4
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Re: Display errors OpenCPN RPI

Here 2 configs. One with latest kernel 4.14.66 and one with 4.14.62.

This problem is with the recent kernels;
Attached Thumbnails
Click image for larger version

Name:	2018-08-27-213608_1680x1050_scrot.jpg
Views:	98
Size:	405.8 KB
ID:	176238  
Attached Files
File Type: pdf opencpn.log.pdf (25.5 KB, 33 views)
File Type: pdf opencpn.log2.pdf (45.8 KB, 41 views)
verkerkbr is offline   Reply With Quote
Old 27-08-2018, 17:05   #5
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,671
Re: Display errors OpenCPN RPI

Bram...

Confused.
Are we looking for errors in the chart drawing, or the settings dialog? Or both?

Dave
bdbcat is online now   Reply With Quote
Old 28-08-2018, 00:48   #6
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Re: Display errors OpenCPN RPI

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

Confused.
Are we looking for errors in the chart drawing, or the settings dialog? Or both?

Dave

Good Morning Dave,

The black squares are not only in the setup screen, there are display errors in the charts (grey area's) and errors in the taskbar. Sometimes black parts of the Raspian taskbar can be seen in other places.

Screen movements slow down and finally freezes.

A simple remedy is to remove the opencpn.conf and do the settings again. Then all works quick again untill the screen corruption which appears after some time.

I can copy the opencpn.confs, to see if there are the errors generated.

If I let the RPI simply standing for a long time with O open and without use. Then the screen is also locked up.

Is it a kind of memory leak ?

Raspian appears to work normal without the use of OpenCPN.

All files are the latest updates and the latest kernel versions.

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 28-08-2018, 09:19   #7
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,671
Re: Display errors OpenCPN RPI

Bram...

Lets start here:

"If I let the RPI simply standing for a long time with O open and without use. Then the screen is also locked up."

Is the GPS connected running?

Can you run the CLI program "top", in another window, and monitor the OpenCPN memory use and processor load?

Dave
bdbcat is online now   Reply With Quote
Old 28-08-2018, 12:31   #8
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Re: Display errors OpenCPN RPI

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

Lets start here:

"If I let the RPI simply standing for a long time with O open and without use. Then the screen is also locked up."

Is the GPS connected running?

Can you run the CLI program "top", in another window, and monitor the OpenCPN memory use and processor load?

Dave

Hi Dave,


did some trials and used the Top display. It now appaers that the windows size has some influence. If I use a small window with OpenCPN running together with the Top display. The systeem stays working. If I make a large window with OpenCPN then the system locks up after some time. And after a restart the problem is still present.

But if I delete the opencpn.conf then the problem is solved.

The problem does not appear on my boat system which has a small 10" screen.

I will send you the screen dumps later from my RPI.

Does a large window with O use more memory then a small one ?

Or is it a problem in the latest kernels versions ?

Regards,


Bram
Attached Thumbnails
Click image for larger version

Name:	2018-08-28-203007_1680x1050_scrot.jpg
Views:	86
Size:	427.7 KB
ID:	176335  
verkerkbr is offline   Reply With Quote
Old 28-08-2018, 13:46   #9
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,451
Re: Display errors OpenCPN RPI

maybe the driver has bug with fbo that with textures above a certain size.

You are using the vc4 driver? With the hardware acceleration off it is ok or?
seandepagnier is offline   Reply With Quote
Old 28-08-2018, 14:07   #10
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Re: Display errors OpenCPN RPI

Quote:
Originally Posted by boat_alexandra View Post
maybe the driver has bug with fbo that with textures above a certain size.

You are using the vc4 driver? With the hardware acceleration off it is ok or?

Hi BA,

I'am using the VC4 driver and in OpenCPN the OpenGL set to on. Worked well before.

And now having left the standard Raspian (OpenPlotter) open for some time, I now see that also this screen is "frozen" without the OpenCPN window.

The conclusion must drawn, it has to do with the latest kernel updates. I'am using the kernel 4.14.62 and 4.14.66 and the latest updated files.

Regards,


Bram
verkerkbr is offline   Reply With Quote
Old 28-08-2018, 17:54   #11
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,671
Re: Display errors OpenCPN RPI

Bram...

We should try the large screen without the VC4 driver, OpenGL OFF, if possible.
We know from earlier bug reports that the VC4 driver is fragile under high memory pressure....

Dave
bdbcat is online now   Reply With Quote
Old 30-08-2018, 02:27   #12
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Re: Display errors OpenCPN RPI

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

We should try the large screen without the VC4 driver, OpenGL OFF, if possible.
We know from earlier bug reports that the VC4 driver is fragile under high memory pressure....

Dave
Good Morning Dave,

after trying several settings I probably have found the error.

Raspian Stretch updated with the latest kernel 4.14.67.

But stil the same problem. Raspian (Stretch) finds the right screen format of my monitor.

However OpenCPN does seem to find the screen value in the "auto" setting.

After setting the vertical length of the screen, all problems seem to be solved.

OpenCPN is running now with the VC4 driver on and OpenGL in O also on.

Until now no lockups or screen problems.


Regards,




Bram
verkerkbr is offline   Reply With Quote
Old 30-08-2018, 04:29   #13
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Re: Display errors OpenCPN RPI

Quote:
Originally Posted by verkerkbr View Post
Good Morning Dave,

after trying several settings I probably have found the error.

Raspian Stretch updated with the latest kernel 4.14.67.

But stil the same problem. Raspian (Stretch) finds the right screen format of my monitor.

However OpenCPN does seem to find the screen value in the "auto" setting.

After setting the vertical length of the screen, all problems seem to be solved.

OpenCPN is running now with the VC4 driver on and OpenGL in O also on.

Until now no lockups or screen problems.


Regards,




Bram

OpenCPN on the RPI 3B+ is running now for several hours with OpenCPN and chart open. No more locks ups or screen errors.


VC4 driver on and in OpenCPN also OpenGL to on. Fast screen movements.



Something seems to go wrong with the auto screen detection in OpenCPN.



Screen is an DVI with a conversion plug DVI > HDMI.
verkerkbr is offline   Reply With Quote
Old 30-08-2018, 05:00   #14
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,159
Re: Display errors OpenCPN RPI

Quote:
Originally Posted by verkerkbr View Post
Good Morning Dave,

after trying several settings I probably have found the error.

Raspian Stretch updated with the latest kernel 4.14.67.

But stil the same problem. Raspian (Stretch) finds the right screen format of my monitor.

However OpenCPN does seem to find the screen value in the "auto" setting.

After setting the vertical length of the screen, all problems seem to be solved.

OpenCPN is running now with the VC4 driver on and OpenGL in O also on.

Until now no lockups or screen problems.


Regards,




Bram

OpenCPN on the RPI 3B+ running now for several hours with O open.


No more locks ups or screen errors.
verkerkbr is offline   Reply With Quote
Old 30-08-2018, 12:09   #15
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,671
Re: Display errors OpenCPN RPI

Bram...

On the screen physical size:
We can only use what the underlying window manager/OS tells us, right or wrong.

That is why we have the manual setting mode available...

Dave
bdbcat is online now   Reply With Quote
Reply

Tags
opencpn, enc

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
Errors with compile on RPi with Tiny Core Linux Twist OpenCPN 7 22-06-2018 12:13
OpenCPN problem on RPi with Raspbian 9.1 janth OpenCPN 16 15-10-2017 09:30
World Chart missing/opencpn/rPi dugsmith98 OpenCPN 1 01-03-2017 18:05
Rpi OpenCPN System - recommendations geoffr OpenCPN 17 01-02-2017 11:45
Server Errors on the Server Errors thread Tom Stormcrowe Forum Tech Support & Site Help 11 24-08-2012 07:51

Advertise Here


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


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.