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

Camera Framebuffer error after upgrading to 13.0.5 #1513

Closed
ednax opened this issue Dec 7, 2022 · 9 comments
Closed

Camera Framebuffer error after upgrading to 13.0.5 #1513

ednax opened this issue Dec 7, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@ednax
Copy link

ednax commented Dec 7, 2022

The Problem

Hi,

after upgrading from 12.0.1 to 13.0.5 I'm unable to get the device to make pictures.
The log (in DEBUG-Mode) shows the following Message:

[      12] 2022-12-07T13:23:10 <ERR> [MAIN] Camera Framebuffer cannot be initialized!
[      14] 2022-12-07T13:23:12 <ERR> [MAIN] Initialization failed. Will restart in 5 minutes!
[     254] 2022-12-07T13:27:12 <ERR> [MAIN] Initialization failed. Will restart in 1 minute!
[     314] 2022-12-07T13:28:12 <ERR> [MAIN] Initialization failed. Will restart now!

I also tried to completly reinstall everything, but I still get the error.
I'm probably going back to 12.0.1, but the new Feature (Homeassistant Discovery MQTT) was the main reason to update.
Maybe someone can help me with the Problem?

Version

13.0.5

Logfile

[       8] 2022-12-07T13:41:03 <INF> [MAIN] =================================================
[       8] 2022-12-07T13:41:03 <INF> [MAIN] ================== Main Started =================
[       8] 2022-12-07T13:41:03 <INF> [MAIN] =================================================
[      12] 2022-12-07T13:41:07 <ERR> [MAIN] Camera Framebuffer cannot be initialized!
[      14] 2022-12-07T13:41:09 <ERR> [MAIN] Initialization failed. Will restart in 5 minutes!
[     254] 2022-12-07T13:45:09 <ERR> [MAIN] Initialization failed. Will restart in 1 minute!
[     314] 2022-12-07T13:46:09 <ERR> [MAIN] Initialization failed. Will restart now!
[     314] 2022-12-07T13:46:09 <INF> [OTA] Reboot triggered by Software (5s).
[     314] 2022-12-07T13:46:09 <WRN> [OTA] Reboot in 5sec
[       4] 2022-12-07T13:46:18 <INF> [MAIN] =================================================
[       4] 2022-12-07T13:46:18 <INF> [MAIN] ==================== Startup ====================
[       4] 2022-12-07T13:46:18 <INF> [MAIN] =================================================
[       4] 2022-12-07T13:46:18 <INF> [MAIN] Branch: 'HEAD', Revision: e23c89a, Date/Time: 2022-12-06 19:34, Web UI: Release: v13.0.5 (Commit: e23c89a)
[       4] 2022-12-07T13:46:18 <INF> [MAIN] Reset reason: Via esp_restart
[       8] 2022-12-07T13:46:22 <INF> [MAIN] =================================================
[       8] 2022-12-07T13:46:22 <INF> [MAIN] ================== Main Started =================
[       8] 2022-12-07T13:46:22 <INF> [MAIN] =================================================
[      12] 2022-12-07T13:46:26 <ERR> [MAIN] Camera Framebuffer cannot be initialized!
[      14] 2022-12-07T13:46:28 <ERR> [MAIN] Initialization failed. Will restart in 5 minutes!
[     254] 2022-12-07T13:50:28 <ERR> [MAIN] Initialization failed. Will restart in 1 minute!
[     314] 2022-12-07T13:51:28 <ERR> [MAIN] Initialization failed. Will restart now!
[     314] 2022-12-07T13:51:28 <INF> [OTA] Reboot triggered by Software (5s).
[     314] 2022-12-07T13:51:28 <WRN> [OTA] Reboot in 5sec
[       4] 2022-12-07T13:51:41 <INF> [MAIN] =================================================
[       4] 2022-12-07T13:51:41 <INF> [MAIN] ==================== Startup ====================
[       4] 2022-12-07T13:51:41 <INF> [MAIN] =================================================
[       4] 2022-12-07T13:51:41 <INF> [MAIN] Branch: 'HEAD', Revision: e23c89a, Date/Time: 2022-12-06 19:34, Web UI: Release: v13.0.5 (Commit: e23c89a)
[       4] 2022-12-07T13:51:41 <INF> [MAIN] Reset reason: Via esp_restart
[       8] 2022-12-07T13:51:45 <INF> [MAIN] =================================================
[       8] 2022-12-07T13:51:45 <INF> [MAIN] ================== Main Started =================
[       8] 2022-12-07T13:51:45 <INF> [MAIN] =================================================
[      12] 2022-12-07T13:51:49 <ERR> [MAIN] Camera Framebuffer cannot be initialized!
[      14] 2022-12-07T13:51:51 <ERR> [MAIN] Initialization failed. Will restart in 5 minutes!

Expected Behavior

No response

Screenshots

No response

Additional Context

No response

@ednax ednax added the bug Something isn't working label Dec 7, 2022
@marc4s
Copy link

marc4s commented Dec 7, 2022

same error here. could not get it running even with new hardware. then I cleaned up the sdcard. setup process is great. everything looks perfect. reference image could be updated. marks etc. then reboot. and again:

[ 4] 2022-12-07T14:04:31 [MAIN] =================================================
[ 4] 2022-12-07T14:04:31 [MAIN] ==================== Startup ====================
[ 4] 2022-12-07T14:04:31 [MAIN] =================================================
[ 4] 2022-12-07T14:04:31 [MAIN] Branch: 'HEAD', Revision: e23c89a, Date/Time: 2022-12-06 19:34, Web UI: Release: v13.0.5 (Commit: e23c89a)
[ 4] 2022-12-07T14:04:31 [MAIN] Reset reason: Via esp_restart
[ 8] 2022-12-07T14:04:35 [MAIN] =================================================
[ 8] 2022-12-07T14:04:35 [MAIN] ================== Main Started =================
[ 8] 2022-12-07T14:04:35 [MAIN] =================================================
[ 12] 2022-12-07T14:04:39 [MAIN] Camera Framebuffer cannot be initialized!
[ 14] 2022-12-07T14:04:41 [MAIN] Initialization failed. Will restart in 5 minutes!
[ 218] 2022-12-07T14:08:06 [OTA FILE] Failed to read existing file: %s

@marc4s
Copy link

marc4s commented Dec 7, 2022

so something in config.ini is bad I think

@jomjol
Copy link
Owner

jomjol commented Dec 7, 2022

The problem is not the configuration, but the camera initialization is not working anymore.

@caco3 : than could be caused by the change in the boot order?!?

@caco3
Copy link
Collaborator

caco3 commented Dec 7, 2022

I said I wanted to change the startup order, but then I realized that it did not solve what I wanted to do.
So in the end I did not change the startup order. But I thought that if Camera.InitCam() fails the cam is not usable, thus I trigger a reboot:
v12.0.1...v13.0.5#diff-2773902c8e6d0ea3798e839063d7b39aa9b94a2e27c405ae00cadf0ee66ca2deR252

Originally it just showed an error ("Failed to initialize camera module! Check that your camera module is working and connected properly!" but then it continues with the startup.

I have one device where it fails on this check. But since I have 2 other devices where this works without an issue, I interpreted that it is a hardware issue.

So should we revert that change and simply continue processing?
Will it still work with this error?

@ednax
Copy link
Author

ednax commented Dec 8, 2022

I'm not sure if the reboot is the cause of the camera not working.
But this change makes my device rebooting every few minutes.
While trying to change the config, the device just reboots - that is very frustrating...

@jomjol
Copy link
Owner

jomjol commented Dec 8, 2022

@caco3 I would go back to the old version. This part of the starting sequence was always a miracle and once I ended up with my version I never changed it.

Proven in use!

@caco3
Copy link
Collaborator

caco3 commented Dec 8, 2022

ok, I will revert the auto restart

@i-peter
Copy link

i-peter commented Dec 11, 2022

Hi,
just to give you an insight of the behaviour with my device:
From time to time I receive the error and restart is fixing this.
I moved from 12.0.1 to 13.0.5 yesterday. In 12.0.1 I never saw the error message.
I hope this is helping...

[       4] 2022-12-11T12:23:15 <INF> [MAIN] =================================================
[       4] 2022-12-11T12:23:15 <INF> [MAIN] ==================== Startup ====================
[       4] 2022-12-11T12:23:15 <INF> [MAIN] =================================================
[       4] 2022-12-11T12:23:15 <INF> [MAIN] Branch: 'HEAD', Revision: e23c89a, Date/Time: 2022-12-06 19:34, Web UI: Release: v13.0.5 (Commit: e23c89a)
[       4] 2022-12-11T12:23:15 <INF> [MAIN] Reset reason: Via esp_restart
[       8] 2022-12-11T12:23:19 <INF> [MAIN] =================================================
[       8] 2022-12-11T12:23:19 <INF> [MAIN] ================== Main Started =================
[       8] 2022-12-11T12:23:19 <INF> [MAIN] =================================================
[      12] 2022-12-11T12:23:23 <ERR> [MAIN] Camera Framebuffer cannot be initialized!
[      14] 2022-12-11T12:23:25 <ERR> [MAIN] Initialization failed. Will restart in 5 minutes!
[     254] 2022-12-11T12:27:25 <ERR> [MAIN] Initialization failed. Will restart in 1 minute!
[     314] 2022-12-11T12:28:25 <ERR> [MAIN] Initialization failed. Will restart now!
[     314] 2022-12-11T12:28:25 <INF> [OTA] Reboot triggered by Software (5s).
[     314] 2022-12-11T12:28:25 <WRN> [OTA] Reboot in 5sec
[       4] 2022-12-11T12:26:53 <INF> [MAIN] =================================================
[       4] 2022-12-11T12:26:53 <INF> [MAIN] ==================== Startup ====================
[       4] 2022-12-11T12:26:53 <INF> [MAIN] =================================================
[       4] 2022-12-11T12:26:53 <INF> [MAIN] Branch: 'HEAD', Revision: e23c89a, Date/Time: 2022-12-06 19:34, Web UI: Release: v13.0.5 (Commit: e23c89a)
[       4] 2022-12-11T12:26:53 <INF> [MAIN] Reset reason: Via esp_restart
[       8] 2022-12-11T12:26:57 <INF> [MAIN] =================================================
[       8] 2022-12-11T12:26:57 <INF> [MAIN] ================== Main Started =================
[       8] 2022-12-11T12:26:57 <INF> [MAIN] =================================================
[      12] 2022-12-11T12:27:01 <ERR> [MAIN] Camera Framebuffer cannot be initialized!
[      14] 2022-12-11T12:27:03 <ERR> [MAIN] Initialization failed. Will restart in 5 minutes!
[     254] 2022-12-11T12:31:03 <ERR> [MAIN] Initialization failed. Will restart in 1 minute!
[     314] 2022-12-11T12:32:03 <ERR> [MAIN] Initialization failed. Will restart now!
[     314] 2022-12-11T12:32:03 <INF> [OTA] Reboot triggered by Software (5s).
[     314] 2022-12-11T12:32:03 <WRN> [OTA] Reboot in 5sec
[       4] 2022-12-11T12:34:37 <INF> [MAIN] =================================================
[       4] 2022-12-11T12:34:37 <INF> [MAIN] ==================== Startup ====================
[       4] 2022-12-11T12:34:37 <INF> [MAIN] =================================================
[       4] 2022-12-11T12:34:37 <INF> [MAIN] Branch: 'HEAD', Revision: e23c89a, Date/Time: 2022-12-06 19:34, Web UI: Release: v13.0.5 (Commit: e23c89a)
[       4] 2022-12-11T12:34:37 <INF> [MAIN] Reset reason: Via esp_restart
[       9] 2022-12-11T12:34:42 <INF> [MAIN] =================================================
[       9] 2022-12-11T12:34:42 <INF> [MAIN] ================== Main Started =================
[       9] 2022-12-11T12:34:42 <INF> [MAIN] =================================================
[      11] 2022-12-11T12:34:44 <INF> [MAIN] Initialization completed successfully!

@caco3
Copy link
Collaborator

caco3 commented Dec 11, 2022

Yes, it seems the framebuffer error should not be treated as critical. In the next version we will continue operation in such case.

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

5 participants