Problem summary
Mari's file size limit for the Image Manager is 1 Byte under 2GB.
Customer reported version
Mari 7.0v2
Customer reported platform
Windows 10
Steps to reproduce
Create an image that is exactly 2GB in size. That could be a 16K 16-bit image that has an Alpha Channel and no file compression. Note: Compressing an image won't resolve this issue, as this file size limit applies to the image after it has been extracted by Mari. Not compressing it simply helps us confirm the exact issue.
Import the 2GB image into the Image Manager.
Expected behaviour
Mari should be able to import a 2GB image.
Actual behaviour
As Mari's current DDI file size limit is 1 Byte short of 2GB, and Image Manager images are stored in Mari as a single DDI, Mari fails to import the image..
An error message appears letting the user know that it's not possible to import the image
This happens because Mari's file size limit for the Image Manager is 1 Byte short of 2GB. We can confirm this by looking at the MariLog.txt: Debug : [ MriImage.cpp:756 ] : Image data size 2147483648 is too big for a single DDI data block 2147483647. Cannot resize image to 16384x16384
Workaround
Make your image slightly smaller. The simplest approach may be to remove the Alpha Channel if it's solid white.
Reproduced by support
This bug has been reproduced in:
Mari 7.0v2 - Windows 10 - Rocky 9
Mari 4.2v1 - Windows 10 - CentOS 7
Earliest version tested
Mari 4.2v1 - This issue appears to be in all tested versions of the product