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-2023, 04:57   #1
Registered User
 
Recy's Avatar

Join Date: Apr 2015
Location: Stockholm, Sweden
Boat: Sun Odyssey 45.2
Posts: 150
OpenGL suddenly missing.

I use Ocpn 5.8.4 with Open plotter on a RPI 4 and it has worked for a long time but now the OpenGL is gone. The square where it should be activated is grayed out and it´s impossible to activate it again. Any ideas how I get it back?
Recy is offline   Reply With Quote
Old 26-08-2023, 18:58   #2
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
Re: OpenGL suddenly missing.

Open the configuration file opencpn.ini
and edit the lines
OpenGL=1
DisableOpenGL=0

The problem with OpenGL has been getting worse lately
Baikal is offline   Reply With Quote
Old 27-08-2023, 04:13   #3
Registered User

Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 547
Re: OpenGL suddenly missing.

I have the same problem with my old Windows 10 Dell laptop. Setting OpenGL=1 and DisableOpenGL=0 doesn't work with 5.8.4.

This is an extract from 5.6.2 log file:

18:23:48.525 MESSAGE glChartCanvas.cpp:1246 OpenGL-> Renderer String: Intel 965/963 Graphics Media Accelerator
18:23:48.525 MESSAGE glChartCanvas.cpp:1255 OpenGL-> Version reported: 2.0.0 - Build 8.14.10.1930
18:23:48.526 MESSAGE glChartCanvas.cpp:1267 OpenGL-> Detected early Intel renderer, disabling some GL features
18:23:48.526 MESSAGE glChartCanvas.cpp:1311 OpenGL-> Detected Intel renderer, disabling stencil buffer
18:23:48.526 MESSAGE glChartCanvas.cpp:1356 OpenGL-> Texture rectangle format: de1
18:23:48.526 MESSAGE glChartCanvas.cpp:1396 OpenGL-> DISABLING VBO for Intel test.
18:23:48.526 MESSAGE glChartCanvas.cpp:1402 OpenGL-> Vertexbuffer Objects unavailable
18:23:48.526 MESSAGE glChartCanvas.cpp:1486 OpenGL-> Framebuffer Objects unavailable
18:23:48.526 MESSAGE glChartCanvas.cpp:1491 OpenGL-> Using Depth buffer clipping
18:23:48.526 MESSAGE glChartCanvas.cpp:1648 OpenGL-> Not Using compression
18:23:48.526 MESSAGE glChartCanvas.cpp:1505 OpenGL-> Minimum cartographic line width: 1.0
18:23:48.526 MESSAGE glChartCanvas.cpp:1508 OpenGL-> Minimum symbol line width: 1.0
18:23:49.220 MESSAGE glChartCanvas.cpp:732 BuildFBO 3

The 5.8.4 log has essentially the same info but also has an OpenGL test:

12:48:01.714 MESSAGE OCPNPlatform.cpp:823 Starting OpenGL test...
12:48:01.960 MESSAGE OCPNPlatform.cpp:760 GLCaps Probe: OpenGL-> GLSL Version reported: 1.10 - Intel Build 8.14.10.1930
OpenGL disabled due to insufficient OpenGL capabilities
12:48:01.960 MESSAGE OCPNPlatform.cpp:829 OpenGL test complete.
12:48:01.960 MESSAGE OCPNPlatform.cpp:831 BuildGLCaps fails.

So 5.8.4 disables OpenGL on my laptop while 5.6.2 does not. Clearly this is fatal for running OpenCPN on this machine.
I can re-install 5.6.2 but I need access to compatible plug-ins as the previous ones were deleted by 5.8.4. So can I please have a link to where I can download/install these plug-ins?
hoolie is offline   Reply With Quote
Old 27-08-2023, 05:10   #4
Registered User

Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 547
Re: OpenGL suddenly missing.

OK - I think I have been overly negative here. I have now restored the missing charts I blamed for lack of OpenGL and the system appears to be generally working OK with OpenGL disabled. I guess some of the plugins won't work but I can live with that ... ...
hoolie is offline   Reply With Quote
Old 27-08-2023, 06:03   #5
Registered User

Join Date: Feb 2011
Posts: 1,108
Re: OpenGL suddenly missing.

Open.ini file and change OpenGL=0 to 1 and DisableOpenGL= 1 to 0. Things work find after.
P_Dub is offline   Reply With Quote
Old 27-08-2023, 06:22   #6
Registered User

Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 547
Re: OpenGL suddenly missing.

As posted above, that procedure does not work on 5.8.4 when the device fails the OpenGL test. OpenGL will not run after failing the test even if you edit the config file.
hoolie is offline   Reply With Quote
Old 27-08-2023, 10:06   #7
Registered User
 
Recy's Avatar

Join Date: Apr 2015
Location: Stockholm, Sweden
Boat: Sun Odyssey 45.2
Posts: 150
Re: OpenGL suddenly missing.

"Open the configuration file opencpn.ini
and edit the lines
OpenGL=1
DisableOpenGL=0"


It doesn't help to do this, OpenGL is still disabled when Ocpn starts and the changes in the config file has been reset.
It has worked before, I noticed it when radar suddenly stopped working.
Recy is offline   Reply With Quote
Old 27-08-2023, 10:47   #8
Registered User

Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 547
Re: OpenGL suddenly missing.

Did you update to version 5.8.4? If so, read my earlier posts on this thread about O doing an OpenGL test on start up. You can check your log file to see if this is your problem.
hoolie is offline   Reply With Quote
Old 27-08-2023, 11:39   #9
Registered User
 
Recy's Avatar

Join Date: Apr 2015
Location: Stockholm, Sweden
Boat: Sun Odyssey 45.2
Posts: 150
Re: OpenGL suddenly missing.

"Did you update to version 5.8.4? If so, read my earlier posts on this thread about O doing an OpenGL test on start up. You can check your log file to see if this is your problem."

515:44:36.738 MESSAGE OCPNPlatform.cpp:823 Starting OpenGL test...
15:44:37.757 MESSAGE OCPNPlatform.cpp:829 OpenGL test complete.
15:44:37.757 MESSAGE OCPNPlatform.cpp:850 OpenGL determined CAPABLE.
1:44:37.804 MESSAGE chcanv.cpp:990 Creating glChartCanvas
15:44:37.920 MESSAGE chcanv.cpp:2398 Metrics: m_display_size_mm: 508 g_Platform->getDisplaySize(): 1920:1080
15:44:37.920 MESSAGE chcanv.cpp:2403 wxDisplaySize(): 1920 1080
15:44:37.923 MESSAGE TCDataSource.cpp:50 Loading Tide/Current data source: /usr/share/opencpn/tcdata/harmonics-dwf-20210110-free.tcd
15:44:38.247 MESSAGE TCDataSource.cpp:50 Loading Tide/Current data source: /usr/share/opencpn/tcdata/HARMONICS_NO_US.IDX
15:44:38.432 MESSAGE chartsymbols.cpp:708 ChartSymbols loaded from /usr/share/opencpn/s57data/chartsymbols.xml
15:44:38.521 MESSAGE ocpn_frame.cpp:8535 Using s57data in /usr/share/opencpn/s57data
15:44:38.917 MESSAGE glChartCanvas.cpp:1038 OpenGL-> Renderer String: V3D 4.2
15:44:38.918 MESSAGE glChartCanvas.cpp:1047 OpenGL-> Version reported: 2.1 Mesa 20.3.5
15:44:38.918 MESSAGE glChartCanvas.cpp:1054 OpenGL-> GLSL Version reported: 1.20
15:44:38.931 MESSAGE glChartCanvas.cpp:1137 OpenGL-> Texture rectangle format: de1
15:44:38.931 MESSAGE glChartCanvas.cpp:1152 OpenGL-> Using Vertexbuffer Objects
15:44:38.967 MESSAGE glChartCanvas.cpp:1009 OpenGL-> Framebuffer OK, size = 1918
15:44:38.997 MESSAGE glChartCanvas.cpp:1220 OpenGL-> Using Framebuffer Objects
15:44:38.997 MESSAGE glChartCanvas.cpp:1223 OpenGL-> Using FBO Stencil buffer
15:44:38.997 MESSAGE glChartCanvas.cpp:1230 OpenGL-> Using Stencil buffer clipping
15:44:38.997 MESSAGE glChartCanvas.cpp:1235 OpenGL-> Using Scissor Clipping
15:44:38.997 MESSAGE glChartCanvas.cpp:1342 OpenGL-> Using s3tc dxt1 compression
15:44:38.998 MESSAGE glChartCanvas.cpp:1371 OpenGL-> Compressed tile size: 128kb (8:1)
15:44:38.998 MESSAGE glChartCanvas.cpp:1246 OpenGL-> Minimum cartographic line width: 1.0
15:44:38.998 MESSAGE glChartCanvas.cpp:1249 OpenGL-> Minimum symbol line width: 1.0

No error message So I guess it looks ok.
Yes I am using 5.8.4 but it has been working for a while before it now suddenly failed.
Recy is offline   Reply With Quote
Old 27-08-2023, 12:03   #10
Registered User

Join Date: Jan 2011
Location: France/UK
Boat: Gib'Sea 402
Posts: 547
Re: OpenGL suddenly missing.

Well, it seems unlike mine your system passed the OpenGL test and set up all the OGL capabilities. Have you tried disabling all the plugins then doing a restart after enabling OGL in the config file?
hoolie is offline   Reply With Quote
Old 27-08-2023, 12:18   #11
Registered User
 
Recy's Avatar

Join Date: Apr 2015
Location: Stockholm, Sweden
Boat: Sun Odyssey 45.2
Posts: 150
Re: OpenGL suddenly missing.

I just did that but no change.
Recy is offline   Reply With Quote
Old 27-08-2023, 19:50   #12
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
Re: OpenGL suddenly missing.

Disabling OpenGL is observed on a machine with more modern Intel Arc graphics
On discrete nvidia GeForce 1070ti with latest drivers
CPN often crashes when switching from mbtiles map group to ENC S-57. When panning, some of the depth markers disappear. Periodically disabled and blocked by OGL.
Dave, maybe make the OGL test simpler and less demanding, and lock OGL only in safe mode?
Baikal is offline   Reply With Quote
Old 07-09-2023, 20:52   #13
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 581
Re: OpenGL suddenly missing.

and here again, at the most inopportune moment, CPN crashed and blocked OpenGL and disabled all plugins.
It is not possible to use version 5.8.4 normally!
I'm crying!
Baikal is offline   Reply With Quote
Old 16-09-2023, 10:29   #14
Registered User

Join Date: Jun 2022
Location: Cantabria
Boat: Jeanneau - Merry Fisher 925
Posts: 428
Re: OpenGL suddenly missing.

Same happened to me some minutes ago.

Windows 11 Pro ARM64 ver 22H2 22621.2283
OCPN 5.8.4-0+1637c28
Watchdog plugin ver 2.4.73.0
VDR plugin ver 1.3.28.0

computer on board, started OCPN and it took some time to start and not completely, so, I killed the program and start it again, surprise because OpenGL was not loaded and could not be activated.

I've tried what is written above but no way to get active OpenGL in OCPN.

now I'm uninstalling OpenGL from computer and installed again, also o-chart plugin.

check in log file and there is no reference to any glChartCanvas.cpp: I can find only in the log.log file with last entrance today.

at last could be solved seen in log file that there were two entries of DisableOpenGL=
the first one was mine with 0
and the other one created by the program itself, maybe for the problem raised above as 1
I removed the DisableOpenGL=1
and OCPN started with OpenGL activated and not greyed in the Graphic tab
__________________
Corsair

Roses don't bloom on the sailor's grave
Corsair63 is online now   Reply With Quote
Reply


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
openGL Slackwater OpenCPN 1 21-07-2012 14:42
OCPN 3 & OpenGL RobbieW OpenCPN 3 11-06-2012 04:59
OpenGL for OpenCPN bdbcat OpenCPN 72 15-11-2011 00:17
opengl Support seandepagnier OpenCPN 2 17-07-2011 21:17
Wanted For Free: OpenCPN + WIN CE/OpenGL-ES CaptGreg Classifieds Archive 1 06-09-2010 19:46

Advertise Here


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


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.