Hi
I'm new here, just compiled r21187 on Ubuntu. I'm getting an "Out of Memory!" error when importing an A2 pdf with a large bitmap. I hope to check it's not something funny with my build before reporting a bug.
The pdf file is 112Mb in size. Evince on Ubuntu opens the pdf well, but Abode Reader on Windows struggles. Inkscape shows a preview in the PDF Import Settings, but crashes while doing the actual import. A back trace is attached. I watched the free memory while the import was in progress and noted:
With Inkscape running - 1195Mb free RAM PDF Import Settings with preview displayed - 1098Mb free RAM Import proceeds and free RAM drops to 48Mb before spilling to swop. 835Mb of swop is used before the app crashes. Total memory usage in RAM and swop before crashing = 1982Mb.
Nearly 2Gb of memory is used to import a 112Mb PDF. Seems to me something is wrong. Any ideas if it's my build at fault?
Thanks
Craig
Ps Imports of smaller PDFs (A4) work well.
Back Trace: ** (inkscape:6476): WARNING **: GC Warning: Header allocation failed: Dropping block. ** (inkscape:6476): WARNING **: GC Warning: Out of Memory! Returning NIL! terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Program received signal SIGABRT, Aborted. [Switching to Thread -1241733408 (LWP 6476)] 0xffffe410 in __kernel_vsyscall () (gdb) bt #0 0xffffe410 in __kernel_vsyscall () #1 0xb63b2875 in raise () from /lib/tls/i686/cmov/libc.so.6 #2 0xb63b4201 in abort () from /lib/tls/i686/cmov/libc.so.6 #3 0xb65d66e0 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6 #4 0xb65d3f65 in ?? () from /usr/lib/libstdc++.so.6 #5 0xb65d3fa2 in std::terminate () from /usr/lib/libstdc++.so.6 #6 0xb65d40ca in __cxa_throw () from /usr/lib/libstdc++.so.6 warning: (Internal error: pc 0x834b37d in read in psymtab, but not in symtab.) #7 0x0834b37e in MutableList (this=warning: (Internal error: pc 0x834b37d in read in psymtab, but not in symtab.) 0xbfc8ea64, value=@0xbfc8ea4c, next=warning: (Internal error: pc 0x834b37d in read in psymtab, but not in symtab.) @0xbfc8ea68) at ./gc-core.h:160 warning: (Internal error: pc 0x834b37d in read in psymtab, but not in symtab.) #8 0x0834af44 in Inkscape::XML::SimpleNode::setAttribute (this=0xa52fc180, name=0x91741d0 "font-weight", value=0xa52b7bd8 "normal") at xml/simple-node.cpp:335 #9 0x083486ce in Inkscape::XML::SimpleNode::mergeFrom (this=0xa52fc180, src=0xa52fc274, key=0x86f4884 "") at xml/simple-node.cpp:614 #10 0x0833f8e6 in sp_repr_css_merge (dst=0xa52fc1f0, src=0xa52fc274) at xml/repr-css.cpp:221 #11 0x0857a307 in Inkscape::Extension::Internal::SvgBuilder::addChar ( this=0xa4d71c8, state=0xb30a59f0, x=-20.234300000000001, y=105.75, dx=52.372999999999998, dy=0, originX=0, originY=0, code=1, nBytes=2, u=0xbfc8ec38, uLen=1) at extension/internal/pdfinput/svg-builder.cpp:1375 #12 0x0857bb1e in PdfParser::doShowText (this=0xa27d800, s=0xb30a5760) at extension/internal/pdfinput/pdf-parser.cpp:2337 #13 0x0857e172 in PdfParser::go (this=0xa27d800, topLevel=1) at extension/internal/pdfinput/pdf-parser.cpp:409 #14 0x0857e5a5 in PdfParser::parse (this=0xa27d800, obj=0xbfc8ef0c, topLevel=1) at extension/internal/pdfinput/pdf-parser.cpp:381 #15 0x08212ea8 in Inkscape::Extension::Internal::PdfInput::open ( this=0x89c5680, uri=0xaadee3c "/home/craig/MyShares/ws4MyDocs/Projects Craig/DC22 500/Printing/A2 Test map.pdf") at extension/internal/pdfinput/pdf-input.cpp:726 #16 0x081f5471 in Inkscape::Extension::Input::open (this=0x89c5818, uri=0xaadee3c "/home/craig/MyShares/ws4MyDocs/Projects Craig/DC22 500/Printing/A2 Test map.pdf") at extension/input.cpp:159 #17 0x081f48d7 in Inkscape::Extension::open (key=0x0, filename=0xaadee3c "/home/craig/MyShares/ws4MyDocs/Projects Craig/DC22 500/Printing/A2 Test map.pdf") at extension/system.cpp:94 #18 0x08096f61 in file_import (in_doc=0x8dfbf60, uri=@0xbfc8f0b4, key=0x0) at file.cpp:920 #19 0x08097839 in sp_file_import (parentWindow=@0x9b51f20) at file.cpp:1087 #20 0x0823791d in sp_action_perform (action=0x8e02dc8, data=0x0) at helper/action.cpp:181 #21 0xb745e864 in g_cclosure_marshal_VOID__VOID () from /usr/local/lib/libgobject-2.0.so.0 #22 0xb7451163 in g_closure_invoke () from /usr/local/lib/libgobject-2.0.so.0 #23 0xb746530f in ?? () from /usr/local/lib/libgobject-2.0.so.0 #24 0x098efc48 in ?? () #25 0x00000000 in ?? ()