Solved Show ends, XBMC crashes
#1
I have been a long time XBMC, MythTV user. I just did a clean install of XBMC "Frodo", connected to my Mythbackend just fine, and it works great. The only problem i'm seeing is that when a recorded tv show ends XBMC crashes to desktop.

Code:
23:52:12 T:140692577867648  NOTICE: DVDPlayer: Opening: pvr://recordings/Default/Whitney/Whitney - Sex, Lies, and Alibis, TV (11_1 WBAL-DT), 20121206_010000.pvr
23:52:12 T:140692577867648 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:52:12 T:140690847692544  NOTICE: Thread CDVDPlayer start, auto delete: false
23:52:12 T:140690847692544  NOTICE: Creating InputStream
23:52:12 T:140690847692544  NOTICE: Creating Demuxer
23:52:12 T:140690847692544  NOTICE: Opening video stream: 0 source: 256
23:52:12 T:140690847692544  NOTICE: Creating video codec with codec id: 2
23:52:12 T:140690847692544  NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(1920x1080, 2)
23:52:12 T:140690847692544  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
23:52:12 T:140690847692544  NOTICE: VDPAU Decoder capabilities:
23:52:12 T:140690847692544  NOTICE: name          level macbs width height
23:52:12 T:140690847692544  NOTICE: ------------------------------------
23:52:12 T:140690847692544  NOTICE: MPEG1             0  8192  2048  2048
23:52:12 T:140690847692544  NOTICE: MPEG2_SIMPLE      3  8192  2048  2048
23:52:12 T:140690847692544  NOTICE: MPEG2_MAIN        3  8192  2048  2048
23:52:12 T:140690847692544  NOTICE: H264_MAIN        41  8192  2048  2048
23:52:12 T:140690847692544  NOTICE: H264_HIGH        41  8192  2048  2048
23:52:12 T:140690847692544  NOTICE: VC1_SIMPLE        1  8190  2048  2048
23:52:12 T:140690847692544  NOTICE: VC1_MAIN          2  8190  2048  2048
23:52:12 T:140690847692544  NOTICE: VC1_ADVANCED      4  8190  2048  2048
23:52:12 T:140690847692544  NOTICE: MPEG4_PART2_ASP   5  8192  2048  2048
23:52:12 T:140690847692544  NOTICE: ------------------------------------
23:52:12 T:140690847692544  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
23:52:12 T:140690847692544  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_SHARPNESS
23:52:12 T:140690847692544  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
23:52:12 T:140690847692544  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
23:52:12 T:140690847692544  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
23:52:12 T:140690847692544  NOTICE: Mixer feature: VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
23:52:12 T:140690847692544  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-1/2 video (VDPAU acceleration)
23:52:12 T:140690847692544  NOTICE: Creating video thread
23:52:12 T:140690705082112  NOTICE: Thread CDVDPlayerVideo start, auto delete: false
23:52:12 T:140690705082112  NOTICE: running thread: video_thread
23:52:12 T:140690847692544  NOTICE: Opening audio stream: 1 source: 256
23:52:12 T:140690847692544  NOTICE: Finding audio codec for: 86019
23:52:12 T:140690847692544  NOTICE: Creating audio thread
23:52:12 T:140690696689408  NOTICE: Thread CDVDPlayerAudio start, auto delete: false
23:52:12 T:140690696689408  NOTICE: running thread: CDVDPlayerAudio::Process()
23:52:12 T:140690705082112  NOTICE:  (VDPAU) screenWidth:0 vidWidth:1920 surfaceWidth:1920
23:52:12 T:140690705082112  NOTICE:  (VDPAU) screenHeight:0 vidHeight:1080 surfaceHeight:1080
23:52:12 T:140690696689408  NOTICE: Creating audio stream (codec id: 86019, channels: 2, sample rate: 48000, pass-through)
23:52:12 T:140690705082112  NOTICE: Creating 1920x1080 pixmap
23:52:12 T:140690705082112  NOTICE:  (VDPAU) Total Output Surfaces Available: 2 of a max (tmp: 2 const: 4)
23:52:12 T:140690705082112  NOTICE:  (VDPAU) Creating the video mixer
23:52:12 T:140690705082112  NOTICE:  fps: 29.970030, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
23:52:13 T:140690705082112 WARNING: CRenderManager::Configure - timeout waiting for previous frame
23:52:13 T:140690705082112  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (16)
23:52:13 T:140692577867648  NOTICE: Using GL_TEXTURE_2D
23:52:13 T:140692577867648  NOTICE: GL: Using VDPAU render method
23:52:13 T:140692577867648  NOTICE: GL: NPOT texture support detected
23:52:13 T:140692577867648  NOTICE: GL: Using GL_ARB_pixel_buffer_object
23:52:16 T:140690705082112  NOTICE:  fps: 59.940060, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
23:52:16 T:140690705082112  NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (16)
23:52:16 T:140692577867648  NOTICE: Using GL_TEXTURE_2D
23:52:16 T:140692577867648  NOTICE: GL: Using VDPAU render method
23:52:16 T:140692577867648  NOTICE: GL: NPOT texture support detected
23:52:16 T:140692577867648  NOTICE: GL: Using GL_ARB_pixel_buffer_object
00:02:52 T:140690696689408 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
00:16:38 T:140690847692544 WARNING: Previous line repeats 17 times.
00:16:38 T:140690847692544  NOTICE: Creating Demuxer
00:16:38 T:140690847692544   ERROR: Open - error probing input format, pvr://recordings/Default/Whitney/Whitney - Sex, Lies, and Alibis, TV (11_1 WBAL-DT), 20121206_010000.pvr
00:16:38 T:140690847692544   ERROR: Previous line repeats 9 times.
00:16:38 T:140690847692544   ERROR: OpenDemuxStream - Error creating demuxer
00:16:38 T:140690847692544  NOTICE: CDVDPlayer::OnExit()
00:16:38 T:140690847692544  NOTICE: DVDPlayer: closing audio stream
00:16:38 T:140690847692544  NOTICE: Closing audio stream
00:16:38 T:140690847692544  NOTICE: Waiting for audio thread to exit
00:16:38 T:140690696689408  NOTICE: thread end: CDVDPlayerAudio::OnExit()
00:16:38 T:140690847692544  NOTICE: Closing audio device
00:16:38 T:140690847692544  NOTICE: Deleting audio codec
00:16:38 T:140690847692544  NOTICE: DVDPlayer: closing video stream
00:16:38 T:140690847692544  NOTICE: Closing video stream
00:16:38 T:140690847692544  NOTICE: waiting for video thread to exit
00:16:38 T:140690705082112  NOTICE: thread end: video_thread
00:16:38 T:140690847692544  NOTICE: deleting video codec
00:16:38 T:140690847692544  NOTICE: CDVDPlayer::OnExit() deleting input stream
00:16:38 T:140692577867648  NOTICE: CDVDPlayer::CloseFile()
00:16:38 T:140692577867648 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:16:38 T:140692577867648  NOTICE: DVDPlayer: waiting for threads to exit
00:16:38 T:140692577867648  NOTICE: DVDPlayer: finished waiting
00:16:38 T:140692577867648  NOTICE:  (VDPAU) Close
00:16:38 T:140692577867648  NOTICE:  (VDPAU) FiniVDPAUOutput
00:16:38 T:140690847692544  NOTICE: Thread Jobworker start, auto delete: true
00:16:39 T:140690696689408  NOTICE: Thread Background Loader start, auto delete: false
00:16:39 T:140691938187008  NOTICE: Thread Jobworker start, auto delete: true


############### END LOG FILE ################

############ END XBMC CRASH LOG #############

Code:
MythTV Version : v0.25.3-23-g0b60406
MythTV Branch : fixes/0.25
Network Protocol : 72
Library API : 0.25.20120506-1
QT Version : 4.8.1
Options compiled in:
linux profile use_hidesyms using_alsa using_oss using_pulse using_pulseoutput using_backend using_bindings_perl using_bindings_python using_bindings_php using_crystalhd using_dvb using_firewire using_frontend using_hdhomerun using_ceton using_hdpvr using_iptv using_ivtv using_joystick_menu using_libcec using_libcrypto using_libdns_sd using_libxml2 using_lirc using_mheg using_opengl_video using_qtwebkit using_qtscript using_qtdbus using_v4l2 using_x11 using_xrandr using_xv using_bindings_perl using_bindings_python using_bindings_php using_mythtranscode using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_live using_mheg using_libass using_libxml2
Reply
#2
Thanks for reporting.
This is fixed already in the current development build but not yet released.

See http://wiki.xbmc.org/index.php?title=PVR...FromSource
Reply
#3
Thanks, I built that module, and no more crashing Smile
Reply
#4
(2012-12-10, 21:19)cfetzer Wrote: Thanks for reporting.
This is fixed already in the current development build but not yet released.

See http://wiki.xbmc.org/index.php?title=PVR...FromSource

nvm, figured it out, sorry.
Reply
#5
While using the Betas of XBMC "Frodo" I had this problem. I followed the guide to build from source and it helped, but I ended up with a slightly different problem. I found that when a recorded TV episodes ends on its own, or if I try to delete an episode, that xbmc.bin process jumps to 100% for about one to three minutes, then mythbackend jumps to 100% for about 10 seconds. During this time the XBMC GUI is completely frozen. mythlogserver never goes above 2%.

This is quite a step up from having XBMC crash, but I'm wondering if there is a known bug "synchronizing" XBMC and MythTV. I also noticed that the XBMC GUI will seeminly lock up for a bit when I use the MythWeb interface to delete recordings.

I'm using Linux Mint 14 with MythTV .26 and XBMC "Frodo" RC2. I uninstalled XBMC and removed the .xbmc directory to start fresh on RC2 with the included PVR add-on but the problem persists.

Here's an excerpt from the xbmc.log file which shows what is logged before and after the GUI is frozen:
Code:
21:13:24 T:139964880754432  NOTICE: Thread CFileCache start, auto delete: false
21:16:15 T:139964889147136  NOTICE: Thread Background Loader start, auto delete: false

Here's a bit more of the log showing some additional warnings and errors:
Code:
19:06:44 T:139965505718016 WARNING: Previous line repeats 102 times.
21:00:43 T:139965530896128  NOTICE: AddOnLog: MythTV cmyth PVR Client: Process - Event unknown, databuf:
21:07:27 T:139964880754432 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
21:07:37 T:139965514110720 WARNING: Previous line repeats 46 times.
21:07:37 T:139965514110720 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
21:07:37 T:139964880754432 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
21:07:40 T:139965514110720 WARNING: Previous line repeats 4 times.
21:07:40 T:139965514110720 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
21:07:40 T:139964880754432 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
21:13:19 T:139964922717952 WARNING: Previous line repeats 38 times.
21:13:19 T:139964922717952  NOTICE: Creating Demuxer
21:13:19 T:139964922717952   ERROR: Open - error probing input format, pvr://recordings/Default/Dark Matters: Twisted but True/Dark Matters: Twisted but True - Magical Jet Propulsion; Missing Link Mystery; Typhoid Mary, TV (690 SCIHD), 20121227_020000.pvr
21:13:22 T:139964922717952   ERROR: Previous line repeats 9 times.
21:13:22 T:139964922717952   ERROR: OpenDemuxStream - Error creating demuxer
21:13:22 T:139964922717952  NOTICE: CDVDPlayer::OnExit()
21:13:22 T:139964922717952  NOTICE: DVDPlayer: closing audio stream
21:13:22 T:139964922717952  NOTICE: Closing audio stream
21:13:22 T:139964922717952  NOTICE: Waiting for audio thread to exit
21:13:22 T:139964880754432  NOTICE: thread end: CDVDPlayerAudio::OnExit()
21:13:22 T:139964922717952  NOTICE: Closing audio device
21:13:23 T:139964922717952  NOTICE: Deleting audio codec
21:13:23 T:139964922717952  NOTICE: DVDPlayer: closing video stream
21:13:23 T:139964922717952  NOTICE: Closing video stream
21:13:23 T:139964922717952  NOTICE: waiting for video thread to exit
21:13:23 T:139965514110720  NOTICE: thread end: video_thread
21:13:23 T:139964922717952  NOTICE: deleting video codec
21:13:23 T:139964922717952  NOTICE: CDVDPlayer::OnExit() deleting input stream
21:13:23 T:139966384748416  NOTICE: CDVDPlayer::CloseFile()
21:13:23 T:139966384748416 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
21:13:23 T:139966384748416  NOTICE: DVDPlayer: waiting for threads to exit
21:13:23 T:139966384748416  NOTICE: DVDPlayer: finished waiting
21:13:23 T:139966384748416  NOTICE:  (VDPAU) Close
21:13:23 T:139966384748416  NOTICE:  (VDPAU) FiniVDPAUOutput
21:13:23 T:139964922717952  NOTICE: Thread Jobworker start, auto delete: true
21:13:23 T:139964880754432  NOTICE: Thread Background Loader start, auto delete: false
21:13:23 T:139964889147136  NOTICE: Thread Jobworker start, auto delete: true
21:13:24 T:139964880754432  NOTICE: Previous line repeats 1 times.
21:13:24 T:139964880754432  NOTICE: Thread CFileCache start, auto delete: false
21:16:15 T:139964889147136  NOTICE: Thread Background Loader start, auto delete: false
Reply
#6
I'm having a very similar issue. Frodo RC3 and final with mythbackend .026 on ubuntu. We watch a recorded program and not long after the recording finishes, then UI will freeze up. We typically wait 5-7 minutes and then the UI comes back, with all the events from our keyboard firing and the EPG updating (like at startup).

Did you find a fix?
Reply
#7
Yes, upgrade XBMC and the myth-pvr add-on to the latest version.

sudo apt-get install xbmc-pvr-mythtv-cmyth

or you can build it from source
http://wiki.xbmc.org/index.php?title=PVR...FromSource
Reply
#8
What version are you running? I'm already on 1.0.0~git20132901.2244.96774c4-0precise
Reply
#9
(2013-01-31, 21:41)sfrooster Wrote: What version are you running? I'm already on 1.0.0~git20132901.2244.96774c4-0precise

I honestly have no idea how to tell what revision/build of git source I'm running. I know its build 1.6.7 in the add-ons menu.

But I have not had this problem for a while, so I'm not sure how to help you further. When I read your post, I thought you were running RC3, so I assumed you just needed to upgrade.

If cfetzer reads this post again, you might want to upload some of your logs to help diagnose the problem.



Does anyone know how to tell what revision/build/version when building from git source?
Reply
#10
For what it's worth, this issue seems to have gone away for me.
Reply
#11
(2013-02-04, 23:55)sfrooster Wrote: For what it's worth, this issue seems to have gone away for me.

And now it's back on two new boxes. I enabled the unstable branch and "installed" xbmc-pvr-mythtv-cmyth (it claimed I had the latest), but it must definitely hangs once a recording finishes (and I see an xbmc thread consuming 100%), until that thread resets.
Reply
#12
(2013-02-10, 23:55)sfrooster Wrote: And now it's back on two new boxes. I enabled the unstable branch and "installed" xbmc-pvr-mythtv-cmyth (it claimed I had the latest), but it must definitely hangs once a recording finishes (and I see an xbmc thread consuming 100%), until that thread resets.

You can try this. This is mostly from http://wiki.xbmc.org/index.php?title=PVR...FromSource

Terminal
Code:
cd ~
mkdir src
cd src
sudo apt-get install ubuntu-restricted-extras autoconf git
sudo apt-get install build-essential automake checkinstall
sudo apt-get install autoconf automake bison flex libtool intltool
sudo apt-get install libmysqlclient-dev libboost-filesystem-dev zip
git clone git://github.com/fetzerch/xbmc-pvr-addons.git
cd xbmc-pvr-addons
./bootstrap
./configure --enable-addons-with-dependencies
make clean zip
cp addons/pvr.mythtv.cmyth-linux-*.zip $HOME
sudo apt-get purge xbmc-pvr-mythtv-cmyth

XBMC
Code:
disable LiveTV
disable and uninstall the myth plugin
exit XBMC

Terminal
Code:
sudo mv /usr/lib/xbmc/system/libcmyth-x86_64-linux.so /usr/lib/xbmc/system/libcmyth-x86_64-linux.so.bak  <-- change x86_64 to which ever your file is called, mine is actually i486; you just want to back up the file.
rm $HOME/.xbmc/addons/packages/pvr.mythtv.cmyth-linux-x86_64.zip

XBMC
Code:
Go to the Add-ons section, install from Zip file
select your Home directory, then pvr.mythtv.cmyth-linux-*.zip file *= will be either x86_64 or i486; or which ever your system is compiled as.

The second Terminal section was stopping me from the updates working, if you want to go back to binaries you can delete these files:
Code:
disable LiveTV
disable and uninstall the myth plugin
exit XBMC
rm $HOME/.xbmc/addons/packages/pvr.mythtv.cmyth-linux-x86_64.zip
rm -fR $HOME/.xbmc/addons/pvr.mythtv.cmyth
sudo apt-get install xbmc-pvr-mythtv-cmyth
re-enable myth plugin in add-ons


Hope this helps.
Reply
#13
Yep - that seems to have fixed it. Thanks!

It also seems that the "sticky" "Importing EPG..." message has gone. I don't know if they're related, but all the same...
Reply

Logout Mark Read Team Forum Stats Members Help
Show ends, XBMC crashes0