Dear Reader of this post,
If you are reading this because your OpenCPN
will not close after it puts diagonal hatching over the chart canvas
and it just waits, there are suggestions ("workarounds") for getting it to close near the end of this post.
Windows Update installed the Windows 10 Creators Update on my notebook computer on June 15, 2017. Since that update, OpenCPN
fails to close (exit) if
OpenGL is enabled and one or more of the these are active:
GPS position sentences are being received from a serial port.
AIS sentences are being received from a network connection.
The VDR plugin is playing recorded GPS and AIS.
A Guard Zone is set in the Ocpn_Draw plugin.
There may be more cases than listed above that cause OpenCPN to fail to close.
This is reported in Flyspray #2256.
I have found this problem in OpenCPN release packages for Windows from 4.2.0 through 4.6.1 and in the current
(25 Jul 2017) Beta 4.6.2. OpenCPN 4.0.0 does not seem to have a problem with closing after Creators Update.
I have not seen any other reports of this problem with OpenCPN not closing. It might be related to my computer having a dual core
Windows System Information:
OS Name Microsoft Windows 10 Home
Version 10.0.15063 Build 15063
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name TOSHIBA
System Manufacturer TOSHIBA
System Model Satellite C55-A
System Type x64-based PC
System SKU PSCF6U
Processor Intel(R) Pentium(R) CPU 2020M @ 2.40GHz, 2400 Mhz, 2 Core(s), 2 Logical Processor(s)
BIOS Version/Date Insyde Corp. 1.20, 6/7/2013
SMBIOS Version 2.7
Embedded Controller Version 1.30
BIOS Mode UEFI
BaseBoard Manufacturer TOSHIBA
These are the usual signals that are made from the keyboard or pointing device that should cause OpenCPN to save settings and navigation
data and to close its window as it releases memory and other resources to Windows system:
(1) Click on X in top-right corner of the window.
(2) Click on the OpenCPN icon in the top-left corner of the window and select "x Close" from the drop down menu.
(3) Key Alt+F4.
(4) Key Ctrl+Q.
(5) Use the menu (key Alt if the menu is hidden) and select "Navigate" and "Exit OpenCPN".
When one of these signals to close is made by the operator, the chart canvas
and Chart Bar (piano) is diagonally hatched as usual, but the Tool Bar is not hatched. OpenCPN does not close. It just waits and waits and...
Here are some work-arounds that can be used to close or exit OpenCPN without loss of changes in settings (opencpn.ini) or tracks, routes, waypoints, etc. (navobj.xml). These can be tried after the operator has signaled the program to close as described above, and the chart canvas is diagonally hatched, but the program does not close.
(1) Use the Alt key to activate the menu. Wait one or two seconds. Key Alt again and OpenCPN should exit after saving settings and data. If it does not exit, try keying Alt and Alt with a little more or less time in between. This always works for me, and none of my settings or connections has to be restored.
(2) Since the Tool Bar is still active, select Options (wrench) > Display > Advanced and remove the checkmark from the "Use Accelerated Graphics (OpenGL)" and click "OK". OpenCPN should exit. You might want to enable "Use Accelerated Graphics" next time you run OpenCPN.
(3) Use Options > Connections and remove the checkmarks in the "Enable" column of the "Data Connections" box and click "OK". You will have to put the checkmarks back next time.
(4) If the GPS or AIS data feeds into the computer via USB cables
, unplug these from the computer. If a wireless network feed is used, switch to airplane mode to interrupt the feed. If an ethernet cable is used, unplug it. OpenCPN on my computer completes the close operation a few seconds after the GPS and AIS feed is interrupted. Don't forget to reconnect the cables
and to switch airplane mode off.
(5) If the VDR is playing back a recording, switch it off using the icon on the Tool Bar.
Don't use the Task Manager to stop OpenCPN with "End Task". That will cause OpenCPN setting changes, new tracks, routes, etc. to be discarded. Also, don't have Windows shut down the computer for the same reason.