Opened 15 years ago

Closed 15 years ago

#6808 closed defect (fixed)

Playing Vob file with internal player crashes mythfrontend

Reported by: tsx_5@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: MythTV - Video Playback Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hi,

using internal player configured to use VDPAU crashes the frontend. This happens with either the latest released NVidia drivers or the beta version. Please let me know what else I can add to help with this (btw: kernel is 2.6.31-desktop-0.rc4.1mnb) -- BT is posted below:

#0 0x00000000 in ?? ()

#1 0xb56bda17 in decode_chunks (avctx=0xb19a2d0, picture=<value optimized out>, data_size=<value optimized out>, buf=0xb244640 "",buf_size=8344) at mpeg12.c:2303

#2 0xb56be53c in mpeg_decode_frame (avctx=0xb19a2d0, data=0xbfbc9dc8, data_size=0xbfbca320, avpkt=0xb19dc20) at mpeg12.c:2535

#3 0xb5643605 in avcodec_decode_video2 (avctx=0xb19a2d0, picture=0xbfbc9dc8, got_picture_ptr=0xbfbca320, avpkt=0xb19dc20) at utils.c:580

#4 0xb5433fc1 in try_decode_frame (st=0xb19ac30, avpkt=0xb19dc20) at utils.c:1967

#5 0xb543522c in av_find_stream_info (ic=0xb1992f0) at utils.c:2268

#6 0xb7a30385 in AvFormatDecoder::OpenFile? (this=0xb198c18, rbuffer=0xa80ef58, novideo=false, testbuf=0xbfbcad0c "", testbufsize=8192)

at avformatdecoder.cpp:977

#7 0xb79c51ea in NuppelVideoPlayer::OpenFile? (this=0xb1618f0, skipDsp=false, retries=4, allow_libmpeg2=true)

at NuppelVideoPlayer?.cpp:1296

#8 0xb7a08f16 in PlayerContext::CreateNVP (this=0xb0c4ef0, tv=0xb09c8b8, widget=0x8ccfab0, desiredState=kState_WatchingVideo,

embedwinid=0, embedbounds=0xb0c4ff0) at playercontext.cpp:490

#9 0xb795dac4 in TV::StartPlayer? (this=0xb09c8b8, mctx=0xb0c4ef0, ctx=0xb0c4ef0, desiredState=kState_WatchingVideo) at tv_play.cpp:4999

#10 0xb79420f7 in TV::HandleStateChange? (this=0xb09c8b8, mctx=0xb0c4ef0, ctx=0xb0c4ef0) at tv_play.cpp:1849

#11 0xb79476c8 in TV::timerEvent (this=0xb09c8b8, te=0xbfbdbba4) at tv_play.cpp:2282

#12 0xb611e504 in QObject::event () from /usr/lib/libQtCore.so.4

#13 0xb647ebc5 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4

#14 0xb647d027 in QApplication::notify () from /usr/lib/libQtGui.so.4

#15 0xb6109287 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4

#16 0xb610ca97 in QCoreApplication::sendEvent () from /usr/lib/libQtCore.so.4

#17 0xb613e756 in QTimerInfoList::activateTimers () from /usr/lib/libQtCore.so.4

#18 0xb613afdb in timerSourceDispatch () from /usr/lib/libQtCore.so.4

#19 0xb3744ed2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0

#20 0xb3748888 in ?? () from /usr/lib/libglib-2.0.so.0

#21 0xb37489ae in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0

#22 0xb613be9a in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4

#23 0xb652cfce in QGuiEventDispatcherGlib::processEvents () from /usr/lib/libQtGui.so.4

#24 0xb61096df in QCoreApplication::processEvents () from /usr/lib/libQtCore.so.4

#25 0xb79241b7 in TV::StartTV (tvrec=0xa954570, startInGuide=false, inPlaylist=false, initByNetworkCommand=false) at tv_play.cpp:309

#26 0x0807712a in internal_play_media (mrl=@0xaf5d708, plot=@0xaf5d70c, title=@0xaf5d710, director=@0xaf5d714, lenMins=29,

year=@0xaf5d71c) at main.cpp:768

#27 0xb6f5050a in MythMainWindow::HandleMedia? (this=0x8ccfab0, handler=@0xaf5d704, mrl=@0xaf5d708, plot=@0xaf5d70c, title=@0xaf5d710,

director=@0xaf5d714, lenMins=29, year=@0xaf5d71c) at mythmainwindow.cpp:1322

#28 0xab59625e in VideoPlayHandleMedia::Play (this=0xaf5d700) at playercommand.cpp:97

#29 0xab59726e in VideoPlayerCommandPrivate::Play (this=0xae19340) at playercommand.cpp:272

#30 0xab595dcb in VideoPlayerCommand::Play (this=0xbfbdc2a4) at playercommand.cpp:339

#31 0xab54d6ad in PlayVideo? (filename=@0xa255f4c, video_list=@0x8c160d8) at videodlg.cpp:1100

#32 0xab564959 in ItemDetailPopup::OnPlay? (this=0xad17cf0) at videodlg.cpp:1406

#33 0xab56138f in ItemDetailPopup::qt_metacall (this=0xad17cf0, _c=QMetaObject::InvokeMetaMethod?, _id=0, _a=0xbfbdc348)

at videodlg.moc:771

#34 0xb61220ce in QMetaObject::activate () from /usr/lib/libQtCore.so.4

#35 0xb61223ee in QMetaObject::activate () from /usr/lib/libQtCore.so.4

#36 0xb70236f1 in MythUIButton::Clicked (this=0xaebd250) at moc_mythuibutton.cpp:90

#37 0xb6f9c278 in MythUIButton::Push (this=0xaebd250, lock=false) at mythuibutton.cpp:171

#38 0xb6f9c0af in MythUIButton::keyPressEvent (this=0xaebd250, e=0xbfbdc97c) at mythuibutton.cpp:135

#39 0xb6f7e6ff in MythScreenType::keyPressEvent (this=0xad17cf0, event=0xbfbdc97c) at mythscreentype.cpp:311

#40 0xab564a82 in ItemDetailPopup::keyPressEvent (this=0xad17cf0, levent=0xbfbdc97c) at videodlg.cpp:1436

#41 0xb6f50760 in MythMainWindow::eventFilter (this=0x8ccfab0, e=0xbfbdc97c) at mythmainwindow.cpp:1387

#42 0xb6109553 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4

#43 0xb647eba1 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4

#44 0xb647d3a5 in QApplication::notify () from /usr/lib/libQtGui.so.4

#45 0xb6109287 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4

#46 0xb647fa6f in QCoreApplication::sendSpontaneousEvent () from /usr/lib/libQtGui.so.4

#47 0xb647ef0f in qt_sendSpontaneousEvent () from /usr/lib/libQtGui.so.4

#48 0xb652c550 in QKeyMapper::sendKeyEvent () from /usr/lib/libQtGui.so.4

#49 0xb652c262 in QKeyMapperPrivate::translateKeyEvent () from /usr/lib/libQtGui.so.4

#50 0xb64fa4bd in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4

#51 0xb652c9a8 in x11EventSourceDispatch () from /usr/lib/libQtGui.so.4

#52 0xb3744ed2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0

#53 0xb3748888 in ?? () from /usr/lib/libglib-2.0.so.0

#54 0xb37489ae in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0

#55 0xb613be9a in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4

#56 0xb652cfce in QGuiEventDispatcherGlib::processEvents () from /usr/lib/libQtGui.so.4

#57 0xb6106eb3 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4

#58 0xb6106ff8 in QEventLoop::exec () from /usr/lib/libQtCore.so.4

#59 0xb6109951 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4

#60 0xb647ccf8 in QApplication::exec () from /usr/lib/libQtGui.so.4

#61 0x0807f7f9 in main (argc=6, argv=0xbfbde914) at main.cpp:1450

Attachments (1)

gdb.txt (30.2 KB) - added by robertm 15 years ago.
Backtrace from selected sample.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 15 years ago by robertm

Status: newinfoneeded_new

Does the crash happen immediately upon attempting playback? Can you post a small sample to a file sharing site and put the link here?

Also, please produce a new backtrace according to the instructions here:

http://www.mythtv.org/docs/mythtv-HOWTO-22.html#ss22.2

Thanks!

comment:2 in reply to:  1 Changed 15 years ago by anonymous

Replying to robertm:

Does the crash happen immediately upon attempting playback? Can you post a small sample to a file sharing site and put the link here?

Also, please produce a new backtrace according to the instructions here:

http://www.mythtv.org/docs/mythtv-HOWTO-22.html#ss22.2

Thanks!

Yes, it happens right away. A sample file is located at home.comcast.net/~nasa01/test.vob

A new backtrace is in the works (will have to be tomorrow).

Changed 15 years ago by robertm

Attachment: gdb.txt added

Backtrace from selected sample.

comment:3 Changed 15 years ago by robertm

Milestone: 0.22unknown
Status: infoneeded_newnew

This appears to be an ffmpeg bug in Closed Caption decoding. You can work around it by disabling the parsing (comment out line 2303 of libs/libavcodec/mpeg12.c) but that's not an acceptable long term solution.

comment:4 in reply to:  3 Changed 15 years ago by tsx_5@…

Replying to robertm:

This appears to be an ffmpeg bug in Closed Caption decoding. You can work around it by disabling the parsing (comment out line 2303 of libs/libavcodec/mpeg12.c) but that's not an acceptable long term solution.

Given this is an ffmpeg bug..., what is the plan to address it going into 0.22? It's easy enough to avoid it (ie: use mplayer/xine/vlc for vob files), but I guess the problem should be identified to users or a default setting put in place until it gets fixed (just a suggestion from a grateful user)

comment:5 Changed 15 years ago by skamithi

Resolution: fixed
Status: newclosed

(In [22131]) Closes #6808. Refs #4862. Check that avctx->decode_cc_dvd is defined before executing it. user reported a crash when the first frame in the VOB had a closed captioning but AFD:ScanStreams hadn't kicked in yet.

Note: See TracTickets for help on using tickets.