Page 1 of 1

Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 10:41 am
by StormCapture
Hi All,

After my Raspberry Pi 2 gave up after 9 years of service, I have moved onto a Raspberry Pi 3b+ running Raspian Buster but I have run into a problem that I cannot work out why.

I have issued both sudo apt-get update/upgrade and installed mono-complete with no issues but when i go to terminate sudo mono CumulusMX.exe after setting the station type to Fine Offset and doing the restart that is requried, it comes up with a bunch of errors within the terminal:

Current culture: English (Australia)
Serial: 74FECEABEB2DA94ECB5EBA0CD11A7137
Cumulus MX v.3.0.0 build 3043
Today.ini = data/today.ini
Last update=2020-04-22T10:33:00
Looking for Fine Offset station, VendorID=0x1941 ProductID=0x8021
System.MissingMethodException: Method 'Mono.Unix.Native.Syscall.uname' not found.
at System.RuntimeType.InvokeMember (System.String name, System.Reflection.BindingFlags bindingFlags, System.Reflection.Binder binder, System.Object target, System.Object[] providedArgs, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParams) [0x00852] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
at System.Type.InvokeMember (System.String name, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args, System.Globalization.CultureInfo culture) [0x00000] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.String& release, System.String& machine) [0x00047] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0
at HidSharp.Platform.Linux.NativeMethods.uname (System.String& sysname, System.Version& release, System.String& machine) [0x00004] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0
at HidSharp.Platform.Linux.LinuxHidManager.get_IsSupported () [0x00002] in <ae7920a0f15c43d292a5cc3a2fd0a936>:0
Not supported
Fine Offset station not found
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
22/04/2020 7:50:53 PM
Type Ctrl-C to terminate
^C
Cumulus terminating
Program exit


I have done everything from a complete clean install but it still happens, even with the latest build. Any reason why? It runs fine on my Win 10 Pro laptop but only seems to crash on the Pi and only for the Fine Offset series. Main reason why I have this is for a backup should my Pro 2 fail.

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 11:23 am
by freddie
StormCapture wrote: Wed 22 Apr 2020 10:41 amSystem.MissingMethodException: Method 'Mono.Unix.Native.Syscall.uname' not found.
Looks like a problem with your mono install - "uname" should definitely be there!

What does

Code: Select all

mono --version
show?

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 1:00 pm
by StormCapture
I am currently running:

Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1)

TLS: normal
SIGSEGV: normal
Notifications: epoll
Architecture: armel, vfp+hard
Disabled: none
Misc: softbug
LLVM: Supported, not enabled
GC: sgen

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 1:37 pm
by mcrossley
And does the command line uname command work OK?

Code: Select all

uname -a

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 1:53 pm
by StormCapture
I ran an update so now running version 6.8.0.105 and still have the issue.

Regarding the uname -a

Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST armv7l GNU/

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 2:03 pm
by StormCapture
It just seems to be with the Fine Offset series, i plugged the Davis into the one that is playing up and works like a charm.

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 3:05 pm
by mcrossley
The error is originating in the Hidsharp package that handles the USB Comms for the Fine Offset stations. But uname is a pretty basic function of Linux systems so not sure why it isn't in the Mono package. I have a fine offset console here I can try on a spare pi this evening. But I'm pretty sure other people are running fo stations on pi's...

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 4:00 pm
by mcrossley
OK, I just tried it on a Raspberry Pi 3b, running Stretch (9.11) and Mono 6.8.0.105 - No problem at all, found the Fine Offset straight away and started running. :?

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 4:42 pm
by Big Daddy
I have been running a FO (Maplin) on a 3B for a while and never seen any issues apart from wild readings when I sometimes have to reset the display due to lockups.

I am running MONO:

Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: preemptive
GC: sgen (concurrent by default)

And Raspbian...
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 8:20 pm
by mcrossley
Just tried it on a Buster install with mono 6.8 myself, and it worked OK too. Not sure what else to suggest as I'm not a great Linux expert.

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 9:15 pm
by freddie
Can you redo your image - i.e. start again?

Re: Strange Error when loading MX with WH1081

Posted: Wed 22 Apr 2020 10:48 pm
by StormCapture
Yeah I might have to re image it all and start over, knowing that it works well on your side.

I’ll give an update on how things have progressed, hopefully I can get the Pi to read it

Re: Strange Error when loading MX with WH1081

Posted: Thu 23 Apr 2020 12:59 am
by StormCapture
Finally some success with it all thankfully, done a few reboots to make sure it was not a one off thing but sure enough, it works.

I followed the instructions on another page on this forum regarding Mono, sounds like it can be a funny tool.

Now i have to deal with the "Connection is Closed" for the Dashboard and Now pages so I will read into that at a later time.

Re: Strange Error when loading MX with WH1081

Posted: Thu 23 Apr 2020 8:15 am
by mcrossley
Good news.

There shouldn't be any outstanding issues with Mono, afaik they are all resolved - except for the Moon image rotation in the southern hemisphere which does not work with Mono 6.0 thru to the latest 6.8.0, only version 5.x works correctly atm.