View Issue Details

IDProjectCategoryView StatusLast Update
0006237ScribusGeneralpublic2007-12-26 17:02
Reporterchristoph_s Assigned Tojghali  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx86OSLinuxOS VersionSuSE 10.2
Product Version1.3.5svn 
Target Version1.3.5Fixed in Version1.3.5svn 
Summary0006237: Scaling a selection of several objects triggers crash
DescriptionIf I select more than one object and scale the objects proportionally, Scribus crashes when the scaling operation crosses the upper left corner.
Steps To Reproduce- create two text frames
- select them both
- resize the selection a first time
- resize the selection a second time
- crash
Additional InformationScribusView: changed region: QRect(798,322 238x235)
fill Buffer: QRect(0,0 1243x870) special: false

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229867312 (LWP 7678)]
0xb6f3a54d in __dynamic_cast () from /usr/lib/libstdc++.so.6
(gdb) bt
#0 0xb6f3a54d in __dynamic_cast () from /usr/lib/libstdc++.so.6
0000001 0x088252bf in MassObservable<QRect>::updateNow (this=0x94eddb8,
    what=0x98e5168)
    at /home/christoph/scribus135/trunk/Scribus/scribus/observable.h:226
0000002 0x089eb5e3 in UpdateManager::setUpdatesEnabled (this=0x94edd8c, val=true)
    at /home/christoph/scribus135/trunk/Scribus/scribus/updatemanager.cpp:31
0000003 0x087efbb9 in ScribusDoc::scaleGroup (this=0x94ed4e0,
    scx=1.4277456647398843, scy=1.4273653309200869, scaleText=false,
    customSelection=0x94d3320)
    at /home/christoph/scribus135/trunk/Scribus/scribus/scribusdoc.cpp:9307
0000004 0x08834c3d in ScribusView::scaleGroup (this=0x94fa558,
    scx=1.4277456647398843, scy=1.4273653309200869, scaleText=false,
    customSelection=0x0)
    at /home/christoph/scribus135/trunk/Scribus/scribus/scribusview.cpp:1491
0000005 0x082ed617 in LegacyMode::mouseReleaseEvent (this=0x981c158, m=0xbfaccb10)
    at /home/christoph/scribus135/trunk/Scribus/scribus/canvasmode_legacy.cpp:2594
0000006 0x08826d20 in ScribusView::eventFilter (this=0x94fa558, obj=0x972bb78,
    event=0xbfaccb10)
    at /home/christoph/scribus135/trunk/Scribus/scribus/scribusview.cpp:4928
0000007 0xb7710dc1 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
0000008 0xb7717117 in QApplication::notify () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
0000009 0xb727c6cb in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
0000010 0xb77667f6 in QETWidget::translateMouseEvent () from /usr/lib/libQtGui.so.4
0000011 0xb7765f13 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
0000012 0xb7787c35 in QEventDispatcherX11::processEvents ()
   from /usr/lib/libQtGui.so.4
0000013 0xb727bc08 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
0000014 0xb727bd1c in QEventLoop::exec () from /usr/lib/libQtCore.so.4
0000015 0xb727e398 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
0000016 0xb7710527 in QApplication::exec () from /usr/lib/libQtGui.so.4
0000017 0x084ab106 in mainApp (argc=1, argv=0xbfacd114)
    at /home/christoph/scribus135/trunk/Scribus/scribus/main_nix.cpp:76
0000018 0x084ab16a in main (argc=1407551829, argv=0x8b54ec83)
    at /home/christoph/scribus135/trunk/Scribus/scribus/main_nix.cpp:52
TagsNo tags attached.
Patch

Relationships

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

Activities

pbhj

2007-09-22 00:38

reporter   ~0017343

It's not clear from your description if the objects are grouped or just selected at the same time. Either way, I can't repeat this in 1.3.4 on linux.

christoph_s

2007-09-22 00:43

developer   ~0017345

This is a bug report for 1.3.5svn, and it's probably related to the Qt4 port.

jghali

2007-09-23 00:15

administrator   ~0017361

Proposed patch:

Index: E:/Scribus For Windows/scribus-1.3.x-svn/Scribus/scribus/updatemanager.cpp
===================================================================
--- E:/Scribus For Windows/scribus-1.3.x-svn/Scribus/scribus/updatemanager.cpp (revision 10689)
+++ E:/Scribus For Windows/scribus-1.3.x-svn/Scribus/scribus/updatemanager.cpp (working copy)
@@ -30,6 +30,7 @@
                 foreach(PendingUpdate pair, m_pending) {
                     pair.first->updateNow(pair.second);
                 }
+ m_pending.clear();
             }
         }
     }

christoph_s

2007-09-23 22:14

developer   ~0017383

Tested, fixed. Thanks.

Issue History

Date Modified Username Field Change
2007-09-19 19:40 christoph_s New Issue
2007-09-19 20:33 cbradney Relationship added child of 0005693
2007-09-22 00:38 pbhj Note Added: 0017343
2007-09-22 00:43 christoph_s Note Added: 0017345
2007-09-22 23:36 jghali Summary Scaling a group of objects triggers crash => Scaling a selection of several objects triggers crash
2007-09-22 23:36 jghali Steps to Reproduce Updated
2007-09-22 23:37 jghali Status new => confirmed
2007-09-23 00:14 jghali Status confirmed => assigned
2007-09-23 00:14 jghali Assigned To => avox
2007-09-23 00:15 jghali Note Added: 0017361
2007-09-23 00:46 jghali Assigned To avox => jghali
2007-09-23 00:46 jghali Status assigned => resolved
2007-09-23 00:46 jghali Fixed in Version => 1.3.5svn
2007-09-23 00:46 jghali Resolution open => fixed
2007-09-23 22:14 christoph_s Status resolved => closed
2007-09-23 22:14 christoph_s Note Added: 0017383
2007-12-20 22:52 cbradney Target Version => 1.3.5svn
2007-12-26 17:02 cbradney Target Version 1.3.5svn => 1.3.5