Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Critical error 0x00000004 Cam bad after update to 16.0.0-RC5 #3471

Closed
pierafal opened this issue Jan 3, 2025 · 9 comments
Closed

Critical error 0x00000004 Cam bad after update to 16.0.0-RC5 #3471

pierafal opened this issue Jan 3, 2025 · 9 comments

Comments

@pierafal
Copy link

pierafal commented Jan 3, 2025

The Problem

I was playing with the device for a month but struggling with taking good pictures due to the issue with no possibility to change built-in LED intensity.

hw: ESP32-CAM-MB + OV2640 camera
fw: latest stable 15.7.0
The device is assembled on my water meter outside my home, underground, i do not have direct/easy access to it.

Today I've made an OTA update

  1. At first i've used the AI-on-the-edge-device__remote-setup__v16.0.0-RC5.zip
    It appeared to update only UI to 16.0.0-RC5, and the fw was still 15.7.0
    In this case i've observed the issue with build-in LED flash was ON only for the first time, and then it was always OFF until next reboot. It wasn't working also when I tried Data->LiveStream (Led ON)
  2. Then i used the: AI-on-the-edge-device_update_v16.0.0-RC5
    and after restart it shows a critical error 0x4, which is Cam bad
    Zrzut ekranu 2025-01-03 120333
    The info tab shows the current fw an UI is updated to 16.0.0-RC5
    Zrzut ekranu 2025-01-03 121604
  3. After revert via OTA using AI-on-the-edge-device_update_v15.7.0 it works exactly as it was previously with 15.7.0.

I've reproduced it 2 times using above steps.

Version

16.0.0-RC5

Logfile

[0d00h00m00s] 2025-01-03T11:13:15 <INF> [MAIN] =================================================
[0d00h00m00s] 2025-01-03T11:13:15 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2025-01-03T11:13:15 <INF> [MAIN] =================================================
[0d00h00m00s] 2025-01-03T11:13:15 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2025-01-03T11:13:15 <INF> [MAIN] Total heap: 4380067 byte
[0d00h00m04s] 2025-01-03T11:13:19 <INF> [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2025-01-03T11:13:19 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2025-01-03T11:13:19 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2025-01-03T11:13:19 <INF> [SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m04s] 2025-01-03T11:13:19 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2025-01-03T12:13:19 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2025-01-03T12:13:19 <INF> [SNTP] time zone: +0100 Delta to UTC: 3600 seconds
[0d00h00m04s] 2025-01-03T12:13:19 <INF> [SNTP] Time is already set: 2025-01-03 12:13:19
[0d00h00m04s] 2025-01-03T12:13:19 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [SDCARD] Folder/file presence check started...
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [SDCARD] Folder/file presence check successful
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [MAIN] Tag: 'v15.7.0', Release: v15.7.0 (Commit: 0d0b018+), Date/Time: 2024-02-17 00:15, Web UI: Release: v16.0.0-RC5 (Commit: 7836323+)
[0d00h00m05s] 2025-01-03T12:13:20 <WRN> [MAIN] Web UI version (7836323) does not match firmware version (0d0b018+)
[0d00h00m05s] 2025-01-03T12:13:20 <WRN> [MAIN] Recommendation: Repeat installation using AI-on-the-edge-device__update__*.zip
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [MAIN] Reset reason: Via esp_restart
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [WLANINI] SSID: Error_IoT
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [WLANINI] RSSIThreshold: -75
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [WIFI] Automatic interface config --> Use DHCP service
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [WIFI] Set hostname to: watermeter
[0d00h00m05s] 2025-01-03T12:13:20 <INF> [WIFI] Init successful
[0d00h00m07s] 2025-01-03T12:13:23 <INF> [WIFI] Connected to: Error_IoT, RSSI: -63
[0d00h00m08s] 2025-01-03T12:13:24 <INF> [WIFI] Assigned IP: 192.168.9.220
[0d00h00m10s] 2025-01-03T12:13:26 <INF> [SNTP] Time is synced with NTP Server pool.ntp.org: 2025-01-03 12:13:26
[0d00h00m11s] 2025-01-03T12:13:26 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 301
[0d00h00m11s] 2025-01-03T12:13:26 <INF> [MAIN] SD card info: Name: SC16G, Capacity: 15193MB, Free: 14784MB
[0d00h00m13s] 2025-01-03T12:13:28 <INF> [MAIN] Initialization completed successfully
[0d00h00m16s] 2025-01-03T12:13:31 <INF> [LOGFILE] Set log level to ERROR
[0d00h00m00s] 2025-01-03T11:14:35 <INF> [MAIN] =================================================
[0d00h00m00s] 2025-01-03T11:14:35 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2025-01-03T11:14:35 <INF> [MAIN] =================================================
[0d00h00m00s] 2025-01-03T11:14:35 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2025-01-03T11:14:35 <INF> [MAIN] Total heap: 4380067 byte
[0d00h00m04s] 2025-01-03T11:14:39 <INF> [MAIN] Camera info: PID: 0x26, VER: 0x42, MIDL: 0x7f, MIDH: 0xa2
[0d00h00m04s] 2025-01-03T11:14:39 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2025-01-03T11:14:39 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2025-01-03T11:14:39 <INF> [SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m04s] 2025-01-03T11:14:39 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2025-01-03T12:14:39 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2025-01-03T12:14:39 <INF> [SNTP] time zone: +0100 Delta to UTC: 3600 seconds
[0d00h00m04s] 2025-01-03T12:14:39 <INF> [SNTP] Time is already set: 2025-01-03 12:14:39
[0d00h00m04s] 2025-01-03T12:14:39 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2025-01-03T12:14:40 <INF> [OTA] Start update process (/sdcard/firmware/AI-on-the-edge-device__update__v16.0.0-RC5.zip)
[0d00h00m05s] 2025-01-03T12:14:40 <INF> [OTA] File: /sdcard/firmware/AI-on-the-edge-device__update__v16.0.0-RC5.zip Filetype: ZIP
[0d00h00m05s] 2025-01-03T12:14:40 <INF> [OTA FILE] Files to be extracted: 90
[0d00h00m32s] 2025-01-03T12:15:08 <INF> [OTA] Files unzipped.
[0d00h00m32s] 2025-01-03T12:15:08 <INF> [OTA] Found firmware.bin
[0d00h00m47s] 2025-01-03T12:15:22 <INF> [OTA] Trigger reboot due to firmware update
[0d00h00m47s] 2025-01-03T12:15:22 <WRN> [OTA] Reboot in 5sec
[0d00h00m00s] 2025-01-03T11:15:29 <INF> [MAIN] =================================================
[0d00h00m00s] 2025-01-03T11:15:29 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2025-01-03T11:15:29 <INF> [MAIN] =================================================
[0d00h00m00s] 2025-01-03T11:15:29 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2025-01-03T11:15:29 <INF> [MAIN] Total heap: 4382731 byte
[0d00h00m02s] 2025-01-03T11:15:31 <WRN> [MAIN] Camera init failed (0x105), retrying...
[0d00h00m04s] 2025-01-03T11:15:33 <ERR> [MAIN] Camera init failed (0x105)! Check camera module and/or proper electrical connection
[0d00h00m04s] 2025-01-03T11:15:33 <ERR> [HELPER] New System Status: 0x00000004
[0d00h00m04s] 2025-01-03T11:15:33 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2025-01-03T11:15:33 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2025-01-03T11:15:34 <INF> [SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m04s] 2025-01-03T11:15:34 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2025-01-03T12:15:34 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2025-01-03T12:15:34 <INF> [SNTP] time zone: +0100 Delta to UTC: 3600 seconds
[0d00h00m04s] 2025-01-03T12:15:34 <INF> [SNTP] Time is already set: 2025-01-03 12:15:34
[0d00h00m04s] 2025-01-03T12:15:34 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [SDCARD] Folder/file presence check started...
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [SDCARD] Folder/file presence check successful
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [MAIN] Tag: 'v16.0.0-RC5', Release: v16.0.0-RC5 (Commit: 7836323+), Date/Time: 2024-12-05 00:08, Web UI: Release: v16.0.0-RC5 (Commit: 7836323+)
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [MAIN] Reset reason: Via esp_restart
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [WLANINI] SSID: Error_IoT
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [WLANINI] RSSIThreshold: -75
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2025-01-03T12:15:34 <INF> [WIFI] Automatic interface config --> Use DHCP service
[0d00h00m05s] 2025-01-03T12:15:35 <INF> [WIFI] Set hostname to: watermeter
[0d00h00m05s] 2025-01-03T12:15:35 <INF> [WIFI] Init successful
[0d00h00m08s] 2025-01-03T12:15:37 <INF> [WIFI] Connected to: Error_IoT, RSSI: -70
[0d00h00m09s] 2025-01-03T12:15:38 <INF> [WIFI] Assigned IP: 192.168.9.220
[0d00h00m09s] 2025-01-03T12:15:38 <INF> [SNTP] Time is synced with NTP Server pool.ntp.org: 2025-01-03 12:15:38
[0d00h00m09s] 2025-01-03T12:15:39 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 301
[0d00h00m09s] 2025-01-03T12:15:39 <INF> [MAIN] SD card info: Name: SC16G, Capacity: 15193MB, Free: 14783MB
[0d00h00m11s] 2025-01-03T12:15:41 <ERR> [MAIN] Initialization failed. Flow task start aborted. Loading reduced web interface...
[0d00h00m12s] 2025-01-03T12:15:41 <ERR> [MAIN SERVER] We have a critical error, not serving main page!
[0d00h00m12s] 2025-01-03T12:15:41 <ERR> [MAIN SERVER] We have a critical error, not serving main page!
[0d00h00m13s] 2025-01-03T12:15:42 <ERR> [MAIN SERVER] We have a critical error, not serving main page!
[0d00h00m39s] 2025-01-03T12:16:08 <INF> [CAM] Live stream started
[0d00h00m39s] 2025-01-03T12:16:08 <ERR> [CAM] CaptureToStream: Camera framebuffer not available
[0d00h00m39s] 2025-01-03T12:16:08 <INF> [CAM] Live stream stopped
[0d00h00m47s] 2025-01-03T12:16:17 <INF> [CAM] Live stream started
[0d00h00m47s] 2025-01-03T12:16:17 <ERR> [CAM] CaptureToStream: Camera framebuffer not available
[0d00h00m47s] 2025-01-03T12:16:17 <INF> [CAM] Live stream stopped
[0d00h00m54s] 2025-01-03T12:16:23 <INF> [OTA] !!! System will restart within 5 sec!!!
[0d00h00m54s] 2025-01-03T12:16:23 <INF> [OTA] Reboot triggered by Software (5s)
[0d00h00m54s] 2025-01-03T12:16:23 <WRN> [OTA] Reboot in 5sec
[0d00h00m00s] 2025-01-03T11:16:31 <INF> [MAIN] =================================================
[0d00h00m00s] 2025-01-03T11:16:31 <INF> [MAIN] ==================== Start ======================
[0d00h00m00s] 2025-01-03T11:16:31 <INF> [MAIN] =================================================
[0d00h00m00s] 2025-01-03T11:16:31 <INF> [MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)
[0d00h00m00s] 2025-01-03T11:16:31 <INF> [MAIN] Total heap: 4382731 byte
[0d00h00m02s] 2025-01-03T11:16:33 <WRN> [MAIN] Camera init failed (0x105), retrying...
[0d00h00m04s] 2025-01-03T11:16:35 <ERR> [MAIN] Camera init failed (0x105)! Check camera module and/or proper electrical connection
[0d00h00m04s] 2025-01-03T11:16:35 <ERR> [HELPER] New System Status: 0x00000004
[0d00h00m04s] 2025-01-03T11:16:35 <INF> [SDCARD] Basic R/W check started...
[0d00h00m04s] 2025-01-03T11:16:35 <INF> [SDCARD] Basic R/W check successful
[0d00h00m04s] 2025-01-03T11:16:35 <INF> [SNTP] TimeServer not defined, using default: pool.ntp.org
[0d00h00m04s] 2025-01-03T11:16:35 <INF> [SNTP] Configuring NTP Client...
[0d00h00m04s] 2025-01-03T12:16:35 <INF> [SNTP] Time zone set to CET-1CEST,M3.5.0,M10.5.0/3
[0d00h00m04s] 2025-01-03T12:16:35 <INF> [SNTP] time zone: +0100 Delta to UTC: 3600 seconds
[0d00h00m04s] 2025-01-03T12:16:35 <INF> [SNTP] Time is already set: 2025-01-03 12:16:35
[0d00h00m04s] 2025-01-03T12:16:35 <INF> [MAIN] CPU frequency: 160 MHz
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [SDCARD] Folder/file presence check started...
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [SDCARD] Folder/file presence check successful
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [MAIN] Tag: 'v16.0.0-RC5', Release: v16.0.0-RC5 (Commit: 7836323+), Date/Time: 2024-12-05 00:08, Web UI: Release: v16.0.0-RC5 (Commit: 7836323+)
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [MAIN] Reset reason: Via esp_restart
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [WLANINI] SSID: Error_IoT
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [WLANINI] Password: XXXXXXXX
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [WLANINI] RSSIThreshold: -75
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [MAIN] WLAN config loaded, init WIFI...
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [WIFI] Automatic interface config --> Use DHCP service
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [WIFI] Set hostname to: watermeter
[0d00h00m05s] 2025-01-03T12:16:36 <INF> [WIFI] Init successful
[0d00h00m08s] 2025-01-03T12:16:39 <INF> [WIFI] Connected to: Error_IoT, RSSI: -70
[0d00h00m09s] 2025-01-03T12:16:40 <INF> [WIFI] Assigned IP: 192.168.9.220
[0d00h00m11s] 2025-01-03T12:16:42 <INF> [SNTP] Time is synced with NTP Server pool.ntp.org: 2025-01-03 12:16:42
[0d00h00m13s] 2025-01-03T12:16:44 <INF> [MAIN] Device info: CPU cores: 2, Chip revision: 301
[0d00h00m13s] 2025-01-03T12:16:44 <INF> [MAIN] SD card info: Name: SC16G, Capacity: 15193MB, Free: 14783MB
[0d00h00m15s] 2025-01-03T12:16:46 <ERR> [MAIN] Initialization failed. Flow task start aborted. Loading reduced web interface...
[0d00h00m15s] 2025-01-03T12:16:47 <ERR> [MAIN SERVER] We have a critical error, not serving main page!
[0d00h00m42s] 2025-01-03T12:17:13 <ERR> [MAIN SERVER] We have a critical error, not serving main page!

Expected Behavior

The device should start and I should be able to create ref image

Screenshots

No response

Additional Context

No response

@pierafal
Copy link
Author

pierafal commented Jan 3, 2025

I've just tried the same using OTA update to RC4 and RC1 and also have 0x4 Cam bad critical error.
After downgrade to 15.7.0 camera works fine, but build-in LED flash intensity regulation does not have any effect.

@SybexX
Copy link
Collaborator

SybexX commented Jan 3, 2025

have you tried the current main yet? https://github.com/jomjol/AI-on-the-edge-device/actions/runs/12584976164
For an update please also take the update file AI-on-the-edge-device__update__main_(b72d809)

@caco3
Copy link
Collaborator

caco3 commented Jan 3, 2025

no possibility to change built-in LED intensity.

this can be set on the ref image page as well as in the settings page

@Ingo-Knito
Copy link

Powering off the device once can help

@pierafal
Copy link
Author

pierafal commented Jan 3, 2025

no possibility to change built-in LED intensity.

this can be set on the ref image page as well as in the settings page

This was not possible for me on 15.7.0. No matter if it's set to defoult 50, 10 or 100 the picture looks very similar.

@pierafal
Copy link
Author

pierafal commented Jan 3, 2025

Powering off the device once can help
Reboot from System menu did not help.

@pierafal
Copy link
Author

pierafal commented Jan 3, 2025

have you tried the current main yet? https://github.com/jomjol/AI-on-the-edge-device/actions/runs/12584976164 For an update please also take the update file AI-on-the-edge-device__update__main_(b72d809)

This build seems to solve my problem with cam bad critical error. And adjusting LED flash intensity also work.
Thank you very much for the help.

@Ingo-Knito
Copy link

Try a power off for a couple of seconds.
Not a reboot. Reboot does not work.

@pierafal
Copy link
Author

pierafal commented Jan 3, 2025

Try a power off for a couple of seconds. Not a reboot. Reboot does not work.

it works now for me, but i will rememer that next time when some issue appears. Thank you.

@caco3 caco3 removed the bug Something isn't working label Jan 3, 2025
Repository owner locked and limited conversation to collaborators Jan 3, 2025
@caco3 caco3 converted this issue into discussion #3476 Jan 3, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants