Bug 227845 - Kaffeine crashes on selecting DVB-T [MediaWidget::playDvb, DvbLiveView::playChannel, DvbTab::playChannel]
Summary: Kaffeine crashes on selecting DVB-T [MediaWidget::playDvb, DvbLiveView::playC...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kaffeine
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.x
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
: 251158 254826 273324 273987 282962 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-02-20 20:53 UTC by Karsten Roch
Modified: 2017-10-04 09:05 UTC (History)
11 users (show)

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


Attachments
Proposed patch for bug 227845 (added missing sanity checks) (2.18 KB, patch)
2010-03-28 13:14 UTC, Sebastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Roch 2010-02-20 20:53:46 UTC
Application: kaffeine (1.0-svn3)
KDE Platform Version: 4.4.00 (KDE 4.4.0)
Qt Version: 4.6.2
Operating System: Linux 2.6.33-0.47.rc8.git1.fc13.i686 i686
Distribution (Platform): Fedora RPMs

-- Information about the crash:
After starting kaffeine and selecting the button Digital TV, kaffeine crashes immediately. Digital TV works perfect on the same machine, using mplayer. 

kaffeine Version 1.0-svn3
Using KDE Development Platform 4.4.00 (KDE 4.4.0), 

The crash can be reproduced every time.

 -- Backtrace:
Application: Kaffeine (kaffeine), signal: Segmentation fault
[KCrash Handler]
#6  0x08083df5 in MediaWidget::playDvb (this=0x8995808, channelName=...) at /usr/src/debug/kaffeine-1.0-pre3/src/mediawidget.cpp:654
#7  0x080a7f91 in DvbLiveView::playChannel (this=0x8a92e58, channel_=0x8a97318) at /usr/src/debug/kaffeine-1.0-pre3/src/dvb/dvbliveview.cpp:189
#8  0x080c36ae in DvbTab::playChannel (this=0x89e00a0, row=10) at /usr/src/debug/kaffeine-1.0-pre3/src/dvb/dvbtab.cpp:403
#9  0x080c39d3 in DvbTab::playLastChannel (this=0x89e00a0) at /usr/src/debug/kaffeine-1.0-pre3/src/dvb/dvbtab.cpp:236
#10 0x08061d83 in MainWindow::qt_metacall (this=0x88cc078, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfd612d8)
    at /usr/src/debug/kaffeine-1.0-pre3/i686-redhat-linux-gnu/src/moc_mainwindow.cpp:99
#11 0x0215ae5b in QMetaObject::metacall (object=0x88cc078, cl=QMetaObject::InvokeMetaMethod, idx=48, argv=0xbfd612d8) at kernel/qmetaobject.cpp:237
#12 0x02169cdf in QMetaObject::activate (sender=0x89aed90, m=0x7720344, local_signal_index=2, argv=0xbfd612d8) at kernel/qobject.cpp:3293
#13 0x074ecfda in QAbstractButton::clicked (this=0x89aed90, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#14 0x071fffba in QAbstractButtonPrivate::emitClicked (this=0x89aef50) at widgets/qabstractbutton.cpp:546
#15 0x07201315 in QAbstractButtonPrivate::click (this=0x89aef50) at widgets/qabstractbutton.cpp:539
#16 0x072015de in QAbstractButton::mouseReleaseEvent (this=0x89aed90, e=0xbfd61a30) at widgets/qabstractbutton.cpp:1121
#17 0x072d305d in QToolButton::mouseReleaseEvent (this=0x89aed90, e=0xbfd61a30) at widgets/qtoolbutton.cpp:721
#18 0x06e7aabd in QWidget::event (this=0x89aed90, event=0xbfd61a30) at kernel/qwidget.cpp:7998
#19 0x071ffe5f in QAbstractButton::event (this=0x89aed90, e=0xbfd61a30) at widgets/qabstractbutton.cpp:1080
#20 0x072d573b in QToolButton::event (this=0x89aed90, event=0xbfd61a30) at widgets/qtoolbutton.cpp:1163
#21 0x06e27ddc in QApplicationPrivate::notify_helper (this=0x88861b8, receiver=0x89aed90, e=0xbfd61a30) at kernel/qapplication.cpp:4300
#22 0x06e2f3be in QApplication::notify (this=0xbfd622e0, receiver=0x89aed90, e=0xbfd61a30) at kernel/qapplication.cpp:3865
#23 0x07d209bb in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#24 0x02156483 in QCoreApplication::notifyInternal (this=0xbfd622e0, receiver=0x89aed90, event=0xbfd61a30) at kernel/qcoreapplication.cpp:704
#25 0x06e2e128 in sendEvent (receiver=0x89aed90, event=0xbfd61a30, alienWidget=0x89aed90, nativeWidget=0x899ec58, buttonDown=0x7728ad8, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:215
#26 QApplicationPrivate::sendMouseEvent (receiver=0x89aed90, event=0xbfd61a30, alienWidget=0x89aed90, nativeWidget=0x899ec58, buttonDown=0x7728ad8, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2965
#27 0x06eab3c0 in QETWidget::translateMouseEvent (this=0x899ec58, event=0xbfd61f4c) at kernel/qapplication_x11.cpp:4368
#28 0x06eaa8d3 in QApplication::x11ProcessEvent (this=0xbfd622e0, event=0xbfd61f4c) at kernel/qapplication_x11.cpp:3379
#29 0x06ed67ca in x11EventSourceDispatch (s=0x8888f68, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x0795f615 in g_main_dispatch (context=0x8888290) at gmain.c:1960
#31 IA__g_main_context_dispatch (context=0x8888290) at gmain.c:2513
#32 0x07963368 in g_main_context_iterate (context=0x7d5540, block=1, dispatch=1, self=0x88855d0) at gmain.c:2591
#33 0x07963529 in IA__g_main_context_iteration (context=0x8888290, may_block=1) at gmain.c:2654
#34 0x0217e676 in QEventDispatcherGlib::processEvents (this=0x8866308, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#35 0x06ed63b6 in QGuiEventDispatcherGlib::processEvents (this=0x8866308, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x02154b5a in QEventLoop::processEvents (this=0xbfd62244, flags=...) at kernel/qeventloop.cpp:149
#37 0x02154e9a in QEventLoop::exec (this=0xbfd62244, flags=...) at kernel/qeventloop.cpp:201
#38 0x02157567 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#39 0x06e27e88 in QApplication::exec () at kernel/qapplication.cpp:3579
#40 0x08075dda in main (argc=1, argv=0xbfd62414) at /usr/src/debug/kaffeine-1.0-pre3/src/main.cpp:78

Reported using DrKonqi
Comment 1 Sebastian 2010-03-28 13:14:17 UTC
Created attachment 42308 [details]
Proposed patch for bug 227845 (added missing sanity checks)

I added a patch that should prevent kaffeine from crashing when DvbFeed object creation failed. Added some missing sanity checks.
Comment 2 Dario Andres 2010-11-18 21:21:43 UTC
[Comment from a bug triager]
From bug 254826:
- What I was doing when the application crashed:
removing Pulse Audio  
pulse dont work with my soundcard  realy Realtek ALC655 rev 0

- Updated backtrace (kaffeine 1.2-svn)
Application: Kaffeine (kaffeine), signal: Segmentation fault
[KCrash Handler]
#5  0x000000000045375c in MediaWidget::playDvb (this=0x1f52270,
channelName=...) at /home/kay/work/kaffeine/src/mediawidget.cpp:723
#6  0x0000000000491ce6 in DvbLiveView::playChannel (this=0x216be90,
channel_=0x21655e0) at /home/kay/work/kaffeine/src/dvb/dvbliveview.cpp:216
#7  0x00000000004b615a in DvbTab::playChannel (this=0x1fd33a0,
channel=0x21655e0, index=<value optimized out>) at
/home/kay/work/kaffeine/src/dvb/dvbtab.cpp:470
#8  0x00000000004b65bd in DvbTab::playChannel (this=0x1fd33a0, index=...) at
/home/kay/work/kaffeine/src/dvb/dvbtab.cpp:410
#9  0x0000000000425529 in DvbTab::qt_metacall (this=0x1fd33a0,
_c=QMetaObject::InvokeMetaMethod, _id=44648416, _a=0x7fffdfa286d0) at
/home/kay/work/kaffeine/build/src/moc_dvbtab.cpp:101
Comment 3 Dario Andres 2010-11-18 21:21:49 UTC
*** Bug 254826 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2010-11-18 21:21:54 UTC
*** Bug 251158 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2011-10-04 13:05:42 UTC
*** Bug 282962 has been marked as a duplicate of this bug. ***
Comment 6 Jekyll Wu 2012-05-30 19:41:36 UTC
*** Bug 273324 has been marked as a duplicate of this bug. ***
Comment 7 Jekyll Wu 2012-05-30 19:41:47 UTC
*** Bug 273987 has been marked as a duplicate of this bug. ***
Comment 8 Mauro Carvalho Chehab 2016-06-01 09:33:19 UTC
The Kaffeine version you were using when this bug was reported is too old, and your patch doesn't apply anymore, as there were lots of changes at the logic that plays DVB. 

We just released upstream a version 2.0.1, with is based on KDE5. Could you please test the upstream version and see if the bug still happens there? 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

As this BZ seems to be related with a too old version, I'm closing the bug. If you find problems with version 2.0.1, please re-open.