Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002262ScribusPrintingpublic2005-07-18 17:232014-09-13 15:42
Reporterschmidig 
Assigned To 
PrioritynormalSeverityblockReproducibilityalways
StatusconfirmedResolutionopen 
PlatformFC 4OSLinuxOS Version
Product Version1.2.5cvs 
Target Version1.5.0Fixed in Version 
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 0000006. The sheet contains eps-files (line-drawings/plans) and pictures (jpegs).
TagsNo tags attached.
Patch
Attached Files

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

-  Notes
(0005633)
ringerc (administrator)
2005-07-18 18:24

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?
(0005875)
schmidig (reporter)
2005-08-03 18:26

Here the files:
http://schmidig.users.ch/scribus.tar.gz [^]
(0005876)
ringerc (administrator)
2005-08-03 18:55

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.
(0005877)
ringerc (administrator)
2005-08-03 18:56

confirmed in 1.3.1cvs
(0005901)
plinnell (administrator)
2005-08-05 01:20

bumping to 1.2.3cvs, so it does not get forgotten
(0006516)
plinnell (administrator)
2005-09-12 02:23

bumped
(0007496)
fschmid (administrator)
2005-11-20 13:11

Is this issue still vaild?
(0007506)
plinnell (administrator)
2005-11-21 00:50

Franz, Without a test case, I cannot confirm and I do not have the files in question.
(0007645)
cbradney (administrator)
2005-12-05 22:08

Ringerc.. does this still occur after todays changes?
(0007648)
schmidig (reporter)
2005-12-05 22:38

The file is online:
http://schmidig.users.ch/scribus.zip [^]
(0007651)
cbradney (administrator)
2005-12-05 23:32

thanks
(0007925)
ringerc (administrator)
2006-01-05 09:39

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.
(0007926)
ringerc (administrator)
2006-01-05 10:04
edited on: 2006-01-05 10: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 [^]

(0033013)
Kunda (manager)
2014-07-26 02:45

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

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



Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker