Page 1 of 1

Unhandled Exception

Posted: Tue 12 Oct 2021 6:43 pm
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

Re: Unhandled Exception

Posted: Wed 13 Oct 2021 9:24 am
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?

Re: Unhandled Exception

Posted: Thu 14 Oct 2021 11:12 pm
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