Bug 319382 - Selecting unavailaible soundcard results in crash
Summary: Selecting unavailaible soundcard results in crash
Status: RESOLVED WORKSFORME
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-05 21:26 UTC by Philipp Gampe
Modified: 2017-10-04 09:05 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Gampe 2013-05-05 21:26:06 UTC
Application: kaffeine (1.2.2)
KDE Platform Version: 4.10.2
Qt Version: 4.8.4
Operating System: Linux 3.8.9-200.fc18.x86_64 x86_64
Distribution: "Fedora release 18 (Spherical Cow)"

-- Information about the crash:
- What I was doing when the application crashed:
pulseaudio crashed, the I opened the KDE sound card dialog
I clicked apply, and then reopened kaffeine.
When I select digital TV, then KDE crashed imediately.

The crash can be reproduced every time.

-- Backtrace:
Application: Kaffeine (kaffeine), 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 0x7f93e6382880 (LWP 17691))]

Thread 2 (Thread 0x7f93d5f95700 (LWP 17694)):
#0  0x0000003a6820e12d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x0000003a676840df in read (__nbytes=16, __buf=0x7f93d5f94ae0, __fd=<optimized out>) at /usr/include/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x7f93c8001c00) at gwakeup.c:212
#3  0x0000003a676478b4 in g_main_context_check (context=context@entry=0x7f93c80009a0, max_priority=2147483647, fds=fds@entry=0x7f93c80029b0, n_fds=n_fds@entry=1) at gmain.c:3129
#4  0x0000003a67647cc2 in g_main_context_iterate (context=context@entry=0x7f93c80009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3287
#5  0x0000003a67647e44 in g_main_context_iteration (context=0x7f93c80009a0, may_block=1) at gmain.c:3351
#6  0x0000003a7a3a6126 in QEventDispatcherGlib::processEvents (this=0x7f93c80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x0000003a7a37680f in QEventLoop::processEvents (this=this@entry=0x7f93d5f94cd0, flags=...) at kernel/qeventloop.cpp:149
#8  0x0000003a7a376a98 in QEventLoop::exec (this=0x7f93d5f94cd0, flags=...) at kernel/qeventloop.cpp:204
#9  0x0000003a7a278980 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#10 0x0000003a7a35703f in QInotifyFileSystemWatcherEngine::run (this=0x22b0a50) at io/qfilesystemwatcher_inotify.cpp:256
#11 0x0000003a7a27b95c in QThreadPrivate::start (arg=0x22b0a50) at thread/qthread_unix.cpp:338
#12 0x0000003a68207d15 in start_thread (arg=0x7f93d5f95700) at pthread_create.c:308
#13 0x0000003a67af248d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 1 (Thread 0x7f93e6382880 (LWP 17691)):
[KCrash Handler]
#6  0x00000000004a1b4f in MediaWidget::playDvb (this=0x2246040, channelName=...) at /usr/src/debug/kaffeine-1.2.2/src/mediawidget.cpp:722
#7  0x000000000045eaef in DvbLiveView::playChannel (this=0x22a7390, channel_=...) at /usr/src/debug/kaffeine-1.2.2/src/dvb/dvbliveview.cpp:218
#8  0x0000000000482680 in DvbTab::playChannel (this=0x229fa50, channel=..., index=...) at /usr/src/debug/kaffeine-1.2.2/src/dvb/dvbtab.cpp:465
#9  0x0000000000482d62 in DvbTab::playLastChannel (this=0x229fa50) at /usr/src/debug/kaffeine-1.2.2/src/dvb/dvbtab.cpp:255
#10 0x0000000000424b5d in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/kaffeine-1.2.2/x86_64-redhat-linux-gnu/src/moc_mainwindow.cpp:90
#11 MainWindow::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/kaffeine-1.2.2/x86_64-redhat-linux-gnu/src/moc_mainwindow.cpp:72
#12 0x0000003a7a38ceef in QMetaObject::activate (sender=0x227d880, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5fa06a40) at kernel/qobject.cpp:3539
#13 0x0000003a0c42f012 in QAbstractButton::clicked (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:219
#14 0x0000003a0c183c8e in QAbstractButtonPrivate::emitClicked (this=this@entry=0x2284cc0) at widgets/qabstractbutton.cpp:548
#15 0x0000003a0c184290 in QAbstractButtonPrivate::click (this=this@entry=0x2284cc0) at widgets/qabstractbutton.cpp:541
#16 0x0000003a0c1844fc in QAbstractButton::mouseReleaseEvent (this=0x227d880, e=0x7fff5fa072f0) at widgets/qabstractbutton.cpp:1123
#17 0x0000003a0c23e78a in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:718
#18 0x0000003a0be19f49 in QWidget::event (this=0x227d880, event=0x7fff5fa072f0) at kernel/qwidget.cpp:8375
#19 0x0000003a0bdca5cc in QApplicationPrivate::notify_helper (this=0x1f69480, receiver=0x227d880, e=0x7fff5fa072f0) at kernel/qapplication.cpp:4562
#20 0x0000003a0bdcf2ab in QApplication::notify (this=<optimized out>, receiver=0x227d880, e=0x7fff5fa072f0) at kernel/qapplication.cpp:4105
#21 0x0000003a0d446f16 in KApplication::notify (this=0x7fff5fa07f50, receiver=0x227d880, event=0x7fff5fa072f0) at /usr/src/debug/kdelibs-4.10.2/kdeui/kernel/kapplication.cpp:311
#22 0x0000003a7a377abe in QCoreApplication::notifyInternal (this=0x7fff5fa07f50, receiver=0x227d880, event=0x7fff5fa072f0) at kernel/qcoreapplication.cpp:946
#23 0x0000003a0bdcb40b in QApplicationPrivate::sendMouseEvent (receiver=0x227d880, event=0x7fff5fa072f0, alienWidget=0x227d880, nativeWidget=0x227d020, buttonDown=0x3a0c89e268 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:231
#24 0x0000003a0be45b74 in QETWidget::translateMouseEvent (this=0x227d020, event=<optimized out>) at kernel/qapplication_x11.cpp:4537
#25 0x0000003a0be44901 in QApplication::x11ProcessEvent (this=0x7fff5fa07f50, event=0x7fff5fa07a60) at kernel/qapplication_x11.cpp:3660
#26 0x0000003a0be6aa5c in x11EventSourceDispatch (s=s@entry=0x1f6ba70, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148
#27 0x0000003a67647a55 in g_main_dispatch (context=0x1f6a440) at gmain.c:2715
#28 g_main_context_dispatch (context=context@entry=0x1f6a440) at gmain.c:3219
#29 0x0000003a67647d88 in g_main_context_iterate (context=context@entry=0x1f6a440, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3290
#30 0x0000003a67647e44 in g_main_context_iteration (context=0x1f6a440, may_block=1) at gmain.c:3351
#31 0x0000003a7a3a6106 in QEventDispatcherGlib::processEvents (this=0x1f2f990, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#32 0x0000003a0be6a73e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#33 0x0000003a7a37680f in QEventLoop::processEvents (this=this@entry=0x7fff5fa07e30, flags=...) at kernel/qeventloop.cpp:149
#34 0x0000003a7a376a98 in QEventLoop::exec (this=0x7fff5fa07e30, flags=...) at kernel/qeventloop.cpp:204
#35 0x0000003a7a37b888 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#36 0x0000000000420ba3 in main (argc=1, argv=0x7fff5fa08098) at /usr/src/debug/kaffeine-1.2.2/src/main.cpp:79

This bug may be a duplicate of or related to bug 227845.

Possible duplicates by query: bug 282962, bug 273987, bug 273324.

Reported using DrKonqi
Comment 1 Mauro Carvalho Chehab 2016-06-01 10:59:48 UTC
The Kaffeine version you're using is too old. We just released upstream a version 2.0.1, with is based on KDE5, and changed both the DVB and video play backends. Could you please test the upstream version and see if it works? The README file contains instructions about how to compile it. You can find it at our git repository:

https://quickgit.kde.org/?p=kaffeine.git

With the new version, I did some tests here by playing a video stream while manually killing pulseaudio on another window on Fedora 23. I didn't see any Kaffeine crashes. Obvously, audio stopped working, due to the lack of pulseaudio, but this is expected.

As this BZ is on an old version that we're not maintaining upstream anymore, I'm closing the bug. If you find similar issues with version 2.0.1, please re-open.