Bug 264166

Summary: When I select my whole collection ( more than 5300 songs) in browser window and then select add to playlist, amarok will crash when save current playlist is selected
Product: [Applications] amarok Reporter: Tim <anatomy.nut>
Component: Playlists/Saved PlaylistsAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: crash CC: bart.cerneels, wouter
Priority: NOR    
Version: 2.3.2   
Target Milestone: 2.4.1   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: gdb output
New crash information added by DrKonqi

Description Tim 2011-01-24 14:23:57 UTC
Created attachment 56382 [details]
gdb output 

Version:           2.3.2 (using KDE 4.5.5) 
OS:                Linux

the above explains it all I think except that there where many other apps running at the same time firefox(3.6) many widows running (in excess of 10) and evolution mail (2.32)

Reproducible: Always

Steps to Reproduce:
select all the collection (which is in a single folder) right click and the select add to playlist. When try to save current playlist application closes

Actual Results:  
amarok closes

Expected Results:  
ummm it save the playlist :)

using oxygen theme
Comment 1 Myriam Schweingruber 2011-01-24 16:05:59 UTC
Backtrace from the attachment. Please always paste backtraces inline so they can be searched.


(gdb) bt
#0  0x02dd1fe1 in QSortFilterProxyModel::parent(QModelIndex const&) const ()
   from /usr/lib/libQtGui.so.4
#1  0x02d86362 in QTreeView::indexRowSizeHint(QModelIndex const&) const ()
   from /usr/lib/libQtGui.so.4
#2  0x02d8a8e9 in ?? () from /usr/lib/libQtGui.so.4
#3  0x02d8abc8 in ?? () from /usr/lib/libQtGui.so.4
#4  0x02d8aecf in QTreeView::updateGeometries() () from /usr/lib/libQtGui.so.4
#5  0x02d40615 in QAbstractItemView::resizeEvent(QResizeEvent*) ()
   from /usr/lib/libQtGui.so.4
#6  0x0281583f in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#7  0x02c131a4 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#8  0x02ca3063 in QAbstractScrollArea::viewportEvent(QEvent*) ()
   from /usr/lib/libQtGui.so.4
#9  0x02d44aef in QAbstractItemView::viewportEvent(QEvent*) ()
   from /usr/lib/libQtGui.so.4
#10 0x02d8e694 in QTreeView::viewportEvent(QEvent*) ()
   from /usr/lib/libQtGui.so.4
#11 0x02ca59d5 in ?? () from /usr/lib/libQtGui.so.4
#12 0x021594ea in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#13 0x027bc241 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/libQtGui.so.4
#14 0x027c0f7f in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libQtGui.so.4
#15 0x032faf7b in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libkdeui.so.5
#16 0x02159333 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/libQtCore.so.4
#17 0x02810fe9 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) ()
   from /usr/lib/libQtGui.so.4
#18 0x0281991a in QWidgetPrivate::show_helper() () from /usr/lib/libQtGui.so.4
#19 0x02819dc3 in QWidget::setVisible(bool) () from /usr/lib/libQtGui.so.4
#20 0x028198a8 in QWidgetPrivate::showChildren(bool) ()
   from /usr/lib/libQtGui.so.4
#21 0x02819942 in QWidgetPrivate::show_helper() () from /usr/lib/libQtGui.so.4
#22 0x02819dc3 in QWidget::setVisible(bool) () from /usr/lib/libQtGui.so.4
#23 0x028198a8 in QWidgetPrivate::showChildren(bool) ()
---Type <return> to continue, or q <return> to quit---q
 from /usr/lib/libQtGui.sQuit
(gdb) 

The backtrace shows no evidence of a problem in Amarok. JFYI: Amarok is not designed to work with huge playlists, and even less to hold the complete collection in the playlist.

Can you reliably reproduce this crash? Could you please test with Amarok 2.4 and report back?
Comment 2 Bart Cerneels 2011-01-24 16:12:20 UTC
When saving a playlist the view automatically switches to the saved playlist category. So this crash is a duplicate.

*** This bug has been marked as a duplicate of bug 257353 ***
Comment 3 Wouter Eelen 2011-02-09 23:25:54 UTC
Created attachment 57066 [details]
New crash information added by DrKonqi

amarok (2.3.2) on KDE Platform 4.5.1 (KDE 4.5.1) using Qt 4.7.0

- What I was doing when the application crashed:
only listening to music with amarok + file transfer (music) from remote samba share to local folder.

-- Backtrace (Reduced):
#7  QModelIndex (this=0xa883b38, child=...) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:65
#8  QSortFilterProxyModel::parent (this=0xa883b38, child=...) at itemviews/qsortfilterproxymodel.cpp:1656
#9  0xb67a4942 in parent (this=0xa8839f8, index=...) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:389
#10 QTreeView::indexRowSizeHint (this=0xa8839f8, index=...) at itemviews/qtreeview.cpp:2758
#11 0xb67a516b in QTreeViewPrivate::itemHeight (this=0xa72c3e8, item=0) at itemviews/qtreeview.cpp:3229