View Issue Details

IDProjectCategoryView StatusLast Update
0005599Scribus-public2007-12-26 17:02
Reportermhanski Assigned Tosubik  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.4cvs 
Target Version1.3.5Fixed in Version1.3.5svn 
Summary0005599: 1.3.4cvs: Extras/Manages Pictures: Crash while searching for pictures
DescriptionManage Pictures/Search.../"*.jpg"/Start Search/Choose one of the resulting picturers/Click on "Select" => Crash

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1227229504 (LWP 10920)]
0xb7c9f24f in QString::deref () from /usr/lib/libqt-mt.so.3
(gdb)
(gdb)
(gdb) bt
#0 0xb7c9f24f in QString::deref () from /usr/lib/libqt-mt.so.3
0000001 0xb7c9f4e0 in QString::operator= () from /usr/lib/libqt-mt.so.3
0000002 0x085cc535 in PicStatus::loadPict (this=0x92b1978, newFilePath=@0x92ef524)
    at /home/maciej/dane/scribus/cvs134/Scribus/scribus/picstatus.cpp:293
0000003 0x085cc8bd in PicStatus::SearchPic (this=0x92b1978)
    at /home/maciej/dane/scribus/cvs134/Scribus/scribus/picstatus.cpp:315
0000004 0x085cd80e in PicStatus::qt_invoke (this=0x92b1978, _id=57, _o=0xbfdfd39c)
    at picstatus.moc:173
0000005 0xb7982051 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
0000006 0xb7982aec in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
0000007 0xb7d1e007 in QButton::clicked () from /usr/lib/libqt-mt.so.3
0000008 0xb7a1d6f6 in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
0000009 0xb79bc825 in QWidget::event () from /usr/lib/libqt-mt.so.3
0000010 0xb7917f3e in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
0000011 0xb79184c8 in QApplication::notify () from /usr/lib/libqt-mt.so.3
0000012 0xb78a91c5 in QApplication::sendSpontaneousEvent ()
   from /usr/lib/libqt-mt.so.3
0000013 0xb78a4873 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3
0000014 0xb78a2d59 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
0000015 0xb78bc4db in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
0000016 0xb7930a2f in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
0000017 0xb7916a79 in QApplication::enter_loop () from /usr/lib/libqt-mt.so.3
0000018 0xb7b355c4 in QDialog::exec () from /usr/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
0000019 0x08706bbd in ScribusMainWindow::StatusPic (this=0x8cea0f8)
    at /home/maciej/dane/scribus/cvs134/Scribus/scribus/scribus.cpp:8502
0000020 0x08767df2 in ScribusMainWindow::qt_invoke (this=0x8cea0f8, _id=231,
    _o=0xbfdfde9c) at scribus.moc:1111
0000021 0xb7982051 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
0000022 0xb7982aec in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
0000023 0xb7d3cb6e in QAction::activated () from /usr/lib/libqt-mt.so.3
0000024 0xb7aed49f in QAction::internalActivation () from /usr/lib/libqt-mt.so.3
0000025 0xb7d3cd0a in QAction::qt_invoke () from /usr/lib/libqt-mt.so.3
0000026 0x086e77a5 in ScrAction::qt_invoke (this=0x8ec2198, _id=8, _o=0xbfdfdfb8)
    at scraction.moc:229
0000027 0xb7982051 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
0000028 0xb7d15582 in QSignal::signal () from /usr/lib/libqt-mt.so.3
0000029 0xb799f7c8 in QSignal::activate () from /usr/lib/libqt-mt.so.3
0000030 0xb7aa7149 in QPopupMenu::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
0000031 0xb79bc825 in QWidget::event () from /usr/lib/libqt-mt.so.3
0000032 0xb7917f3e in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
0000033 0xb79184c8 in QApplication::notify () from /usr/lib/libqt-mt.so.3
0000034 0xb78a91c5 in QApplication::sendSpontaneousEvent ()
   from /usr/lib/libqt-mt.so.3
0000035 0xb78a45c0 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3
0000036 0xb78a2d59 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
0000037 0xb78bc4db in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
0000038 0xb7930a2f in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
0000039 0xb7930952 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
0000040 0xb7916a4d in QApplication::exec () from /usr/lib/libqt-mt.so.3
0000041 0x0844e99b in mainApp (argc=1, argv=0xbfdfeb44) at main_nix.cpp:76
0000042 0x0844ea0e in main (argc=1, argv=0xbfdfeb44) at main_nix.cpp:52
(gdb)
TagsNo tags attached.
Patch

Relationships

child of 0005693 closedplinnell 1.3.5 bug collection (prior to roadmap) 

Activities

cbradney

2007-04-28 11:07

administrator   ~0016039

Unable to reproduce

pbhj

2007-09-22 00:41

reporter   ~0017344

Using the 1.3.4 release under linux I get (from gdb):

---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1233135344 (LWP 2642)]
0xb7b01fed in QString::deref () from /usr/lib/qt/lib/libqt-mt.so.3
(gdb)
(gdb) bt
#0 0xb7b01fed in QString::deref () from /usr/lib/qt/lib/libqt-mt.so.3
0000001 0xb7b02f0c in QString::operator= () from /usr/lib/qt/lib/libqt-mt.so.3
0000002 0x0842c390 in PicStatus::loadPict ()
0000003 0x0842c608 in PicStatus::SearchPic ()
0000004 0x0842d094 in PicStatus::qt_invoke ()
0000005 0xb7838089 in QObject::activate_signal () from /usr/lib/qt/lib/libqt-mt.so.3
0000006 0xb7838c9d in QObject::activate_signal () from /usr/lib/qt/lib/libqt-mt.so.3
0000007 0xb7b52f9c in QButton::clicked () from /usr/lib/qt/lib/libqt-mt.so.3
0000008 0xb78caafc in QButton::mouseReleaseEvent () from /usr/lib/qt/lib/libqt-mt.so.3
0000009 0xb787109e in QWidget::event () from /usr/lib/qt/lib/libqt-mt.so.3
0000010 0xb77d97d7 in QApplication::internalNotify () from /usr/lib/qt/lib/libqt-mt.so.3
0000011 0xb77da6a9 in QApplication::notify () from /usr/lib/qt/lib/libqt-mt.so.3
0000012 0xb777ad09 in QETWidget::translateMouseEvent () from /usr/lib/qt/lib/libqt-mt.so.3
0000013 0xb7779bdc in QApplication::x11ProcessEvent () from /usr/lib/qt/lib/libqt-mt.so.3
0000014 0xb7789ee1 in QEventLoop::processEvents () from /usr/lib/qt/lib/libqt-mt.so.3
0000015 0xb77f0101 in QEventLoop::enterLoop () from /usr/lib/qt/lib/libqt-mt.so.3
0000016 0xb77d93af in QApplication::enter_loop () from /usr/lib/qt/lib/libqt-mt.so.3
0000017 0xb79b9d06 in QDialog::exec () from /usr/lib/qt/lib/libqt-mt.so.3
0000018 0x0870a818 in ScribusMainWindow::StatusPic ()
0000019 0x08755bbb in ScribusMainWindow::qt_invoke ()
0000020 0xb7838089 in QObject::activate_signal () from /usr/lib/qt/lib/libqt-mt.so.3
0000021 0xb7838c9d in QObject::activate_signal () from /usr/lib/qt/lib/libqt-mt.so.3
0000022 0xb7b6d4a9 in QAction::activated () from /usr/lib/qt/lib/libqt-mt.so.3
0000023 0xb7974d3f in QAction::internalActivation () from /usr/lib/qt/lib/libqt-mt.so.3
0000024 0xb7b6d7bc in QAction::qt_invoke () from /usr/lib/qt/lib/libqt-mt.so.3
0000025 0x08519521 in ScrAction::qt_invoke ()
0000026 0xb7838089 in QObject::activate_signal () from /usr/lib/qt/lib/libqt-mt.so.3
0000027 0xb7b4baae in QSignal::signal () from /usr/lib/qt/lib/libqt-mt.so.3
0000028 0xb7853fc5 in QSignal::activate () from /usr/lib/qt/lib/libqt-mt.so.3
0000029 0xb793b20c in QPopupMenu::mouseReleaseEvent () from /usr/lib/qt/lib/libqt-mt.so.3
0000030 0xb787109e in QWidget::event () from /usr/lib/qt/lib/libqt-mt.so.3
0000031 0xb77d97d7 in QApplication::internalNotify () from /usr/lib/qt/lib/libqt-mt.so.3
0000032 0xb77da6a9 in QApplication::notify () from /usr/lib/qt/lib/libqt-mt.so.3
0000033 0xb777b596 in QETWidget::translateMouseEvent () from /usr/lib/qt/lib/libqt-mt.so.3
0000034 0xb7779bdc in QApplication::x11ProcessEvent () from /usr/lib/qt/lib/libqt-mt.so.3
0000035 0xb7789ee1 in QEventLoop::processEvents () from /usr/lib/qt/lib/libqt-mt.so.3
0000036 0xb77f0101 in QEventLoop::enterLoop () from /usr/lib/qt/lib/libqt-mt.so.3
0000037 0xb77effa6 in QEventLoop::exec () from /usr/lib/qt/lib/libqt-mt.so.3
0000038 0xb77d943f in QApplication::exec () from /usr/lib/qt/lib/libqt-mt.so.3
0000039 0x0875ed85 in mainApp ()
0000040 0x0875edf9 in main ()
---

which appears to confirm the issue

cbradney

2007-09-22 22:20

administrator   ~0017356

Please test in 1.3.5svn, 1.3.4 will have no more releases and hence will not receive any updates. This is not urgent, it is a developer release only.

subik

2007-10-18 14:16

manager   ~0017695

tested in 1.3.5. No crash here.

subik

2007-11-20 14:59

manager   ~0017966

Maciej, retest in 1.3.5svn, please. It looks like it's fixed.

2007-11-28 19:06

 

28112007_crash.png (113,666 bytes)   
28112007_crash.png (113,666 bytes)   

mhanski

2007-11-28 19:11

developer   ~0018030

Last edited: 2007-11-28 19:27

tested with yesterday 1.3.5cvs and SuSE 10.3 (other OS as back in April), the bug hasn't decided to pass away yet, please see the attached screen shot.

BTW, the steps to reproduce are exactly the same as in the bug description.

mhanski

2007-11-28 19:24

developer   ~0018031

Last edited: 2007-11-28 19:26

btw, Subik: try to reproduce the steps without creating an image frame first, i.e. start searching for *.jpg with an empty page, otherwise it cannot be reproduced




Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6c276d0 (LWP 7779)]
0xb7444777 in QString::operator= () from /usr/lib/libQtCore.so.4
(gdb) bt
#0 0xb7444777 in QString::operator= () from /usr/lib/libQtCore.so.4
0000001 0x08608f8c in PicStatus::loadPict ()
0000002 0x0860b64e in PicStatus::SearchPic ()
0000003 0x0816f4f8 in PicStatus::qt_metacall ()
0000004 0xb74c70c0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
0000005 0xb74c73d0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
0000006 0xb7e90951 in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
0000007 0xb7c81809 in QAbstractButtonPrivate::emitClicked () from /usr/lib/libQtGui.so.4
0000008 0xb7c81cd9 in QAbstractButtonPrivate::click () from /usr/lib/libQtGui.so.4
0000009 0xb7c81efb in QAbstractButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
0000010 0xb7a0084c in QWidget::event () from /usr/lib/libQtGui.so.4
0000011 0xb7c82adf in QAbstractButton::event () from /usr/lib/libQtGui.so.4
0000012 0xb7d0abb2 in QPushButton::event () from /usr/lib/libQtGui.so.4
0000013 0xb79bbc1d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
0000014 0xb79c238d in QApplication::notify () from /usr/lib/libQtGui.so.4
0000015 0xb74b5d5b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
0000016 0xb7a12733 in QETWidget::translateMouseEvent () from /usr/lib/libQtGui.so.4
0000017 0xb7a11d96 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
0000018 0xb7a3517a in ?? () from /usr/lib/libQtGui.so.4
0000019 0xbf96f0e0 in ?? ()
0000020 0xbf96dd38 in ?? ()
0000021 0xbf96dcb8 in ?? ()
0000022 0xb6ee9ff0 in _xcb_unlock_io () from /usr/lib/libxcb.so.1
0000023 0xb6e43446 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
0000024 0xb6e467e2 in ?? () from /usr/lib/libglib-2.0.so.0
0000025 0x08d36e90 in ?? ()
0000026 0x00000000 in ?? ()
(gdb)

jghali

2007-11-28 19:42

administrator   ~0018033

I can reproduce it now. Proceed exactly as described *without creating any image frame*

plinnell

2007-11-28 19:47

viewer   ~0018034

I can replicate it when searching for something like *.jpg on a new file with no image frames. It crashes when selecting the image or trying to enable the preview.

It seems to me logical that the menu should be disabled when there are no images in a file, but still does not fix the underlying bug.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6b6f6d0 (LWP 5818)]
0xb738d797 in QString::operator= () from /usr/lib/libQtCore.so.4
(gdb) bt
#0 0xb738d797 in QString::operator= () from /usr/lib/libQtCore.so.4
0000001 0x0861887f in PicStatus::loadPict ()
0000002 0x0861b651 in PicStatus::SearchPic ()
0000003 0x081b7493 in PicStatus::qt_metacall (this=0x10d91b30,
    _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbff3fa3c)
    at /home/mrdocs/svn/135/trunk/scribus/moc_picstatus.cxx:96
0000004 0xb740fbd0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
0000005 0xb740fee0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
0000006 0xb7dd2f61 in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
0000007 0xb7bc2f99 in QAbstractButtonPrivate::emitClicked ()
   from /usr/lib/libQtGui.so.4
0000008 0xb7bc3469 in QAbstractButtonPrivate::click () from /usr/lib/libQtGui.so.4
0000009 0xb7bc368b in QAbstractButton::mouseReleaseEvent ()
   from /usr/lib/libQtGui.so.4
0000010 0xb7947d0c in QWidget::event () from /usr/lib/libQtGui.so.4
0000011 0xb7bc426f in QAbstractButton::event () from /usr/lib/libQtGui.so.4
0000012 0xb7c4ca52 in QPushButton::event () from /usr/lib/libQtGui.so.4
0000013 0xb7902e3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
0000014 0xb79095ad in QApplication::notify () from /usr/lib/libQtGui.so.4
0000015 0xb73fe86b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
0000016 0xb7959bd3 in QETWidget::translateMouseEvent () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
0000017 0xb7959236 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
0000018 0xb797c7ba in x11EventSourceDispatch () from /usr/lib/libQtGui.so.4
0000019 0xb6d8b446 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
0000020 0xb6d8e7e2 in ?? () from /usr/lib/libglib-2.0.so.0
0000021 0x08d16e90 in ?? ()
0000022 0x00000000 in ?? ()
(gdb)

jghali

2007-11-28 19:50

administrator   ~0018036

In such case, i think that the right behaviour would be to create an image frame with selected image

subik

2007-11-29 11:57

manager   ~0018044

it should be fixed now.

Its menu item (action) is disabled when there is no image in the document. There are more checks in the dialog code to disable search feature if there is no image selected in the Manage Pictures.

christoph_s

2007-12-06 20:30

developer   ~0018200

Tested, fixed. Thanks.

Issue History

Date Modified Username Field Change
2007-04-27 12:36 mhanski New Issue
2007-04-28 11:07 cbradney Note Added: 0016039
2007-09-22 00:41 pbhj Note Added: 0017344
2007-09-22 22:20 cbradney Note Added: 0017356
2007-09-22 22:20 cbradney Priority urgent => normal
2007-09-22 22:21 cbradney Relationship added child of 0005693
2007-10-18 14:16 subik Note Added: 0017695
2007-11-20 14:59 subik Note Added: 0017966
2007-11-20 14:59 subik Status new => feedback
2007-11-28 19:06 mhanski File Added: 28112007_crash.png
2007-11-28 19:11 mhanski Note Added: 0018030
2007-11-28 19:24 mhanski Note Added: 0018031
2007-11-28 19:26 mhanski Note Edited: 0018031
2007-11-28 19:27 mhanski Note Edited: 0018030
2007-11-28 19:42 jghali Note Added: 0018033
2007-11-28 19:42 jghali Status feedback => confirmed
2007-11-28 19:47 plinnell Note Added: 0018034
2007-11-28 19:50 jghali Note Added: 0018036
2007-11-29 11:57 subik Status confirmed => resolved
2007-11-29 11:57 subik Fixed in Version => 1.3.5svn
2007-11-29 11:57 subik Resolution open => fixed
2007-11-29 11:57 subik Assigned To => subik
2007-11-29 11:57 subik Note Added: 0018044
2007-12-06 20:30 christoph_s Status resolved => closed
2007-12-06 20:30 christoph_s Note Added: 0018200
2007-12-20 22:51 cbradney Target Version => 1.3.5svn
2007-12-26 17:02 cbradney Target Version 1.3.5svn => 1.3.5