adept crashed with SIGSEGV in QTreeView::indexRowSizeHint()

Bug #285961 reported by buntunub
60
This bug affects 2 people
Affects Status Importance Assigned to Milestone
adept (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: adept

Crashes with these symptoms occur random and often.

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/adept
NonfreeKernelModules: nvidia
Package: adept 3.0~beta4ubuntu3
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/adept installer
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
 LANGUAGE=en_US
 SHELL=/bin/bash
Signal: 11
SourcePackage: adept
StacktraceTop:
 ?? ()
 ?? ()
 QTreeView::indexRowSizeHint ()
 ?? () from /usr/lib/libQtGui.so.4
 ?? () from /usr/lib/libQtGui.so.4
Title: adept crashed with SIGSEGV in QTreeView::indexRowSizeHint()
Uname: Linux 2.6.27-7-generic x86_64
UserGroups:

Revision history for this message
buntunub (mckisick) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:adept::ExtendingDelegate::expandedSizeHint (this=0x22d0c30, opt=@0x7fff12c19940,
adept::ExtendingDelegate::sizeHint (this=0x22d0c30, opt=@0x7fff12c19940,
QTreeView::indexRowSizeHint () from /usr/lib/libQtGui.so.4
?? () from /usr/lib/libQtGui.so.4
?? () from /usr/lib/libQtGui.so.4

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Patrick Kilgore (patrick-kilgore) wrote :

I can confirm this bug. Happens to me quite a bit. I'm going to link my apport information in hopes that it is useful.

Changed in adept:
status: New → Confirmed
Revision history for this message
Patrick Kilgore (patrick-kilgore) wrote :

Importance to low - because while it causes a crash, no apparent loss of functionality or system damage results. Adept throws the crash, but everything seems to update just fine, and the program continues to run.

Changed in adept:
importance: Undecided → Low
Revision history for this message
Roderick B. Greening (roderick-greening) wrote :

I can make it happen here as well. Run adept with the installer command line option (or click on the Add/Remove link in the menu). Then open and close a bunch of package details on the right side or left/right click a bunch of times on the checkbox to install. It will eventually lock and crash.

Revision history for this message
Patrick Kilgore (patrick-kilgore) wrote :

Roderick - Does apport hard crash (crash + close program) or soft crash (apport tells you it crashed, but application still appears to function)?

Revision history for this message
Roderick B. Greening (roderick-greening) wrote :

Adept segfaults and the application goes away.

I spoke beiefly with mornfall, and he seems to think it's in one of the Extender classes in the Adept program (one of the classes which extends QTreeView).

Here's the trimmed IRC log...

[Mon Oct 20 2008] [10:36:35] <mornfall> Not a Qt bug.
[Mon Oct 20 2008] [10:36:40] <rgreening> ok.
[Mon Oct 20 2008] [10:36:46] <rgreening> something I can fix?
[Mon Oct 20 2008] [10:37:09] <mornfall> When setModel() is called, the Extender stuff needs to clear up its internal state.
[Mon Oct 20 2008] [10:37:39] <mornfall> Might just need to override setModel if its virtual.
[Mon Oct 20 2008] [10:38:01] <mornfall> And close all editors before calling the parent's setModel.
[Mon Oct 20 2008] [10:42:04] <mornfall> rgreening: Please let me know how it goes, maybe tomorrow -- if you don't come up with a fix, I'll do that.
[Mon Oct 20 2008] [10:42:41] <rgreening> mornfall: ok. I'll give it a go. I need to get into Qt and this is a good way to dive in...
[Mon Oct 20 2008] [10:44:16] <rgreening> mornfall: this would be from packagelist.cpp I believe... correct?
[Mon Oct 20 2008] [10:45:27] <mornfall> rgreening: More likely one of its ancestor classes.
[Mon Oct 20 2008] [10:45:34] <mornfall> I suppose.
[Mon Oct 20 2008] [10:45:41] <mornfall> Something with Extendable in name.

I've had a peek, but I am not quite sure what needs ot be done to correct... still looking though.

Revision history for this message
jon (jontek-euskalherria) wrote : Re: [Bug 285961] Re: adept crashed with SIGSEGV in QTreeView::indexRowSizeHint()

hard crash
thanks

Patrick Kilgore(e)k dio:
> Roderick - Does apport hard crash (crash + close program) or soft crash
> (apport tells you it crashed, but application still appears to
> function)?
>
>

Revision history for this message
Jigar (pjigar) wrote :

I get hard crash most of the times. Often. To reproduce just click on package details and check mark install for bunch of packages and eventually adept will close without warning. This happens more if I am trying to recycle through adept i.e. I installed bunch of packages successfully, then I go back to browse->package detail->install (few times) and then I get a crash.

Thanks

Changed in adept:
status: Confirmed → Triaged
Revision history for this message
Ilya Minkov (i-minkov) wrote :

Same here, hard crashes.

Revision history for this message
Patrick Kilgore (patrick-kilgore) wrote :

Importance upgrade with reports of hard crashes.

Changed in adept:
importance: Low → Medium
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Should be fixed in 3.0~beta4ubuntu4 once it gets built/released, mornfall provided a fix on IRC just now:

diff -rN -p -u old-adept-3/adept/extendablelist.h new-adept-3/adept/extendablelist.h
--- old-adept-3/adept/extendablelist.h 2008-10-23 02:16:18.851211536 +0200
+++ new-adept-3/adept/extendablelist.h 2008-10-23 02:16:19.279211883 +0200
@@ -103,6 +103,11 @@ public:
         closeAllEditorsRequested();
     }

+ virtual void setModel( QAbstractItemModel *m ) {
+ closeAllEditors();
+ QTreeView::setModel( m );
+ }
+
 Q_SIGNALS:
     void closeAllEditorsRequested();
 };

Changed in adept:
status: Triaged → Fix Committed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fix released in adept 3.0~beta4ubuntu4

Changed in adept:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.