[reportlab-users] ValueError: no memory after 4GB

Tim Roberts timr at probo.com
Wed Apr 7 14:58:12 EDT 2021

Shaw, Theodore wrote:
> I'm trying to convert an SVG to a BMP that's about 100,000 pixels by 
> 100,000 pixels. My code looks like
> ...
> By attempting this conversion with progressively larger files and 
> monitoring the memory usage, I've found that the issue occurs when the 
> memory consumption exceeds about 4GB. I've checked that I'm using a 64 
> bit version of Python and have been able to create large arrays that 
> consume up to 64GB of memory (my total amount of RAM), so it seems 
> like the issue is specific to reportlab.

No, it's actually an issue in Windows.  The Windows GDI BMP engine 
cannot handle bitmaps with coordinates larger than 15 bits (32767).

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3389 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20210407/ae949431/attachment.bin>

More information about the reportlab-users mailing list