douwefokkema / AutoTrackRaymarine_pi

Follow a route on OpenCPN using a Raymarine Evolution pilot
GNU General Public License v3.0
14 stars 6 forks source link

Some Log errors #9

Closed rgleason closed 1 year ago

rgleason commented 2 years ago
21:37:31.764    INFO pluginmanager.cpp:2540 PlugInManager:  C:\Users\fcgle\AppData\Local\opencpn\plugins\AutoTrackRaymarine_pi.dll
21:37:31.764    INFO pluginmanager.cpp:2541         Plugin common name: AutoTrackRaymarine
21:37:31.764    INFO pluginmanager.cpp:2543         API Version detected: 117
21:37:31.764    INFO pluginmanager.cpp:2544         PlugIn Version detected: 1.1.1
21:37:31.780 MESSAGE SerialPort.cpp:67 AutoTrackRaymarine_pi: pcCommPort2=\\.\
21:37:31.780 MESSAGE SerialPort.cpp:155 AutoTrackRaymarine_pi Error com port
21:37:31.780 MESSAGE SerialPort.cpp:87 AutoTrackRaymarine_pi Error making serial port for NGT-1
21:37:31.780 MESSAGE SerialPort.cpp:96 AutoTrackRaymarine_pi: error getting timeouts
21:37:31.780 MESSAGE SerialPort.cpp:105 AutoTrackRaymarine_pi error setting timeouts
21:37:31.780 MESSAGE SerialPort.cpp:108 AutoTrackRaymarine_pi Device is a serial port, send the startup sequence.
21:37:31.905 MESSAGE NGT1Read.cpp:59 AutoTrackRaymarine_pi: NGT1Input thread created, prio= 50
21:37:31.968 MESSAGE NGT1Read.cpp:66 AutoTrackRaymarine_pi: NGTInput1 thread starting
21:37:31.968 MESSAGE NGT1Read.cpp:95 AutoTrackRaymarine_pi: Unable to read from NGT1 device
21:37:31.968 MESSAGE NGT1Read.cpp:76 AutoTrackRaymarine_pi: NGT1Read thread stopping
21:37:31.968 MESSAGE pluginmanager.cpp:1168 Checking plugin candidate: C:\Users\fcgle\AppData\Local\opencpn\plugins\calculator_pi.dll

21:37:32.031 MESSAGE OCPNPlatform.cpp:1101 ERROR Loading translation catalog for:  opencpn-AutoTrackRaymarine_pi
21:37:32.046 MESSAGE OCPNPlatform.cpp:1101 ERROR Loading translation catalog for:  opencpn-vdr_pi
21:37:32.062 MESSAGE OCPNPlatform.cpp:1101 ERROR Loading translation catalog for:  opencpn-weatherfax_pi
21:37:32.062 MESSAGE OCPNPlatform.cpp:1111 Loading catalog for opencpn core.
21:37:32.062 MESSAGE OCPNPlatform.cpp:952 Getting DefaultSystemLocale...
rgleason commented 2 years ago

Some more log errors on startup. Seems to hang up Opencpn.

There are other plugin errors here too. Startup-errors-Windows.txt

douwefokkema commented 2 years ago

Rick, did you define a serial port in preferences? If so, is a NGT-1 connected to this port?

douwefokkema commented 2 years ago

I am on the boat now and have the NGT1 here. I will do some further testing coming days. Better pause the new release.

douwefokkema commented 2 years ago

I tested this morning, sailed and tested the plugin. Working fine. One issue, on my (slow) ships computer I get a crash in O when disabling the plugin (with NGT-1 connected) from the plugin manager. Closing down OpenCPN is fine however. This issue can not be reproduced on my faster dev system.

rgleason commented 2 years ago

Douwe, no I didnt define a port! and I dont have an artisense. I just tried it. I think we need to have some prompts just like that when the errors occur for new users, Along with a prompt that this pi is for raymarine evo!

rgleason commented 2 years ago

After these errors occur and the prompts come up, can the pi be unenabled to prevent the crash?

rgleason commented 2 years ago

Douwe off sailing, did not rebuild it yet, will do in several days.

douwefokkema commented 2 years ago

Good idea, I will do some decent messages for the "just try it". Actually the crash only occurs with a NGT-1 connected and only on slower systems. Working on it in between the sailing.

douwefokkema commented 2 years ago

Crash at deactivate is solved. Crash was in O in OcpnLog::DoLogRecord, illegal pointer to the file name. Caused by the plugin doing log output after de-activate. Receive thread took some time stopping. I pushed new version.

rgleason commented 1 year ago

Great. Closing. Ok?