[Bug Report] pt-sys-oled failed to start

Hey, just reinstalled RaspbianOS to start fresh and eliminate any significant changes I’ve made recently. I just finished updating packages from pi-top, and had the miniscreen working great. I still have a fresh pt-sys-oled folder, but for some reason, on this last boot, the service failed to start with the following:

● pt-sys-oled.service - pi-top OLED system menu
Loaded: loaded (/lib/systemd/system/pt-sys-oled.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Tue 2021-03-09 10:59:42 MST; 5min ago
Docs: https://knowledgebase.pi-top.com/knowledge
Process: 642 ExecStart=/usr/lib/pt-sys-oled/pt-sys-oled (code=exited, status=0/SUCCESS)
Main PID: 642 (code=exited, status=0/SUCCESS)
Mar 09 10:59:42 pi-top pt-sys-oled[642]: File “/usr/lib/python3/dist-packages/pitopcommon/ptdm.py”, line 456, in __thread_method
Mar 09 10:59:42 pi-top pt-sys-oled[642]: message.parameters
Mar 09 10:59:42 pi-top pt-sys-oled[642]: File “/usr/lib/python3/dist-packages/pitopcommon/ptdm.py”, line 470, in invoke_callback_func_if_exists
Mar 09 10:59:42 pi-top pt-sys-oled[642]: func(params)
Mar 09 10:59:42 pi-top pt-sys-oled[642]: File “/usr/lib/python3/dist-packages/pitop/miniscreen/oled/core/device_controller.py”, line 50, in on_s
Mar 09 10:59:42 pi-top pt-sys-oled[642]: self.__redraw_last_image_func()
Mar 09 10:59:42 pi-top pt-sys-oled[642]: File “/usr/lib/python3/dist-packages/pitop/miniscreen/oled/oled.py”, line 248, in _redraw_last_image
Mar 09 10:59:42 pi-top pt-sys-oled[642]: self.__display(self.image, force=True)
Mar 09 10:59:42 pi-top pt-sys-oled[642]: AttributeError: ‘Miniscreen’ object has no attribute ‘image’
Mar 09 10:59:42 pi-top systemd[1]: pt-sys-oled.service: Succeeded.

Any thoughts on this? I was able to restart the service with systemctl, Might be a one time thing? Idk. About to restart and see if it persists.

Was indeed a negative. Not quite sure what caused it. It was immediately after a reboot. Might be something to look into for reliability in the future when working with robotics and not using a screen/keyboard.

@Supernovali thanks for this bug report, I’ll review the code with the OS team and see if there is anything we can do to improve the reliability :+1:

1 Like

And… Just kidding, wrong post haha