I'm experiencing a weird problem, that might be difficult to recreate.
I have made a program written in Python that takes some sensor
data (GPS, Radar
, etc.) either directly from the sensors or from recorded text files. The program runs some processing and then sends the processed information to OpenCPN
via UDP for visualization. This has worked very well for a while, but recently OpenCPN
has started crashing when receiving certain NMEA
If I send the following 3 NMEA
messages to OpenCPN, it freezes and I have to restart it:
So the program just sends this out when no info is available from the sensors. As seen it just sets the own ship to coordinates (0,0) with a heading of 90 degrees.
Here comes the even weirder part:
If I only sends one of those messages there are no problems.
If I send both messages, but change the heading in the HDT message to 89.9 degrees or 90.1 degrees, there are no problems.
It is only when I send both messages and keep the heading at 90 degrees that OpenCPN crashes.
Has anyone experienced something similar or maybe know what could cause this? I'm using OpenCPN 5.2.4.