Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

When starting as a daemon from systemd, no images are shown until first plugin timesout #1

Closed
txoof opened this issue Dec 13, 2020 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@txoof
Copy link
Owner

txoof commented Dec 13, 2020

When starting from systemd at boot, PaperPi may fail to show the splash screen and the first module. This is due to a NoneType object being passed to the epdWrite() function.

This has been exceptionally difficult to debug because it only happens at boot time from systemd. When started from the command line, this problem does not manifest.

Logging shows the image is generated, but fails to pass to the epdWrite() function.

Any help in solving this would be greatly appreciated.

@txoof txoof added bug Something isn't working help wanted Extra attention is needed labels Jul 4, 2021
@txoof
Copy link
Owner Author

txoof commented Aug 11, 2021

resolved by rewriting display loop

@txoof
Copy link
Owner Author

txoof commented Aug 11, 2021

added force_update method to 'Plugins' class; call this during the first run of the plugin_update in the display loop appears to fix this problem.

It's unclear why this is a problem only when running in daemon mode.

Probably best solution is to rewrite the Plugin class to better update on init and ensure there is always some image available.

@txoof
Copy link
Owner Author

txoof commented Oct 3, 2021

fixed in commit 136a333

@txoof txoof closed this as completed Oct 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant