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 4019) - 03 April 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

Unhandled Exception

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
inmyrvm
Posts: 44
Joined: Thu 19 Nov 2020 9:16 pm
Weather Station: Davis VP2
Operating System: Windows 10

Unhandled Exception

Post by inmyrvm »

I've just started running the updated version of MX and I'm getting an unhandled exception message about the time when it would be uploading my data to the server. It's possible I don't have all the configurations set properly though I did try follow the instructions. Perhaps related is there's routinely a message in the log saying this:

2021-10-12 11:31:36.153 Realtime[15]: Start cycle
2021-10-12 11:31:36.153 Realtime[15]: Creating realtime.txt
2021-10-12 11:31:36.153 Realtime[15]: Processing realtime file - realtimegauges.txt
2021-10-12 11:31:36.156 Realtime[15]: Error during update: Object reference not set to an instance of an object.
2021-10-12 11:31:36.156 Realtime[15]: End cycle

I'm also seeing this, particularly right when I start MX:

2021-10-12 11:47:21.074 Realtime[2]: Start cycle
2021-10-12 11:47:21.074 Realtime[2]: Creating realtime.txt
2021-10-12 11:47:21.074 Realtime[2]: Processing realtime file - realtimegauges.txt
2021-10-12 11:47:21.077 RealtimeLocalCopy[2]: Copying - realtime.txt
2021-10-12 11:47:21.080 Realtime[2]: Error during update: The process cannot access the file 'realtime.txt' because it is being used by another process.
2021-10-12 11:47:21.080 Realtime[2]: End cycle

Mike
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Unhandled Exception

Post by mcrossley »

Technically the exception is caught and reported, but at too high a level so it is stopping the rest of the real time process for that cycle - I'll get that fixed/improved

One thing that springs to mind is anti-virus. Have you excluded the CumulusMX folder from AV? It looks like some other program is opening the realtime.txt file after it has been created.

Are you also FTPing the realtime.txt and copying it locally?
inmyrvm
Posts: 44
Joined: Thu 19 Nov 2020 9:16 pm
Weather Station: Davis VP2
Operating System: Windows 10

Re: Unhandled Exception

Post by inmyrvm »

MX has been running now for a couple days straight without crashing or asking to be restarted. However, I'm still seeing most of the same errors/messages in the log file. Here's one from just a few minutes ago:

2021-10-14 15:50:00.454 LocalCopy: Error = System.IO.IOException: The process cannot access the file 'wxnow.txt' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
at CumulusMX.Cumulus.DoLocalCopy()

I wasn't on the PC at 15:50 and I didn't have any other programs running, although I did have a chrome browser open with one tab on my web site (which is not hosted locally).

The only anti virus I have running is the default Windows 10 program that I haven't done anything with. It's not showing any threats.

Yes I am generating, ftp'ing, and copying the realtime.txt file. I don't recall asking for it to be copied but the box is checked.

Everything else appears to be behaving as it should. Except for some reason with the trends graphs only the 12h and 24h options are active. Do I have to do something to make the 2d and All options active?

Mike
Post Reply