Bug 440801 - Crash after search or during typing of search criterea [CollectionTreeItem::row()]
Summary: Crash after search or during typing of search criterea [CollectionTreeItem::r...
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: Collection Browser (show other bugs)
Version: 2.9.71
Platform: openSUSE Linux
: NOR crash
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-08-09 17:35 UTC by Arjan ten Hoopen
Modified: 2021-09-21 06:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (9.40 KB, text/plain)
2021-09-03 16:08 UTC, Jürgen Thomann
Details
New crash information added by DrKonqi (25.45 KB, text/plain)
2021-09-21 06:34 UTC, Arek Guzinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arjan ten Hoopen 2021-08-09 17:35:38 UTC
Application: amarok (2.9.71)

Qt Version: 5.15.2
Frameworks Version: 5.84.0
Operating System: Linux 5.3.18-59.16-default x86_64
Windowing System: X11
Drkonqi Version: 5.22.4
Distribution: "openSUSE Leap 15.3"

-- Information about the crash:
- What I was doing when the application crashed: I selected a search for format:flac. However I have several issues with searching. It almost always crashes. The best change of not crashing is when I type a character, wait 2 sec, type next character etc.

- Custom settings of the application: I don't know if it is related, I use a mariadb database and have a collection of 70.000+ mp3 and flac tracks

If there is anything I can do ... happy to help

The crash can be reproduced every time.

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault

[KCrash Handler]
#4  CollectionTreeItem::row() const (this=this@entry=0x76007200650073) at /usr/src/debug/amarok-2.9.75git.20210626T134054~59b22189f6-lp153.147.2.x86_64/src/browsers/CollectionTreeItem.cpp:224
#5  0x00007f8734238420 in CollectionTreeItemModelBase::itemIndex(CollectionTreeItem*) const (this=0x55fd73514bf0, item=0x76007200650073) at /usr/src/debug/amarok-2.9.75git.20210626T134054~59b22189f6-lp153.147.2.x86_64/src/browsers/CollectionTreeItemModelBase.cpp:581
#6  0x00007f87342384a0 in CollectionTreeItemModelBase::parent(QModelIndex const&) const (this=<optimized out>, index=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20210626T134054~59b22189f6-lp153.147.2.x86_64/src/browsers/CollectionTreeItemModelBase.cpp:446
#7  0x00007f8731a97f89 in QModelIndex::parent() const (this=0x55fd75024380) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:443
#8  QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=0x55fd73770510, source_top_left=<optimized out>, source_bottom_right=<optimized out>, roles=...) at itemmodels/qsortfilterproxymodel.cpp:1433
#9  0x00007f8731a9ad98 in QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qsortfilterproxymodel.cpp:275
#10 0x00007f8731b07ca9 in doActivate<false>(QObject*, int, void**) (sender=0x55fd73514bf0, signal_index=3, argv=0x7ffe30f1b920) at kernel/qobject.cpp:3898
#11 0x00007f8731b01372 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x55fd73514bf0, m=m@entry=0x7f8731faaf80 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe30f1b920) at kernel/qobject.cpp:3946
#12 0x00007f8731a64ddc in QAbstractItemModel::dataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=this@entry=0x55fd73514bf0, _t1=..., _t2=..., _t3=...) at .moc/moc_qabstractitemmodel.cpp:557
#13 0x00007f873423bf85 in CollectionTreeItemModelBase::tracksLoaded(AmarokSharedPointer<Meta::Album> const&, QModelIndex const&, QList<AmarokSharedPointer<Meta::Track> > const&) (this=0x55fd73514bf0, album=<optimized out>, index=..., tracks=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20210626T134054~59b22189f6-lp153.147.2.x86_64/src/browsers/CollectionTreeItemModelBase.cpp:724
#14 0x00007f8731afe9ab in QObject::event(QEvent*) (this=0x55fd73514bf0, e=0x7f86b0004750) at kernel/qobject.cpp:1314
#15 0x00007f8732a703ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55fd725f2e50, receiver=receiver@entry=0x55fd73514bf0, e=e@entry=0x7f86b0004750) at kernel/qapplication.cpp:3632
#16 0x00007f8732a771a0 in QApplication::notify(QObject*, QEvent*) (this=0x7ffe30f1c100, receiver=0x55fd73514bf0, e=0x7f86b0004750) at kernel/qapplication.cpp:3156
#17 0x00007f8731aca7b3 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55fd73514bf0, event=0x7f86b0004750) at kernel/qcoreapplication.cpp:1064
#18 0x00007f8731aca98e in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=receiver@entry=0x55fd73514bf0, event=event@entry=0x7f86b0004750) at kernel/qcoreapplication.cpp:1462
#19 0x00007f8731acd1d1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55fd72563480) at kernel/qcoreapplication.cpp:1821
#20 0x00007f8731acd758 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1680
#21 0x00007f8731b2d6e3 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55fd72720630) at kernel/qeventdispatcher_glib.cpp:277
#22 0x00007f871d2a1694 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#23 0x00007f871d2a1a30 in  () at /usr/lib64/libglib-2.0.so.0
#24 0x00007f871d2a1abc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#25 0x00007f8731b2cd8c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55fd727322b0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#26 0x00007f8731ac902a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe30f1bf80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:232
#27 0x00007f8731ad2837 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1375
#28 0x000055fd709130d5 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/amarok-2.9.75git.20210626T134054~59b22189f6-lp153.147.2.x86_64/src/main.cpp:397
[Inferior 1 (process 3067) detached]

Possible duplicates by query: bug 299043, bug 289291, bug 288325, bug 288039, bug 283695.

Reported using DrKonqi
Comment 1 Jürgen Thomann 2021-09-03 16:08:49 UTC
Created attachment 141272 [details]
New crash information added by DrKonqi

amarok (2.9.71) using Qt 5.15.2

- What I was doing when the application crashed:
As in the report, it crashes during search, but I don't have it always.

Amarok is compiled from current master at invent.kde.org

-- Backtrace (Reduced):
#6  0x00007f0067f71032 in CollectionTreeItem::row() const (this=0x4) at /usr/src/git/amarok/src/browsers/CollectionTreeItem.cpp:224
#7  0x00007f0067f7c98c in CollectionTreeItemModelBase::itemIndex(CollectionTreeItem*) const (this=0x1bfb700, item=0x4) at /usr/src/git/amarok/src/browsers/CollectionTreeItemModelBase.cpp:581
#8  0x00007f0067f7c20c in CollectionTreeItemModelBase::parent(QModelIndex const&) const (this=0x1bfb700, index=...) at /usr/src/git/amarok/src/browsers/CollectionTreeItemModelBase.cpp:446
#9  0x00007f00669b8b11 in QModelIndex::parent() const (this=0x2c8c940) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:443
#10 QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=0x1f580d0, source_top_left=<optimized out>, source_bottom_right=<optimized out>, roles=...) at itemmodels/qsortfilterproxymodel.cpp:1433
Comment 2 Arjan ten Hoopen 2021-09-06 18:42:13 UTC
Comment on attachment 141272 [details]
New crash information added by DrKonqi

L.S.
I haven't experienced this behaviour anymore for over a week. Don't know what has changed on my system but you can close this bug. I cannot reproduce it anymore.

If there is still something you would like to know ... happy to help.
Comment 3 Myriam Schweingruber 2021-09-07 13:53:29 UTC
(In reply to Arjan ten Hoopen from comment #2)
> Comment on attachment 141272 [details]
> New crash information added by DrKonqi
> 
> L.S.
> I haven't experienced this behaviour anymore for over a week. Don't know
> what has changed on my system but you can close this bug. I cannot reproduce
> it anymore.
> 
> If there is still something you would like to know ... happy to help.

Please feel free to reopen the bug should this crash happen again-
Comment 4 Arek Guzinski 2021-09-21 06:34:28 UTC
Created attachment 141757 [details]
New crash information added by DrKonqi

amarok (2.9.71) using Qt 5.15.3

- What I was doing when the application crashed:

typing text into the search field

I had this occurr on occasion before, but the new thing is that for the past week or so, it happens every single time I try searching, which makes Amarok quite useless :(.
The package itself has not been updated for longer than that.


Package version is 

2:2.9.71+1SNAPSHOT20210626150430+0200-0ubuntu1ppa1~ubuntu20.04.1
from
http://ppa.launchpad.net/pgomes/amarok/ubuntu
- the only neon-compatible package source for amarok that I know of...

-- Backtrace (Reduced):
#4  0x00007ff304bea0e4 in CollectionTreeItem::row() const () at /usr/lib/x86_64-linux-gnu/libamaroklib.so.1
#5  0x00007ff304bf0054 in CollectionTreeItemModelBase::itemIndex(CollectionTreeItem*) const () at /usr/lib/x86_64-linux-gnu/libamaroklib.so.1
#6  0x00007ff304bf00e4 in CollectionTreeItemModelBase::parent(QModelIndex const&) const () at /usr/lib/x86_64-linux-gnu/libamaroklib.so.1
#7  0x00007ff3036b26f9 in QModelIndex::parent() const (this=0x555c526c4790) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:443
#8  QSortFilterProxyModelPrivate::_q_sourceDataChanged(QModelIndex const&, QModelIndex const&, QVector<int> const&) (this=0x555c504edf60, source_top_left=..., source_bottom_right=..., roles=...) at itemmodels/qsortfilterproxymodel.cpp:1433