txoof / PaperPi

E-Paper display loop with plugins
97 stars 10 forks source link

paperpi stops displaying images after several hours #159

Open txoof opened 2 months ago

txoof commented 2 months ago

Describe the bug PaperPi stops showing images and displays critical error -- Plugin: Weather Den haag returned invalid image data; screen update skipped

To Reproduce Steps to reproduce the behavior:

  1. start paperpi
  2. ???

Expected behavior PaperPi should continue to display data from the plugins, or fall back to the default fallback plugin

Additional context sample log output:

] INFO 09:40:23 paperpi :_update_plugins:454 :INFO       - ##########Plugin: Word Clock##########                                                                                                                                                   │
] INFO 09:40:23 paperpi :_update_plugins:467 :INFO       -      PRIORITY: 2 of max 2                                                                                                                                                                │
] INFO 09:40:28 paperpi :update_loop:558 :CRITICAL   - Plugin: Weather Den haag returned invalid image data; screen update skipped                                                                                                                  │
] INFO 09:40:33 paperpi :update_loop:507 :INFO       - Plugin: Weather Den haag--display for: 40.0 of 50 seconds                                                                                                                                    │
] INFO 09:40:33 paperpi :_update_plugins:450 :INFO       - >>__________UPDATING PLUGINS__________<<                                                                                                                                                 │
] INFO 09:40:33 paperpi :_update_plugins:454 :INFO       - ##########Plugin: default fallback plugin##########                                                                                                                                      │
] INFO 09:40:33 Plugin  :update    :167 :INFO       - starting update - timeout: 30 sec                                                                                                                                                             │
] INFO 09:40:33 paperpi :_update_plugins:467 :INFO       -      PRIORITY: 16384 of max 32768
txoof commented 2 months ago

The problem appears to be in the update loop. It's not clear what triggers this issue.

txoof commented 1 month ago

The trigger appears to be a crashed plugin; the main update loop does not see this as a stalled plugin and continues to try to display it.

txoof commented 1 hour ago

Re-opening this as something is causing all plugins to return invalid images after a few hours under some (??) circumstances.