Memory leak on --export-pdf, --shell mode

Bug #722229 reported by yko
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

Looks like Inkscape doesn't release ram after pdf export in --shell mode.
Best way to reproduce:

wget http://upload.wikimedia.org/wikipedia/en/c/ce/SVG-logo.svg
for i in `seq 1 10000`; do echo "--export-pdf=test.pdf SVG-logo.svg"; done | inkscape --shell

This will eat available ram not too fast, but speed of ram consumption depends on SVG file size.

Inkscape 0.47 r22583 (Apr 4 2010)
Ubuntu 10.04.1 LTS

Regards
yko

su_v (suv-lp)
tags: added: cli performance
removed: leak memory
yko (ykorshak)
description: updated
Revision history for this message
su_v (suv-lp) wrote :

Possibly related or similar to
Bug #678457 “[win32] crash using cli shell mode in batch file (possibly related to font loading)”
<https://bugs.launchpad.net/inkscape/+bug/678457>

Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
yko (ykorshak) wrote :

Just FYI

Looks like SVG-logo.svg doesn't contain any text element.
I also tested with empty SVG file, just like

<?xml version="1.0" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> </svg>

And got the same result. But i'm not familar with Inkscape internals, so this just for your information.

Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48+devel r10059 on OS X 10.5.8 i386
(for 2000 loops, memory usage grows about 20 MB, using the SVG-logo.svg)

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Dusan Maliarik (dusan-maliarik) wrote :

Maybe related, I run PNG exports without --shell, with various SVG input, about 1 per second, and after couple of minutes there is inkscape process growing memory and CPU usage, then it terminates, difficult to tell with what outcome.

Revision history for this message
Phil! Gold (asciiphil) wrote :

Inkscape may not release RAM for any shell mode command. I'm using it for SVG-to-PNG conversion (command passed to shell mode is roughly `source.svg --export-height=20 --export-png=dest.png`). I'm doing this for potentially tens of thousands of not-very-complicated files and Inkscape's memory usage can get into multiple gigabytes.

Revision history for this message
Nathan Lee (nathan.lee) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

Moved to: https://gitlab.com/inkscape/inbox/-/issues/3479
Closed by: https://gitlab.com/nathanal

Changed in inkscape:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.