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

StartCamera's default FRAMESIZE_SVGA causes stack overflow during capture after set_framesize with bigger resolution is used #290

Open
MichaelXt opened this issue Mar 12, 2023 · 0 comments

Comments

@MichaelXt
Copy link

MichaelXt commented Mar 12, 2023

Tracking the issue with timeouts / stack overflow due to buffer sizes issue in esp32 camera driver.
The issue manifests as no image received on Get still button call in case if high resolution and high quality is choose in the UI, with the scene capture in good lighting conditions with lots of details.
image
image

The underlying issue is in esp camera driver:
espressif/esp32-camera#514

esp32-cam-webserver could either:

  1. wait for a fix (if it will be fixed) in the esp camera
  2. use config.frame_size = FRAMESIZE_UXGA; in StartCamera
  3. call esp_camera_deinit + esp_camera_init on frame size change set_framesize

For most users of the esp32-cam-webserver # 2 workaround is the easiest to implement.

@MichaelXt MichaelXt changed the title StartCamera's default FRAMESIZE_SVGA causes stack overflow after set_framesize with bigger resolution is used StartCamera's default FRAMESIZE_SVGA causes stack overflow during capture after set_framesize with bigger resolution is used Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant