This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Segmentation fault while altering Media library folders

Tags: None
(comma "," separated)
Ptival
Registered Member
Posts
4
Karma
0
OS
This is going to be quite a long post.

So basically I had two bugs in one, and I'm going to explain the first here.

Whenever I altered my media library, Amarok would segfault on clicking "Ok" or "Apply".

With further inspection:
- Even if it crashed, the modifications are effective on launching Amarok again.
- It does not actually crash every time: I eventually found out that it crashed only whenever a file from the media library is present in my current playlist while I'm removing its folder from my library folders. The song does not need to be playing, its simple presence in the playlist causes the segfault.

EDIT: removed my useless backtraces missing debug symbols.

Code: Select all
$ uname -a
Linux debian 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux

Code: Select all
$ amarok -v
Qt: 4.6.3
KDE Development Platform: 4.4.5 (KDE 4.4.5)
Amarok: 2.4.0


---

An additional problem I had was that the media library would not show some of my music files ; while opening them manually inside Amarok would work.
And sometimes when searching for these files in the playlist, it would show me a message "Warning: tracks have been hidden in the playlist".

I found out (with help from valorie on #amarok) that it was because of the presence of a UFID ID3 tag. I just had to remove the tag from the files, and rescan the library to eventually get my files to appear.

Last edited by Ptival on Sat Mar 05, 2011 9:58 pm, edited 2 times in total.
Ptival
Registered Member
Posts
4
Karma
0
OS
I tried to run gdb on the problem.

Not sure I did it right or it helps...

EDIT: removed my useless backtraces missing debug symbols.

Last edited by Ptival on Sat Mar 05, 2011 9:55 pm, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please install debugging symbols for Amarok and kdelibs.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Ptival
Registered Member
Posts
4
Karma
0
OS
You're right, sorry for that. Here is the interesting backtrace:

Code: Select all
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6c543e7 in Playlist::multilevelLessThan::operator() (this=0xef4cb0, sourceModel=0xef48e0, sourceModelRowA=<value optimized out>, sourceModelRowB=<value optimized out>)
    at ../../src/playlist/proxymodels/SortAlgorithms.cpp:107
107   ../../src/playlist/proxymodels/SortAlgorithms.cpp: No such file or directory.
   in ../../src/playlist/proxymodels/SortAlgorithms.cpp


Code: Select all
#0  0x00007ffff6c543e7 in Playlist::multilevelLessThan::operator() (this=0xef4cb0, sourceModel=0xef48e0, sourceModelRowA=<value optimized out>,
    sourceModelRowB=<value optimized out>) at ../../src/playlist/proxymodels/SortAlgorithms.cpp:107
#1  0x00007ffff646a902 in QSortFilterProxyModelPrivate::proxy_intervals_for_source_items_to_add (this=0xef4720, proxy_to_source=..., source_items=...,
    source_parent=<value optimized out>, orient=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:575
#2  0x00007ffff646c9b7 in QSortFilterProxyModelPrivate::insert_source_items (this=<value optimized out>, source_to_proxy=<value optimized out>, proxy_to_source=...,
    source_items=..., source_parent=..., orient=<value optimized out>, emit_signal=false) at itemviews/qsortfilterproxymodel.cpp:634
#3  0x00007ffff646ff0a in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0xef4720, source_top_left=<value optimized out>, source_bottom_right=<value optimized out>)
    at itemviews/qsortfilterproxymodel.cpp:1126
#4  0x00007ffff6470d0b in QSortFilterProxyModel::qt_metacall (this=0xef4c80, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd072b450)
    at .moc/release-shared/moc_qsortfilterproxymodel.cpp:128
#5  0x00007ffff6c4d540 in Playlist::ProxyBase::qt_metacall (this=0x7fffffffaf50, _c=QMetaObject::InvokeMetaMethod, _id=-32, _a=0x1) at ./ProxyBase.moc:71
#6  0x00007ffff5519e29 in QObject::event (this=0xef4c80, e=0x7fffd021e780) at kernel/qobject.cpp:1248
#7  0x00007ffff5eb932c in QApplicationPrivate::notify_helper (this=0x795380, receiver=0xef4c80, e=0x7fffd021e780) at kernel/qapplication.cpp:4302
#8  0x00007ffff5ebf80b in QApplication::notify (this=0x7fffffffbec0, receiver=0xef4c80, e=0x7fffd021e780) at kernel/qapplication.cpp:4185
#9  0x00007ffff79ca7a6 in KApplication::notify (this=0x7fffffffbec0, receiver=0xef4c80, event=0x7fffd021e780) at ../../kdeui/kernel/kapplication.cpp:302
#10 0x00007ffff550a09c in QCoreApplication::notifyInternal (this=0x7fffffffbec0, receiver=0xef4c80, event=0x7fffd021e780) at kernel/qcoreapplication.cpp:726
#11 0x00007ffff550d744 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x632480) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#12 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x632480) at kernel/qcoreapplication.cpp:1367
#13 0x00007ffff5533b73 in sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#14 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#15 0x00007fffee5096f2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#16 0x00007fffee50d568 in ?? () from /lib/libglib-2.0.so.0
#17 0x00007fffee50d71c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#18 0x00007ffff55336b3 in QEventDispatcherGlib::processEvents (this=0x631b70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#19 0x00007ffff5f6919e in QGuiEventDispatcherGlib::processEvents (this=0x7fffffffaf50, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#20 0x00007ffff55089c2 in QEventLoop::processEvents (this=<value optimized out>, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece or DW_OP_bit_piece.
) at kernel/qeventloop.cpp:149
#21 0x00007ffff5508d9c in QEventLoop::exec (this=0x7fffffffbe60, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece or DW_OP_bit_piece.
) at kernel/qeventloop.cpp:201
#22 0x00007ffff550da2b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#23 0x0000000000409ad0 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../src/main.cpp:268
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
May I just remind you that bug reports do NOT belong in the forum?

There are detailed instructions here: viewtopic.php?f=115&t=67238 and the topic of this section clearly states:

Report build problems or support requests here. Bug reports should be filed at bugs.kde.org instead.

Please respect that, else it becomes impossible to handle if bug reports are done in more than one place.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]