-
Notifications
You must be signed in to change notification settings - Fork 621
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
call to esp_camera_fb_get
causes stack overflow after calling set_framesize
with bigger resolution than used in esp_camera_init
#514
Comments
Got the camera driver code compiled in my project and debugged it.
where refined repro:
Here is the list of the issues, which would be great if they get fixed in the esp32-camera:
|
esp_camera_fb_get
times out after set_framesize
call to a bigger resolution than used in esp_camera_init
esp_camera_fb_get
times out after set_framesize
call to a bigger resolution than used in esp_camera_init
esp_camera_fb_get
times out after set_framesize
with bigger resolution than used in esp_camera_init
esp_camera_fb_get
times out after set_framesize
with bigger resolution than used in esp_camera_init
esp_camera_fb_get
causes stack overflow after set_framesize
with bigger resolution than used in esp_camera_init
esp_camera_fb_get
causes stack overflow after set_framesize
with bigger resolution than used in esp_camera_init
esp_camera_fb_get
causes stack overflow after calling set_framesize
with bigger resolution than used in esp_camera_init
This issue appears to be stale. Please close it if its no longer valid. |
Stack overflow seems to be fixed in: |
I think the proper fix would be to remove tail call recursion rather than assuming that the compiler will perform TCO. |
proper fix will be everything to happen sequentially in another task. That is planned to happen. |
Isn't that just in jpg mode? |
I'm experiencing the issue, when the result image is close to 100k or more, the
esp_camera_fb_get
call times out. It is consistent across runs - as long as the resulting jpg image is under 100k bytes, then the image is properly returned, the moment the quality settings + image resolution + scene gets more details: the call starts timing out.For records:
Arduino flash parameters:
CPU Frequency: "240MHz (WiFi/BT)"
Core Debug Level: "None"
Erase All Flash Before Sketch Upload: "Disabled"
Events Run On: "Core 1"
Flash Frequency: "80MHz"
Flash Mode: "QIO"
Flash Size: "4MB (32Mb)"
JTAG Adapter: "FTDI Adapter”
Arduino Runs On: "Core 1"
Partition Scheme: "Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)"
PSRAM: “Enabled”
Upload Speed: "115200"
What could be the reason for such timeouts, and is there anything can be done to increase the image max size?
The text was updated successfully, but these errors were encountered: