Home › Forums › PowerVR Insider Graphics › malloc error in powerVR SDK
This topic contains 4 replies, has 2 voices, and was last updated by xiao 1 year, 3 months ago.
Hi, I’m trying to switch a png sized 4096*4096 to pvr via the function ‘Transcode’ in powerVR SDK. when I passed ePVRTCBest to param named ‘const ECompressorQuality eQuality’, I got a malloc error as follows:
PC: Panic:pImgStats->RegRow[row] failed malloc MAC: malloc: *** mach_vm_map(size=xxxx) failed(error code = 3)
Is there any way to avoid this error? Thank you very much.
how much RAM do you have? Do you use a 64 bit OS?
Compressing 4kx4k textures on max settings can take 8GB+ RAM.
Thanks for you replying, I’m running a 32 bit program on 64 bit OS with 32G RAM. Should I transform the program to 64 bit? Thank you very much.
Yes, that should solve the problem.
Hi Marton, I would have a try, what a big project! Thanks