hello,
i am designing a shop sign with the size of 0.462M height by 15M width. everything is fine until i start to export in PDF format.
inkscape shutsdown with the error message "GLib cannot allocate enough memory" or something similar.
however it does not fail if the art work is small like 2M x 1M.
my system has enough enough system memory: 4G
HDD: 250G
virtual memory set to system managed.
can anyone help me please?
Cannot Export to PDF or AI
Re: Cannot Export to PDF or AI
Is that 'M' for 'meters'??? Wow.
That's big. But it should not make a huge difference if everything is vector. Unfortunately raster elements sneak in here and there and pretty soon they're sitting in your favorite chair eating toast and hogging the remote.
Anyway the first thing to check - do you use any filter effects in your file? Even a blur in the fill and stroke dialog is a filter effect. W@hen you try to save as PDF a box should come up with the option to 'rasterize filter effects' and resolution for rasterization of filter effects. For a voery larg image this number should be set very low to prevent memory problems...
Next - is the background set to transparency (in the document properties dialog)? Try setting this to opaque white or some compatible color and try a re-save as.
lastly - how much transparency are you using in your fills and strokes? Are there a lot of gradients that go from a color to transparency??
That's big. But it should not make a huge difference if everything is vector. Unfortunately raster elements sneak in here and there and pretty soon they're sitting in your favorite chair eating toast and hogging the remote.
Anyway the first thing to check - do you use any filter effects in your file? Even a blur in the fill and stroke dialog is a filter effect. W@hen you try to save as PDF a box should come up with the option to 'rasterize filter effects' and resolution for rasterization of filter effects. For a voery larg image this number should be set very low to prevent memory problems...
Next - is the background set to transparency (in the document properties dialog)? Try setting this to opaque white or some compatible color and try a re-save as.
lastly - how much transparency are you using in your fills and strokes? Are there a lot of gradients that go from a color to transparency??
Your mind is what you think it is.
Re: Cannot Export to PDF or AI
yes M for meters 
unfortunately my work is for a client and he wants the best design so my art work has lot of filter effects and transparency...
please chk the attachment.
thx for the help.
i will try your suggested fix and let you know mate.
thx very much for now!!
unfortunately my work is for a client and he wants the best design so my art work has lot of filter effects and transparency...
please chk the attachment.
thx for the help.
i will try your suggested fix and let you know mate.
thx very much for now!!
- Attachments
-

- phfw.PNG (182.83 KiB) Viewed 783 times
Re: Cannot Export to PDF or AI
M for meter
yes i am using transparencies and filters as this is a commercial project hence proffesional look is expected.
thanks for your suggestion. i will try that and will let you know however if the DPI is reduced it is going to afftect the print quality though which will be unaccptable to my client.
thanks
yes i am using transparencies and filters as this is a commercial project hence proffesional look is expected.
thanks for your suggestion. i will try that and will let you know however if the DPI is reduced it is going to afftect the print quality though which will be unaccptable to my client.
thanks
- Attachments
-

- phfw.PNG (182.83 KiB) Viewed 783 times
Re: Cannot Export to PDF or AI
Unfortunately raster elements sneak in here and there and pretty soon they're sitting in your favorite chair eating toast and hogging the remote.![]()
exactly man!
Re: Cannot Export to PDF or AI
so the error is in the inkscape code or in platform dependant lib. if it is plat dependant lib i could try it on linux on EC2 failing that i will try using batik to convert to rasterize
Re: Cannot Export to PDF or AI
he he. i used apache batik lib to convert and guess what. bombed out so i guess it is the xml library thats causing the issue as most of the xml libs are memory intensive and my file is 3.9MB in pure svg format!!
Code: Select all
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.SinglePixelPackedSampleModel.createDataBuffer(Unknown Source)
at java.awt.image.Raster.createWritableRaster(Unknown Source)
at org.apache.batik.gvt.renderer.StaticRenderer.updateWorkingBuffers(StaticRenderer.java:536)
at org.apache.batik.gvt.renderer.StaticRenderer.repaint(StaticRenderer.java:375)
at org.apache.batik.gvt.renderer.StaticRenderer.repaint(StaticRenderer.java:344)
at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:111)
at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
at Main.main(Main.java:32)
Re: Cannot Export to PDF or AI
just ran inkscape to export the same file mentioned above in ec2 (amazon cloud) on a "high memory on demand system" which had 17G memory. same save settings but created a 32M pdf file in 8 mins no errors nothing but guess what? the resultant pdf only had a white rectangular area, the same size as the svg drawing but nothing else
. tried several times with diff setting in inkscape but no change at all 
