Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Error when closing CumulusMX

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
LAdrain
Posts: 23
Joined: Tue 03 Jul 2012 5:22 pm
Weather Station: davis vantage vue
Operating System: Windows 10
Location: Shropshire
Contact:

Error when closing CumulusMX

Post by LAdrain »

When I close the DOS box with with Ctrl-C it works fine 50% of the time, but others I get an message briefly displayed before the box closes. See below the brief message of 5 lines taken from MXdiags at 2019-08-22 20:57:22.204.

Does this mean anything or can I ignore it?


Exiting system due to external CTRL-C, or process kill, or shutdown
2019-08-22 20:57:22.117 Cumulus closing
2019-08-22 20:57:22.146 Writing Cumulus.ini file
2019-08-22 20:57:22.171 Closing connection
2019-08-22 20:57:22.204 System.ObjectDisposedException: Safe handle has been closed
at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)
at Microsoft.Win32.UnsafeNativeMethods.SetCommMask(SafeFileHandle hFile, Int32 dwEvtMask)
at System.IO.Ports.SerialStream.Dispose(Boolean disposing)
at System.IO.Ports.SerialStream.Finalize()
Phil23
Posts: 884
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Re: Error when closing CumulusMX

Post by Phil23 »

Seems like your site is not displaying correctly.
Almost as if the css is missing.

Have occasionally seen what you mention, but usually only after long uptimes.

My MX is currently scheduled to shutdown for a minute twice a day for weatherlink to update & haven't seen that issue in many months.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
User avatar
mcrossley
Posts: 12697
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Error when closing CumulusMX

Post by mcrossley »

It's just a bit of code that doesn't check if the serial port is still available before it tries to read from it. When MX is shutting down the port gets disconnected before the thread reading from it terminates. It's on the todo list to fix, but the list is long!
User avatar
LAdrain
Posts: 23
Joined: Tue 03 Jul 2012 5:22 pm
Weather Station: davis vantage vue
Operating System: Windows 10
Location: Shropshire
Contact:

Re: Error when closing CumulusMX

Post by LAdrain »

Thanks
ExperiMentor
Posts: 214
Joined: Tue 24 Nov 2015 11:30 pm
Weather Station: Fine Offset & Davis Vantage Vue
Operating System: Windows 10; Raspbian Buster
Location: Switzerland

Re: Error when closing CumulusMX

Post by ExperiMentor »

mcrossley wrote: Fri 23 Aug 2019 10:40 am It's on the todo list to fix, but the list is long!
You're doing a great and worthy job, Mark.

Who is receiving any donations now? You, original author or do they just disappear?
User avatar
mcrossley
Posts: 12697
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Error when closing CumulusMX

Post by mcrossley »

Not me, any donation links (are there still any?) will belong Steve I guess.
User avatar
LAdrain
Posts: 23
Joined: Tue 03 Jul 2012 5:22 pm
Weather Station: davis vantage vue
Operating System: Windows 10
Location: Shropshire
Contact:

Re: Error when closing CumulusMX

Post by LAdrain »

Many thanks Mark, Version 3.0.1 - build 3051 has fixed my problems.
User avatar
mcrossley
Posts: 12697
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Error when closing CumulusMX

Post by mcrossley »

I did put a couple of checks in b3051 - glad they are working OK for you.
Post Reply