Kodi Community Forum
New MythTV add-on using libcmyth - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694)



RE: New MythTV add-on using libcmyth - fetzerch - 2012-12-02

(2012-12-02, 06:29)speed32219 Wrote: 2. Can the Radio button on the pop-out be moved to the bottom of the list or even as a addon config to be added or not. Going from TV to EPG tab it stops on the radio button for 4-5 seconds same with the recordings but it is already below the EPG (ie, TV Channels/EPG/Recordings/Timer/Radio).
3 When I'm in EPG : timeline and I see a show that I want to watch currently playing and I select it, the pop-up comes up with the default of OK, and it would be easier if it defaulted to switch. (OK/RECORD/SWITCH or SELECT/TUNE would be better) mho
4. When watching a show and I select menu on remote the info bar and options show. If I go to the terminal symbol and hit select it shows an appreviated epg on right side of screen. Very nice, but it jumps to channels in the 400's range rather than the channel I'm watching ie 36. The regular epg works fine

And last but not least the remote, I noticed in the keyboard.xml file in main xbmc location there is some options for a PVR guide/menus/etc. Anyone know how or have implemented it yet? When I hit guide I get the status menu with cpu util/fps/audio etc. Would be nice if the timeline EPG would show or any guide for that matter.

Your points are all valid and a good starting point for discussions. But they are not fixable in the addon, it has to be improved in XBMC's PVR code itself.

In very short words, it works that way that XBMC asks the PVR addon for a list of recordings, list of guide data, list of channels. And if you hit play it asks the addon to provide the actual media data / or to switch to a specific channel.
But all the UI or it's behavior is implemented directly inside XBMC. That way we have similar usability for all PVR addons.

So I think it's a good idea to start a usability discussion in the PVR forum.
Maybe some things are covered even in this thread: http://forum.xbmc.org/showthread.php?tid=145145

The delays that you notice when switching to the recordings. That is at least partly related to our addon itself.
We support retrieving the last playback position on the mythbackend.
Unfortunately the current XBMC API leads to those lags if you have many recordings. (because it asks for the last playback position for each and every recording)
I took already care of this issue here: https://github.com/xbmc/xbmc/pull/1823 but it will come only after Frodo is released.

(2012-12-02, 06:29)speed32219 Wrote: Overall I am a happy camper and WAF is loving it also. Kudos to all involved, no more comcast stb's.

That's great to hear! Big Grin


RE: New MythTV add-on using libcmyth - UpgradedMR - 2012-12-02

I am using this on 2 PC's running windows 7 and 2 rasp pi's running raspbmc. Unfortunately the video freezes after a few minutes of watching on all devices. Here is the log. Thanks for all the great work guys!

09:42:52 T:3600 NOTICE: Thread PVR Channel Window start, auto delete: false
09:42:55 T:5380 NOTICE: DVDPlayer: Opening: pvr://channels/tv/All TV channels/313.pvr
09:42:55 T:5380 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
09:42:55 T:4864 NOTICE: Thread CDVDPlayer start, auto delete: false
09:42:55 T:4864 NOTICE: Creating InputStream
09:43:08 T:4864 NOTICE: Creating Demuxer
09:43:40 T:4864 NOTICE: Opening video stream: 0 source: 256
09:43:40 T:4864 NOTICE: Creating video codec with codec id: 2
09:43:40 T:4864 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-2 video
09:43:40 T:4864 NOTICE: Creating video thread
09:43:40 T:4864 NOTICE: Opening audio stream: 1 source: 256
09:43:40 T:4864 NOTICE: Finding audio codec for: 86019
09:43:40 T:6120 NOTICE: Thread CDVDPlayerVideo start, auto delete: false
09:43:40 T:6120 NOTICE: running thread: video_thread
09:43:40 T:4864 NOTICE: Creating audio thread
09:43:40 T:5300 NOTICE: Thread CDVDPlayerAudio start, auto delete: false
09:43:40 T:5300 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
09:43:40 T:5708 NOTICE: [trakt] [Notification Service] message: {u'params': {u'data': {u'item': {u'channeltype': u'tv', u'type': u'channel', u'id': 317, u'title': u'WNBCDT (WNBC-DT)'}, u'player': {u'playerid': 1, u'speed': 1}}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Player.OnPlay'}
09:43:40 T:5708 NOTICE: [trakt] [Scrobbler] Watching: channel
09:43:41 T:5708 NOTICE: [trakt] [Scrobbler] Warning: Cant find playlist length?!, assuming that this item is by itself
09:43:43 T:4864 NOTICE: Creating Demuxer
09:43:49 T:4864 NOTICE: Opening video stream: 0 source: 256
09:43:49 T:4864 NOTICE: Opening audio stream: 1 source: 256
09:43:49 T:5300 NOTICE: Creating audio stream (codec id: 86019, channels: 2, sample rate: 48000, pass-through)
09:43:49 T:6120 NOTICE: fps: 29.970030, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
09:43:49 T:6120 NOTICE: Display resolution USER : 1920x1080 @ 60.00 - Full Screen #3 (18)
09:43:49 T:6120 NOTICE: D3D: rendering method forced to DXVA2 processor
09:43:49 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:46:11 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:46:12 T:6120 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
09:46:50 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:46:51 T:4864 ERROR: Previous line repeats 2 times.
09:46:51 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:46:51 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:46:51 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:46:52 T:6120 ERROR: Previous line repeats 1 times.
09:46:52 T:6120 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
09:46:53 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:46:58 T:4864 ERROR: Previous line repeats 4 times.
09:46:58 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:46:58 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:46:58 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:46:58 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:46:59 T:4864 WARNING: Previous line repeats 2 times.
09:46:59 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:46:59 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:46:59 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:00 T:4864 ERROR: Previous line repeats 3 times.
09:47:00 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:47:00 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available

09:47:00 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:01 T:4864 ERROR: Previous line repeats 4 times.
09:47:01 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:47:01 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:01 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:02 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:02 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:03 T:4864 ERROR: Previous line repeats 3 times.
09:47:03 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:47:03 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:03 T:4864 WARNING: Previous line repeats 1 times.
09:47:03 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:03 T:5300 ERROR: Previous line repeats 1 times.
09:47:03 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:04 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:04 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:04 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:05 T:4864 ERROR: Previous line repeats 2 times.
09:47:05 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:47:05 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:05 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:05 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:05 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:06 T:4864 ERROR: Previous line repeats 4 times.
09:47:06 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:47:06 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:06 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:08 T:4864 ERROR: Previous line repeats 4 times.
09:47:08 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:47:08 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:08 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:09 T:4864 ERROR: Previous line repeats 3 times.
09:47:09 T:4864 NOTICE: Opening audio stream: 1 source: 256
09:47:09 T:4864 NOTICE: Finding audio codec for: 86059
09:47:09 T:4864 NOTICE: Opening audio stream: 1 source: 256
09:47:09 T:4864 NOTICE: Finding audio codec for: 86059
09:47:09 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:09 T:4864 ERROR: CSelectionStreams::Get - failed to get stream
09:47:09 T:5300 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet
09:47:09 T:5300 NOTICE: Creating audio stream (codec id: 86059, channels: 5, sample rate: 32000, no pass-through)
09:47:09 T:6756 NOTICE: CAEEncoderFFmpeg::Initialize - AC3 encoder ready
09:47:09 T:5300 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet
09:47:09 T:5300 NOTICE: Creating audio stream (codec id: 86059, channels: 6, sample rate: 48000, no pass-through)
09:47:09 T:5300 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet
09:47:09 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:09 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:09 T:5300 ERROR: Previous line repeats 1 times.
09:47:09 T:5300 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet
09:47:09 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:10 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:10 T:5300 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet
09:47:10 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:10 T:5300 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet
09:47:10 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:10 T:5300 ERROR: CDVDPlayerAudio:Big GrinecodeFrame - Decode Error. Skipping audio packet
09:47:10 T:5300 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
09:47:10 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:11 T:6432 ERROR: AddOnLog: MythTV cmyth PVR Client: LiveTVChainUpdate failed on chainID: live-raspbmc-2012-12-02T14:47:04
09:47:11 T:6120 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
09:47:12 T:4864 ERROR: AddOnLog: MythTV cmyth PVR Client: ReadLiveStream: Failed to read liveStream. Errorcode: -1!
09:47:12 T:6432 ERROR: AddOnLog: MythTV cmyth PVR Client: LiveTVChainUpdate failed on chainID: live-raspbmc-2012-12-02T14:47:04
09:48:08 T:5380 NOTICE: CDVDPlayer::CloseFile()
09:48:08 T:5380 NOTICE: DVDPlayer: waiting for threads to exit
09:48:09 T:3876 ERROR: EXCEPTION: XBMC is not playing any media file
09:48:09 T:3876 ERROR: Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Program Files (x86)\XBMC\system\python\Lib\threading.py", line 532, in __bootstrap_inner
self.run()
File "C:\Users\Man Cave\AppData\Roaming\XBMC\addons\script.trakt\scrobbler.py", line 34, in run
self.watchedTime = xbmc.Player().getTime()
RuntimeError: XBMC is not playing any media file
09:48:09 T:6120 WARNING: CRenderManager::FlipPage - timeout waiting for flip to complete
09:48:10 T:6120 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
Sorry. HDHomerun Prime, MythTV .026 on Ubuntu 12.10


RE: New MythTV add-on using libcmyth - mimin0 - 2012-12-03

(2012-11-30, 15:56)mimin0 Wrote: Hey folks, does anybody know why plugin would only pull the channels from the remote backend (0.26) but not the full EPG? Appreciate the response.

Anybody?


RE: New MythTV add-on using libcmyth - Gulliver - 2012-12-03

Hi Christian,

Concerning the timer issue (#52 , and #1882 for xbmc), I suppose I have to wait yours commits were merged into xbmc:master before trying to compile another release of xbmc ?
Or can I use your fork of xbmc ?
Sorry for such trivial matters .... I still don't 100% understand how github is working ...
Anyway, thanks for having took care of this issue.
Have a good day.
Best regards.



RE: New MythTV add-on using libcmyth - fetzerch - 2012-12-03

(2012-12-03, 11:42)Gulliver Wrote: Concerning the timer issue (#52 , and #1882 for xbmc), I suppose I have to wait yours commits were merged into xbmc:master before trying to compile another release of xbmc ?
Or can I use your fork of xbmc ?
Sorry for such trivial matters .... I still don't 100% understand how github is working ...

Yes, to test it you have to build XBMC yourself or wait until it gets merged.
This is how you can get the sources.
Code:
git clone git://github.com/xbmc/xbmc.git
cd xbmc
git fetch origin pull/1882/head:pr-1882 # fetches the PR into a branch
git cherry-pick ..pr-1882 # applies all patches that are in the pr but not in master

Or: use the hub tool (https://github.com/defunkt/hub#readme) because that works with github urls: 'hub am https://github.com/xbmc/xbmc/pull/1882'

How the build works is documented in docs/README.*

Cheers,
Christian
(2012-12-03, 06:46)mimin0 Wrote:
(2012-11-30, 15:56)mimin0 Wrote: Hey folks, does anybody know why plugin would only pull the channels from the remote backend (0.26) but not the full EPG? Appreciate the response.
Anybody?

The addon should also of cause pull the epg. (not the full, but the days you specified in the pvr options).
A full debug log could help us to see what's going on: http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV#Troubleshooting


RE: New MythTV add-on using libcmyth - mimin0 - 2012-12-03

(2012-12-03, 20:56)cfetzer Wrote:
(2012-12-03, 06:46)mimin0 Wrote:
(2012-11-30, 15:56)mimin0 Wrote: Hey folks, does anybody know why plugin would only pull the channels from the remote backend (0.26) but not the full EPG? Appreciate the response.
Anybody?

The addon should also of cause pull the epg. (not the full, but the days you specified in the pvr options).
A full debug log could help us to see what's going on: http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV#Troubleshooting

Thanks for the response! My log file is full of records like this, for every single channel:

NOTICE: EPG - Load - no database entries found for table '2 WCBS'

Myth frontend shows the EPG without issues.
Any clues?
Thanks!


RE: New MythTV add-on using libcmyth - pgjensen - 2012-12-04

Over the past couple of weeks, I have noticed that when I come back from sleep in XBMC, if I try to load a channel it's 50/50 on whether it will work. It just sits there and spins and I have to close XBMC and restart it and it then works perfectly again. Is anyone else experiencing this issue? I don't have debug logs yet.

XBMC beta 2
v0.6.5 mythtv plugin (built yesterday)


RE: New MythTV add-on using libcmyth - simora - 2012-12-04

@ cfetzer
The android build works well. A bit laggy on the ingest of epg data but it loads channels and recordings quickly. When the epg data is coming in the UI is very slow to respond but if the debugging information is correct the cpu is pegged. I'm going to change some settings to use MXPlayer on my android STB for hw decode and hopefully get some good video performance and report back.

Great work.


RE: New MythTV add-on using libcmyth - tdavis - 2012-12-04

How does one get the channel icons to work properly?

I created an icon directory in mythtv, and I sym'd linked to a directory under the pvr cache, but it complains about that..




RE: New MythTV add-on using libcmyth - fetzerch - 2012-12-04

(2012-12-03, 23:21)mimin0 Wrote:
(2012-12-03, 20:56)cfetzer Wrote:
(2012-12-03, 06:46)mimin0 Wrote: Anybody?

The addon should also of cause pull the epg. (not the full, but the days you specified in the pvr options).
A full debug log could help us to see what's going on: http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV#Troubleshooting

Thanks for the response! My log file is full of records like this, for every single channel:

NOTICE: EPG - Load - no database entries found for table '2 WCBS'

Myth frontend shows the EPG without issues.
Any clues?
Thanks!

Unfortunately there's not much we can do ...........
........... if you don't provide a log as described in http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV#Troubleshooting
(2012-12-04, 13:50)simora Wrote: @ cfetzer
The android build works well. A bit laggy on the ingest of epg data but it loads channels and recordings quickly. When the epg data is coming in the UI is very slow to respond but if the debugging information is correct the cpu is pegged. I'm going to change some settings to use MXPlayer on my android STB for hw decode and hopefully get some good video performance and report back.

Great work.

Cool! I updated the wiki page Big Grin
(2012-12-04, 18:25)tdavis Wrote: How does one get the channel icons to work properly?
I created an icon directory in mythtv, and I sym'd linked to a directory under the pvr cache, but it complains about that..

Hm. There's no need for any special setup. You just select a icons on the backend (mythtv-setup) and our image cacher should take care of copying them to the local cache directory...


RE: New MythTV add-on using libcmyth - mimin0 - 2012-12-05

Here comes the log file. Sorry took a while to get it.
Thank you and keep up the great work you're doing!

https://gist.github.com/4210682

(2012-12-04, 20:53)cfetzer Wrote:
(2012-12-03, 23:21)mimin0 Wrote:
(2012-12-03, 20:56)cfetzer Wrote: The addon should also of cause pull the epg. (not the full, but the days you specified in the pvr options).
A full debug log could help us to see what's going on: http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV#Troubleshooting

Thanks for the response! My log file is full of records like this, for every single channel:

NOTICE: EPG - Load - no database entries found for table '2 WCBS'

Myth frontend shows the EPG without issues.
Any clues?
Thanks!

Unfortunately there's not much we can do ...........
........... if you don't provide a log as described in http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV#Troubleshooting





RE: New MythTV add-on using libcmyth - fetzerch - 2012-12-05

Thanks. There was an issue with the timeline completely empty but I think it was fixed shortly before Beta 1.

This looks like a problem with your database. Can you try to repair it (also make sure /tmp is not full).

Code:
19:01:03 T:2850028352   ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_mysql_query_result: mysql_query(SELECT program.chanid, UNIX_TIMESTAMP(CONVERT_TZ(program.starttime, 'UTC', 'SYSTEM')), UNIX_TIMESTAMP(CONVERT_TZ(program.endtime, 'UTC', 'SYSTEM')), program.title, program.description, program.subtitle, program.programid, program.seriesid, program.category, channel.channum, channel.callsign, channel.name, channel.sourceid FROM program INNER JOIN channel ON program.chanid=channel.chanid WHERE channel.visible = 1 AND ((program.endtime > CONVERT_TZ(FROM_UNIXTIME(1354662060),'SYSTEM','UTC') AND program.endtime < CONVERT_TZ(FROM_UNIXTIME(1354924860),'SYSTEM','UTC')) OR (program.starttime >= CONVERT_TZ(FROM_UNIXTIME(1354662060),'SYSTEM','UTC') AND program.starttime <= CONVERT_TZ(FROM_UNIXTIME(1354924860),'SYSTEM','UTC')) OR (program.starttime <= CONVERT_TZ(FROM_UNIXTIME(1354662060),'SYSTEM','UTC') AND program.endtime >= CONVERT_TZ(FROM_UNIXTIME(1354924860),'SYSTEM','UTC'))) ORDER BY (channel.channum + 0), program.starttime ASC) Failed: Incorrect key file for table '/tmp/#sql_dcb_0.MYI'; try to repair it



RE: New MythTV add-on using libcmyth - mimin0 - 2012-12-05

(2012-12-05, 09:54)cfetzer Wrote: Thanks. There was an issue with the timeline completely empty but I think it was fixed shortly before Beta 1.

This looks like a problem with your database. Can you try to repair it (also make sure /tmp is not full).

Somehow I didn't spot it in the log... That's one heavy beast query, and the problem was with /tmp - the temporary index file reached 4G in size (!) while the /tmp folder in Arch is mounted as tmpfs and it's half the RAM (I only have 4G).
Anyhow, I can now successfully run this query from mysql command, so hopefully when I get home and bring up xbmc I get the full EPG on my screen! Horrayyy Smile Thanks for your help!


RE: New MythTV add-on using libcmyth - vtjunkster - 2012-12-06

(2012-12-04, 02:43)pgjensen Wrote: Over the past couple of weeks, I have noticed that when I come back from sleep in XBMC, if I try to load a channel it's 50/50 on whether it will work. It just sits there and spins and I have to close XBMC and restart it and it then works perfectly again. Is anyone else experiencing this issue? I don't have debug logs yet.

XBMC beta 2
v0.6.5 mythtv plugin (built yesterday)


I'm seeing the same behavior in my setup. I have both a windows install and an openelec install. Neither install connects to live TV after the machine wakes up. I can make it work by either disabling/enabling the addon or rebooting (openelec) or restarting (windows) xbmc.

I have noticed that on the backend the tuners (HDHR prime) are allocated by Myth for XBMC one by one while the "Working" spins, but the channel never starts up.

XBMC beta 2 (openelec 3 beta 3)
v0.6.5 mythtv plugin (not sure about openelec's version of the plugin)
MythTV 0.25

Logs:
15:03:04 T:2148 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)__cmyth_rcv_length: read() failed (0)^M
15:03:04 T:2148 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_proglist_get_all_pending: cmyth_rcv_proglist() failed (22)^M
15:03:04 T:2148 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_proglist_get_all_pending: cmyth_proglist_get_list() failed^M
15:03:04 T:2148 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_reconnect: asked for version 72, got version 72^M
15:03:05 T:2908 NOTICE: Thread Jobworker start, auto delete: true^M
15:03:10 T:1080 NOTICE: DVDPlayer: Opening: pvr://channels/tv/All TV channels/604.pvr^M
15:03:10 T:1080 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED^M
15:03:10 T:2108 NOTICE: Thread CDVDPlayer start, auto delete: false^M
15:03:10 T:2108 NOTICE: Creating InputStream^M
15:03:10 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 8, got version 72^M
15:03:10 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 72, got version 72^M
15:03:12 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_file_is_open: file transfer socket is closed^M
15:03:42 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: MythRecorder::SpawnLiveTV - Chain update failed.^M
15:03:42 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 8, got version 72^M
15:03:42 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 72, got version 72^M
15:03:43 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_file_is_open: file transfer socket is closed^M
15:04:13 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: MythRecorder::SpawnLiveTV - Chain update failed.^M
15:04:13 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 8, got version 72^M
15:04:13 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 72, got version 72^M
15:04:14 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_file_is_open: file transfer socket is closed^M
15:04:44 T:2108 ERROR: AddOnLog: MythTV cmyth PVR Client: MythRecorder::SpawnLiveTV - Chain update failed.^M
15:04:44 T:2108 ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/All TV channels/604.pvr]^M



RE: New MythTV add-on using libcmyth - Ayla - 2012-12-06

(2012-12-04, 02:43)pgjensen Wrote: Over the past couple of weeks, I have noticed that when I come back from sleep in XBMC, if I try to load a channel it's 50/50 on whether it will work. It just sits there and spins and I have to close XBMC and restart it and it then works perfectly again. Is anyone else experiencing this issue? I don't have debug logs yet.

XBMC beta 2
v0.6.5 mythtv plugin (built yesterday)

I'm seeing this too, it just spins and spins, and sometimes it locks up XBMC completely.

Restarting (force quiting) XBMC makes it work again.