Bug report? Weewx4.9.1 crashing

47 views
Skip to first unread message

Chris Alemany

unread,
Jan 2, 2023, 1:25:57 PM1/2/23
to weewx...@googlegroups.com
Hi all.

I’m recently updated my RPi3b to Bullseye from Buster (clean install) and weewx to 4.9.1 from 4.8.

Weewx has been unable to run for more than a few hours before crashing. It is either erroring out when doing an archive update, or it does a full on kernel panic when it runs out of memory. I’ve attached error messages from both in the file.

Anyone else seeing this?

I did increase the size of the images being generated, so that might be the cause of the out-of-memory, but the error code in the first message seems to indicate a problem of integer vs. float in the generator.py
weewxlogjan2.txt

Chris Alemany

unread,
Jan 2, 2023, 2:08:30 PM1/2/23
to weewx-user
I've resolved the first error. It was due to a TypeError in the purpleair extension. If an "Interval" is specified in weewx.conf it generated a TypeError and crashed.


I hacked a fix by modifying line 282 in purpleair.py from:
if delta > self.config_dict['interval'] * 1.5:

to this:
if delta > float(self.config_dict['interval']) * 1.5:

The out-of-memory error remains..


Reply all
Reply to author
Forward
0 new messages