My LVGL project just crashed with the following:
[Error] (94.100, +94100) search_suitable_block: Asserted at expression: sl_map && “internal error - second level bitmap is null” (in lv_tlsf.c line #577)
[Error] (94.100, +94100) search_suitable_block: Asserted at expression: sl_map && “internal error - second level bitmap is null” (in lv_tlsf.c line #577)
Any idea what might have caused this?
Andy
Seems like an out of memory or an out of bounds write issue. Out of memory should have been reported correctly with an “out of memory” error though, so it’s rather the latter.
Can it be something in your code? E.g. in event handlers?
I do use a thread to poll a serial port and update the UI but it seems to work fine most of the time but occasionally I see this fault. I will dig deeper into my code.
Andy
In this case be sure to use a mutex as described here: Operating system and interrupts — LVGL documentation
Thanks - I will give the mutex a go and see if it solves my problem.
Andy
1 Like