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 06-10-2020, 18:58   #1
Registered User

Join Date: Jun 2017
Posts: 38
OpenCPN AISRADAR plug-in aisview_panel_icon.png path issue

Discovered an interesting problem with AIS Radar View v1.2.5.0. When loading, I get this ERROR in opencpn.log

21:16:42.627 ERROR ffile.cpp:59 can't open file 'C:\Users\micha_fygpypw\AppData\Local\opencpn\plug ins\aisradar_pidata\aisview_panel_icon.png' (error 3: The system cannot find the path specified.)
21:16:42.627 ERROR image.cpp:2593 Failed to load image from file "C:\Users\micha_fygpypw\AppData\Local\opencpn\plug ins\aisradar_pidata\aisview_panel_icon.png".

Looks like the a \ is missing from the path. Creating a directory named \aisradar_pidata and copying the two images files there

It appears that in file https://github.com/rgleason/AISradar...isradar_pi.cpp

is missing a wxFileName::GetPathSeparator() between aisradar_pi and data
{
initialize_images();
// wxString shareLocn = *GetpSharedDataLocation() +
// _T("plugins") + wxFileName::GetPathSeparator() +
// _T("aisradar_pi") + wxFileName::GetPathSeparator() +
// _T("data") + wxFileName::GetPathSeparator();
wxString shareLocn = GetPluginDataDir("aisradar_pi") +
_T("data") + wxFileName::GetPathSeparator();
wxImage panelIcon( shareLocn + _T("aisview_panel_icon.png"));
if(panelIcon.IsOk())
m_panelBitmap = wxBitmap(panelIcon);
else
wxLogMessage(_T(" AISVIEW panel icon NOT loaded"));
m_panelBitmap = *_img_ais_pi;
}
pa391as is offline   Reply With Quote
Old 08-10-2020, 17:04   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,765
Images: 2
Re: OpenCPN AISRADAR plug-in aisview_panel_icon.png path issue

Thanks for posting this and the clearly thought out correction.
I will try to get this fixed next. Sorry.
Now building and will push to master.
rgleason is offline   Reply With Quote
Reply

Tags
ais, enc, opencpn, plug, radar


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
Want To Buy: Dri-Plug connector- old autopilot/tiller pilot plug sanibel sailor General Classifieds (no boats) 4 01-05-2020 06:34
R PI4 BUSTER E: Unable to locate package opencpn-plugin-aisradar MACH1SCJ OpenCPN 1 08-08-2019 13:31
OpenCPN AISradar problem Torngat34 OpenCPN 4 31-07-2017 19:31
Changes on the Plug-in Download page & new plug-in packages nohal OpenCPN 8 04-07-2014 07:15
OpenCPN Crashing in Hermits, PNG clausont OpenCPN 7 21-12-2012 19:23

Advertise Here


All times are GMT -7. The time now is 07:40.


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.