-
-
Notifications
You must be signed in to change notification settings - Fork 212
Arduino H7 Video - LVGL9.X Double buffer is allocated but never used #1043
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 can confirm that after disabling the second buffer, I no longer see the MBED OS crashes I used to consistently get on lv_timer_handler(). |
Hi @thodorii But, I can't replicate the MBED OS crash. Please, could you post the sketch causing this? |
Unfortunately I don't think I can share the sketch due to it being part of work. But the crash is likely due to memory constraints and the double buffer was the thing putting it in crashing territory. The MBED OS crashes were happening with lv_timer_handler() and I was never able to get an exact trace of where it crashed. |
Ok, no problem! :) By the way, I decided not to increase the buffer size because, as suggested in the LVGL documentation, |
Ok great! Anecdotally I also started seeing far fewer white screens after removing the buffer #1004 , although they were not completely gone. |
Hi, I've been running into what seems to be memory issues causing an MBED OS crash with LVGL. I was looking around to see draw buffer allocations and ran into this code. I am confused on the purpose of the 2nd draw buffer malloc when it is never used, is this an oversight?
Additionally, should this malloc size be multiplied by sizeof(lv_color_t) for the ideal lvgl recommendation of 1/10th buffer size
@facchinm
ArduinoCore-mbed/libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp
Lines 108 to 130 in f7ff411
The text was updated successfully, but these errors were encountered: