Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Fatal Unhandled Exception: SOLVED

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Debian version: 12 (bookworm)
Location: Cheddar, Somerset
Contact:

Fatal Unhandled Exception: SOLVED

Post by andrew_sinclair »

Hello Steve,

I am in the process of moving over from my PC based v1.9.4 (build 1099) to the latest Cumulus MX v3.0.0. (build 3038). using a Raspberry Pi 2. I am keen to explore/test the Twitter and WoW uploads.

I read the "...installing Cumulus MX.." thread and opted to run Cumulus MX with my existing data, thus I took a copy of my existing Cumulus directory and then unzipped Cumulus MX into it. When I tried to run Cumulus MX using the

sudo mono CumulusMX.exe command the terminal window looked like this:
root@raspberrypi:/CumulusMX# mono CumulusMX.exe
Current culture: English (United Kingdom)
Serial: 74FECEABEB2DA94ECB5EBA0CD11A7137
Cumulus MX v.3.0.0 build 3038
[ERROR] FATAL UNHANDLED EXCEPTION: System.DivideByZeroException: Division by zero
at (wrapper managed-to-native) object:__icall_wrapper___emul_op_irem (int,int)
at CumulusMX.Cumulus. () [0x00000] in <filename unknown>:0
at CumulusMX.Cumulus..ctor (Int32 HTTPport, Int32 WSport) [0x00000] in <filename unknown>:0
at .Main (System.String[] args) [0x00000] in <filename unknown>:0
root@raspberrypi:/CumulusMX#
and the file in the MXDiags folder looks like this:
2016-06-07 10:47:59.564 ========================== Cumulus MX starting ==========================
2016-06-07 10:47:59.572 Command line: /CumulusMX/CumulusMX.exe
2016-06-07 10:47:59.573 Cumulus MX v.3.0.0 build 3038
2016-06-07 10:47:59.577 Platform: Unix
2016-06-07 10:47:59.578 OS version: Unix 4.4.9.7
2016-06-07 10:47:59.579 Current culture: English (United Kingdom)
2016-06-07 10:47:59.580 Directory separator=/ Decimal separator=. List separator=,
2016-06-07 10:47:59.580 Date separator=/ Time separator=:
2016-06-07 10:47:59.580 Standard time zone name: GMT
2016-06-07 10:47:59.580 Daylight saving time name: BST
2016-06-07 10:47:59.580 Daylight saving time? True
2016-06-07 10:47:59.582 07/06/2016 10:47:59
2016-06-07 10:47:59.583 Data path = data/
2016-06-07 10:47:59.683 Creating backup folder backup/20160607104759/
2016-06-07 10:47:59.699 Created backup folder backup/20160607104759/
2016-06-07 10:47:59.737 Reading Cumulus.ini file
2016-06-07 10:47:59.784 ASM=10 AST=00:10:00
2016-06-07 10:47:59.788 Cumulus start date: 19/07/2013
Regards

Andrew
You do not have the required permissions to view the files attached to this post.
Last edited by andrew_sinclair on Tue 14 Jun 2016 3:29 pm, edited 2 times in total.
Windy: f065d04a
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: [ERROR] FATAL UNHANDLED EXCEPTION:

Post by steve »

It may be that some of the details in the Cumulus.ini file are unsuitable for the Pi (the serial port will be different, for one thing). So while starting from a Cumulus 1 installation works in most cases, perhaps some detail is causing a a fatal exception in your case. Have you tried a 'fresh' installation?
Steve
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Debian version: 12 (bookworm)
Location: Cheddar, Somerset
Contact:

Re: [ERROR] FATAL UNHANDLED EXCEPTION:

Post by andrew_sinclair »

steve wrote: Have you tried a 'fresh' installation?
I just tried that and it has started ok now and I am just setting the settings now.
steve wrote: the serial port will be different, for one thing?
What should the serial port setting be or is that something I should be able to find from information relating to the raspberry Pi?
Windy: f065d04a
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Debian version: 12 (bookworm)
Location: Cheddar, Somerset
Contact:

Re: [ERROR] FATAL UNHANDLED EXCEPTION:

Post by andrew_sinclair »

I changed the Serial Port to that I was using in the Cumulus v1.9.4 (build 1099) installation COM4 and CumulusMX terminated with...
System.IO.IOException: Bad file descriptor
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Finalize () [0x00000] in <filename unknown>:0
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
File attached...
You do not have the required permissions to view the files attached to this post.
Windy: f065d04a
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: [ERROR] FATAL UNHANDLED EXCEPTION:

Post by steve »

But COM4 isn't a valid com port name on a Linux system - see the MX FAQ.
Steve
User avatar
andrew_sinclair
Posts: 85
Joined: Thu 04 Nov 2010 8:15 pm
Weather Station: Davis VP2 Plus c/w DFARS
Operating System: Debian version: 12 (bookworm)
Location: Cheddar, Somerset
Contact:

Re: [ERROR] FATAL UNHANDLED EXCEPTION:

Post by andrew_sinclair »

Cancel my posts above, sorted now...I should have read the FAQs more carefully :oops:

/dev/ttyUSB0
Windy: f065d04a
Locked