PDF to SVG runs out of memory

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
alexandre.g
Posts: 2
Joined: Mon Mar 06, 2017 11:44 am

PDF to SVG runs out of memory

Postby alexandre.g » Fri Mar 10, 2017 3:53 pm

Hi,

I am trying to convert this PDF - https://dl.dropboxusercontent.com/u/54234954/dg84_alex.pdf to SVG using this command:

Code: Select all

inkscape -z -f dg84_alex.pdf  -l dg84_alex.svg


After executing for a while, the application gets killed and I see these system logs:

[ 3578.301798] Out of memory: Kill process 27266 (inkscape) score 732 or sacrifice child
[ 3578.301806] Killed process 27266 (inkscape) total-vm:3174032kB, anon-rss:2893840kB, file-rss:60kB


My system specs:

root@XXXX.XXXX.XXXX.XXXX:~/tests# free -m
total used free shared buffers cached
Mem: 3748 1013 2735 12 16 109
-/+ buffers/cache: 886 2861
Swap: 0 0 0

I have two questions:

1 Could there be some content in the PDF that's causing the program to run into some kind of loop, thus taking up memory, or is the system's available memory not enough for this PDF/SVG? We did see some issues with some text content in the PDF.

2. Does the command line have an option (like the GUI) to link image sin the PDF, rather than embed them?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: PDF to SVG runs out of memory

Postby Moini » Wed Mar 15, 2017 11:42 am

Hi,
I think this could be a memory leak. I wasn't able to reproduce this with a different pdf file, and the file you've got there seems to be quite 'normal' (but it does contain objects that are invisible after import into Inkscape, maybe those are causing the issue).

Can you make a bug report and attach an example pdf there? Please include info about your operating system and Inkscape version (I can reproduce this with 0.91 and 0.92.1 on Linux Mint).
https://bugs.launchpad.net/inkscape/
There is no option to link to vector contents, as far as I know.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Discuss Software Issues”