Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-02-2016, 19:55   #1
Registered User

Join Date: Apr 2008
Posts: 1
OpenCPN 4.2.0 problems

Just installed OCPN Version 4.2.0 and associated plug-ins.
Stumbling blocks:
1. The ge2kap (V19) appears not to be seen by OpenCPN (error msg says upgrade to current version).
2. OCPN Program crashes on closing, error msg then says "Crash report delivery module has stopped working."
3. "Options" button is greyed out and cannot access.
I have been unable to find the recommended OCPN log file to gain further insight.
Gurus, can you help please?
__________________

__________________
ValGal is offline   Reply With Quote
Old 08-02-2016, 20:05   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN 4.2.0 problems

valgal...

First thing to do is manually remove the incompatible ge2kap PlugIn.

It is beginning to look like incompatible PlugIns are not benignly ignored as on O4, but are causing a hangup of the Options dialog initialization, at least.
And maybe more evilness....

Let us know how this goes, please.

Thanks
Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 09-02-2016, 04:15   #3
Registered User
 
Deva's Avatar

Join Date: May 2012
Location: Brasil
Boat: Cat Gypsy 30
Posts: 52
Re: OpenCPN 4.2.0 problems

Dave
same problem, after having uninstalled ge2kap OCPN ok.
Thanks Deva
__________________
Deva is offline   Reply With Quote
Old 09-02-2016, 19:44   #4
Marine Service Provider

Join Date: Oct 2012
Location: San Francisco Bay Area
Boat: Beneteau 43
Posts: 56
Re: OpenCPN 4.2.0 problems

I just did a git pull of the latest OpenCPN repo into my existing one (4.0.0 Build 2015-01-08) and launched compiling (as I have done many times before). The core program seems to compile OK, but when it switches to plugin compilation I get the error:

Code:
/home/mauro/OpenCPN/plugins/chartdldr_pi/src/chartdldr_pi.cpp:  In member function ‘virtual int chartdldr_pi::GetPlugInVersionMajor()’:
/home/mauro/OpenCPN/plugins/chartdldr_pi/src/chartdldr_pi.cpp:219:12:  error: ‘PLUGIN_VERSION_MAJOR’ was not declared in this scope
     return PLUGIN_VERSION_MAJOR;
what am I doing wrong this time?
__________________
coupdemistral is offline   Reply With Quote
Old 09-02-2016, 19:56   #5
Marine Service Provider

Join Date: Oct 2012
Location: San Francisco Bay Area
Boat: Beneteau 43
Posts: 56
Re: OpenCPN 4.2.0 problems

the squiddio_pi plugin crashes in 4.2.0 (at least in the Mac and Linux versions) when trying to view or download local waypoints. Here's the debug trace of the crash. Most of the other features work correctly

Code:
squiddio_pi Debug [C/C++ Application]    
    opencpn [5775] [cores: 1]    
        Thread [1] 5775 [core: 1] (Suspended : Signal : SIGSEGV:Segmentation fault)    
            wxString::MakeLower() at 0xb79527d0    
            wxString::Lower() const at 0xb7953549    
            RoutePoint::ReLoadIcon() at RoutePoint.cpp:299 0x82046da    
            RoutePoint::RoutePoint() at RoutePoint.cpp:217 0x820576e    
            AddSingleWaypoint() at pluginmanager.cpp:2,704 0x83002d1    
            squiddio_pi::ShowPOI() at squiddio_pi.cpp:537 0xb0db502f    
            squiddio_pi::RenderLayerContentsOnChart() at squiddio_pi.cpp:497 0xb0db52f4    
            squiddio_pi::OnContextMenuItemCallback() at squiddio_pi.cpp:630 0xb0db756a    
            CanvasMenuHandler::PopupMenuHandler() at canvasMenu.cpp:1,479 0x8383dbb    
            wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const at 0xb78fadf6    
            <...more frames...>    
        Thread [2] 5781 [core: 1] (Suspended : Container)    
        Thread [3] 5782 [core: 1] (Suspended : Container)    
        Thread [4] 5789 [core: 1] (Suspended : Container)    
        Thread [5] 5790 [core: 1] (Suspended : Container)    
        Thread [7] 5801 [core: 1] (Suspended : Container)    
    gdb
sorry but I am at a loss trying to figure this one out myself, and users are starting to report the problem. Any help is greatly appreciated.

sQuiddio support
__________________
coupdemistral is offline   Reply With Quote
Old 09-02-2016, 20:43   #6
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN 4.2.0 problems

coupdemistral....

re:
build error on chartdldr_pi...

There is a file name collision that results if you build over an old O4 source tree. You need to delete the file:

Code:
{opencpn}/include/version.h
Dave
__________________
bdbcat is offline   Reply With Quote
Old 09-02-2016, 22:18   #7
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN 4.2.0 problems

coupdemistral...

Squiddio is failing as though the m_IconName member variable of class PlugIn_Waypoint is corrupted.

There was a change in the definition of this class for O4.2, adding a field right before m_IconName. So if you are using ocpn_plugin.h from O4 Release, there would be improper VTable linkage.

So, please double check the ocpn_plugin.h file used to build the PlugIn. The class should look like this:

Code:
class DECL_EXP PlugIn_Waypoint
{
public:
    PlugIn_Waypoint();
    PlugIn_Waypoint(double lat, double lon,
                    const wxString& icon_ident, const wxString& wp_name,
                    const wxString& GUID = _T("") );
    ~PlugIn_Waypoint();

    double             m_lat;
    double             m_lon;

    wxString          m_GUID;

    wxString          m_MarkName;
    wxString          m_MarkDescription;
    wxDateTime        m_CreateTime;
    bool              m_IsVisible;

    wxString          m_IconName;

    Plugin_HyperlinkList *m_HyperlinkList;

};
note the new field m_IsVisible...

Dave
__________________
bdbcat is offline   Reply With Quote
Old 10-02-2016, 07:30   #8
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
Re: OpenCPN 4.2.0 problems

Quote:
coupdemistral...

Squiddio is failing as though the m_IconName member variable of class PlugIn_Waypoint is corrupted.

There was a change in the definition of this class for O4.2, adding a field right before m_IconName. So if you are using ocpn_plugin.h from O4 Release, there would be improper VTable linkage.

So, please double check the ocpn_plugin.h file used to build the PlugIn. The class should look like this:
Made the change to ocpn_plugin.h to try it and updated opencpn.lib to version 4.2.0
Its working now. Will upload to file thingie.
__________________
rgleason is offline   Reply With Quote
Old 10-02-2016, 07:33   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,884
Re: OpenCPN 4.2.0 problems

Rick...

Please post a link to PlugIn on thingie, and I'll copy it up to the org site.

Do you confirm the reported failure, and the fix?

Dave
__________________
bdbcat is offline   Reply With Quote
Old 10-02-2016, 10:47   #10
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
Re: OpenCPN 4.2.0 problems

bdbcat

OpenCPN Beta File Thingie User: rguser, Pass: rgpass
https://tgp-architects.com/files/

The squiddio file is under 4.2.0 PI WIN directory
Yes squiddio is working now with that change.
I had not noticed the failure, but I have confirmed that making the change and building it, then testing and it works under windows 10, Opencpn v4.2.0 I could find an earlier version and test if it failed (give me several hours).

There are other useful files for testing various plugins.
__________________
rgleason is offline   Reply With Quote
Old 10-02-2016, 11:55   #11
Marine Service Provider

Join Date: Oct 2012
Location: San Francisco Bay Area
Boat: Beneteau 43
Posts: 56
Re: OpenCPN 4.2.0 problems

rgleason, bdcat

your answers fixed both issues (squiddio_pi crashes and errors in compile). Thank you very much.

I pushed a new commit to the squiddio_pi repo with the updated ocpn_plugin.h file.
__________________
coupdemistral is offline   Reply With Quote
Old 10-02-2016, 14:34   #12
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
Re: OpenCPN 4.2.0 problems

coupdemistral,
git fetched --all and git pull origin master then Tried to build for release
got these errors after I stashed my changes.
Quote:
jsonval.cpp
C:\Users\Frederick\Documents\GitHub\o-plugin\m-squiddio_pi\src\wxJSON\jsonval.c
pp(961): error C2308: concatenating mismatched strings [C:\Users\Frederick\Docu
ments\GitHub\o-plugin\m-squiddio_pi\build\squiddio_pi.vcxproj]
Concatenating wide "%" with narrow "I64"
C:\Users\Frederick\Documents\GitHub\o-plugin\m-squiddio_pi\src\wxJSON\jsonval.c
pp(969): error C2308: concatenating mismatched strings [C:\Users\Frederick\Docu
ments\GitHub\o-plugin\m-squiddio_pi\build\squiddio_pi.vcxproj]
Concatenating wide "%" with narrow "I64"
Done Building Project "C:\Users\Frederick\Documents\GitHub\o-plugin\m-squiddio_
pi\build\squiddio_pi.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\Frederick\Documents\GitHub\o-plugin\m-squiddio_
pi\build\ALL_BUILD.vcxproj" (default targets) -- FAILED.


Build FAILED.

"C:\Users\Frederick\Documents\GitHub\o-plugin\m-squiddio_pi\build\ALL_BUILD.vcx
proj" (default target) (1) ->
"C:\Users\Frederick\Documents\GitHub\o-plugin\m-squiddio_pi\build\squiddio_pi.v
cxproj" (default target) (3) ->
(ClCompile target) ->
C:\Users\Frederick\Documents\GitHub\o-plugin\m-squiddio_pi\src\wxJSON\jsonval
.cpp(961): error C2308: concatenating mismatched strings [C:\Users\Frederick\Do
cuments\GitHub\o-plugin\m-squiddio_pi\build\squiddio_pi.vcxproj]
C:\Users\Frederick\Documents\GitHub\o-plugin\m-squiddio_pi\src\wxJSON\jsonval
.cpp(969): error C2308: concatenating mismatched strings [C:\Users\Frederick\Do
cuments\GitHub\o-plugin\m-squiddio_pi\build\squiddio_pi.vcxproj]

0 Warning(s)
2 Error(s)

Time Elapsed 00:00:02.25
__________________
rgleason is offline   Reply With Quote
Old 10-02-2016, 20:02   #13
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
Re: OpenCPN 4.2.0 problems

Dave. It looks like goodanchorage and objectsearch need a little work.
__________________
rgleason is offline   Reply With Quote
Old 10-02-2016, 20:03   #14
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,398
Re: OpenCPN 4.2.0 problems

I tried fresh builds and they still have problems.
__________________

__________________
rgleason is offline   Reply With Quote
Reply

Tags
enc, opencpn

Thread Tools
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
OpenCPN / Mac OS X 10.5.8 problems with language ChannelIslander OpenCPN 0 18-12-2011 12:00
Opening OpenCPN Problems kryg OpenCPN 8 28-09-2011 17:47
Install Problems - OpenCPN on Fedora 32 Bit Gene Merrill OpenCPN 2 17-08-2011 09:56
Problems Firing-Up OpenCPN jimbim OpenCPN 25 11-07-2011 14:22
OpenCPN XP Installation Problems bdbcat OpenCPN 56 12-05-2011 13:42



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 02:14.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.