Unable to allocate enough memory when pasting or duplicating

Bug #717906 reported by David Moreno da Costa
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Medium
Unassigned

Bug Description

Greetings

Inskcape present an error when I paste, duplicate or any option in my vectorial works. The message presented is: "Glib-ERROR **: gmem.c:136: failed to allocate 6144 bytes
Aborting…"

Inkscape version: 0.48
S.O.: Windows 7 HOME PREMIUM
Mi Laptop: ASUS G73JW

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

Does this happen with certain files only, or also when you open a new file, draw a path or shape and copy&paste it?
If it only affects certain files, is it related to the complexity of the drawing content (e.g. many huge paths with thousands of nodes you might get when auto-tracing a bitmap image) or file size of the SVG file?

tags: added: win32
Revision history for this message
David Moreno da Costa (davidmorenodacosta) wrote : Re: [Bug 717906] Re: Glib-ERROR **: gmem.c:136: failed to allocate 6144 bytes Aborting…

Greetings

Thans for the rapid response. The problem occur with only the file. The file
is SVG and perhaps have big size. I sen the file, to you best understanding

Revision history for this message
su_v (suv-lp) wrote : Re: Glib-ERROR **: gmem.c:136: failed to allocate 6144 bytes Aborting…

> I sen the file, to you best understanding

The file didn't get though apparently - could you use the web interface (link in the signature) to attach the file? Below the comment entry box is a link to add attachments.

Revision history for this message
David Moreno da Costa (davidmorenodacosta) wrote :

Here, the file with problem because I cannot work with this. File size: 53 MB.

Revision history for this message
David Moreno da Costa (davidmorenodacosta) wrote : Re: [Bug 717906] Re: Glib-ERROR **: gmem.c:136: failed to allocate 6144 bytes Aborting…

Right!
It's done. The file has been upload to web according to bug and signature.

Thanks for all. I hope you can help me.

2011/2/12 ~suv <email address hidden>

> > I sen the file, to you best understanding
>
> The file didn't get though apparently - could you use the web interface
> (link in the signature) to attach the file? Below the comment entry box
> is a link to add attachments.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/717906
>
> Title:
> Glib-ERROR **: gmem.c:136: failed to allocate 6144 bytes Aborting…
>
> Status in Inkscape: A Vector Drawing Tool:
> New
>
> Bug description:
> Greetings
>
>
> Inskcape present an error when I paste, duplicate or any option in my
> vectorial works. The message presented is: "Glib-ERROR **: gmem.c:136:
> failed to allocate 6144 bytes
> Aborting…"
>
> Inkscape version: 0.48
> S.O.: Windows 7 HOME PREMIUM
> Mi Laptop: ASUS G73JW
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/inkscape/+bug/717906/+subscribe
>

--
*
*
*David Moreno da Costa D
Estudiante del Programa de Postgrado
Doctorado en Química
Laboratorio No. 2
Dpto. de Química Orgánica
Facultad de Química
Pontificia Universidad Católica de Chile
Teléfonos*
***(Secretaria Sra. Rosalba Meza)**: (56-2)-686-44-26*
*(Móvil-Personal): (56-09)-9-470-7909 *
*
*

Revision history for this message
su_v (suv-lp) wrote : Re: Glib-ERROR **: gmem.c:136: failed to allocate 6144 bytes Aborting…

While the file opens reasonable fast in Inkscape, it seems hugely bloated in file size (50 MB vector data compared to what is visible on canvas). Trying the first obvious step to do house-keeping (File > Vacuum Defs) brought down my system to nearly a stand-still and I had to interrupt it (tested with Inkscape 0.48+devel r10049 on OS X 10.5.8 i386, 2GM RAM).

Even regularly closing the Inkscape window without any edits, cause memory usage of inkscape to explode and grab what it can get from the system (I had to killed the process twice).

Maybe you could explain how you got an SVG file in such a state? From what I can gather by grepping some keywords, the file seems to have been edited in Adobe Illustrator as well as in Corel Draw (which must have imported tons of unneeded stuff from Inkscape SVG files as well as have left their proprietary footmarks all over the file).

Some data (line counts from grep output) for internal bug triage:

Adobe Illustrator and CoralDraw:
  Illustrator foreignObjects: 390 (grep for 'i:pgf')
  CorelDraw Layers: 102

More troubling in my mind:
  sodipodi:namedview: 14501 (a regular Inkscape SVG file has only 1)

Do you work with all those layers? Most of them seem empty…
  Inkscape layers: 1838 (grep for 'inkscape:groupmode="layer"')

You also seem to have used custom swatches intensely: there are 475 colors (one-stop gradients) defined in the Auto-palette for the document.
  Colors in Auto-palette: 475 (grep for 'osb:paint')

At the moment I don't know how a) Inkscape is supposed to handle such a file and b) if so, how to best "get rid" of the unneeded stuff (14500 'namedview' definitions, nearly 2000 groupmode 'layer' attributes, which apparently boil down to 28 unique labels, etc.).

These numbers should be ok:
  Images: 0
  Paths: 5393

tags: added: performance
removed: win32
Revision history for this message
su_v (suv-lp) wrote :

Setting status 'Confirmed'. It should be possibly at least be possible to close the unedited file without dramatically increasing memory usage after 'Ctrl+W'.

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
David Moreno da Costa (davidmorenodacosta) wrote :

Greetings

Inkscape SVG file that we discussed was created from already created files, obtained from Wikimedia Commons (http://commons.wikimedia.org/wiki/Portada). Taking a picture to serve, modificating it, erasing, changing colours, modifying nodes, etc. to obtain the desired image.

I supose the process adds unnecessary layers. But when "trying" to delete layers, the program returns to collapse. I will delete the items that do not fit (objects), but it seems that the layers add weight to the file.

How delete layers that do not serve in my project without deleting those that are necessary for the image? Can you explainme that. And how I can return to work in the file if when I "try" to delete layers Inkscape collapse?

jazzynico (jazzynico)
summary: - Glib-ERROR **: gmem.c:136: failed to allocate 6144 bytes Aborting…
+ Unable to allocate enough memory when pasting or duplicating
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

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