lvgl / lv_drivers

TFT and touch pad drivers for LVGL embedded GUI library
https://docs.lvgl.io/master/porting/index.html
MIT License
290 stars 309 forks source link

SDL crashes under certain comditions in `8.3.0` #281

Closed vshymanskyy closed 10 months ago

vshymanskyy commented 1 year ago

https://github.com/lvgl/lv_drivers/blob/57494ff8ec012fb6ea0a6d2e3c9485bace392d34/sdl/sdl.c#L370-L371

Looks like _lv_refr_get_disp_refreshing can return NULL during the app startup. changing second line to if(d && d->driver && d->driver->screen_transp) helped in my case

kisvegabor commented 1 year ago

Makes sense, could send a Pull request?

mikaeladlers commented 10 months ago

I have the same issue and have created a pull request. It really strange since it seams to be connected to how many graphical objects that I have instantiated.

kisvegabor commented 10 months ago

286 is merged, closing this issue.