Unable to allocate enough memory when loading AI file

Bug #450898 reported by Dukwhan Kim on 2009-10-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
High
Unassigned

Bug Description

I tried to open up a .AI file close to 1 MB in size. It shows the PDF import settings and a preview just fine. After I click OK, the dialog box disappears and it resumes loading. Then, after about 30 seconds, an error message pops up:

GLib-ERROR **: gmem.c175: failed to allocate 1073741824 bytes
aborting...

Then it proceeds to a Visual C++ runtime error message, a closing message, and finally the window closes.

I'm running 64-bit Windows Vista on a Quad-Core Intel processor.

su_v (suv-lp) on 2009-10-14
tags: added: crash importing pdf
su_v (suv-lp) wrote :

possibly a duplicate of bug #168914. Could you attach an AI file that crashes Inkscape on import?

related recent reports:
Bug #427003 “Fatal error in gc crash on save”
Bug #444940“Too many heap sections

Dukwhan Kim (ddukki) wrote :

Here's the .ai file I was using.

su_v (suv-lp) wrote :

reproduced with Inkscape 0.46+devel r22465 on OS X 10.5.8

console messages:
GLib-ERROR **: gmem.c:175: failed to allocate 4294967295 bytes
aborting...

Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
su_v (suv-lp) wrote :

The file opens without issues in 'Preview.app' (native osx pdf-viewer).

File info:
  PDF version: 1.5
  PDF Producer: Adobe PDF library 9.00
  Content creator: Adobe Illustrator CS3

summary: - Win64: gmem memory allocation fails at 1 MB
+ Win64: AI import fails trying to allocate 1 GB of memory

With trunk r13454, the offending file opens fine using the Poppler method. If using our standard one, it just hangs here and doesn't seem to take up a ton of ram or end up crashing. In gdb I got tired of waiting and ended up hitting Ctrl+C which threw a segfault related to libcroco and text... given the difference in text handling between poppler and the regular open method it seems worthwhile to at least attach the backtrace for the heck of it.

ScislaC (scislac) on 2014-07-19
summary: - Win64: AI import fails trying to allocate 1 GB of memory
+ AI file import fails trying to allocate memory
jazzynico (jazzynico) on 2016-06-10
summary: - AI file import fails trying to allocate memory
+ Unable to allocate enough memory when loading AI file
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers