-
Notifications
You must be signed in to change notification settings - Fork 374
master branch - Camera sensor failed to initialize: allocating framebuffer failed #190
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
Comments
I'm having the same issue. |
What is the output if you send |
Name: ESP32 camera server Seems something's wrong with spiffs? P.S. CAMERA_MODEL_AI_THINKER, and there's no issue with the main camera webserver example from Espressif. |
Lack of Spiffs wont cause this issue. |
After updating to 2.0.1 release, camera initialization still fails: E (562) cam_hal: cam_dma_config(280): frame buffer malloc failed Or after some rebooting, with this error: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND) Dump result: Name: ESP32 camera server I also tried connecting to other power sources, erasing flash and commenting the led pins from camera_pins.h, which didn't help. |
Unfortunately, the same error occurs. Tested with 1000 and 2000 delay. |
OkiDoki; I see two things I don't understand in your config:
Here is what I see on my AI-THINKER boards:
The low PSRAM and lack of SPIFFS says that something is either wrong with your hardware, or wrong with your config. Anyway.. I do have something concrete you can try:
The other thing you could try is to uncomment the line |
I seem to be running into the same issue with the latest master branch:
I tried without configuring the external clock, 3 Mhz and 20 Mhz, no difference. What seems curious is that early on there is a line "Camera init succeeded", but later on it fails? |
I have this kit: https://aliexpress.ru/item/1005003334474586.html
I tried a default example CameraWebServer from Arduino IDE 1.8.16 ESP32 package 1.0.6, selecting AI Thinker Board. All works just fine.
When I try to flash your firmware from master branch, it does not works. Server displays error page. Here is full log:
`
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
[D][esp32-hal-psram.c:47] psramInit(): PSRAM enabled
====
esp32-cam-webserver: ESP32 camera server
Code Built: Nov 28 2021 @ 20:56:35
Base Release: 4.0.beta2
[E][camera.c:267] camera_fb_init(): Allocating 375 KB frame buffer Failed
[E][camera.c:1281] camera_init(): Failed to allocate frame buffer
E (1115) gpio: gpio_isr_handler_remove(398): GPIO isr service is not installed, call gpio_install_isr_service() first
[E][camera.c:1406] esp_camera_init(): Camera init failed with error 0x101
CRITICAL FAILURE: Camera sensor failed to initialise.
A full (hard, power off/on) reboot will probably be needed to recover from this.
Meanwhile; this unit will reboot in 1 minute since these errors sometime clear automatically
Lamp: 0%, pwm = 0
Starting WiFi
[W][WiFiGeneric.cpp:637] setSleep(): STA has not been started
Known external SSIDs: 'CHTON'
MAC address: 4C:EB:D6:7C:CB:20
Scanning local Wifi Networks
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 0 - WIFI_READY
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 2 - STA_START
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 1 - SCAN_DONE
1 networks found
1 : [60:45:CB:C9:3E:90] CHTON (-78) - Known!
Connecting to Wifi Network 0: [60:45:CB:C9:3E:90] CHTON
........[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 4 - STA_CONNECTED
[D][WiFiGeneric.cpp:374] _eventCallback(): Event: 7 - STA_GOT_IP
[D][WiFiGeneric.cpp:419] _eventCallback(): STA IP: 192.168.1.248, MASK: 255.255.255.0, GW: 192.168.1.1
.Client connection succeeded
IP address: 192.168.1.248
Netmask : 255.255.255.0
Gateway : 192.168.1.1
Setting httpURL
Setting up OTA
No OTA password has been set! (insecure)
[I][ArduinoOTA.cpp:141] begin(): OTA server at: ESP32 camera server.local:3232
Time functions disabled
Starting web server on port: '80'
Starting stream server on port: '81'
Camera unavailable due to initialisation errors.
This is the 4.0 alpha
`
The text was updated successfully, but these errors were encountered: