Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when prevalue.ini or align.txt are missing #3038

Closed
morty432 opened this issue Apr 17, 2024 · 12 comments
Closed

Crash when prevalue.ini or align.txt are missing #3038

morty432 opened this issue Apr 17, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@morty432
Copy link

morty432 commented Apr 17, 2024

The Problem

After some hours or some days, the system stocks and new values are not longer reported.
I had used 15.6.0 with this problem.
After update to 15.7.0 the same problem happens with the same log.

After an power-reset the systems works for a short time and it ends with the shown logfile.

I am using a 32GB SDcard. (I dont find a smaler one)

Version

15.7.0

Logfile

[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2024-04-17T16:01:36 <INF> [MAIN] Total heap: 4380199 byte
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [SNTP] TimeServer: 192.168.44.1
[0d00h00m04s] 2024-04-17T16:01:40 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2024-04-17T18:01:40 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2024-04-17T18:01:40 <INF> [SNTP] time zone:  0200 Delta to UTC: 7200 seconds
[0d00h00m04s] 2024-04-17T18:01:40 <INF> [SNTP] Time is already set: 2024-04-17 18:01:40
[0d00h00m04s] 2024-04-17T18:01:40 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [SDCARD] Folder/file presence check started...
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [SDCARD] Folder/file presence check successful
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018 ), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018 )
**### [0d00h00m05s] 2024-04-17T18:01:41 <WRN> [MAIN] Reset reason: Exception/panic
### [0d00h00m05s] 2024-04-17T18:01:41 <WRN> [MAIN] Device was rebooted due to a software exception! Log level is set ### to DEBUG until the next reboot. Flow init is delayed by 5 minutes to check the logs or do an OTA update
### [0d00h00m05s] 2024-04-17T18:01:41 <WRN> [MAIN] Keep device running until crash occurs again and check logs after device is up again**
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [LOGFILE] Set log level to DEBUG
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] SSID: M6099b
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] IP-Address: 192.168.44.66
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] Gateway: 162.168.44.1
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] Netmask: 255.255.255.0
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WLANINI] RSSIThreshold: -75
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WIFI] Manual interface config -> IP: 192.168.44.66, Gateway: 162.168.44.1, Netmask: 255.255.255.0
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WIFI] No DNS server, use gateway
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WIFI] Set hostname to: watermeter
[0d00h00m05s] 2024-04-17T18:01:41 <INF> [WIFI] Init successful
[0d00h00m07s] 2024-04-17T18:01:43 <DBG> [SNTP] Waiting for system time to be set... 1/10
[0d00h00m07s] 2024-04-17T18:01:43 <INF> [WIFI] Connected to: M6099b, RSSI: -54
[0d00h00m07s] 2024-04-17T18:01:43 <INF> [WIFI] Assigned IP: 192.168.44.66
[0d00h00m09s] 2024-04-17T18:01:45 <DBG> [SNTP] Waiting for system time to be set... 2/10
[0d00h00m10s] 2024-04-17T18:01:46 <INF> [SNTP] Time is synced with NTP Server 192.168.44.1: 2024-04-17 18:01:46
[0d00h00m11s] 2024-04-17T18:01:47 <DBG> [SNTP] Waiting for system time successfull with 2/10
[0d00h00m11s] 2024-04-17T18:01:47 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 100
[0d00h00m11s] 2024-04-17T18:01:47 <INF> [MAIN] SD card info: Name: SL32G, Capacity: 30436MB, Free: 30394MB
[0d00h00m13s] 2024-04-17T18:01:49 <INF> [MAIN] Initialization completed successfully
[0d00h05m13s] 2024-04-17T18:06:49 <DBG> [PSRAM] Allocated 921600 bytes in PSRAM for 'C IMG BASIS->CImageBasis (rawImage)'
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [PSRAM] Allocated 128004 bytes in PSRAM for 'ALIGN->AlgROI'
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [PSRAM] Allocating Tensor Arena (819200 bytes, use shared memory in PSRAM)...
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [TFLITE] CTfLiteClass::LoadModel
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [TFLITE] CTfLiteClass::ReadFileToModel: /sdcard/config/dig-cont_0620_s3_q.tflite
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [TFLITE] Loading Model /sdcard/config/dig-cont_0620_s3_q.tflite /size: 315504 bytes...
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [PSRAM] Allocating Model memory (1363148 bytes, use shared memory in PSRAM)...
[0d00h05m15s] 2024-04-17T18:06:51 <DBG> [TFLITE] CTfLiteClass::MakeAllocate
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2024-04-17T16:06:53 <INF> [MAIN] Total heap: 4380199 byte
[0d00h00m04s] 2024-04-17T16:06:57 <INF> [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2024-04-17T16:06:57 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2024-04-17T16:06:57 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2024-04-17T16:06:58 <INF> [SNTP] TimeServer: 192.168.44.1
[0d00h00m04s] 2024-04-17T16:06:58 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2024-04-17T18:06:58 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2024-04-17T18:06:58 <INF> [SNTP] time zone:  0200 Delta to UTC: 7200 seconds
[0d00h00m04s] 2024-04-17T18:06:58 <INF> [SNTP] Time is already set: 2024-04-17 18:06:58
[0d00h00m04s] 2024-04-17T18:06:58 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [SDCARD] Folder/file presence check started...
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [SDCARD] Folder/file presence check successful
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018 ), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018 )
### **[0d00h00m05s] 2024-04-17T18:06:58 <WRN> [MAIN] Reset reason: Exception/panic
### [0d00h00m05s] 2024-04-17T18:06:58 <WRN> [MAIN] Device was rebooted due to a software exception! Log level is set to DEBUG until the next reboot. Flow init is delayed by 5 minutes to check the logs or do an OTA update
### [0d00h00m05s] 2024-04-17T18:06:58 <WRN> [MAIN] Keep device running until crash occurs again and check logs after device is up again**
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [LOGFILE] Set log level to DEBUG
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] SSID: M6099b
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] IP-Address: 192.168.44.66
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] Gateway: 162.168.44.1
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] Netmask: 255.255.255.0
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WLANINI] RSSIThreshold: -75
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WIFI] Manual interface config -> IP: 192.168.44.66, Gateway: 162.168.44.1, Netmask: 255.255.255.0
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WIFI] No DNS server, use gateway
[0d00h00m05s] 2024-04-17T18:06:58 <INF> [WIFI] Set hostname to: watermeter
[0d00h00m05s] 2024-04-17T18:06:59 <INF> [WIFI] Init successful
[0d00h00m07s] 2024-04-17T18:07:01 <DBG> [SNTP] Waiting for system time to be set... 1/10
[0d00h00m08s] 2024-04-17T18:07:01 <INF> [WIFI] Connected to: M6099b, RSSI: -55
[0d00h00m08s] 2024-04-17T18:07:01 <INF> [WIFI] Assigned IP: 192.168.44.66
[0d00h00m09s] 2024-04-17T18:07:02 <INF> [SNTP] Time is synced with NTP Server 192.168.44.1: 2024-04-17 18:07:02
[0d00h00m09s] 2024-04-17T18:07:02 <DBG> [SNTP] Waiting for system time successfull with 1/10
[0d00h00m09s] 2024-04-17T18:07:02 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 100
[0d00h00m09s] 2024-04-17T18:07:03 <INF> [MAIN] SD card info: Name: SL32G, Capacity: 30436MB, Free: 30394MB
[0d00h00m11s] 2024-04-17T18:07:05 <INF> [MAIN] Initialization completed successfully
[0d00h05m11s] 2024-04-17T18:12:05 <DBG> [PSRAM] Allocated 921600 bytes in PSRAM for 'C IMG BASIS->CImageBasis (rawImage)'
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [PSRAM] Allocated 128004 bytes in PSRAM for 'ALIGN->AlgROI'
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [PSRAM] Allocating Tensor Arena (819200 bytes, use shared memory in PSRAM)...
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [TFLITE] CTfLiteClass::LoadModel
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [TFLITE] CTfLiteClass::ReadFileToModel: /sdcard/config/dig-cont_0620_s3_q.tflite
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [TFLITE] Loading Model /sdcard/config/dig-cont_0620_s3_q.tflite /size: 315504 bytes...
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [PSRAM] Allocating Model memory (1363148 bytes, use shared memory in PSRAM)...
[0d00h05m13s] 2024-04-17T18:12:06 <DBG> [TFLITE] CTfLiteClass::MakeAllocate
[0d00h00m00s] 2024-04-17T16:12:09 <INF> [MAIN] =================================================
[0d00h00m00s] 2024-04-17T16:12:09 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2024-04-17T16:12:09 <INF> [MAIN] =================================================

Expected Behavior

No response

Screenshots

No response

Additional Context

Build Info

Firmware version: | Release: v15.7.0 (Commit: 0d0b018 )
Firmware build time: | 17.02.2024 00:15
Web interface version: | Release: v15.7.0 (Commit: 0d0b018 )

Device Info

Chip Cores: | 2
Chip Revision: | 100
Chip Features: | 50

SD Card Info

SD card manufacturer: | SanDisk (ID: 3)
SD card name: | SL32G
SD card size: | 30436 MB
SD card sector size: | 512 byte
Partition size: | 30419 MB
Partition free space: | 30394 MB
Partition allocation size: | 512 byte

Memory Info

Total Free (Int Ext): | 1950727 byte
Ext. RAM - Free: | 1840116 byte
Ext. RAM - Largest Free Block: | 1835008 byte
Ext. RAM - Min Free: | 1833716 byte
Int. RAM - Free: | 110611 byte
Int. RAM - Largest Free Block: | 90112 byte
Int. RAM - Min Free: | 103795 byte

@morty432 morty432 added the bug Something isn't working label Apr 17, 2024
@SybexX
Copy link
Collaborator

SybexX commented Apr 17, 2024

I also have this problem from time to time, for me it is due to an unstable WiFi signal because the Fritzbox is about to break^^

@Slider0007
Copy link
Collaborator

Slider0007 commented Apr 19, 2024

Try to use another tflite model. If not working format or replace your SD card.

In my opinion it has nothing to do with WIFI signal.

@kailausberg
Copy link

kailausberg commented Apr 28, 2024

Try to use another tflite model. If not working format or replace your SD card.

Had the same problem after updating to latest firmware. Changing the tflite model to a newer version solves the reboots! Thanks for the tip!

@simowilso
Copy link

I have the same problem. It's been working for months without any issue on v 15.7.0
Updating the model had no effect.
I guess I will try another SD card.

@SanchYESS
Copy link

I have something similar:

Log
[0d00h00m12s] 2024-06-30T23:14:27	<INF>	[SNTP] =================================================
[0d00h00m12s] 2024-06-30T23:14:27	<INF>	[SNTP] ==================== Start ======================
[0d00h00m12s] 2024-06-30T23:14:27	<INF>	[SNTP] == Logs before time sync -> log_1970-01-01.txt ==
[0d00h00m12s] 2024-06-30T23:14:27	<INF>	[SNTP] Time is synced with NTP Server pool.ntp.org: 2024-06-30 23:14:27
[0d00h00m13s] 2024-06-30T23:14:28	<INF>	[MAIN] Device info: CPU cores: 2, Chip revision: 301
[0d00h00m13s] 2024-06-30T23:14:28	<INF>	[MAIN] SD card info: Name: NCard, Capacity: 14910MB, Free: 14892MB
[0d00h00m15s] 2024-06-30T23:14:30	<INF>	[MAIN] Initialization completed successfully
[0d00h00m00s] 2024-06-30T20:14:34	<INF>	[MAIN] =================================================
[0d00h00m00s] 2024-06-30T20:14:34	<INF>	[MAIN] ==================== Start ======================
[0d00h00m00s] 2024-06-30T20:14:34	<INF>	[MAIN] =================================================
[0d00h00m00s] 2024-06-30T20:14:34	<INF>	[MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2024-06-30T20:14:34	<INF>	[MAIN] Total heap: 4380199 byte
[0d00h00m04s] 2024-06-30T20:14:38	<INF>	[MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2024-06-30T20:14:38	<INF>	[SDCARD] Basic R/W check started...
[0d00h00m04s] 2024-06-30T20:14:39	<INF>	[SDCARD] Basic R/W check successful
[0d00h00m04s] 2024-06-30T20:14:39	<INF>	[SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m04s] 2024-06-30T20:14:39	<INF>	[SNTP] Configuring NTP Client...
[0d00h00m04s] 2024-06-30T23:14:39	<INF>	[SNTP] Time zone set to MSK-3
[0d00h00m04s] 2024-06-30T23:14:39	<INF>	[SNTP] time zone:  0300 Delta to UTC: 10800 seconds
[0d00h00m04s] 2024-06-30T23:14:39	<INF>	[SNTP] Time is already set: 2024-06-30 23:14:39
[0d00h00m04s] 2024-06-30T23:14:39	<INF>	[MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2024-06-30T23:14:39	<INF>	[SDCARD] Folder/file presence check started...
[0d00h00m05s] 2024-06-30T23:14:39	<INF>	[SDCARD] Folder/file presence check successful
[0d00h00m05s] 2024-06-30T23:14:39	<INF>	[MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018 ), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018 )
[0d00h00m05s] 2024-06-30T23:14:39	<WRN>	[MAIN] Reset reason: Exception/panic
[0d00h00m05s] 2024-06-30T23:14:39	<WRN>	[MAIN] Device was rebooted due to a software exception! Log level is set to DEBUG until the next reboot. Flow init is delayed by 5 minutes to check the logs or do an OTA update
[0d00h00m05s] 2024-06-30T23:14:39	<WRN>	[MAIN] Keep device running until crash occurs again and check logs after device is up again
[0d00h00m05s] 2024-06-30T23:14:39	<INF>	[LOGFILE] Set log level to DEBUG
[0d00h00m05s] 2024-06-30T23:14:39	<INF>	[WLANINI] SSID: (MyWiFi)
[0d00h00m05s] 2024-06-30T23:14:39	<INF>	[WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2024-06-30T23:14:39	<INF>	[WLANINI] Hostname: HotWater
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[WLANINI] IP-Address: 192.168.0.20
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[WLANINI] Gateway: 192.168.0.1
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[WLANINI] Netmask: 255.255.255.0
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[WLANINI] RSSIThreshold: 0
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[WIFI] Manual interface config -> IP: 192.168.0.20, Gateway: 192.168.0.1, Netmask: 255.255.255.0
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[WIFI] No DNS server, use gateway
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[WIFI] Set hostname to: HotWater
[0d00h00m05s] 2024-06-30T23:14:40	<INF>	[WIFI] Init successful
[0d00h00m07s] 2024-06-30T23:14:42	<DBG>	[SNTP] Waiting for system time to be set... 1/10
[0d00h00m08s] 2024-06-30T23:14:42	<INF>	[WIFI] Connected to: (MyWiFi), RSSI: -46
[0d00h00m08s] 2024-06-30T23:14:42	<INF>	[WIFI] Assigned IP: 192.168.0.20
[0d00h00m09s] 2024-06-30T23:14:44	<DBG>	[SNTP] Waiting for system time to be set... 2/10
[0d00h00m10s] 2024-06-30T23:14:45	<INF>	[SNTP] Time is synced with NTP Server pool.ntp.org: 2024-06-30 23:14:45
[0d00h00m11s] 2024-06-30T23:14:46	<DBG>	[SNTP] Waiting for system time successfull with 2/10
[0d00h00m11s] 2024-06-30T23:14:46	<INF>	[MAIN] Device info: CPU cores: 2, Chip revision: 301
[0d00h00m11s] 2024-06-30T23:14:46	<INF>	[MAIN] SD card info: Name: NCard, Capacity: 14910MB, Free: 14892MB
[0d00h00m13s] 2024-06-30T23:14:48	<INF>	[MAIN] Initialization completed successfully
[0d00h01m02s] 2024-06-30T23:15:36	<DBG>	[MAIN SERVER] info_get_handler
[0d00h01m02s] 2024-06-30T23:15:37	<DBG>	[OTA FILE] download_get_handler
[0d00h01m02s] 2024-06-30T23:15:37	<DBG>	[MAIN SERVER] info_get_handler
[0d00h01m02s] 2024-06-30T23:15:37	<DBG>	[MAIN SERVER] info_get_handler
[0d00h01m02s] 2024-06-30T23:15:37	<DBG>	[OTA FILE] download_get_handler
[0d00h01m02s] 2024-06-30T23:15:37	<DBG>	[MAIN SERVER] info_get_handler
[0d00h01m07s] 2024-06-30T23:15:41	<DBG>	[OTA FILE] log_get_last_part_handler
[0d00h02m29s] 2024-06-30T23:17:03	<DBG>	[OTA FILE] download_get_handler
[0d00h02m29s] 2024-06-30T23:17:04	<DBG>	[MAIN SERVER] info_get_handler
[0d00h05m14s] 2024-06-30T23:19:48	<DBG>	[PSRAM] Allocated 921600 bytes in PSRAM for 'C IMG BASIS->CImageBasis (rawImage)'
[0d00h05m15s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 128004 bytes in PSRAM for 'ALIGN->AlgROI'
[0d00h05m15s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocating Tensor Arena (819200 bytes, use shared memory in PSRAM)...
[0d00h05m15s] 2024-06-30T23:19:50	<DBG>	[TFLITE] CTfLiteClass::LoadModel
[0d00h05m15s] 2024-06-30T23:19:50	<DBG>	[TFLITE] CTfLiteClass::ReadFileToModel: /sdcard/config/dig-class100-0168_s2_q.tflite
[0d00h05m15s] 2024-06-30T23:19:50	<DBG>	[TFLITE] Loading Model /sdcard/config/dig-class100-0168_s2_q.tflite /size: 226968 bytes...
[0d00h05m15s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocating Model memory (1363148 bytes, use shared memory in PSRAM)...
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[TFLITE] CTfLiteClass::MakeAllocate
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Shared memory used for Tensor Arena and model (PSRAM, part of shared memory) is free again
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig2)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig2 original)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig3)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig3 original)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig4)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig4 original)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig5)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig5 original)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig6)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig6 original)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig7)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig7 original)'
[0d00h05m16s] 2024-06-30T23:19:50	<DBG>	[PSRAM] Allocated 1920 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig8)'
[0d00h05m16s] 2024-06-30T23:19:51	<DBG>	[PSRAM] Allocated 12936 bytes in PSRAM for 'C IMG BASIS->CImageBasis (ROI dig8 original)'
[0d00h00m00s] 2024-06-30T20:19:48	<INF>	[MAIN] =================================================
[0d00h00m00s] 2024-06-30T20:19:48	<INF>	[MAIN] ==================== Start ======================
[0d00h00m00s] 2024-06-30T20:19:48	<INF>	[MAIN] =================================================
[0d00h00m00s] 2024-06-30T20:19:48	<INF>	[MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2024-06-30T20:19:48	<INF>	[MAIN] Total heap: 4380199 byte
[0d00h00m04s] 2024-06-30T20:19:53	<INF>	[MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2024-06-30T20:19:53	<INF>	[SDCARD] Basic R/W check started...
[0d00h00m04s] 2024-06-30T20:19:53	<INF>	[SDCARD] Basic R/W check successful
[0d00h00m04s] 2024-06-30T20:19:53	<INF>	[SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m04s] 2024-06-30T20:19:53	<INF>	[SNTP] Configuring NTP Client...
[0d00h00m04s] 2024-06-30T23:19:53	<INF>	[SNTP] Time zone set to MSK-3
[0d00h00m04s] 2024-06-30T23:19:53	<INF>	[SNTP] time zone:  0300 Delta to UTC: 10800 seconds
[0d00h00m04s] 2024-06-30T23:19:53	<INF>	[SNTP] Time is already set: 2024-06-30 23:19:53
[0d00h00m04s] 2024-06-30T23:19:53	<INF>	[MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2024-06-30T23:19:53	<INF>	[SDCARD] Folder/file presence check started...
[0d00h00m05s] 2024-06-30T23:19:53	<INF>	[SDCARD] Folder/file presence check successful
[0d00h00m05s] 2024-06-30T23:19:53	<INF>	[MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018 ), Date/Time: 2024-02-17 00:15, Web UI: Release: v15.7.0 (Commit: 0d0b018 )
[0d00h00m05s] 2024-06-30T23:19:54	<WRN>	[MAIN] Reset reason: Exception/panic
[0d00h00m05s] 2024-06-30T23:19:54	<WRN>	[MAIN] Device was rebooted due to a software exception! Log level is set to DEBUG until the next reboot. Flow init is delayed by 5 minutes to check the logs or do an OTA update
[0d00h00m05s] 2024-06-30T23:19:54	<WRN>	[MAIN] Keep device running until crash occurs again and check logs after device is up again
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[LOGFILE] Set log level to DEBUG
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WLANINI] SSID: (MyWiFi)
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WLANINI] Hostname: HotWater
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WLANINI] IP-Address: 192.168.0.20
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WLANINI] Gateway: 192.168.0.1
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WLANINI] Netmask: 255.255.255.0
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WLANINI] RSSIThreshold: 0
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WIFI] Manual interface config -> IP: 192.168.0.20, Gateway: 192.168.0.1, Netmask: 255.255.255.0
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WIFI] No DNS server, use gateway
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WIFI] Set hostname to: HotWater
[0d00h00m05s] 2024-06-30T23:19:54	<INF>	[WIFI] Init successful
[0d00h00m07s] 2024-06-30T23:19:56	<DBG>	[SNTP] Waiting for system time to be set... 1/10
[0d00h00m08s] 2024-06-30T23:19:56	<INF>	[WIFI] Connected to: (MyWiFi), RSSI: -49
[0d00h00m08s] 2024-06-30T23:19:56	<INF>	[WIFI] Assigned IP: 192.168.0.20
[0d00h00m08s] 2024-06-30T23:20:01	<INF>	[SNTP] Time is synced with NTP Server pool.ntp.org: 2024-06-30 23:20:01
[0d00h00m09s] 2024-06-30T23:20:02	<DBG>	[SNTP] Waiting for system time successfull with 1/10
[0d00h00m09s] 2024-06-30T23:20:02	<INF>	[MAIN] Device info: CPU cores: 2, Chip revision: 301
[0d00h00m09s] 2024-06-30T23:20:02	<INF>	[MAIN] SD card info: Name: NCard, Capacity: 14910MB, Free: 14892MB
[0d00h00m11s] 2024-06-30T23:20:04	<INF>	[MAIN] Initialization completed successfully
[0d00h00m12s] 2024-06-30T23:20:04	<DBG>	[OTA FILE] log_get_last_part_handler
[0d00h00m57s] 2024-06-30T23:20:49	<DBG>	[OTA FILE] download_get_handler
[0d00h01m00s] 2024-06-30T23:20:53	<DBG>	[OTA FILE] download_get_handler
[0d00h01m03s] 2024-06-30T23:20:56	<DBG>	[OTA FILE] download_get_handler
[0d00h01m11s] 2024-06-30T23:21:03	<DBG>	[OTA FILE] download_get_handler
[0d00h01m37s] 2024-06-30T23:21:30	<DBG>	[OTA FILE] download_get_handler
[0d00h01m38s] 2024-06-30T23:21:31	<DBG>	[OTA FILE] download_get_handler
[0d00h01m40s] 2024-06-30T23:21:33	<DBG>	[OTA FILE] download_get_handler
[0d00h01m46s] 2024-06-30T23:21:39	<DBG>	[OTA FILE] download_get_handler

Earlier it was working for months, then started to reboot sometimes, after reflashing it worked again (which led me to believe that it is an issue with ESP32 flash). Then it stuck in reboot loop and nothing helped. Now I flashed a new ESP32 and it loops again. Two things stayed the same - camera and sd card. Camera seems to work ( [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2 ), so it seems that it is an sd card after all.

@SanchYESS
Copy link

So I got a new card, copied the contents of the old card and it stuck in loop again. Then I compared the contents with ones on my second device (which works) and noticed the lacking of prevalue.ini and align.txt files. I copied those files to looping device's card and it started to work.
So if you are stuck with this issue please check your prevalue.ini and align.txt files and if there are none try to create ones.
Contents of my files for reference:

prevalue.ini
main	2024-07-03T00:47:46 0300	26779.5
align.txt
2023-08-11T13:43:48
133	120	1.975217	1073648208	1073626420	1.986097
432	372	1.975217	1073648208	1073626420	1.986097

I guess that there is unhandled exception while trying to open those files.
Or I may be completely wrong xD

@caco3 caco3 changed the title [MAIN] Device was rebooted due to a software exception! rash when prevalue.ini or align.txt are missing Aug 25, 2024
@caco3 caco3 changed the title rash when prevalue.ini or align.txt are missing Crash when prevalue.ini or align.txt are missing Aug 25, 2024
@wg25
Copy link

wg25 commented Aug 26, 2024

Yes, I can confirm. The prevalue.ini was empty in my case. I uploaded a prefilled prevalue.ini and it worked again. Thanks!!!

@SybexX
Copy link
Collaborator

SybexX commented Aug 26, 2024

@wg25 try the current rolling, there is a fix in it that should solve the problem with an empty or missing prevalue.ini https://github.com/jomjol/AI-on-the-edge-device/actions/runs/10538088488

@wg25
Copy link

wg25 commented Aug 26, 2024

It was the first time that I had this issue. Before that the 15.7.0 ran more than ~40 days in a row. No reboots, no issues, very seldom wrong values. But I can give it a try. Something to consider before uploading?

@SybexX
Copy link
Collaborator

SybexX commented Aug 26, 2024

We're looking to make a new release based on rolling soon, so it would be really nice if you tested it out too. There shouldn't actually be any problems with the update, just update via OTA.

@caco3
Copy link
Collaborator

caco3 commented Aug 26, 2024

@SybexX It sounds as if we could close this issue, right?

@SybexX
Copy link
Collaborator

SybexX commented Aug 26, 2024

We have the fix for this in the rolling table.
17fe87b

@caco3 caco3 closed this as completed Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants