resize crash for large iamge

resize crash for large iamge

danielwang1971's picture

Hello,
I have trouble for ippiResizeSqrPixel:

Source Image size : 6576 X 2192 Mono 8 bit

Destination image : 40768X13589

The image size : ippiResizeSqrPixel_8u_C1R crashed no error.

I also try  ippiResizeSqrPixel_8u_AC4R with BGRA image  crash when Destination image image size is 11836X2945

Do you have any idea?

Thanks.

 

6 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Sergey Kostrov's picture

>>Source Image size : 6576 X 2192 Mono 8 bit
>>
>>Destination image : 40768 X 13589

For the destination image:

40768 * 13589 = 553,996,352 bytes ( ~528MB )

and it is well below a 2GB limit of a Windows 32-bit platform but it could exceed (!) some internal limits of IPP and I'll do a verification.

Did you get that crash on a 32-bit or 64-bit platform?

Sergey Kostrov's picture

>>Do you have any idea?

So far I can not suggest anything.

>>... it could exceed (!) some internal limits of IPP and I'll do a verification...

A test-case I have shows that a limit for an image is 34207 x 34207 ( ~1.089GB ) and more technical details are needed ( what about a test-case? ).

Best regards,
Sergey

Sergey Kostrov's picture

>>40768 * 13589 = 553,996,352 bytes ( ~528MB )
>>
>>and it is well below a 2GB limit of a Windows 32-bit platform but it could exceed (!) some internal limits of IPP and I'll do a verification.
>>
>>Did you get that crash on a 32-bit or 64-bit platform?

Could you verify Virtual Memory settings on your platform?
What your current settings are?

danielwang1971's picture

Thanks. I find problem.

You are right. The problem is image buffer over 2GB. It's fail to allocate over 2 GB buffer.

Thanks again.

Sergey Kostrov's picture

>>Thanks. I find problem.
>>
>>You are right. The problem is image buffer over 2GB. It's fail to allocate over 2 GB buffer.

Please take into account that even on a 64-bit platform there are some image size limitations for IPP.

Login to leave a comment.