Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 31-01-2020, 04:45   #1
Registered User

Join Date: Dec 2019
Posts: 24
OpenCPN crash after building ocpn_draw_pi

Dears,


I have built OpenCPN from source and then I built ocpn_draw_pi from the following git link.
https://github.com/jongough/ocpn_dra...ases/tag/1.6.0


OpenCPN worked fine right after installing this plug in.


But when I modified the code inside ocpn_draw_pi.cpp

just commented the following line



//dlg_return = OCPNMessageBox_PlugIn( m_parent_window, _("Use nearby Point?"),
_("OCPN Draw Point Create"),
(long) wxYES_NO | wxCANCEL | wxYES_DEFAULT );




Built it and installed. Then OpenCPN crashes with Segmentation fault (core dumped) error.


I removed the corresponding .so file from local/lib/opencpn , then OpenCPN works fine.


But when I removed the comment in ocpn_draw and built again or clone new copy of plugin , OpenCPN crashes every time,


Now I can not work with ocpn_draw,



But I do work with other pluins such as objSearch.
I could modify the code and see the changes in OpenCPN.



Anyone have solution to this problem.
priyanka is offline   Reply With Quote
Old 31-01-2020, 06:36   #2
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenCPN crah after building ocpn_draw_pi

Quote:
I have built OpenCPN from source
Which source is that? The source for OpenCPN V5, the github master or something else?
cagney is offline   Reply With Quote
Old 31-01-2020, 08:09   #3
Registered User

Join Date: Dec 2019
Posts: 24
Re: OpenCPN crah after building ocpn_draw_pi

I built it from this link, (OpenCPN 5.0.522_



https://github.com/OpenCPN/OpenCPN
priyanka is offline   Reply With Quote
Old 31-01-2020, 09:23   #4
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: OpenCPN crah after building ocpn_draw_pi

That is the developing, unstable branch.
What you experienced is not unexpected.
As been said in many places....don't expect any support regarding code that is changing daily.

Check this thread http://www.cruisersforum.com/forums/...ew-227965.html

Some discussion about the development here https://github.com/OpenCPN/OpenCPN/issues

The source code for OpenCPN v5 is here https://github.com/OpenCPN/OpenCPN/releases/tag/v5.0.0
cagney is offline   Reply With Quote
Old 01-02-2020, 04:41   #5
Registered User

Join Date: Dec 2019
Posts: 24
Re: OpenCPN crash after building ocpn_draw_pi

Thank you for the information.

May I know which is the released source code for ocpn_draw.
I have used https://github.com/jongough/ocpn_draw_pi/releases to clone.
priyanka is offline   Reply With Quote
Old 07-02-2020, 00:50   #6
Registered User

Join Date: Dec 2019
Posts: 24
Re: OpenCPN crash after building ocpn_draw_pi

Hi,


Now its working. I think the problem might be with the OpenCPN version.


I installed OpenCPN 5.0.0 and now it perfectly works
priyanka is offline   Reply With Quote
Old 09-02-2020, 19:20   #7
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: OpenCPN crash after building ocpn_draw_pi

If you want to change OD and used the latest version of OCPN you will need to use the latest version of OD, currently 1.6.30. There are changes to the way that OCPN works, particularly in finding data directories for plugins and initialisation, that may make any 'old' plugin not work. If you are using the released, 'production', version of OCPN then OD >=1.6 should work OK.


There is considerable development going on with the way plugins are installed and how they interact with OCPN that makes the non-production branch potentially unstable.
jongough is offline   Reply With Quote
Old 13-02-2020, 04:30   #8
Registered User

Join Date: Dec 2019
Posts: 24
Re: OpenCPN crash after building ocpn_draw_pi

Hi,


I got the same problem again.
The error is
Segmentation fault (core dumped),





I had done modification before on Ocpn_draw Plugin, it was working well.


Today I made some changes in the header files.

Then it made OpeCPN crash again.


I tried building both OpenCPN and Ocpn_draw again, still it crashes again.


I have used the following links


https://github.com/jongough/ocpn_dra...ases/tag/1.6.0
https://github.com/OpenCPN/OpenCPN/releases/tag/v5.0.0
priyanka is offline   Reply With Quote
Old 13-02-2020, 07:01   #9
Registered User

Join Date: Dec 2019
Posts: 24
Re: OpenCPN crash after building ocpn_draw_pi

Hi


Here I am putting the link of my OpenCPN log file, Please take a look


https://docs.google.com/document/d/1...it?usp=sharing
priyanka is offline   Reply With Quote
Old 13-02-2020, 12:06   #10
Registered User
 
transmitterdan's Avatar

Join Date: Oct 2011
Boat: Valiant 42
Posts: 6,008
Re: OpenCPN crash after building ocpn_draw_pi

Quote:
Originally Posted by priyanka View Post
Hi


Here I am putting the link of my OpenCPN log file, Please take a look


https://docs.google.com/document/d/1...it?usp=sharing
Use gdb to make a backtrace. Nothing useful in the log. It crashes right after startup.
transmitterdan is offline   Reply With Quote
Old 13-02-2020, 12:19   #11
Registered User

Join Date: May 2013
Location: NSW, Australia
Boat: Richter 42
Posts: 1,077
Re: OpenCPN crash after building ocpn_draw_pi

If you want to make changes or just compile your own version of OD you should be using tag 1.6.30 as the base. This version does work with both 5.0.0 and 5.0.522 of OCPN.



The OCPN API changed recently due to changes being made to the plugin installer and some of these are not backward compatible. When the compatability issues hit OCPN crashes with no information unless you are using a debugger and can see the statements where the issue is before the crash occurs.
jongough is offline   Reply With Quote
Old 14-02-2020, 02:19   #12
Registered User

Join Date: Dec 2019
Posts: 24
Re: OpenCPN crash after building ocpn_draw_pi

Hi I changed the OD version to 1.6.30,


And now its working good.


Thank you all.
priyanka is offline   Reply With Quote
Reply

Tags
enc, opencpn


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
ocpn_draw_pi now available jongough OpenCPN 43 17-04-2016 01:56
Wood That Won't Warp For Building Entire Kitchen Counter, and Advice On Building Hatc albergsailor Monohull Sailboats 30 25-09-2012 09:15
Building OpenCPN in Visual C++ 2008 Express - Errors steve314 OpenCPN 8 02-06-2011 13:50
Building OpenCPN on a MacBook Pro NickA OpenCPN 55 23-09-2010 11:39
Building OpenCPN on Meego sailias OpenCPN 0 17-07-2010 14:02

Advertise Here


All times are GMT -7. The time now is 00:44.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.