Skip to content

Memory issue PIL >= 8.3.0 #182

@helgeerbe

Description

@helgeerbe

Today my picframe service crashed

I'm logging in a influxdb the system load and found this behavior.
Bildschirmfoto 2021-10-27 um 10 25 15

System load is quite low. But memory consumption is strange. Picframe starts with 6% total memory. While running, memory is freed (sawtooth line). But at the end memory consumption is nearly 100% in total.

I checked an older log:

Bildschirmfoto 2021-10-27 um 10 30 26

Memory consumption is as expected stable. When suddenly the sawtooth line appears. (High cpu load two most left yellow peaks are the nightly backups).

What have I done?

  • apt get full-upgrade
  • pull all python modules required by picframe to their latest releases
pi@picframe:~ $ python3 --version
Python 3.7.3
pi@picframe:~ $ picframe -v
INFO:start.py:starting ['/home/pi/.local/bin/picframe', '-v']
picframe version:  0+untagged.365.gfc64728

Checking required packages......
PIL :  8.4.0
exifread :  2.3.2
pi3d :  2.48
yaml :  6.0
paho.mqtt :  1.5.1
iptcinfo3 :  2.1.4
numpy :  1.21.2
ninepatch : installed, but no version info

Checking optional packages......
pyheif :  0.5.1

I rolled back some older releases of picframe, but the sawtooth line was still there. So maybe one of the python modules has an issue?

Does this occur on your pic frames (check with top if memory consumption is stable over a period of time). Which versions of the modules are you using?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions