BlueAndi / Pixelix

Full RGB LED matrix, based on an ESP32 and WS2812B LEDs.
MIT License
293 stars 59 forks source link

Software resets #105

Closed jimmyeao closed 1 year ago

jimmyeao commented 1 year ago

On the Dev branch, i'm seeing this every few minutes:

337608  INFO    ResetMon.cpp    108 Reset reason APP CPU: Software reset CPU
337621  INFO    ResetMon.cpp    109 Reset reason PRO CPU: Software reset CPU

The display reboots. Pretty sure its not a power problem, brightness is down at the default of approx 9% and psu is 4a 5v as suggested

BlueAndi commented 1 year ago

Its periodically logged whether there was a reset and which kind of reset. There is addtional the number of detected warm resets.

If there is really a reset, you will see the restart in the log. In this case please provide the full log with the stack trace.

BlueAndi commented 1 year ago

The brightness is set by default very low to avoid that something is damaged accidentally.

Could it be that you think there are resets because of the log? :)

jimmyeao commented 1 year ago

It restarts and resets the brightness, then scrolls the connecting text again. I assume I need to do serial logging to get the full trace?

jimmyeao commented 1 year ago
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
        37 INFO             InitState.cpp:  446 PIXELIX starts up ...
        38 INFO             InitState.cpp:  447 SW version: v6.0.0:lc:b
        48 INFO             InitState.cpp:  448 SW revision: 8a3792c35de9882f7c119ea681335c358c09832c
        49 INFO             InitState.cpp:  449 ESP32 chip rev.: 3
        59 INFO             InitState.cpp:  450 ESP32 SDK version: v4.4.2
        70 INFO             InitState.cpp:  451 Wifi MAC: 78:21:84:9D:2E:C4
        70 INFO             InitState.cpp:  452 LwIP version: 2.1.2esp
       338 INFO    SensorDataProvider.cpp:   80 Sensor GL5528: -
       338 INFO    SensorDataProvider.cpp:   80 Sensor SHT3x: -
       338 INFO    SensorDataProvider.cpp:   80 Sensor DHT11: -
       358 INFO         PluginFactory.cpp:   81 Plugin type BTCQuotePlugin registered.
       358 INFO         PluginFactory.cpp:   81 Plugin type CountdownPlugin registered.
       368 INFO         PluginFactory.cpp:   81 Plugin type DateTimePlugin registered.
       379 INFO         PluginFactory.cpp:   81 Plugin type FirePlugin registered.
       379 INFO         PluginFactory.cpp:   81 Plugin type GameOfLifePlugin registered.
       389 INFO         PluginFactory.cpp:   81 Plugin type GithubPlugin registered.
       399 INFO         PluginFactory.cpp:   81 Plugin type GruenbeckPlugin registered.
       399 INFO         PluginFactory.cpp:   81 Plugin type IconTextLampPlugin registered.
       410 INFO         PluginFactory.cpp:   81 Plugin type IconTextPlugin registered.
       420 INFO         PluginFactory.cpp:   81 Plugin type JustTextPlugin registered.
       430 INFO         PluginFactory.cpp:   81 Plugin type MatrixPlugin registered.
       431 INFO         PluginFactory.cpp:   81 Plugin type OpenWeatherPlugin registered.
       441 INFO         PluginFactory.cpp:   81 Plugin type RainbowPlugin registered.
       451 INFO         PluginFactory.cpp:   81 Plugin type SensorPlugin registered.
       462 INFO         PluginFactory.cpp:   81 Plugin type ShellyPlugSPlugin registered.
       462 INFO         PluginFactory.cpp:   81 Plugin type SoundReactivePlugin registered.
       472 INFO         PluginFactory.cpp:   81 Plugin type SunrisePlugin registered.
       482 INFO         PluginFactory.cpp:   81 Plugin type SysMsgPlugin registered.
       493 INFO         PluginFactory.cpp:   81 Plugin type TempHumidPlugin registered.
       493 INFO         PluginFactory.cpp:   81 Plugin type TestPlugin registered.
       503 INFO         PluginFactory.cpp:   81 Plugin type ThreeIconPlugin registered.
       514 INFO         PluginFactory.cpp:   81 Plugin type VolumioPlugin registered.
       514 INFO         PluginFactory.cpp:   81 Plugin type WifiStatusPlugin registered.
       529 INFO            DisplayMgr.cpp: 1379 JSON document size: 319
       530 INFO            DisplayMgr.cpp:  214 DisplayMgr is up.
       541 INFO            DisplayMgr.cpp:  331 Start plugin SysMsgPlugin (UID 52486) in slot 0.
       551 INFO            DisplayMgr.cpp:  346 Plugin SysMsgPlugin (UID 52486) installed in slot 0.
[   557][E][Preferences.cpp:483] getString(): nvs_get_str len fail: hostname NOT_FOUND
       558 WARNING          InitState.cpp:  220 Failed to enable autom. brightness adjustment.
       630 INFO            DisplayMgr.cpp:  982 Slot 0 (SysMsgPlugin) now active.
[ 25844][E][Preferences.cpp:483] getString(): nvs_get_str len fail: hostname NOT_FOUND
[ 25971][E][Preferences.cpp:483] getString(): nvs_get_str len fail: web_login_user NOT_FOUND
[ 25972][E][Preferences.cpp:483] getString(): nvs_get_str len fail: web_login_pass NOT_FOUND
[ 25988][E][Preferences.cpp:483] getString(): nvs_get_str len fail: web_login_user NOT_FOUND
[ 25988][E][Preferences.cpp:483] getString(): nvs_get_str len fail: web_login_pass NOT_FOUND
     26033 INFO            DisplayMgr.cpp:  982 Slot 0 (SysMsgPlugin) now active.
     26500 INFO             PluginMgr.cpp:  299 JSON document @194 size: 750
     26501 INFO            DisplayMgr.cpp:  331 Start plugin DateTimePlugin (UID 47415) in slot 1.
     26556 INFO            DisplayMgr.cpp:  346 Plugin DateTimePlugin (UID 47415) installed in slot 1.
     26558 INFO             PluginMgr.cpp:  527 [DateTimePlugin][47415] Register: /rest/api/v1/display/uid/47415/dateTime
     26570 INFO            DisplayMgr.cpp:  331 Start plugin OpenWeatherPlugin (UID 54094) in slot 2.
     26846 INFO            DisplayMgr.cpp:  346 Plugin OpenWeatherPlugin (UID 54094) installed in slot 2.
     26848 INFO             PluginMgr.cpp:  527 [OpenWeatherPlugin][54094] Register: /rest/api/v1/display/uid/54094/weather
     26859 INFO            DisplayMgr.cpp:  331 Start plugin MatrixPlugin (UID 20012) in slot 3.
     26870 INFO            DisplayMgr.cpp:  346 Plugin MatrixPlugin (UID 20012) installed in slot 3.
     26880 INFO            DisplayMgr.cpp:  331 Start plugin CountdownPlugin (UID 61883) in slot 4.
     27169 INFO            DisplayMgr.cpp:  346 Plugin CountdownPlugin (UID 61883) installed in slot 4.
     27171 INFO             PluginMgr.cpp:  527 [CountdownPlugin][61883] Register: /rest/api/v1/display/uid/61883/countdown
     27182 INFO            DisplayMgr.cpp:  331 Start plugin JustTextPlugin (UID 52020) in slot 5.
     27193 INFO            DisplayMgr.cpp:  346 Plugin JustTextPlugin (UID 52020) installed in slot 5.
     27204 INFO             PluginMgr.cpp:  527 [JustTextPlugin][52020] Register: /rest/api/v1/display/uid/52020/text
     27215 INFO            DisplayMgr.cpp:  331 Start plugin FirePlugin (UID 38133) in slot 6.
     27215 INFO            DisplayMgr.cpp:  346 Plugin FirePlugin (UID 38133) installed in slot 6.
     27226 INFO            DisplayMgr.cpp:  331 Start plugin IconTextPlugin (UID 33180) in slot 7.
[ 27248][E][vfs_api.cpp:104] open(): /littlefs/configuration/33180.sprite does not exist, no permits for creation
     27244 WARNING       BitmapWidget.cpp:  140 File /configuration/33180.sprite doesn't exists.
[ 27267][E][vfs_api.cpp:104] open(): /littlefs/configuration/33180.bmp does not exist, no permits for creation
     27263 WARNING       BitmapWidget.cpp:   89 File /configuration/33180.bmp doesn't exists.
     27273 INFO            DisplayMgr.cpp:  346 Plugin IconTextPlugin (UID 33180) installed in slot 7.
     27285 INFO             PluginMgr.cpp:  527 [IconTextPlugin][33180] Register: /rest/api/v1/display/uid/33180/text
     27296 INFO             PluginMgr.cpp:  527 [IconTextPlugin][33180] Register: /rest/api/v1/display/uid/33180/bitmap
     27307 INFO            DisplayMgr.cpp:  331 Start plugin SoundReactivePlugin (UID 1742) in slot 8.
     27318 INFO      SpectrumAnalyzer.cpp:  197 Spectrum analyzer task is up.
     37118 INFO      SpectrumAnalyzer.cpp:  243 I2S driver installed.
     37153 INFO            DisplayMgr.cpp:  346 Plugin SoundReactivePlugin (UID 1742) installed in slot 8.
     37154 INFO             PluginMgr.cpp:  527 [SoundReactivePlugin][1742] Register: /rest/api/v1/display/uid/1742/cfg
     37170 INFO             UpdateMgr.cpp:  127 OTA hostname: pixelix
     37539 INFO             UpdateMgr.cpp:  128 Sketch size: 1352112 bytes
     37540 INFO             UpdateMgr.cpp:  129 Free size: 1376256 bytes
     37574 INFO              ResetMon.cpp:  108 Reset reason APP CPU: Software reset CPU
     37575 INFO              ResetMon.cpp:  109 Reset reason PRO CPU: Software reset CPU
     37585 INFO              ResetMon.cpp:  110 Counted resets: 3
     37585 INFO       ConnectingState.cpp:  126 Connecting to BTHub5-C6PG2.
     50158 INFO            DisplayMgr.cpp:  982 Slot 1 (DateTimePlugin) now active.
     51374 ERROR                     wifi:    0
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51394 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51414 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51434 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51472 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51491 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51510 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51542 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51562 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51583 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51602 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51621 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51640 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51659 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51689 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51710 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51730 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51759 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51777 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51808 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51829 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51859 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51878 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51897 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51926 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51943 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     51992 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     52011 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     52031 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     52050 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     52110 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     52128 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     52159 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     52177 ERROR                     wifi:    0 sed temporarily, comeback time 0 mSec
         0 INFO                          :    0
         0 INFO                          :    0 tion refused temporarily, comeback time 0 mSec
     53458 INFO        ConnectedState.cpp:   84 Connected.
[ 43668][E][Preferences.cpp:483] getString(): nvs_get_str len fail: hostname NOT_FOUND
[ 43669][E][Preferences.cpp:483] getString(): nvs_get_str len fail: notify_url NOT_FOUND
[ 43678][E][Preferences.cpp:483] getString(): nvs_get_str len fail: ntp_server NOT_FOUND
[ 43685][E][Preferences.cpp:483] getString(): nvs_get_str len fail: time_format NOT_FOUND
     53487 INFO              ClockDrv.cpp:  114 Local time: 2022-11-16 11:31
     53498 INFO        ConnectedState.cpp:  130 Hostname: pixelix IP: 192.168.0.37
     53598 INFO            DisplayMgr.cpp:  982 Slot 0 (SysMsgPlugin) now active.
     53599 INFO       AsyncHttpClient.cpp:  328 Host: api.openweathermap.org
     53610 INFO       AsyncHttpClient.cpp:  329 Port: 443
     53610 INFO       AsyncHttpClient.cpp:  330 URI: /data/2.5/onecall?lat=53.1985983&lon=-0.4703707&units=metric&appid=160f....
     53620 INFO       AsyncHttpClient.cpp:  334 Authorization: -
     53640 INFO       AsyncHttpClient.cpp:  840 Connecting to api.openweathermap.org:443 ...

abort() was called at PC 0x4019aaa7 on core 1

Backtrace:0x40083e39:0x3ffb25d00x4008e8d9:0x3ffb25f0 0x400940b5:0x3ffb2610 0x4019aaa7:0x3ffb2690 0x4019aaee:0x3ffb26b0 0x4019ae33:0x3ffb26d0 0x4019ad92:0x3ffb26f0 0x4019ae9d:0x3ffb2710 0x4019ece1:0x3ffb2730 0x4010dc9c:0x3ffb2780 0x400efc87:0x3ffb27a0 0x400ebef8:0x3ffb27c0 0x401b32a6:0x3ffb27e0 0x400f9e2b:0x3ffb2800 0x4011470d:0x3ffb2820

ELF file SHA256: 0000000000000000

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
        37 INFO             InitState.cpp:  446 PIXELIX starts up ...
jimmyeao commented 1 year ago

seems to be an issue with the open waeather plugin, every single time it reboots is after this line: (I have multiple occurances)

    645438 INFO            DisplayMgr.cpp:  982 Slot 2 (OpenWeatherPlugin) now active.
    652799 INFO       AsyncHttpClient.cpp:  328 Host: api.openweathermap.org
    652800 INFO       AsyncHttpClient.cpp:  329 Port: 443
    652810 INFO       AsyncHttpClient.cpp:  330 URI: /data/2.5/onecall?lat=53.1985983&lon=-0.4703707&units=metric&appid=160f....
    652820 INFO       AsyncHttpClient.cpp:  334 Authorization: -
    652829 INFO       AsyncHttpClient.cpp:  840 Connecting to api.openweathermap.org:443 ...

abort() was called at PC 0x4019aaa7 on core 1

Backtrace:0x40083e39:0x3ffb25d00x4008e8d9:0x3ffb25f0 0x400940b5:0x3ffb2610 0x4019aaa7:0x3ffb2690 0x4019aaee:0x3ffb26b0 0x4019ae33:0x3ffb26d0 0x4019ad92:0x3ffb26f0 0x4019ae9d:0x3ffb2710 0x4019ece1:0x3ffb2730 0x4010dc9c:0x3ffb2780 0x400efc87:0x3ffb27a0 0x400ebef8:0x3ffb27c0 0x401b32a6:0x3ffb27e0 0x400f9e2b:0x3ffb2800 0x4011470d:0x3ffb2820

ELF file SHA256: 0000000000000000

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
jimmyeao commented 1 year ago

seems to be an issue with the open waeather plugin, every single time it reboots is after this line: (I have multiple occurances)

    645438 INFO            DisplayMgr.cpp:  982 Slot 2 (OpenWeatherPlugin) now active.
    652799 INFO       AsyncHttpClient.cpp:  328 Host: api.openweathermap.org
    652800 INFO       AsyncHttpClient.cpp:  329 Port: 443
    652810 INFO       AsyncHttpClient.cpp:  330 URI: /data/2.5/onecall?lat=53.1985983&lon=-0.4703707&units=metric&appid=160f....
    652820 INFO       AsyncHttpClient.cpp:  334 Authorization: -
    652829 INFO       AsyncHttpClient.cpp:  840 Connecting to api.openweathermap.org:443 ...

abort() was called at PC 0x4019aaa7 on core 1

Backtrace:0x40083e39:0x3ffb25d00x4008e8d9:0x3ffb25f0 0x400940b5:0x3ffb2610 0x4019aaa7:0x3ffb2690 0x4019aaee:0x3ffb26b0 0x4019ae33:0x3ffb26d0 0x4019ad92:0x3ffb26f0 0x4019ae9d:0x3ffb2710 0x4019ece1:0x3ffb2730 0x4010dc9c:0x3ffb2780 0x400efc87:0x3ffb27a0 0x400ebef8:0x3ffb27c0 0x401b32a6:0x3ffb27e0 0x400f9e2b:0x3ffb2800 0x4011470d:0x3ffb2820

ELF file SHA256: 0000000000000000

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13132
load:0x40080400,len:3036
entry 0x400805e4
jimmyeao commented 1 year ago

Could it be hitting the API limit?

Edit, no, it seems not, nothing on opeweather.org in the block listst to show its been rate limited (https://home.openweathermap.org/blocks)

Removing this plugin resolves the issue

BlueAndi commented 1 year ago

Unfortunately the backtrace is not decoded, but should if you use VSCode console. What build target do you use?

I tried your slot/plugin setup on my side, but I was not able to reproduce it right now. Hmm ...

BlueAndi commented 1 year ago

Can you try with the updated Development branch again?

jimmyeao commented 1 year ago

Can you try with the updated Development branch again?

Just uploaded the from the latest dev branch, so far so good :)