Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.6.5 (build 3081) - 28 May 2020 (please see important announcement regarding releases since 3.5.0)
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 the NOAA report and Snow Index drop-down menus to 2030)

See the Wiki to download the software or click on the Downloads link in the Forum Banner.

webtag #ProgramUpTime

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
HansR
Posts: 966
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

webtag #ProgramUpTime

Post by HansR »

This morning the #ProgramUpTime webtag produced an erroneous value. Normally it is correct.
See attachment. I checked the code and come to the conclusion it must be an error in the library. Let's see if it changes.
The source before processing is:

Code: Select all

Linux/Unix

System uptime: 3 weeks, 4 days, 21 hours
Cumulus uptime: <#ProgramUpTime>

System: Raspberry Pi 3 Model B Plus Rev 1.3
Processor: ARMv7 Processor rev 4 (v7l)
Nr of processors: <#CpuCount>
OS: Linux 4.19.75-v7+ armv7l
Description: Raspbian GNU/Linux 10 (buster)
Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:45:47 UTC 2019)
You do not have the required permissions to view the files attached to this post.
https://meteo-wagenborgen.nl / Cumulus 3.6.5 (build: 3081)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

Phil23
Posts: 471
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Win7 Pro
Location: Australia

Re: webtag #ProgramUpTime

Post by Phil23 »

Tried Summing the numbers to see if it looked like a signed integer roll-over, but nothing seems obvious.
Capture.JPG
You do not have the required permissions to view the files attached to this post.

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

Re: webtag #ProgramUpTime

Post by ExperiMentor »

Stacks overflow. Dynamic memory allocation gets out of hand. Indices extend and overwrite data. Power glitches corrupt RAM content.
Yes, I know it shouldn't happen, but it does.

Best practice is to always schedule occasional system reboots. They can avoid all sorts of odd problems like this ...

User avatar
HansR
Posts: 966
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: Davis Vantage Pro 2+
Operating System: Raspbian GNU/Linux 10 (Buster)
Location: Wagenborgen (NL)
Contact:

Re: webtag #ProgramUpTime

Post by HansR »

@Phil: thanks for trying. "Though this be madness, yet there is method in 't." So this is worse: no system in numbers, I guess @ExperiMentor has his point ;)
@ExperiMentor: You're right. Roughly 24 hours later the Raspberry went wild in an infinite loop writing to the SD card. Some 2 Gb were written, the system became unresponsive and I am still trying to recover it. Hmm... would this be a consequence of migrating to Buster? Anyway, there are many upgradables so I guess it's maintenance time.
https://meteo-wagenborgen.nl / Cumulus 3.6.5 (build: 3081)
Davis Vantage Pro 2+ / Raspberry Pi 3 Model B Plus Rev 1.3
Raspbian GNU/Linux 10 (buster) / 4.19.97-v7+ armv7l
Mono JIT compiler version 6.8.0.105 (tarball Tue Feb 4 21:51:48 UTC 2020)

Post Reply