Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.4.0 (build 3064) - 19 February 2020.
    Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

    See the Wiki for downloading either version.

    Error when closing CumulusMX

    Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

    Moderator: mcrossley

    Post Reply
    User avatar
    LAdrain
    Posts: 20
    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 » Thu 22 Aug 2019 8:14 pm

    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: 393
    Joined: Sat 16 Jul 2016 11:59 pm
    Weather Station: Davis Vantage Pro2 Plus
    Operating System: Win7 Pro
    Location: Australia

    Re: Error when closing CumulusMX

    Post by Phil23 » Thu 22 Aug 2019 8:52 pm

    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.

    User avatar
    mcrossley
    Posts: 5997
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2
    Operating System: Stretch Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

    Re: Error when closing CumulusMX

    Post by mcrossley » Fri 23 Aug 2019 10:40 am

    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: 20
    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 » Fri 23 Aug 2019 4:08 pm

    Thanks

    ExperiMentor
    Posts: 133
    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 » Sat 24 Aug 2019 8:57 am

    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: 5997
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2
    Operating System: Stretch Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

    Re: Error when closing CumulusMX

    Post by mcrossley » Sun 25 Aug 2019 5:14 pm

    Not me, any donation links (are there still any?) will belong Steve I guess.

    User avatar
    LAdrain
    Posts: 20
    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 » Tue 10 Sep 2019 8:20 pm

    Many thanks Mark, Version 3.0.1 - build 3051 has fixed my problems.

    User avatar
    mcrossley
    Posts: 5997
    Joined: Thu 07 Jan 2010 9:44 pm
    Weather Station: Davis VP2
    Operating System: Stretch Lite rPi
    Location: Wilmslow, Cheshire, UK
    Contact:

    Re: Error when closing CumulusMX

    Post by mcrossley » Tue 10 Sep 2019 8:23 pm

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

    Post Reply