Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 29-05-2020, 14:34   #1
Registered User

Join Date: Aug 2017
Posts: 9
OpenCPN constantly crashing with pypilot plugin

Hi Folks!

I am using OpenCPN 5.0.0 9065270 with the PyPilot Plugin enabled.

The Setup:
OCPN on Windows 10 (Fresh and clean install, just in case)
NMEA0183 Connection to openplotter (also a new install since I suspected my old setup)
WiFI Connection to the OP for NMEA and AIS.

If I start OpenCPN with the PyPilot Plugin enabled and WiFI enabled, it crashes Right away and with now message. If I stop WiFi OR disable the Plugin OR delete the NMEA Connection, I am able to use it.. but more or less unusable .without NMEA

I really did a Fresh install before asking stupid Questions, just to make sure I didnt mess up the config.

So the Question is… how can I use PyPilot with OpenCPN… why does it crash on me while other guys use this Setup?

Best regards,
Andy
__________________

racer_99 is offline   Reply With Quote
Old 29-05-2020, 18:20   #2
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: charleston
Boat: bristol 27
Posts: 3,613
Re: OpenCPN constantly crashing with pypilot plugin

It's best you compile the plugin from source to get the newest version. Do you know the version of the plugin?

What platform OS are you using for opencpn? I can post a package for raspberry pi.
__________________

boat_alexandra is offline   Reply With Quote
Old 29-05-2020, 21:01   #3
Registered User

Join Date: Aug 2017
Posts: 9
Re: OpenCPN constantly crashing with pypilot plugin

Thanks for your reply.

I am using PyPilot 0.9.0 which seems to be the lates available package.

OS is Windows 10. I use to run Linux everywhere I can, but since I am on a Dell tablet device, Linux is no Option here regarding touchscreen and on screen keyboard.

This issue doesn't happen when I run it on the PI in Openplotter btw. but I don't have my Charts licensed for the PI.

Should I try to compile from scratch? Maybe with the beta? (which doesn't like the precompiled plugin now)

I am use to compile things on Linux but don't have any dev environment on this Windows tablet. Would MinGw do?

Thanks again!

Andy
racer_99 is offline   Reply With Quote
Old 30-05-2020, 23:34   #4
Registered User

Join Date: Aug 2017
Posts: 9
Re: OpenCPN constantly crashing with pypilot plugin

I observed another thing: If I have the plugin activated on OpenCPN startup, it crashes in a split second. If I enable the plugin AFTER OpenCPN has started up, it runs fine for an hour now. Only if I hit the "calibration" button, it crashes again.

I even changed the plugin order but by default pypilot is already the last plugin to be loaded.
racer_99 is offline   Reply With Quote
Old 31-05-2020, 05:13   #5
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: charleston
Boat: bristol 27
Posts: 3,613
Re: OpenCPN constantly crashing with pypilot plugin

I suggest compiling from source and running in the debugger if possible to get a backtrace.

i might have fixed the problem already, or by accident as the code has changed significantly for the next version. The way the libraries link is different on windows and this can explain some differences between these OS. This is because different plugins can link with duplicated symbols and in this case one plugin calls another plugin's version of the same library which could be a different version and if the symbols are mixed between versions can cause undefined behavior.
boat_alexandra is offline   Reply With Quote
Old 31-05-2020, 12:06   #6
Registered User

Join Date: Aug 2017
Posts: 9
Re: OpenCPN constantly crashing with pypilot plugin

Hey! Thanks for the reply.

Right now I set up the dev environment and try to compile.
Working my way down the OpenCPN Wiki.

Do I have to update the server side as well somehow? I run on Openplotter 2 and do the usual updates

Will report back if the issue occurs with the git version.

Best regards,
Andy
racer_99 is offline   Reply With Quote
Old 01-06-2020, 23:39   #7
Registered User

Join Date: Aug 2017
Posts: 9
Re: OpenCPN constantly crashing with pypilot plugin

Good morning!

I compiled the current OpenCPN version plus the PyPilot_pi from github.

No more unexpected crashes (except for sending route information for following GPS routes. I didn't dig into that though)

Another question, not worth a new thread maybe:

When I have the rudder centered and turn on AP, it turns the rudder starboard 1 or 2 pulses. That results in my ship turning at least 30 deg since the rudder is quiet sensitive.
So if I am on a straight track (lets say on a narrow channel) I can't just simply turn on AP to hold course. Is this normal?

I have very low gains to not over-steer..Maybe thats the wrong way to tune?
P: 0.0004
D: 0.016
Servo period 0.1s

And whats that slew speed good for?

Arg sorry, more questions. In any case, I drove 20nm downwind yesterday and it wasn't that bad even with not all values tuned

Best regards and thanks for a wonderful piece of software,
Andy
__________________

racer_99 is offline   Reply With Quote
Reply

Tags
enc, opencpn, plug

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
New OpenPlotter/PyPilot build FluffyLittleSki OpenCPN 1 26-03-2020 16:44
PyPilot rgleason OpenCPN 73 03-12-2019 13:38
Octopus auto helm with Pypilot control? motthediesel Marine Electronics 1 03-12-2019 12:54
oesnec plugin installation constantly hangs aguenther OpenCPN 4 22-09-2019 02:29
OpenCPN / PyPilot build scruff OpenCPN 1 16-08-2019 06:00

Advertise Here


All times are GMT -7. The time now is 11:49.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.