Bug 429807 - Seg fault when changing songs in Elisa git version
Summary: Seg fault when changing songs in Elisa git version
Status: RESOLVED WORKSFORME
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 20.11.80
Platform: Arch Linux Linux
: NOR critical
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-29 13:09 UTC by ivan.planinar
Modified: 2020-12-31 04:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
backtrace (36.78 KB, text/plain)
2020-12-01 19:55 UTC, ivan.planinar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ivan.planinar 2020-11-29 13:09:08 UTC
SUMMARY

When I fiddle with played songs in the playlist I get seg fault, usually after messing with 3-4 songs.

There's no workaround.


STEPS TO REPRODUCE
1. Search for some artist in Elisa
1. Add various songs from him/her to the playlist
2. Play and stop them in the playlist, shuffle a bit (like 3-4 times)
3. Seg fault

OBSERVED RESULT

When started in the command line I got various logs, like this:

The X11 connection broke (error 1). Did the X11 server die?
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
Unable to start Dr. Konqi
Re-raising signal for core dump handling.
Segmentation fault (core dumped)

Another time I got this:

[00007fdd240411a0] filesystem stream error: read error: Bad file descriptor
KCrash: crashing... crashRecursionCounter = 2
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = elisa path = /usr/bin pid = 10252
KCrash: Arguments: /usr/bin/elisa 
KCrash: Application Name = elisa path = /usr/bin pid = 10252
KCrash: Arguments: /usr/bin/elisa 
KCrash: Attempting to start /usr/lib/drkonqi
KCrash: Attempting to start /usr/lib/drkonqi
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
QSocketNotifier: Invalid socket 16 and type 'Read', disabling...
QSocketNotifier: Invalid socket 33 and type 'Read', disabling...
QSocketNotifier: Invalid socket 35 and type 'Read', disabling...
QSocketNotifier: Invalid socket 36 and type 'Read', disabling...
QSocketNotifier: Invalid socket 38 and type 'Read', disabling...
QSocketNotifier: Invalid socket 51 and type 'Read', disabling...
QSocketNotifier: Invalid socket 52 and type 'Exception', disabling...
QSocketNotifier: Invalid socket 54 and type 'Read', disabling...
amdgpu: amdgpu_cs_query_reset_state failed. (-9)
The X11 connection broke (error 1). Did the X11 server die?
[00007fdd24036e70] mjpeg demux error: cannot peek
[0000558a694f4b70] main input error: Your input can't be opened
[0000558a694f4b70] main input error: VLC is unable to open the MRL 'file:///mnt/Muzika-Sajtovi/Music/Goldfrapp/Tales%20of%20Us/08%20-%20Goldfrapp%20-%20Stranger.mp3'. Check the log for details.

This happens in elisa-git version only. Current 20.08.3 doesn't have this problem.

Operating System: Arch Linux
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.9.10-arch1-1
OS Type: 64-bit
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31,4 GiB of RAM
Graphics Processor: Radeon RX 5500 XT
Comment 1 Nate Graham 2020-11-30 22:47:54 UTC
Can you attach a backtrace of the crash so we can debug it?
Comment 2 ivan.planinar 2020-12-01 17:46:54 UTC
(In reply to Nate Graham from comment #1)
> Can you attach a backtrace of the crash so we can debug it?

I don't have anything else except the findings I copy pasted here.

You cannot reproduce it?
Comment 3 Nate Graham 2020-12-01 19:27:06 UTC
No, it works for me. Whenever an app crashes, we need a backtrace to debug what's happening. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports for more information.
Comment 4 ivan.planinar 2020-12-01 19:55:04 UTC
Created attachment 133785 [details]
backtrace

Alright, I used gdb.

I attached in this message.
Comment 5 Nate Graham 2020-12-01 20:11:50 UTC
Which thread is crashing? I can't tell.
Comment 6 ivan.planinar 2020-12-01 20:29:01 UTC
(In reply to Nate Graham from comment #5)
> Which thread is crashing? I can't tell.

I don't know either. That's what I got when I followed your link for a debug.

gdb elisa
gdb run
seg fault
gdb thread apply all backtrace
Comment 7 Nate Graham 2020-12-01 20:30:49 UTC
We don't need all the threads, only the crashing one. Can you omit "thread apply all" and get a backtrace with just the crashing thread? Thanks!
Comment 8 ivan.planinar 2020-12-01 20:37:15 UTC
Thread 61 "elisa" received signal SIG32, Real-time event 32.

#0  0x00007ffff4eaa6a2 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007ffff3f336fe in ?? () from /usr/lib/libvlccore.so.9
#2  0x00007ffff4ea43e9 in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007ffff6303293 in clone () from /usr/lib/libc.so.6
Comment 9 ivan.planinar 2020-12-01 20:39:46 UTC
Also

Thread 1 "elisa" received signal SIGSEGV, Segmentation fault.
0x00007ffff68a0d40 in QVariant::~QVariant() () from /usr/lib/libQt5Core.so.5
(gdb) 
(gdb) backtrace
#0  0x00007ffff68a0d40 in QVariant::~QVariant() () from /usr/lib/libQt5Core.so.5
#1  0x00007ffff7e91d9e in ?? () from /usr/lib/elisa/libelisaLib.so.0
#2  0x00007ffff7e9201a in ?? () from /usr/lib/elisa/libelisaLib.so.0
#3  0x00007ffff7f28a59 in TrackMetadataModel::fillDataFromTrackData(DataTypes::TrackDataType const&, QList<DataTypes::ColumnsRoles> const&) ()
   from /usr/lib/elisa/libelisaLib.so.0
#4  0x00007ffff7f2953c in TrackMetadataModel::trackData(DataTypes::TrackDataType const&) () from /usr/lib/elisa/libelisaLib.so.0
#5  0x00007ffff688d582 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#6  0x00007ffff786e752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007ffff6860a7a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#8  0x00007ffff6863573 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#9  0x00007ffff68ba0a4 in ?? () from /usr/lib/libQt5Core.so.5
#10 0x00007ffff44e5914 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#11 0x00007ffff45397d1 in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007ffff44e4121 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#13 0x00007ffff68b96e1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#14 0x00007ffff685f3fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#15 0x00007ffff6867894 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#16 0x0000555555558daf in ?? ()
#17 0x00007ffff622b152 in __libc_start_main () from /usr/lib/libc.so.6
#18 0x00005555555591ce in ?? ()
Comment 10 Nate Graham 2020-12-01 20:43:01 UTC
Thanks, we're getting there. :) Could you install the debug symbol packages for libvlc and Elisa and do it again?
Comment 11 ivan.planinar 2020-12-01 21:06:56 UTC
Not sure how to do that. I'm on arch. I searched some packages and couldn't find any.
Comment 12 Nate Graham 2020-12-01 21:22:12 UTC
Oh right. Arch doesn't have debug packages. :( You might be able to build the packages from source with debug symbols. I think there's some Arch documentation for how to do that somewhere.
Comment 13 Bug Janitor Service 2020-12-16 04:34:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2020-12-31 04:34:29 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!