Summary: | CAIRO_STATUS_NO_MEMORY after cairo_image_surface_create 10000x30000 image surface | ||
---|---|---|---|
Product: | cairo | Reporter: | pink <pinkpink1460> |
Component: | image backend | Assignee: | Chris Wilson <chris> |
Status: | RESOLVED NOTABUG | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | darxus |
Version: | 1.12.16 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Windows (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
pink
2016-08-17 10:14:58 UTC
oops, sorry! There is something wrong with my code in the last comment. My explanation is as follows, when I create 10000*20000 image surface, it will be success. But when I create 10000*30000 image surface, the status is CAIRO_STATUS_NO_MEMORY. This sounds like a question to be discussed on the mailing list or IRC channel, not necessarily a bug? What makes your believe that "not enough memory" is wrong? If you do the math, a surface with a width of 10k, height of 30k and 4 bytes per pixels would need more than one gibibyte of memory (10000*30000*4/(1024*1024*1024)=1.118). Could it be that allocating that much memory really fails for you? (In reply to Uli Schlachter from comment #3) > What makes your believe that "not enough memory" is wrong? If you do the > math, a surface with a width of 10k, height of 30k and 4 bytes per pixels > would need more than one gibibyte of memory > (10000*30000*4/(1024*1024*1024)=1.118). Could it be that allocating that > much memory really fails for you? Thanks for your reply. I always thought the limit of width and height of the cairo_image_surface_create() is 32768, it seems and it depend on the bytes per pixels. Thanks again. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.