View Issue Details

IDProjectCategoryView StatusLast Update
0004189ScribusImport / Exportpublic2019-09-11 06:37
Reporterjo-hannes Assigned To 
Status confirmedResolutionopen 
Product Version1.3.3.4cvs 
Summary0004189: [OBSOLETE] big picture crashes Scribus on PDF export
Descriptionsample pic: (66mb)
TagsNo tags attached.


has duplicate 0005904 closedjghali Export too PDF crashes. 
has duplicate 0005517 closedjghali Crash when exporting PDF (invalid memory reference) 
has duplicate 0002405 closedjghali Signal 6 crashes when exporting PDFs. 
has duplicate 0006353 closedjghali Scribus crashes during PDF export. 
has duplicate 0005262 closedjghali Scribus crashes due to Signal 0000006 on printing 
has duplicate 0006744 closedjghali Scribus crasches during exporting to PDF 
has duplicate 0006914 closedjghali crash during PDF export 
has duplicate 0007160 closedjghali Scribus crash when export page with large image 
has duplicate 0007414 closedjghali Out of memory / EXCEPTION_ACCESS_VIOLATION error when exporting PDF with TIFF images 
has duplicate 0008503 closedjghali Scribus crashes when high resolution PNG files are exported to PDF 
has duplicate 0008584 closedjghali crashes with signal 6 when exporting or printing pdf 
has duplicate 0008748 closedjghali Scribus randomly crashes when exporting to PDF with compression 
has duplicate 0008760 closedjghali When saving as PDF Scribus reports "Application transferred too few scanlines", JPEG Library Error. 
has duplicate 0009329 closedjghali By loading pictures in to a frame and by loading a Scribus Document there's sometimes a "JPEG Libary error"-error 
has duplicate 0010027 closedjghali failure to load some tiffs into graphics frame 
has duplicate 0010164 closedjghali Crash at Start, crash at PDF export 
has duplicate 0011581 closedjghali Scribus crahes when a file with lots of photos is exported to pdf 
related to 0001398 assignedjghali Improve memory efficiency of raster image export 
child of 0002438 acknowledged Metabug: Cases of extreme memory use 



2006-08-28 20:35

developer   ~0012355

(gdb) backtrace
#0 0x00002b96238eaaa5 in raise () from /lib64/
0000001 0x00002b96238ebe60 in abort () from /lib64/
0000002 0x00002b9623400d24 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib64/
0000003 0x00002b96233fee56 in std::set_unexpected () from /usr/lib64/
0000004 0x00002b96233fee83 in std::terminate () from /usr/lib64/
0000005 0x00002b96233fef6a in __cxa_throw () from /usr/lib64/
0000006 0x00002b96233ff249 in operator new () from /usr/lib64/
0000007 0x00002b96233ff309 in operator new[] () from /usr/lib64/
0000008 0x00002b9621b2c18d in QString::setLength () from /usr/lib/qt3/lib64/
0000009 0x00002b9621b2c594 in QString::subat () from /usr/lib/qt3/lib64/
0000010 0x000000000087ab6b in QString::ref (this=0x7fff89fffa10, i=134217728) at /usr/lib/qt3/include/qstring.h:648
0000011 0x000000000087abb2 in QCharRef::operator= (this=0x7fff89feeee0, c=184 'ΒΈ') at /usr/lib/qt3/include/qstring.h:769
0000012 0x000000000086ae09 in ScImage::ImageToTxt (this=0x7fff89ff7250) at scimage.cpp:877
0000013 0x000000000079270c in PDFlib::PDF_Image (this=0x7fff8a002650, c=0x17a95c0, fn=@0x17ad858, sx=0.049807042932947417, sy=0.049807042932947417, x=0, y=-0, fromAN=false, Profil=@0x17ad870, Embedded=false, Intent=0) at pdflib.cpp:4847
0000014 0x00000000007ab595 in PDFlib::PDF_ProcessItem (this=0x7fff8a002650, ite=0x17a95c0, pag=0x1701610, PNr=0, embedded=false) at pdflib.cpp:2320
0000015 0x00000000007bda89 in PDFlib::PDF_ProcessPage (this=0x7fff8a002650, pag=0x1701610, PNr=0, clip=false) at pdflib.cpp:2036
0000016 0x00000000007bfab5 in PDFlib::doExport (this=0x7fff8a002650, fn=@0x7fff8a002ba0, nam=@0x7fff8a002bb0, Components=3, pageNs=@0x7fff8a002bd0, thumbs=@0x7fff8a002bc0) at pdflib.cpp:188
0000017 0x0000000000a0c74f in ScribusMainWindow::getPDFDriver (this=0xd5ae80, fn=@0x7fff8a002ba0, nam=@0x7fff8a002bb0, Components=3, pageNs=@0x7fff8a002bd0, thumbs=@0x7fff8a002bc0) at scribus.cpp:7241
0000018 0x0000000000a31672 in ScribusMainWindow::doSaveAsPDF (this=0xd5ae80) at scribus.cpp:7367
0000019 0x0000000000a31aca in ScribusMainWindow::SaveAsPDF (this=0xd5ae80) at scribus.cpp:7273
0000020 0x0000000000a42ee8 in ScribusMainWindow::qt_invoke (this=0xd5ae80, _id=209, _o=0x7fff8a0030d0) at scribus.moc:1040
0000021 0x00002b96218a2a8c in QObject::activate_signal () from /usr/lib/qt3/lib64/
0000022 0x00002b96218a37a3 in QObject::activate_signal () from /usr/lib/qt3/lib64/
0000023 0x00002b9621ba1e38 in QAction::qt_emit () from /usr/lib/qt3/lib64/
0000024 0x0000000000891095 in ScrAction::qt_emit (this=0xddef40, _id=2, _o=0x7fff8a003210) at scraction.moc:227
0000025 0x00002b96218a2aca in QObject::activate_signal () from /usr/lib/qt3/lib64/
0000026 0x00002b96218a37a3 in QObject::activate_signal () from /usr/lib/qt3/lib64/
0000027 0x00002b96218d5967 in QWidget::event () from /usr/lib/qt3/lib64/
0000028 0x00002b962184ba95 in QApplication::internalNotify () from /usr/lib/qt3/lib64/
0000029 0x00002b962184c8bb in QApplication::notify () from /usr/lib/qt3/lib64/
0000030 0x00002b96217f40f4 in QETWidget::translateMouseEvent () from /usr/lib/qt3/lib64/
0000031 0x00002b96217f32d3 in QApplication::x11ProcessEvent () from /usr/lib/qt3/lib64/
0000032 0x00002b962180225f in QEventLoop::processEvents () from /usr/lib/qt3/lib64/
0000033 0x00002b96218607a1 in QEventLoop::enterLoop () from /usr/lib/qt3/lib64/
0000034 0x00002b962186064a in QEventLoop::exec () from /usr/lib/qt3/lib64/
0000035 0x0000000000a51649 in mainApp (argc=1, argv=0x7fff8a003bb8) at main_nix.cpp:74
0000036 0x0000000000a5168b in main (argc=1, argv=0x7fff8a003bb8) at main_nix.cpp:50


2006-08-28 20:36

developer   ~0012356

btw. i already have 1.3gb ram


2006-08-28 21:37

administrator   ~0012359

Last edited: 2006-08-28 21:38

With 1.3.3.x branch, minimum requirement just for loading that image is imageWidth * imageHeight * 4 * 2, the 2 factor being due to use of qstrings for storing images, so around 512Mb. For processing the image you'll need another 512Mb at least. We are now at 1Gb. Seeing some part of 1.3.3.x code add another 512Mo. Well already 1,5Gb...

In 1.3.4cvs, that is getting better as QStrings are not used anymore for storing image.


2006-08-29 11:18

administrator   ~0012364

The optimal solution for that, at least in the export, would be if we would add
some functions to the ScImageLoad class which will fetch just 1 scanline at a
time. This will be relatively easy for .jpeg and .tiff images, .psd, .pdf and
.eps will make more troubles.


2006-08-30 01:17

reporter   ~0012367

In addition to fetching the image one scan line / chunk / strip at a time, is it possible to progressively _encode_ using libjpeg as well? I know it can be done with zlib for flate-encoded images, but JPEG is more common and it'd be ideal to be able to do the encoding process in a more memory efficient way.

Failing that, perhaps decoding the source image into an mmap()ped temp file and passing that buffer to libjpeg is the way to go. The VM is smart enough to keep it in the page cache if it fits (so it's slower than using a RAM buffer, but not by much) but page it out if it doesn't (so we don't have to manage the work). I think Windows has differently named but very similar functions.

BTW, jo-hanes, it helps if you post the initial message from gdb as well as the backtrace. It mentions the signal that caused GDB to interrupt execution and that can be quite important. In this case it's not - it's a SIGABRT (6) caused by the abort() call in terminate() due to an uncaught std::bad_alloc exception - but it's not always that obvious.


2006-08-30 02:12

reporter   ~0012368

I should RTFM before saying anything ... looks like libjpeg is made for such progressive encoding.


2006-08-30 08:12

developer   ~0012369

ringerc, the backtrace is from mrdocs iirc. i didnt get one on windows :) and i dont have on linux.


2006-08-30 09:03

viewer   ~0012370

Can't be my back trace. I don't have 64bit libs.


2006-08-30 09:31

developer   ~0012371

hm, tsoots?


2019-09-11 06:35

manager   ~0046656

the image is not online anymore...


2019-09-11 06:37

manager   ~0046657

to me the interest of this ticket was that it did provide a sample image.

we know that scribus does not play well with constrained resources... and i don't see much value in keeping this ticket open.

Issue History

Date Modified Username Field Change
2006-08-28 20:33 jo-hannes New Issue
2006-08-28 20:35 jo-hannes Note Added: 0012355
2006-08-28 20:36 jo-hannes Note Added: 0012356
2006-08-28 20:36 jo-hannes Relationship added child of 0002438
2006-08-28 20:36 jo-hannes Severity crash => minor
2006-08-28 21:37 jghali Note Added: 0012359
2006-08-28 21:38 jghali Note Edited: 0012359
2006-08-29 11:18 fschmid Note Added: 0012364
2006-08-30 01:17 ringerc Note Added: 0012367
2006-08-30 01:18 ringerc Status new => confirmed
2006-08-30 02:12 ringerc Note Added: 0012368
2006-08-30 08:12 jo-hannes Note Added: 0012369
2006-08-30 09:03 plinnell Note Added: 0012370
2006-08-30 09:31 jo-hannes Note Added: 0012371
2007-06-20 09:10 jghali Relationship added has duplicate 0005904
2007-11-28 10:46 jghali Relationship added has duplicate 0005517
2007-11-28 11:00 jghali Relationship added related to 0001398
2007-11-28 11:02 jghali Relationship added has duplicate 0002405
2007-11-28 11:06 jghali Relationship added has duplicate 0006353
2008-01-14 23:02 jghali Relationship added has duplicate 0005262
2008-02-06 20:15 jghali Relationship added has duplicate 0006744
2008-04-03 11:25 jghali Relationship added has duplicate 0006914
2008-07-22 10:12 jghali Relationship added has duplicate 0007160
2008-09-22 06:17 jghali Relationship added has duplicate 0007414
2009-10-08 21:09 jghali Relationship added has duplicate 0008503
2009-11-15 02:55 jghali Relationship added has duplicate 0008584
2010-02-16 22:53 jghali Relationship added has duplicate 0008748
2010-02-16 22:59 jghali Relationship added has duplicate 0008760
2010-08-29 21:59 jghali Relationship added has duplicate 0009329
2011-06-07 21:20 jghali Relationship added has duplicate 0010027
2011-08-09 19:47 jghali Relationship added has duplicate 0010164
2013-06-09 20:33 jghali Relationship added has duplicate 0011581
2014-07-26 00:47 Kunda Target Version => 1.5.0
2014-07-27 06:43 Kunda Severity minor => crash
2014-09-11 02:34 Kunda Severity crash => block
2014-09-11 22:26 Kunda Severity block => crash
2014-09-11 22:26 Kunda Target Version 1.5.0 => 1.5.1
2014-09-11 22:34 Kunda Target Version 1.5.1 =>
2019-09-11 06:35 ale Note Added: 0046656
2019-09-11 06:35 ale Summary big picture crashes Scribus on PDF export => [OBSOLETE] big picture crashes Scribus on PDF export
2019-09-11 06:35 ale Patch => No
2019-09-11 06:37 ale Note Added: 0046657