Cruisers Forum
 


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 27-10-2019, 09:04   #2521
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Also, we would need to abandon windows xp, which I think is bearing retirement. Then perhaps we could simply go to x64 to keep it simple? Or would that leave windows 7 users out?
rgleason is offline   Reply With Quote
Old 27-10-2019, 11:25   #2522
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 473
Re: Beta Test / Technical

There are 32 bit versions of Windows 7 and 10 available, I not sure how widely used they are though.
AedanC is offline   Reply With Quote
Old 27-10-2019, 13:21   #2523
Registered User

Join Date: Mar 2011
Posts: 732
Re: Beta Test / Technical

Windows XP is no longer supported.
Windows 7 support ends next year.
However lack of support doesn't mean they stop working!

Windows 10 is available in both 32 & 64 bit however a few years ago there was some debate to only support a 64 bit version. I think it would be reasonable to assume the next major Windows release will only be 64 bit.

On the other hand current Linux distros such as Ubuntu 18 or 19 are 64 bit only.

I personally have a bitness problem with OpenCPN, the TwoCan plugin drivers and CAN bus adapters that naturally install 64 bit drivers on 64 bit Windows system. I could architect a solution with a 64 bit stub to communicate with the CAN bus adapter and Named Pipes to communicate with a 32 bit version of OpenCPN and TwoCan plugin. Much more work, very messy and far from ideal!

Probably time to bite the bullet and release a 64bit Windows version of OpenCPN.

From a performace perspective there has to be some latency from thunking 32bit serial i/o and network comms through the 64bit kernel and drivers.
stevead is offline   Reply With Quote
Old 30-10-2019, 03:19   #2524
Registered User

Join Date: Oct 2019
Posts: 2
Re: Beta Test / Technical

Hello,


I'm try to develop a tiny OpenCPN plugin, that would query sea depth information (DEPARE, depth area as I understand it) at a given position.


Is there any way for a plugin to query S57 Object from maps ?


I found there is way for the opposite (OpenCPN querying plugins for S57 objects), but now I'm kindof stuck.


I tried to mimic S57QueryDialog behaviour...
To acheive that, I had toimport s57chart.h into my plugin source tree, but:

1- there is lots of chained dependencies, i'm not sure i'm supposed/allowed to do that

2- Even after managing to compile the thing, there is a loader error when it tries to dlopen() the plugin (undefined reference to typeinfo for s57chart).




Is there any plugin that does such request, I can inspire myself from ?
Thanks in advance.
johann_cahier is offline   Reply With Quote
Old 30-10-2019, 08:09   #2525
Registered User

Join Date: Oct 2019
Posts: 2
Re: Beta Test / Technical

I just came across the objsearch_pi plugin.
At first I was believing it was searching only in CSV files, but after giving a closer look, I found out the
Code:
SendVectorChartObjectInfo() / WANTS_VECTOR_CHART_OBJECT_INFO
mecanism, but, alas...





1. The callback is invoked the the view changes, there is no way to query object given a location,
2. DEPARE objects are not sent to the plugins...


johann_cahier is offline   Reply With Quote
Old 02-11-2019, 17:57   #2526
Registered User

Join Date: Mar 2011
Posts: 732
Re: Beta Test / Technical

Experimenting with my own version of a dashboard (an engine dashboard), however the same error occurs with the "normal" dashboard included with OpenCPN when running on a Raspberry Pi.

The error cannot be reproduced on Windows, presumably because cairo is not used for rendering on Windows. (Not to be confused with "Cairo" which was the ill fated attempt at an object oriented version of Windows NT prior to NT 4, but I digress).

Raspberry Pi 3 OS version: Stretch.
OpenCPN: version 5.0

OpenCPN crashes when the dashboard orientation is horizontal and whilst adding or deleting an instrument.

Following is the backtrace when using GDB.
Code:
opencpn: ../../../../src/cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_max >= angle_min' failed.

Thread 1 "opencpn" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51    ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
        set = {__val = {0, 0, 9859940, 1994364536, 2130697600, 2130697656, 2130697624, 1994361864, 1995215028, 
            33899752, 2130697600, 9859940, 0, 1994366908, 9859940, 33899752, 21039744, 1, 4286578688, 4286578688, 
            16777215, 16777215, 4286578711, 0, 8388609, 8388607, 0, 0, 912, 165, 0, 0}}
        pid = <optimized out>
        tid = <optimized out>
#1  0x75cb8824 in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {7302446, 1976245996, 
              1977394120, 4294967295, 0, 1976245568, 1996463160, 4294967295, 4294967295, 2130698260, 1976115604, 
              2130697960, 4, 11, 0, 1977380864, 1, 1977384112, 1995063248, 1977259152, 1995063476, 1995063448, 189, 0, 
              2130698072, 0, 1977384112, 1874718720, 1995063248, 1977259152, 1995063476, 1995063448}}, sa_flags = 189, 
          sa_restorer = 0x0}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#2  0x75cb01a4 in __assert_fail_base (fmt=0x6fda5000 "\001", assertion=0x76ea40b4 "angle_max >= angle_min", 
    assertion@entry=0x2 <error: Cannot access memory at address 0x2>, file=0x7effde54 " ", 
    file@entry=0x75dc8078 <lock> "", line=189, line@entry=1876578304, 
    function=function@entry=0x76ea3fd0 "_cairo_arc_in_direction") at assert.c:92
        str = 0x20bf1f0 "\360\311@\001\304w\334u ../../../../src/cairo-arc.c:189: _cairo_arc_in_direction: Assertion `angle_max >= angle_min' failed.\n"
        total = 4096
#3  0x75cb0280 in __GI___assert_fail (assertion=0x2 <error: Cannot access memory at address 0x2>, 
    file=0x75dc8078 <lock> "", line=1876578304, function=0x76ea3fd0 "_cairo_arc_in_direction") at assert.c:101
No locals.
#4  0x76de73f4 in ?? () from /usr/lib/arm-linux-gnueabihf/libcairo.so.2
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
A bit of googling reveals the following https://gitlab.freedesktop.org/cairo/cairo/issues/352

Any hints or thoughts as to how I can find where the offending function call in the dashboard plugin that causes this failure condition or if there is a newer version of whatever that fixes this problem ?
stevead is offline   Reply With Quote
Old 03-11-2019, 14:51   #2527
Registered User
 
Jon Hacking's Avatar

Join Date: Sep 2010
Location: Currently cruising the Philippines, just got back from PNG & Solomons
Boat: Wauquiez 45' (now 48') catamaran
Posts: 1,109
Images: 1
Send a message via Skype™ to Jon Hacking
Re: Beta Test / Technical

Quote:
Originally Posted by stevead View Post
... (Not to be confused with "Cairo" which was the ill fated attempt at an object oriented version of Windows NT prior to NT 4, but I digress)...
I can't resist. The internal code-name for the original Win98 was Memphis, but the precursor to Memphis was Cairo. If you bring up the Timezone app in Win98 (not SE) & use the Vulcan Death Grip (Ctrl-Alt-Shift) & click on Cairo (& you have to know exactly where it is, 'cause it isn't marked) & drag it to Memphis (ditto) & drop it, then ctrl-alt-shift-click on Memphis & drag it to Redmond, WA (home of MSFT) & drop it, you start the Win98 Easter Egg!

OK, too much thread drift...
__________________
-- Jon Hacking s/v Ocelot
Jon Hacking is offline   Reply With Quote
Old 09-11-2019, 04:37   #2528
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Dear Carcode

Good Morning.

We need some advice about C:\Users\[user]\Documents\GitHub\[pluginname_pi]\buildosx\InstallOSX\[pluginname_pi].pkgproj.in, a MacOS pkgproj.in file that is necessary in plugins that will build for MacOS.

Is the format for this file XML? If it is XML, is there a standard?
Can we use external variables to substitute necessary links to translation files and auth-keys? If so, any suggestions? We are trying to simplify setup for plugin authors.

For example: https://github.com/rgleason/dashboar...osx/InstallOSX

Thanks very much. Rick
rgleason is offline   Reply With Quote
Old 09-11-2019, 06:27   #2529
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,547
Re: Beta Test / Technical

Quote:
Originally Posted by rgleason View Post
Dear Carcode

Good Morning.

We need some advice about C:\Users\[user]\Documents\GitHub\[pluginname_pi]\buildosx\InstallOSX\[pluginname_pi].pkgproj.in, a MacOS pkgproj.in file that is necessary in plugins that will build for MacOS.

Is the format for this file XML? If it is XML, is there a standard?
Can we use external variables to substitute necessary links to translation files and auth-keys? If so, any suggestions? We are trying to simplify setup for plugin authors.

For example: https://github.com/rgleason/dashboar...osx/InstallOSX

Thanks very much. Rick
This is a script file to produce an install-file for a macOS software installation. It uses the free installer called "Packages", see here:
WhiteBox - Packages


Many, many years ago I have pointed David Register to this tool but only Pavel Kalian has used it for some plugins. The main program OpenCPN has sadly never been published with an installer for macOS and several people not familiar with Apple don't know how to install and start OpenCPN.
Packages has a nice and powerful graphic user interface but the OpenCPN programmers uses the command line interface to produce the install-file with the extension *.pkg. See the attached pdf and find all docs at the link above.
Attached Files
File Type: pdf Install Packages.pdf (52.7 KB, 26 views)
CarCode is offline   Reply With Quote
Old 09-11-2019, 07:04   #2530
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: Beta Test / Technical

Carcode...


Fact check:
My plugins oeSENC_PI and oeRNC_PI both use Whitebox-Packages, and always have.



Thanks
Dave
bdbcat is offline   Reply With Quote
Old 09-11-2019, 07:11   #2531
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,547
Re: Beta Test / Technical

Quote:
Originally Posted by bdbcat View Post
Carcode...
Fact check:
My plugins oeSENC_PI and oeRNC_PI both use Whitebox-Packages, and always have.
Thanks
Dave
... and why not OpenCPN itself?
CarCode is offline   Reply With Quote
Old 09-11-2019, 07:27   #2532
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,500
Re: Beta Test / Technical

Carcode...


... and why not OpenCPN itself?


Simple time and programmer resource limitations. I agree that an improved, modern installer for OpenCPN for MacOS would be welcomed by new users.


Can you help?


Dave
bdbcat is offline   Reply With Quote
Old 09-11-2019, 07:54   #2533
Registered User

Join Date: Aug 2010
Location: Hampton VA USA
Boat: Beneteau M500 50'3"
Posts: 65
Re: Beta Test / Technical

Quote:
Originally Posted by AedanC View Post
There are 32 bit versions of Windows 7 and 10 available, I not sure how widely used they are though.
A lot of tablets (Asus, Lenovo, Dell Panasonic) up to a few years ago were using windows 32 bit especially those with eMMC memory, so one would think there is quite a bit of 32 bit (windows 7.0 8.0, 8.1, and windows 10) usage still around.
benet250 is offline   Reply With Quote
Old 17-11-2019, 11:24   #2534
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Quote:
..one would think there is quite a bit of 32 bit (windows 7.0 8.0, 8.1, and windows 10) usage still around.
Yes, true, and used extensively. MS support of Win XP ended sometime ago, and now Win7 support has ended.


BTW, just for fun, and a simpler time. This map shows the extent of the entire internet in 1973 Arpa Network.
rgleason is offline   Reply With Quote
Old 05-12-2019, 12:41   #2535
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,766
Images: 2
Re: Beta Test / Technical

Now locked out of https://opencpn.org/wiki/dokuwiki/do...pn_user_manual
once more, and its driving me nuts. ... Edit for awhile and then save, after the 4th edit/save, the screen goes blank and the menus still show. Log out and the URL shows a blank screen. Nothing I do fixes this, tried everything. This has happened a dozen times while I was trying to ignore it.

Totally infuriating, unknown service providers devising more security hoops every day. I don't know if my edits were saved and I have to wait one or two days to continue my edits. So it's easy to get off track and forget stuff. This is no way to work.
rgleason is offline   Reply With Quote
Reply


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
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 15:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 04:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 14:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 16:25

Advertise Here


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


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.