Scale doesn't scale?

I copied the simple round scale example (Scale (lv_scale) - LVGL 9.5 documentation) and it works well, until I try to use a larger size for the scale:

    lv_obj_set_size(scale_line, 400, 400);

At this point the program no longer draws anything. I have narrowed it down to the following line, which, if I comment out, allows everything to work

    lv_obj_set_style_clip_corner(scale_line, true, 0);

This is with the latest LVGL code (updated the master branch today) on QNX/RaspberryPi. Haven’t checked other systems.
I can debug further, but first wanted to know if this is a known problem, or whether I am missing something obvious.

Thanks,
–Elad

OK, found it. I was using the default lv_conf.h, which specifies LV_STDLIB_BUILTIN for the allocation functions, and then defines a heap that’s way too small for the a larger scale widget at 32-bit colour depth.

Rebuilt LVGL with the standard C library implementation and all is well.

The only issue with LVGL itself is that if allocation fails then the drawing code goes into an infinite loop, rather than aborting.