Quote:
Originally Posted by RhythmDoctor
Hi all,
I may have found a problem with v4.6.1. When I run it at my boat, it fails to close properly. A crosshatch pattern appears on the screen and it freezes. When I run it on the same Windows tablet at home, it closes fine. The key difference between the two locations is that at the boat, there is a stream of NMEA data coming in on COM3 (GPS) and COM5 (AIS). Here are the relevant lines from the log file...
|
Quote:
Originally Posted by transmitterdan
I run a lot of NMEA data into O when testing. I use the Ethernet to force a ton of messages (AIS, GPS, wind, etc.). I have never sent that. Try disabling any add-on plugins except the built-in ones. Maybe a plugin won't give up control.
|
I have spent time over the last few weeks replicating this issue in different environments.
First I tried removing all plugins, and it did initially resolve the problem - it ran and exited gracefully. But then I started adding in the plugins one by one, and at one point the problem happened again. After that, I once again removed all the plugins, and this time the problem would not go away - the program would freeze upon attempted exit even with all the plugins removed from the plugins folder. I restored the previous
opencpn.ini file, and the program still hung even without any plugins.
In all of these cases, if I stopped the NMEA stream (by turning off the external
GPS, or quitting interface
software that was directing the stream to a COM port or IP address), the freeze would stop and the program would immediately exit gracefully.
Since removing the plugins ultimately was not a fix, I proceeded to test on different
computers. Since it is a portable
installation on a microSD card, I can simply insert the card into different
computers (and
plug in a GPS) to run the test. Here is what I have learned.
- The issue (program freezes upon attempting to close) only happens on one of the three computers that I tried.
- It only happens with 4.6.1 (not with 4.0.0).
- It only happens when there is NMEA data coming in.
- It happens when data is received over a TCP stream, UDP multicast, Bluetooth virtual COM port, or USB port converted to virtual COM port via GPSgate free version.
- The computer where this problem happens is an Acer Switch 10 tablet running Windows 10 OS.
- If I insert the SD card into my laptop (Asus E403s running Windows 10 with USB Garmin handheld/GPSgate), it runs and exits gracefully.
- If I insert the SD card into my 8" tablet (Lenovo Miix2 8" running Windows 8.1 with internal GPS/GeolocationTCP), it runs and exits gracefully.
- If I run v4.0.0 on the Acer Switch 10, it runs and exits gracefully.
So this problem only happens in 4.6.1 with a very specific combination of
hardware, although on that tablet it always happens if there is a stream coming in by a variety of methods.
For now I have changed over to the 8" tablet on the boat, but I would much prefer to be using my 10" tablet. Please suggest what I should try next.