Bug 1684881

Summary: Qmmp crash with some mp3 when turned to next file
Product: [Fedora] Fedora Reporter: Ivan Romanov <drizt72>
Component: qmmpAssignee: Karel Volný <kvolny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: kvolny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qmmp-1.2.4-3.fc30 qmmp-1.3.5-1.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-04 03:11:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
gdb output
none
First mp3
none
Second mp3 none

Description Ivan Romanov 2019-03-03 14:46:51 UTC
Created attachment 1540293 [details]
gdb output

Description of problem:


Version-Release number of selected component (if applicable):
qmmp-1.2.3-1.fc29.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Open qmmp
2. Add attached mp3 files to playlist
3. Play first (you can rewind to end)
4. Wait when song will be switched to next.

Actual results:
Crash.


Expected results:
Playing next file.

Additional info:
See console.log attached file

Comment 1 Ivan Romanov 2019-03-03 14:47:32 UTC
Created attachment 1540294 [details]
First mp3

Comment 2 Ivan Romanov 2019-03-03 14:48:08 UTC
Created attachment 1540295 [details]
Second mp3

Comment 3 Karel Volný 2019-08-09 12:00:42 UTC
sorry for late reaction, it slipped through my bugzilla filters

I cannot reproduce on F30 with qmmp 1.2.4

would you mind updating to F30?

is this bug still relevant for you?

Comment 4 Ivan Romanov 2019-08-09 16:28:58 UTC
Yes. This bug still relevant for me. Important note. It happens only when output plugin is Qt Multimedia Plugin.

$ rpm -q qmmp
qmmp-1.2.4-2.fc30.x86_64

Comment 5 Karel Volný 2019-08-12 11:33:45 UTC
thanks, after switching the output, I can reproduce now

the interesting thing is that my backtrace looks completely different ...

Comment 6 Karel Volný 2019-08-20 16:38:05 UTC
tested in rawhide with qmmp-1.3.3

I can't figure out, reported upstream - https://sourceforge.net/p/qmmp-dev/tickets/1011/

probably, this is bug in Qt timers, as it complains

QObject::killTimer: Timers cannot be stopped from another thread

and the crashing thread goes like this:

#0  0x00007ffff6cf9acb in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55555587f000, event=0x7fffffffd880) at kernel/qcoreapplication.cpp:1081
        selfRequired = true
        result = false
        cbdata = {0x55555587f000, 0x7fffffffd880, 0x7fffffffd80f}
        d = 0x555555a9a6c0
        threadData = 0x0
        scopeLevelCounter = {threadData = 0x0}
#1  0x00007ffff6d4de93 in QTimerInfoList::activateTimers() (this=this@entry=0x5555556d0f40) at kernel/qtimerinfo_unix.cpp:643
        e = 
          {<QEvent> = {_vptr.QEvent = 0x7ffff6faac90 <vtable for QTimerEvent+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff6e945e0 <qt_meta_stringdata_QEvent>, data = 0x7ffff6e94020 <qt_meta_data_QEvent>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}, d = 0x0, t = 1, posted = 0, spont = 0, m_accept = 1, reserved = 0}, id = 5}
        currentTimerInfo = 0x555555837370
        n_act = 1
        maxCount = 0
        currentTime = {tv_sec = 72897, tv_nsec = 750100213}


there is some older Qt bug:
https://bugreports.qt.io/browse/QTBUG-40636
that should be fixed already, but the Internet is full of similar problems ...

Comment 7 Karel Volný 2019-08-26 10:37:16 UTC
fixed upstream

so I've created patch for 1.2.4, scratchbuild:
https://koji.fedoraproject.org/koji/taskinfo?taskID=37286910

Comment 10 Fedora Update System 2019-08-26 11:49:20 UTC
FEDORA-2019-eed09ddd0b has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-eed09ddd0b

Comment 11 Fedora Update System 2019-08-27 18:21:51 UTC
qmmp-1.2.4-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-eed09ddd0b

Comment 12 Fedora Update System 2019-09-04 03:11:30 UTC
qmmp-1.2.4-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Ivan Romanov 2019-09-04 04:26:00 UTC
Big thanks!

Comment 14 Fedora Update System 2019-12-28 11:41:20 UTC
FEDORA-2019-bc28b87b64 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-bc28b87b64

Comment 15 Fedora Update System 2020-01-04 22:23:40 UTC
qmmp-1.3.5-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-bc28b87b64

Comment 16 Fedora Update System 2020-01-12 01:42:02 UTC
qmmp-1.3.5-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.