View Issue Details

IDProjectCategoryView StatusLast Update
0001801ScribusImport / Exportpublic2005-04-16 09:34
Reporterandreas Assigned Tofschmid  
PrioritynormalSeveritycrashReproducibilitysometimes
Status closedResolutionfixed 
OSLinuxOS VersionSlackware 10 
Product Version1.3.0cvs 
Fixed in Version1.3.0cvs 
Summary0001801: File open leads to crash signal 0000011 due to out of memory
DescriptionA Scribus file that has been closed properly cannot be opened again due to above mentioned error message (the out of memory is only visible when starting Linux from the console). The file is 28 pages A4, with some images.
As an addition, opening the file without access to the images seems to work...
TagsNo tags attached.
Patch

Activities

2005-03-23 21:30

 

cbradney

2005-03-23 23:04

administrator   ~0003963

Yes, seems ok here without them.

TomK32

2005-03-25 05:46

reporter   ~0003968

It seems to be realated to the bug in AddFont, if you compiled from source you can add this to AddFont() in scribusdoc.cpp
if (UsedFonts.contains(name)) {
   return true; }

andreas

2005-03-25 07:58

reporter   ~0003972

Thanks TomK32 for the tip, but I'm not a programmer. Where exactly in the function should I add that?

bool ScribusDoc::AddFont(QString name, QFont fo)
{
    bool ret = false;
    bool error;
    FT_Face face;
    error = FT_New_Face( library, (*AllFonts)[name]->Datei, 0, &face );
    if (error)
        return ret;
    if ((*AllFonts)[name]->ReadMetrics())
    {
        (*AllFonts)[name]->CharWidth[13] = 0;
        (*AllFonts)[name]->CharWidth[28] = 0;
        (*AllFonts)[name]->CharWidth[9] = 1;
        QString afnm = (*AllFonts)[name]->Datei.left((*AllFonts)[name]->Datei.length()-3);
        QFile afm(afnm+"afm");
        if(!(afm.exists()))
        {
            afm.setName(afnm+"Afm");
            if(!(afm.exists()))
                afm.setName(afnm+"AFM");
        }
        if (afm.exists())
            FT_Attach_File(face, afm.name());
        FFonts[name] = face;
        UsedFonts[name] = fo;
        ret = true;
    }
    else
        FT_Done_Face( face );
    return ret;
}

TomK32

2005-03-25 09:53

reporter   ~0003973

before error =

andreas

2005-03-26 15:59

reporter   ~0003980

Applied the fix mentioned by TomK32 - and it works. Thanks a lot

plinnell

2005-03-27 21:09

viewer   ~0003989

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1089524864 (LWP 27333)]
0x407663bc in ucstrcmp () from /usr/lib/qt3/lib/libqt-mt.so.3
(gdb) bt
#0 0x407663bc in ucstrcmp () from /usr/lib/qt3/lib/libqt-mt.so.3
0000001 0x40768911 in operator< () from /usr/lib/qt3/lib/libqt-mt.so.3
0000002 0x081a87cc in QMapPrivate<QString, QFont>::find (this=0x86ae9d8, k=@0x4)
    at qmap.h:503
0000003 0x081a77e8 in QMap<QString, QFont>::find (this=0x88dbfdc, k=@0x4)
    at qmap.h:698
0000004 0x081a6ce2 in QMap<QString, QFont>::contains (this=0x88dbfdc, k=@0x4)
    at qmap.h:703
0000005 0x08191ce1 in FileLoader::LoadFile (this=0x89b1b90, app=0x857b898)
    at fileloader.cpp:241
0000006 0x0845ddc9 in ScribusApp::LadeDoc (this=0x857b898, fileName=
      {static null = {static null = <same as static member of an already seen type>, d = 0x84fb0c0, static shared_null = 0x84fb0c0}, d = 0x89aa110, static shared_null = 0x84fb0c0}) at scribus.cpp:4503
0000007 0x0845c8b1 in ScribusApp::slotDocOpen (this=0x857b898) at scribus.cpp:4268
0000008 0x0842f049 in ScribusApp::qt_invoke (this=0x857b898, _id=115,
    _o=0xbfffe670) at scribus.moc:888
0000009 0x4048c2ee in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000010 0x4048ca96 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000011 0x407f56b9 in QAction::activated () from /usr/lib/qt3/lib/libqt-mt.so.3
0000012 0x407f571c in QAction::qt_emit () from /usr/lib/qt3/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
0000013 0x08163c23 in ScrAction::qt_emit (this=0x85a8570, _id=2, _o=0xbfffe7a0)
    at scraction.moc:203
0000014 0x4048c321 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000015 0x4048ca96 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000016 0x407db0bc in QButton::clicked () from /usr/lib/qt3/lib/libqt-mt.so.3
0000017 0x40522db4 in QButton::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000018 0x404c2045 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
0000019 0x4042a71f in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000020 0x4042ca88 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
0000021 0x403c9033 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000022 0x403c7f0d in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000023 0x403d87c5 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
0000024 0x404423c1 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
0000025 0x40442206 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
0000026 0x4042c19f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
0000027 0x0848b820 in mainGui (argc=1, argv=0xbffff2a4) at main.cpp:240
---Type <return> to continue, or q <return> to quit---
0000028 0x0848b2f3 in main (argc=1, argv=0xbffff2a4) at main.cpp:134
(gdb)

plinnell

2005-03-27 21:15

viewer   ~0003990

with the backtrace added above, it might be triggered by font substitution.. I do not have some of the fonts in the file

Issue History

Date Modified Username Field Change
2005-03-23 21:30 andreas New Issue
2005-03-23 21:30 andreas File Added: ConnectionDocu-English-scribus13cvs230305-noon.sla.gz
2005-03-23 23:04 cbradney Note Added: 0003963
2005-03-25 05:46 TomK32 Note Added: 0003968
2005-03-25 07:58 andreas Note Added: 0003972
2005-03-25 09:53 TomK32 Note Added: 0003973
2005-03-26 15:59 andreas Note Added: 0003980
2005-03-27 07:43 fschmid Status new => resolved
2005-03-27 07:43 fschmid Fixed in Version => 1.3.0cvs
2005-03-27 07:43 fschmid Resolution open => fixed
2005-03-27 07:43 fschmid Assigned To => fschmid
2005-03-27 21:09 plinnell Note Added: 0003989
2005-03-27 21:15 plinnell Note Added: 0003990
2005-04-16 09:34 cbradney Status resolved => closed