How can canvas use with lv_mem_alloc()?

i tested simulation on visual studio, if memory size small from 32U * 12000U, returned error code, but memory alloc is bigger from 32U * 12000 then simulation working. i tried on cube ide and i debuged if memory alloc is smaller, ide can doing debug but send program to stm32f7 disco, drawing does not appear on the screen.İf memory alloc is bigger 32U * 12000U then cube ide dosnt compile, return error code.