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

[ek_ra8d1] Drop down lists cannot be opened if DAVE2D is enebled #4

Open
kisvegabor opened this issue Dec 12, 2023 · 6 comments
Open

Comments

@kisvegabor
Copy link
Member

When opening the drop down list of the widgets demo the application crashes.

It works well if DAVE2D is disabled.

@jeremy-baker
Copy link
Collaborator

Seems the Dave2D receives a drawing task with target layer buffer address set to 0, this causes the Dave2D to write to an invalid location, and it doesn't complete (an error interrupt occurs). As a work around, if I put a check in the execute_drawing function, :-

if (NULL == u->base_unit.target_layer->buf)
{
    return;
}

Then the drop down list works with the Daver2D enabled. Not sure why a drawing task would have target layer buffer address set to 0

@kisvegabor
Copy link
Member Author

In some cases LVGL creates new "layer"s where it draws some tasks. The buffer for these layers are not allocated immediately, but they should be allocated in the dispatcher when the the first draw task is drawn on them.

See here in the SW renderer.

@jeremy-baker
Copy link
Collaborator

I was missing the allocation of buffer for new "layers" I added it in this commit, and it fixed the drop down list issue :-

jeremy-baker/lvgl@ad485bb

@kisvegabor
Copy link
Member Author

Thank you! Now it's not crashing but the upper and lower parts look strange. These are blended by lv_draw_layer which is not implemented in Dave2D now.
image

However it works well in the simulator so I believe it's not a core LVGL issue. Do you have any idea?

@jeremy-baker
Copy link
Collaborator

I have created a pull request, lvgl/lvgl#5060 this partially fixes the issue. The colour of the corners of the drop down list drawn by the Dave2D don't quite look correct still.

@kisvegabor
Copy link
Member Author

Thank you for the PR!

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

2 participants