View Issue Details

IDProjectCategoryView StatusLast Update
0012580ScribusUsabilitypublic2014-08-01 14:22
ReporterPeterBenedek Assigned Tojghali  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx86OSLinux Mint OS Version17 (32bit)
Product Version1.5.0svn 
Fixed in Version1.4.5.svn 
Summary0012580: Trying to import emf disguised as wmf cause crash
DescriptionLink this video: https://www.dropbox.com/s/2sp54ngyf1p3nja/WmfCrash.avi

Click by wmf file, on the Scribus crashes.
Steps To Reproduce1. Open new document
2. Create picture box
3. Browse wmf file
4. Click wmf file

Scribus Crashes duo to signal 0000006
TagsNo tags attached.
Patch

Activities

PeterBenedek

2014-07-31 17:32

developer  

001.wmf (3,716,796 bytes)

PeterBenedek

2014-07-31 17:35

developer   ~0033112

Drag and drop version: https://www.dropbox.com/s/hhzcw5z8sa9fv03/WmfCrash_2.avi

FirasH

2014-07-31 17:46

developer   ~0033113

Confirmed with 1.5.0.svn (19390)

FirasH

2014-07-31 17:50

developer   ~0033114

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

Program received signal SIGABRT, Aborted.
0x00007fffef509849 in raise () from /lib64/libc.so.6
(gdb) bt
 0 0x00007fffef509849 in raise ()
   from /lib64/libc.so.6
 1 0x00007fffef50acd8 in abort ()
   from /lib64/libc.so.6
 2 0x00007fffefe02655 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib64/libstdc++.so.6
 3 0x00007fffefe007c6 in ?? ()
   from /usr/lib64/libstdc++.so.6
 4 0x00007fffefe007f3 in std::terminate() ()
   from /usr/lib64/libstdc++.so.6
 5 0x00007fffefe00a1e in __cxa_throw ()
   from /usr/lib64/libstdc++.so.6
 6 0x00007fffefe00f1d in operator new(unsigned long) ()
   from /usr/lib64/libstdc++.so.6
 7 0x00007fffefe00fb9 in operator new[](unsigned long) ()
   from /usr/lib64/libstdc++.so.6
 8 0x00007fffd5026dbd in WMFImport::loadWMF (this=0x30dffa0, buffer=...)
    at /home/.../Scribus/scribus/plugins/import/wmf/wmfimport.cpp:531
 9 0x00007fffd5026598 in WMFImport::loadWMF (this=0x30dffa0, fileName=...)
    at /home/.../Scribus/scribus/plugins/import/wmf/wmfimport.cpp:396
 10 0x00007fffd50262dd in WMFImport::import (this=0x30dffa0, fname=..., trSettings=..., flags=26)
    at /home/.../Scribus/scribus/plugins/import/wmf/wmfimport.cpp:362
 11 0x00007fffd5032d77 in WMFImportPlugin::import (this=0x1c631d0, filename=..., flags=26)
    at /home/.../Scribus/scribus/plugins/import/wmf/wmfimportplugin.cpp:166
 12 0x00007fffd503279e in WMFImportPlugin::loadFile (this=0x1c631d0, fileName=..., flags=26)
    at /home/.../Scribus/scribus/plugins/import/wmf/wmfimportplugin.cpp:128
 13 0x0000000000973b2c in FileFormat::loadFile (this=0x1eabd80, fileName=..., flags=26, index=0)
    at /home/.../Scribus/scribus/loadsaveplugin.cpp:441
 14 0x0000000000d9e75d in ScribusView::contentsDropEvent (this=0x343bea0, e=0x7fffffffc700)
    at /home/.../Scribus/scribus/scribusview.cpp:943
 15 0x0000000000db782a in ScribusView::eventFilter (this=0x343bea0, obj=0x346ee60, event=0x7fffffffc700)
    at /home/.../Scribus/scribus/scribusview.cpp:4112
 16 0x00007ffff7659173 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 17 0x00007ffff6c8da5f in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 18 0x00007ffff6c91550 in QApplication::notify(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 19 0x00007ffff7658f04 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 20 0x00007ffff6ce7ab4 in ?? ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 21 0x00007ffff6ce88a8 in ?? ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 22 0x00007ffff6c8da94 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 23 0x00007ffff6c910b6 in QApplication::notify(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 24 0x00007ffff7658f04 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 25 0x00007ffff650632b in QGuiApplicationPrivate::processDrop(QWindow*, QMimeData const*, QPoint const&, QFlags<Qt::DropAction>) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Gui.so.5
 26 0x00007ffff64f2749 in QWindowSystemInterface::handleDrop(QWindow*, QMimeData const*, QPoint const&, QFlags<Qt::DropAction>) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Gui.so.5
 27 0x00007fffe5431438 in ?? ()
   from /home/.../Qt/5.3/gcc_64/plugins/platforms/libqxcb.so
 28 0x00007fffe5438f11 in ?? ()
   from /home/.../Qt/5.3/gcc_64/plugins/platforms/libqxcb.so
 29 0x00007fffe5427dab in ?? ()
   from /home/.../Qt/5.3/gcc_64/plugins/platforms/libqxcb.so
 30 0x00007fffe5428a8b in ?? ()
   from /home/.../Qt/5.3/gcc_64/plugins/platforms/libqxcb.so
 31 0x00007ffff768c8f6 in QObject::event(QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 32 0x00007ffff6c8da94 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 33 0x00007ffff6c910b6 in QApplication::notify(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 34 0x00007ffff7658f04 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 35 0x00007ffff765ba88 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 36 0x00007ffff76b3143 in ?? ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 37 0x00007fffecddd316 in g_main_dispatch (context=0x7fffe0001740)
    at gmain.c:3066
 38 g_main_context_dispatch (context=context@entry=0x7fffe0001740)
    at gmain.c:3642
 39 0x00007fffecddd668 in g_main_context_iterate (context=context@entry=0x7fffe0001740, block=block@entry=1,
    dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713
 40 0x00007fffecddd70c in g_main_context_iteration (context=0x7fffe0001740, may_block=1)
    at gmain.c:3774
 41 0x00007ffff76b3574 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 42 0x00007ffff765711b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 43 0x00007ffff765bfe5 in QCoreApplication::exec() ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 44 0x0000000001240e38 in mainApp (argc=1, argv=0x7fffffffdd18)
    at /home/.../Scribus/scribus/main_nix.cpp:86
 45 0x0000000001240dc8 in main (argc=1, argv=0x7fffffffdd18)
    at /home/.../Scribus/scribus/main_nix.cpp:54

FirasH

2014-07-31 17:55

developer   ~0033115

mmmm, also Gimp cannot open that file...
Might be broken?

PeterBenedek

2014-07-31 18:09

developer   ~0033116

Last edited: 2014-07-31 18:32

Open that file LibreOffice 4.3 - Writer.

Original file docx document.

I opened document with writer. Save file odt text file.
Unpacked odt text file 'Pictures' map. There was wmf file (original graph).

Writer is lying down. :-)

jghali

2014-08-01 11:39

administrator   ~0033126

This file is in fact not a true wmf file, but an enhanced metafile (emf). Import of emf files is not supported so I implemented the detection so as to reject file and avoid crash.

FirasH

2014-08-01 14:22

developer   ~0033128

Thanks jghali!
Fixed in 1.4.5.svn (19393) and 1.5.0.svn (19392). Now a warning message is shown.

Issue History

Date Modified Username Field Change
2014-07-31 17:32 PeterBenedek New Issue
2014-07-31 17:32 PeterBenedek File Added: 001.wmf
2014-07-31 17:35 PeterBenedek Note Added: 0033112
2014-07-31 17:46 FirasH Note Added: 0033113
2014-07-31 17:46 FirasH Status new => confirmed
2014-07-31 17:50 FirasH Note Added: 0033114
2014-07-31 17:55 FirasH Note Added: 0033115
2014-07-31 18:09 PeterBenedek Note Added: 0033116
2014-07-31 18:23 PeterBenedek Note Edited: 0033116
2014-07-31 18:25 PeterBenedek Note Edited: 0033116
2014-07-31 18:32 PeterBenedek Note Edited: 0033116
2014-08-01 11:37 jghali Summary Click the WMF file --> Scribus Crash => Trying to import emf disguised as wmf cause crash
2014-08-01 11:39 jghali Note Added: 0033126
2014-08-01 11:39 jghali Status confirmed => resolved
2014-08-01 11:39 jghali Fixed in Version => 1.5.0svn
2014-08-01 11:39 jghali Resolution open => fixed
2014-08-01 11:39 jghali Assigned To => jghali
2014-08-01 11:39 jghali Fixed in Version 1.5.0svn => 1.4.5.svn
2014-08-01 14:22 FirasH Note Added: 0033128
2014-08-01 14:22 FirasH Status resolved => closed