Repository: Blueforcer/awtrix3

Issue #84: [BUG] The lifetime setting sometimes causes the clock to reboot
Created: 2023-04-23T17:35:48Z
Bug report
Describe the bug
When the lifetime setting is set for a custom app, every now and then the clock reboots. The behavior seems random but happens as soon as you show a Home Assistant sensor that changes its value frequently. Every time when a sensor value updates, a new MQTT.publish command is sent to the clock. I suspect that something is going wrong when the mqtt.publish command is sent for a custom app that has a lifetime set. I've tested this extensively and the issue does not occur as soon as I set the lifetime to 0 for all the custom apps. As soon as I set the lifetime to, let's say, 3 seconds, the device starts to reboot every now and then. The reboot interval is random
Additional information

Devices involved:

Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)
AWTRIX-LIGHT version: v0.57



To Reproduce
Steps to reproduce the behavior:
Set a lifetime of a couple of seconds to one or multiple custom apps and make sure that the custom app gets refreshed as soon as the value of the custom app. Also, switch to that specific app when the value changes, so that it is visible immediately.
So:

Publish the app
Switch to the just published app
Update the published app as soon as the value changes
Switch to the just published app

Expected behavior
A clear and concise description of what you expected to happen.
The clock will not reboot anymore when the lifetime setting is set to a value higher than 0
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
(optional) Add relevant logs which could help tackle the problem.

Additional context
Add any other context about the problem here.

Duplicate issue #86: [BUG] Clock keep restarting few times a day
Created: 2023-04-24T18:34:06Z
Bug report
Describe the bug
Ulanzi clock keep restarting few times a day. Beginning of the logs is just before restart.
Some logs have weird signs like "setCurrentApp: Publish current app P��?�"
Additional information

Devices involved:

Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)
AWTRIX-LIGHT version: 0.57



Logs
setCurrentApp: Publish current app pm10
setCurrentApp: Publish current app space
E (586) esp_core_dump_flash: No core du��partition found!
E (587) esp_core_dump_flash: No core dump partition found!
[  2093][E][vfssetup: Setup periphery
loadSettings: Webserver configuration loaded
setMatrixLayout: Set matrix layout to 0
Framebuffer_GFX::begin Width: 32 Height: 8 Num Pixels: 256
Connecting to boost
..........................setup: My IP: 192.168.0.24
setup: Webserver loaded
Homeassistant discovery disabled
connect: Connecting to MQTT with login
checkUpdate: Check firmwareversion
checkUpdate: 
Device already on latest firmware version: 0.57

onMqttConnected: MQTT Connected
onMqttConnected: Subscribe to topic /brightness
onMqttConnected: Subscribe to topic /notify/dismiss
onMqttConnected: Subscribe to topic /notify
onMqttConnected: Subscribe to topic /timer
onMqttConnected: Subscribe to topic /custom/#
onMqttConnected: Subscribe to topic /switch
onMqttConnected: Subscribe to topic /settings
onMqttConnected: Subscribe to topic /previousapp
onMqttConnected: Subscribe to topic /nextapp
onMqttConnected: Subscribe to topic /doupdate
onMqttConnected: Subscribe to topic /nextapp
onMqttConnected: Subscribe to topic /apps
onMqttConnected: Subscribe to topic /power
onMqttConnected: Subscribe to topic /indicator1
onMqttConnected: Subscribe to topic /indicator2
onMqttConnected: Subscribe to topic /timeformat
onMqttConnected: Subscribe to topic /dateformat
onMqttConnected: Subscribe to topic /reboot
onMqttMessage: MQTT message received at topic awtrix_2fbd58/custom/planesoverhead
onMqttMessage: Payload:  {"text":1,"icon":"31805","lifetime":300}
[ 20896][E][vfs_api.cpp:105] open(): /littlefs/ICONS/31805.jpg does not exist, no permits for creation
onMqttMessage: MQTT message received at topic awtrix_2fbd58/custom/planes
onMqttMessage: Payload:  {"text":3,"icon":"31805","lifetime":300}
[ 21058][E][vfs_api.cpp:105] open(): /littlefs/ICONS/31805.jpg does not exist, no permits for creation
setCurrentApp: Publish current app Date
setCurrentApp: Publish current app $'�?�
setCurrentApp: Publish current app planes
setCurrentApp: Publish current app temp_outside
setCurrentApp: Publish current app P��?�
setCurrentApp: Publish current app pressure
setCurrentApp: Publish current app windspeed

Closing comment (2023-04-24T19:44:53Z): duplicate of #84