View Issue Details

IDProjectCategoryView StatusLast Update
0002262ScribusPrintingpublic2018-04-30 13:02
Reporterschmidig Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
PlatformFC 4OSLinux 
Product Version1.2.5cvs 
Target Version1.5.5 
Summary0002262: Crash when build PDF-file from a A0 sheet
DescriptionWhen I try to make a PDF-file from a A0 sheet the Scribus crash with the error # 6. The sheet contains eps-files (line-drawings/plans) and pictures (jpegs).
TagsNo tags attached.
PatchNo

Relationships

has duplicate 0002263 closedringerc Crash when build PDF-file from a A0 sheet 
has duplicate 0005490 closedplinnell When I attempt to save the file as a pdf it crashes Scribus 
child of 0002438 acknowledged Metabug: Cases of extreme memory use 

Activities

ringerc

2005-07-18 16:24

reporter   ~0005633

If there's any way to send a copy of the files that'd be very useful. I imagine they'd be too big to attach here as a bug, so maybe there's some private webspace you could post them to? If not, can you make the error happen with a document you might be OK to post publically?

schmidig

2005-08-03 16:26

reporter   ~0005875

Here the files:
http://schmidig.users.ch/scribus.tar.gz

ringerc

2005-08-03 16:55

reporter   ~0005876

terminate called after throwing an instance of 'std::bad_alloc'
  what(): St9bad_alloc

Program received signal SIGABRT, Aborted.
[Switching to Thread -1208112672 (LWP 13955)]
0x00fbc402 in __kernel_vsyscall ()
Current language: auto; currently c

0 0x00fbc402 in __kernel_vsyscall ()
1 0x001291f8 in *__GI_raise (sig=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
2 0x0012a948 in *__GI_abort () at ../sysdeps/generic/abort.c:88
3 0x00afedc4 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
4 0x00afca31 in __gxx_personality_v0 () from /usr/lib/libstdc++.so.6
5 0x00afca66 in std::terminate () from /usr/lib/libstdc++.so.6
6 0x00afcb9a in __cxa_throw () from /usr/lib/libstdc++.so.6
7 0x00afcfb1 in operator new () from /usr/lib/libstdc++.so.6
8 0x00afd06d in operator new[] () from /usr/lib/libstdc++.so.6
9 0x0156ddd9 in QString::setLength (this=0xbf9f11d0, newLen=100663297)
    at tools/qstring.cpp:1703
10 0x0156df48 in QString::grow (this=0xbf9f11d0, newLen=100663297)
    at tools/qstring.cpp:1794
11 0x01575481 in QString::operator+= (this=0xbf9f11d0, c=-13 '
    at tools/qstring.cpp:5583
12 0x08360745 in ScImage::ImageToTxt (this=0xbf9f0ebc) at scimage.cpp:850
13 0x005ed558 in PDFlib::PDF_Image (this=0x9296838, c=0x91db478,
    fn=@0xbf9f16e0, sx=1, sy=1, x=-102.107, y=447.34300000000002,
    fromAN=false, Profil=@0xbf9f16dc, Embedded=true, Intent=1)
    at pdflib.cpp:4334
14 0x005f8b72 in PDFlib::PDF_ProcessItem (this=0x9296838, ite=0x91db478,
    pag=0x911ca28, PNr=0, embedded=false) at pdflib.cpp:2134
15 0x006060e8 in PDFlib::PDF_ProcessPage (this=0x9296838, pag=0x911ca28,
    PNr=0, clip=false) at pdflib.cpp:1859
16 0x0060e24e in Run (plug=0x8c05208, fn=@0xbf9f2184, nam=@0xbf9f2180,
    Components=3, pageNs=@0xbf9f21ec, thumbs=@0xbf9f217c, dia2=0x8d42f08)
    at pdflib.cpp:94
17 0x084d9e38 in ScribusApp::getPDFDriver (this=0x8c05208, fn=@0xbf9f227c,
    nam=@0xbf9f2278, Components=3, pageNs=@0xbf9f21ec, thumbs=@0xbf9f2274)
    at scribus.cpp:8591
18 0x0852905e in ScribusApp::doSaveAsPDF (this=0x8c05208) at scribus.cpp:8802
19 0x085294b3 in ScribusApp::SaveAsPDF (this=0x8c05208) at scribus.cpp:8624
20 0x0852c16c in ScribusApp::qt_invoke (this=0x8c05208, _id=210,
    _o=0xbf9f2418) at scribus.moc:1059
21 0x01263df4 in QObject::activate_signal (this=0x8c68118, clist=0x8c79e58,
    o=0xbf9f2418) at kernel/qobject.cpp:2355
22 0x012642b4 in QObject::activate_signal (this=0x8c68118, signal=2)
    at kernel/qobject.cpp:2324
23 0x015fde09 in QAction::activated (this=0x0)
    at .moc/release-shared-mt/moc_qaction.cpp:150
24 0x013b548f in QAction::internalActivation (this=0x8c68118)
    at widgets/qaction.cpp:979
25 0x015fdfcd in QAction::qt_invoke (this=0x8c68118, _id=8, _o=0xbf9f2534)
    at .moc/release-shared-mt/moc_qaction.cpp:168
26 0x08380994 in ScrAction::qt_invoke (this=0x8c68118, _id=8, _o=0xbf9f2534)
    at scraction.moc:208
27 0x01263df4 in QObject::activate_signal (this=0x8cf4478, clist=0x8cf4500,
    o=0xbf9f2534) at kernel/qobject.cpp:2355
28 0x015dc206 in QSignal::signal (this=0x8cf4478, t0=@0x0)
    at .moc/release-shared-mt/moc_qsignal.cpp:100
29 0x01281673 in QSignal::activate (this=0x8cf4478) at kernel/qsignal.cpp:212
30 0x013785c2 in QPopupMenu::mouseReleaseEvent (this=0x8cf3408, e=0xbf9f2964)
    at widgets/qpopupmenu.cpp:1693
31 0x012a2167 in QWidget::event (this=0x8cf3408, e=0xbf9f2964)
    at kernel/qwidget.cpp:4699
32 0x011ff0cd in QApplication::internalNotify (this=0x0, receiver=0x8cf3408,
    e=0xbf9f2964) at kernel/qapplication.cpp:2635
33 0x0120002f in QApplication::notify (this=0xbf9f2cfc, receiver=0x8cf3408,
    e=0xbf9f2964) at kernel/qapplication.cpp:2421
34 0x01196b4d in QETWidget::translateMouseEvent (this=0x8cf3408,
    event=0xbf9f2c28) at kernel/qapplication.h:518
35 0x01194f01 in QApplication::x11ProcessEvent (this=0xbf9f2cfc,
    event=0xbf9f2c28) at kernel/qapplication_x11.cpp:3468
36 0x011a9008 in QEventLoop::processEvents (this=0x8bf4038, flags=Variable "flags" is not available.
)
    at kernel/qeventloop_x11.cpp:192
37 0x01217772 in QEventLoop::enterLoop (this=0x8bf4038)
    at kernel/qeventloop.cpp:198
38 0x01217696 in QEventLoop::exec (this=0x8bf4038)
    at kernel/qeventloop.cpp:145
39 0x011fea99 in QApplication::exec (this=0xbf9f2cfc)
    at kernel/qapplication.cpp:2758
40 0x08531861 in mainApp (argc=2, argv=0xbf9f2e14) at main.cpp:69
41 0x085318ae in main (argc=2, argv=0xbf9f2e14) at main.cpp:44


IOW, we're OOMing.

ringerc

2005-08-03 16:56

reporter   ~0005877

confirmed in 1.3.1cvs

plinnell

2005-08-04 23:20

viewer   ~0005901

bumping to 1.2.3cvs, so it does not get forgotten

plinnell

2005-09-12 00:23

viewer   ~0006516

bumped

fschmid

2005-11-20 12:11

administrator   ~0007496

Is this issue still vaild?

plinnell

2005-11-20 23:50

viewer   ~0007506

Franz, Without a test case, I cannot confirm and I do not have the files in question.

cbradney

2005-12-05 21:08

administrator   ~0007645

Ringerc.. does this still occur after todays changes?

schmidig

2005-12-05 21:38

reporter   ~0007648

The file is online:
http://schmidig.users.ch/scribus.zip

cbradney

2005-12-05 22:32

administrator   ~0007651

thanks

ringerc

2006-01-05 08:39

reporter   ~0007925

Just to make it clear, what's happening here is that we're running out of memory on the heap, and `new' is throwing std::bad_alloc . Since we're compiled with -fno-exceptions and don't try to catch exceptions anyway, the exception isn't caught and triggers C++'s builtin default - call terminate() . terminate() calls abort(), hence the signal 6 (SIGABRT).

On my machine when I last tested, `new' failed while allocating an array in the implementation of QString, probably while adding extra space to cope with expansion by operator+= . I'll re-test and see if I can find any place we're doing something silly with memory.

ringerc

2006-01-05 09:04

reporter   ~0007926

Last edited: 2006-01-05 09:08

It doesn't crash here, but it would if my system had less RAM, since Scribus is hogging over 750MB and got as high as 950MB earlier. More importantly, we're using a QString in image handling, which suggests there might be a way to save some space. Perhaps we're reading a file very inefficiently or something.

edit: Mantis is absolutely butchering the backtrace when I post it here. We really need a "don't auto format this post" option. Here's the bt:

http://www.postnewspapers.com.au/~craig/scribus/bt.txt

Kunda

2014-07-26 00:45

updater   ~0033013

This is an ugly one.
It brought my mac pro 10.8.5 to a halt and crashes Scribus.
(1.5svn r19366)
Get the .sla from 0002262:0007648

Kunda

2015-10-26 20:40

updater   ~0036953

fixed summary

Issue History

Date Modified Username Field Change
2005-07-18 15:23 schmidig New Issue
2005-07-18 16:22 ringerc Relationship added has duplicate 0002263
2005-07-18 16:24 ringerc Note Added: 0005633
2005-07-18 18:02 ringerc Status new => acknowledged
2005-08-03 16:26 schmidig Note Added: 0005875
2005-08-03 16:55 ringerc Note Added: 0005876
2005-08-03 16:56 ringerc Note Added: 0005877
2005-08-03 16:56 ringerc Status acknowledged => confirmed
2005-08-04 23:20 plinnell Note Added: 0005901
2005-08-04 23:20 plinnell Product Version 1.2.2.1cvs => 1.2.3cvs
2005-08-14 15:16 ringerc Relationship added related to 0002438
2005-09-12 00:23 plinnell Note Added: 0006516
2005-09-12 00:24 plinnell Product Version 1.2.3cvs => 1.2.4cvs
2005-11-20 12:11 fschmid Note Added: 0007496
2005-11-20 23:50 plinnell Note Added: 0007506
2005-12-05 21:08 cbradney Note Added: 0007645
2005-12-05 21:38 schmidig Note Added: 0007648
2005-12-05 22:32 cbradney Note Added: 0007651
2006-01-03 20:02 plinnell Product Version 1.2.4cvs => 1.2.5cvs
2006-01-05 08:39 ringerc Note Added: 0007925
2006-01-05 09:04 ringerc Note Added: 0007926
2006-01-05 09:06 ringerc Note Edited: 0007926
2006-01-05 09:06 ringerc Note Edited: 0007926
2006-01-05 09:07 ringerc Note Edited: 0007926
2006-01-05 09:08 ringerc Note Edited: 0007926
2007-04-04 13:48 plinnell Relationship added has duplicate 0005490
2014-07-26 00:45 Kunda Note Added: 0033013
2014-07-26 00:46 Kunda Target Version => 1.5.0
2014-09-11 02:34 Kunda Severity crash => block
2014-09-13 13:42 Kunda Relationship replaced child of 0002438
2015-02-12 01:00 Kunda Sticky Issue No => Yes
2015-05-19 20:56 cbradney Target Version 1.5.0 => 1.5.1
2015-10-26 20:40 Kunda Patch => No
2015-10-26 20:40 Kunda Note Added: 0036953
2015-10-26 20:40 Kunda Description Updated
2015-11-05 12:17 Kunda Sticky Issue Yes => No
2016-01-23 17:17 cbradney Target Version 1.5.1 => 1.5.3
2016-12-08 22:04 Kunda Target Version 1.5.3 => 1.5.4
2016-12-29 23:43 plinnell Severity block => major
2018-04-30 13:02 jghali Target Version 1.5.4 => 1.5.5