Bug 323453 - Issue with KMid when playing 'black' Midis
Summary: Issue with KMid when playing 'black' Midis
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: klocale (show other bugs)
Version: 4.11.60
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Chusslove Illich
URL:
Keywords: drkonqi, testcase
Depends on:
Blocks:
 
Reported: 2013-08-13 11:37 UTC by techno156
Modified: 2021-01-01 09:03 UTC (History)
2 users (show)

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


Attachments
The MID. :) (192.51 KB, audio/midi)
2013-10-02 22:38 UTC, techno156
Details

Note You need to log in before you can comment on or make changes to this bug.
Description techno156 2013-08-13 11:37:15 UTC
Application: kmid (2.4.0)
KDE Platform Version: 4.10.5
Qt Version: 4.8.5
Operating System: Linux 3.10.5-201.fc19.x86_64 x86_64
Distribution: "Fedora release 19 (Schrödinger’s Cat)"

-- Information about the crash:
- What I was doing when the application crashed:
I was attempting to play a MiDi. However, it should be noted that the MiDi was a 'black' Midi, in which there are a large number of notes. However, KMid does not seem to have an issue with other 'block' Midis, leading me to think that the underscores in the title of the file may be the cause. The filename is: nit_of_nit_2pin

The crash can be reproduced every time.

-- Backtrace:
Application: KMid (kmid), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f5b3176b8c0 (LWP 8014))]

Thread 3 (Thread 0x7f5b2658d700 (LWP 8015)):
#0  __GI___pthread_mutex_lock (mutex=0x7f5b20000a60) at pthread_mutex_lock.c:50
#1  0x00000031cda87251 in g_mutex_lock (mutex=mutex@entry=0x7f5b200009a0) at gthread-posix.c:210
#2  0x00000031cda47388 in g_main_context_release (context=context@entry=0x7f5b200009a0) at gmain.c:3149
#3  0x00000031cda480a1 in g_main_context_iterate (context=context@entry=0x7f5b200009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3703
#4  0x00000031cda481fc in g_main_context_iteration (context=0x7f5b200009a0, may_block=1) at gmain.c:3762
#5  0x00000031cefa7166 in QEventDispatcherGlib::processEvents (this=0x7f5b200008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00000031cef78ecf in QEventLoop::processEvents (this=this@entry=0x7f5b2658cce0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00000031cef791c5 in QEventLoop::exec (this=this@entry=0x7f5b2658cce0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00000031cee7866f in QThread::exec (this=this@entry=0x1dac350) at thread/qthread.cpp:536
#9  0x00000031cef5a733 in QInotifyFileSystemWatcherEngine::run (this=0x1dac350) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00000031cee7ad0f in QThreadPrivate::start (arg=0x1dac350) at thread/qthread_unix.cpp:338
#11 0x0000003ee6607c53 in start_thread (arg=0x7f5b2658d700) at pthread_create.c:308
#12 0x0000003ee62f513d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f5b256ba700 (LWP 8016)):
#0  0x0000003ee62eab6d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f5b256e7d95 in poll (__timeout=<optimized out>, __nfds=1, __fds=0x7f5b256b9d00) at /usr/include/bits/poll2.h:46
#2  drumstick::MidiClient::SequencerInputThread::run (this=0x1f47ad0) at /usr/src/debug/drumstick-0.5.0/library/src/alsaclient.cpp:1863
#3  0x00000031cee7ad0f in QThreadPrivate::start (arg=0x1f47ad0) at thread/qthread_unix.cpp:338
#4  0x0000003ee6607c53 in start_thread (arg=0x7f5b256ba700) at pthread_create.c:308
#5  0x0000003ee62f513d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f5b3176b8c0 (LWP 8014)):
[KCrash Handler]
#6  kencodingprober::nsSJISProber::HandleData (this=0x1d962d0, aBuf=0x46159b0 "\300Ta\004", aLen=<optimized out>) at /usr/src/debug/kdelibs-4.10.5/kdecore/localization/probers/nsSJISProber.cpp:78
#7  0x00000031d01c4712 in kencodingprober::nsMBCSGroupProber::HandleData (this=0x1dc0ae0, aBuf=<optimized out>, aLen=<optimized out>) at /usr/src/debug/kdelibs-4.10.5/kdecore/localization/probers/nsMBCSGroupProber.cpp:129
#8  0x00000031d01c5aa4 in kencodingprober::nsUniversalDetector::HandleData (this=0x4615d60, aBuf=0x31cf2df798 <QByteArray::shared_empty+24> "", aLen=0) at /usr/src/debug/kdelibs-4.10.5/kdecore/localization/probers/nsUniversalDetector.cpp:149
#9  0x00000031d01c0e46 in KEncodingProber::feed (this=this@entry=0x7fff8b1e2580, data=<optimized out>, len=<optimized out>) at /usr/src/debug/kdelibs-4.10.5/kdecore/localization/kencodingprober.cpp:172
#10 0x00000031d01c0eef in KEncodingProber::feed (this=this@entry=0x7fff8b1e2580, data=...) at /usr/src/debug/kdelibs-4.10.5/kdecore/localization/kencodingprober.cpp:159
#11 0x00007f5b25b8126c in KMid::Song::guessTextCodec (this=0x1f26cc0) at /usr/src/debug/kmid-2.4.0/alsa/song.cpp:174
#12 0x00007f5b25b762dc in KMid::ALSAMIDIObject::guessTextEncoding (this=0x1f26540) at /usr/src/debug/kmid-2.4.0/alsa/alsamidiobject.cpp:795
#13 0x0000000000426f3d in KMid2::displayLyrics (this=this@entry=0x1cbf2b0) at /usr/src/debug/kmid-2.4.0/src/kmid2.cpp:505
#14 0x000000000042be07 in KMid2::slotLoadSongSettings (this=this@entry=0x1cbf2b0) at /usr/src/debug/kmid-2.4.0/src/kmid2.cpp:1507
#15 0x000000000042c79e in KMid2::slotSourceChanged (this=0x1cbf2b0, src=...) at /usr/src/debug/kmid-2.4.0/src/kmid2.cpp:492
#16 0x000000000042dca9 in KMid2::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /usr/src/debug/kmid-2.4.0/x86_64-redhat-linux-gnu/src/kmid2.moc:246
#17 0x00000031cef8df78 in QMetaObject::activate (sender=0x1f26540, m=m@entry=0x3022a16a40 <KMid::MIDIObject::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff8b1e2db0) at kernel/qobject.cpp:3547
#18 0x00000030228068a5 in KMid::MIDIObject::currentSourceChanged (this=<optimized out>, _t1=...) at /usr/src/debug/kmid-2.4.0/x86_64-redhat-linux-gnu/library/midiobject.moc:203
#19 0x00007f5b25b78030 in KMid::ALSAMIDIObject::openFile (this=0x1f26540, fileName=...) at /usr/src/debug/kmid-2.4.0/alsa/alsamidiobject.cpp:703
#20 0x000000000042a36a in KMid2::setPlayList (this=this@entry=0x1cbf2b0, urls=...) at /usr/src/debug/kmid-2.4.0/src/kmid2.cpp:428
#21 0x000000000042a8f3 in KMid2::dropEvent (this=0x1cbf2b0, event=0x7fff8b1e33b0) at /usr/src/debug/kmid-2.4.0/src/kmid2.cpp:450
#22 0x000000301f61786e in QWidget::event (this=this@entry=0x1cbf2b0, event=event@entry=0x7fff8b1e33b0) at kernel/qwidget.cpp:8577
#23 0x000000301f9cc733 in QMainWindow::event (this=this@entry=0x1cbf2b0, event=event@entry=0x7fff8b1e33b0) at widgets/qmainwindow.cpp:1478
#24 0x0000003020cf61a1 in KMainWindow::event (this=this@entry=0x1cbf2b0, ev=ev@entry=0x7fff8b1e33b0) at /usr/src/debug/kdelibs-4.10.5/kdeui/widgets/kmainwindow.cpp:1084
#25 0x0000003020d2dc29 in KXmlGuiWindow::event (this=0x1cbf2b0, ev=0x7fff8b1e33b0) at /usr/src/debug/kdelibs-4.10.5/kdeui/xmlgui/kxmlguiwindow.cpp:126
#26 0x000000301f5c84dc in QApplicationPrivate::notify_helper (this=0x1b2c0f0, receiver=0x1cbf2b0, e=0x7fff8b1e33b0) at kernel/qapplication.cpp:4562
#27 0x000000301f5cf92e in QApplication::notify (this=this@entry=0x7fff8b1e3c40, receiver=receiver@entry=0x1cbf2b0, e=e@entry=0x7fff8b1e33b0) at kernel/qapplication.cpp:4348
#28 0x0000003020c415ba in KApplication::notify (this=0x7fff8b1e3c40, receiver=0x1cbf2b0, event=0x7fff8b1e33b0) at /usr/src/debug/kdelibs-4.10.5/kdeui/kernel/kapplication.cpp:311
#29 0x00000031cef7a26d in QCoreApplication::notifyInternal (this=0x7fff8b1e3c40, receiver=0x1cbf2b0, event=event@entry=0x7fff8b1e33b0) at kernel/qcoreapplication.cpp:949
#30 0x000000301f64d3d1 in sendEvent (event=0x7fff8b1e33b0, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#31 QX11Data::xdndHandleDrop (this=<optimized out>, xe=<optimized out>, passive=<optimized out>) at kernel/qdnd_x11.cpp:1181
#32 0x000000301f631f5d in QApplication::x11ClientMessage (this=<optimized out>, w=0x1cbf2b0, event=<optimized out>, passive_only=<optimized out>) at kernel/qapplication_x11.cpp:3228
#33 0x000000301f63e7df in QApplication::x11ProcessEvent (this=0x7fff8b1e3c40, event=event@entry=0x7fff8b1e36d0) at kernel/qapplication_x11.cpp:3800
#34 0x000000301f664e54 in x11EventSourceDispatch (s=s@entry=0x1b2ee10, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#35 0x00000031cda47e06 in g_main_dispatch (context=0x1b2cad0) at gmain.c:3054
#36 g_main_context_dispatch (context=context@entry=0x1b2cad0) at gmain.c:3630
#37 0x00000031cda48158 in g_main_context_iterate (context=context@entry=0x1b2cad0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3701
#38 0x00000031cda481fc in g_main_context_iteration (context=0x1b2cad0, may_block=1) at gmain.c:3762
#39 0x00000031cefa7145 in QEventDispatcherGlib::processEvents (this=0x1b04990, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#40 0x000000301f664fc6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#41 0x00000031cef78ecf in QEventLoop::processEvents (this=this@entry=0x7fff8b1e3ab0, flags=...) at kernel/qeventloop.cpp:149
#42 0x00000031cef791c5 in QEventLoop::exec (this=this@entry=0x7fff8b1e3ab0, flags=...) at kernel/qeventloop.cpp:204
#43 0x00000031cef7e45b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#44 0x000000301f5c6c9c in QApplication::exec () at kernel/qapplication.cpp:3823
#45 0x0000000000415d85 in main (argc=1, argv=<optimized out>) at /usr/src/debug/kmid-2.4.0/src/main.cpp:63

Reported using DrKonqi
Comment 1 Christoph Feck 2013-08-13 22:43:53 UTC
Could you please attach such a midi file? It might be a deeper problem in KDE's core libraries failing to correctly handle the text strings in the file.
Comment 2 Christoph Feck 2013-08-23 13:22:21 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Jekyll Wu 2013-09-14 17:15:39 UTC
See comment #1 and comment #2
Comment 4 Christoph Feck 2013-10-02 21:49:28 UTC
To further investigate this issue, KDE developers need the information requested in comment #1. If you can provide it, or need help with finding that information, please add a comment.
Comment 5 techno156 2013-10-02 22:38:18 UTC
Created attachment 82630 [details]
The MID. :)

Here we are. :) Sorry for the delay, forgot about this until I got an e-mail notification today.
Comment 6 Jekyll Wu 2013-10-03 01:58:14 UTC
Thanks for the feedback
Comment 7 Justin Zobel 2020-12-13 03:57:12 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 8 Bug Janitor Service 2020-12-28 04:34:51 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 9 techno156 2020-12-28 05:10:25 UTC
(In reply to Justin Zobel from comment #7)
> Thank you for the crash report.
> 
> As it has been a while since this was reported, can you please test and
> confirm if this issue is still occurring or if this bug report can be marked
> as resolved.
> 
> I have set the bug status to "needsinfo" pending your response, please
> change back to "reported" or "resolved/worksforme" when you respond, thank
> you.

Unfortunately, I am no longer using Fedora, and Arch Linux does not appear to have KMid in the AUR any longer. As such, it would not be possible for me to reproduce the bug at the present time.