Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 04-05-2021, 03:22   #31
Registered User

Join Date: May 2012
Posts: 1,054
Re: UKTidalEvents Plugin

Thomas ...

On my Ubuntu 20.04 UKTides installs fine with the plugin manager. Downloads work correctly. Locations can be saved and recalled.

If present you could try removing 'tidalevents.xml' from the plugin data folder to see if that makes a difference.

Guidance on local builds and installing the dependencies is here:
https://github.com/Rasbats/managed_p...ki/Local-Build

Mike
Rasbats is offline   Reply With Quote
Old 14-02-2022, 11:04   #32
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 180
Re: UKTidalEvents Plugin

Mike... What's the status of UKTides for OCPN v5.6, please?
It does not appear to be in the beta catalogue.
Antipole is offline   Reply With Quote
Old 14-02-2022, 13:43   #33
Registered User

Join Date: May 2012
Posts: 1,054
Re: UKTidalEvents Plugin

Tony ...

UKTidalEvents_pi is now in the master catalog for OpenCPN 5.6.0.

The manual has not yet been moved. TODO.

Mike
Rasbats is offline   Reply With Quote
Old 15-02-2022, 03:06   #34
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 180
Re: UKTidalEvents Plugin

Quote:
Originally Posted by Rasbats View Post
UKTidalEvents_pi is now in the master catalog for OpenCPN 5.6.0.
Mike
Ah! I have to uninstall whatever version I had (it was offering to downgrade) and then install and I then got the icon in the menu bar.

But clicking on the icon gets a OCPN crash. Looks like it is tripping on removing the old data file.

Quote:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: UNKNOWN_0xD at 0x0000000000000000
<snip>
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libUKTides_pi.dylib 0x11d66fee8 Dlg::RemoveOldDownloads() + 232
1 libUKTides_pi.dylib 0x11d66e795 Dlg:lg(UKTides_pi&, wxWindow*) + 1285
2 libUKTides_pi.dylib 0x11d668661 UKTides_pi::OnToolbarToolCallback(int) + 65
3 OpenCPN 0x1055d8f9e MyFrame::OnToolLeftClick(wxCommandEvent&) + 654
4 libwx_baseu-3.1.5.0.0.dylib 0x106c506ef wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 415
5 libwx_baseu-3.1.5.0.0.dylib 0x106c5135a wxEvtHandler::ProcessEvent(wxEvent&) + 186
<snip>
Antipole is offline   Reply With Quote
Old 15-02-2022, 03:31   #35
Registered User

Join Date: May 2012
Posts: 1,054
Re: UKTidalEvents Plugin

Tony ...

Can you try removing the old .xml data file? You may find two directories in opencpn/plugins.

opencpn/plugins/UKTides and opencpn/plugins/UKTides_pi.

Remove opencpn/plugins/UKTides if present.

In opencpn/plugins/UKTides_pi/data remove any .xml file. The next selection of a tidal station will re-make the tidalevents.xml file with the data for that station.

If opencpn/plugins/UKTides_pi/data does not exist that directory will be made when the plugin is used again.

Mike
Rasbats is offline   Reply With Quote
Old 15-02-2022, 03:53   #36
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 180
Re: UKTidalEvents Plugin

No sign of plugins/UKTides.
plugins/UKTides_pi/data did not have any xml files.

I have deleted the UKTides_pi directory, uninstalled and reinstalled the plugin. This creates a new UKTides_pi directory.
Still the same crash on clicking the icon in the toolbar.

I have checked inside the OCPN application itself for detritus in the old place where plugin data used to go and there is nothing related to UKTides.
Antipole is offline   Reply With Quote
Old 15-02-2022, 04:03   #37
Registered User

Join Date: May 2012
Posts: 1,054
Re: UKTidalEvents Plugin

Thanks for the testing. I will work on this.

Mike
Rasbats is offline   Reply With Quote
Old 15-02-2022, 04:53   #38
Registered User

Join Date: May 2012
Posts: 1,054
Re: UKTidalEvents Plugin

I think the problem arises from moving the plugin settings from [Settings] in the .ini file to [Settings/UKTides_pi].

On the Mac I removed the opencpn.ini file and the opencpn/plugins/UKTides_pi/data directory. Restarted OpenCPN. One warning about the previous crash and then everything worked correctly(?).

This is a bit dramatic. Suggest editing the .ini file. Remove any references to UKTides and save. Restart OpenCPN. Test the UKTides plugin. The settings (these include the dialog position) will be saved in [Settings/UKTides_pi] on closing OpenCPN.

Mike
Rasbats is offline   Reply With Quote
Old 15-02-2022, 05:13   #39
Registered User
 
Antipole's Avatar

Join Date: Oct 2019
Location: Emsworth, UK
Boat: Alubat Ovni 395
Posts: 180
Re: UKTidalEvents Plugin

No luck here...
I quit OCPN, deleted the UKTides [Settings/UKTides_pi] section and checked no other refers to UKTides apart from the dylib.
I then reinstalled the plugin (its v1.1.0) and enabled it and without clicking on the icon quit OCPN. Now it has created a new [Settings/UKTides_pi] section with
Quote:
[Settings/UKTides_pi]
ShowUKTidesIcon=1
DialogPosX=20
DialogPosY=20
Then I launched OCPN again with UKTides being the only active plugin and clicked on the icon and got the same crash.
Antipole is offline   Reply With Quote
Old 15-02-2022, 05:20   #40
Registered User

Join Date: May 2012
Posts: 1,054
Re: UKTidalEvents Plugin

Tony ...

I will put a message on Slack.

Mike
Rasbats is offline   Reply With Quote
Old 15-02-2022, 10:28   #41
Registered User

Join Date: May 2012
Posts: 1,054
Re: UKTidalEvents Plugin

Antipole found the issue. The problem happens when two or more stations are saved. Work needed for this situation.

Mike
Rasbats is offline   Reply With Quote
Reply

Tags
events, 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
Plugin: DashBoard SethDart OpenCPN 562 16-11-2019 09:50
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50
BSB 4 PlugIn bdbcat OpenCPN 98 25-04-2018 18:46
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
Writing Plugin for nv.digital Map Format ? Netsurfer OpenCPN 7 17-08-2010 16:09

Advertise Here


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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.