New MythTV add-on using libcmyth

  Thread Rating:
  • 8 Votes - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jfath Offline
Junior Member
Posts: 34
Joined: Oct 2008
Reputation: 0
Post: #1486
@angelxp:

Did you switch to the timeline view in the EPG? I ask because I'm new to this interface as well and when I first looked at the EPG, I didn't realize there were a number of views to choose from. The timeline view gives me the required 'family friendly' look.

Jerry
find quote
janbar Offline
Fan
Posts: 379
Joined: Sep 2012
Reputation: 24
Location: France
Post: #1487
(2012-11-06 11:06)dteirney Wrote:  @janbar, @fetzerch, where is the best place to record segmentation faults? I've had a number of crashes the last few nights. Only just got around to getting the crashlogs off the HTPC.

Code:
Program terminated with signal 11, Segmentation fault.
#0  0x00007f3d4761caa1 in ?? () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f3d4e121780 (LWP 16482)):
#0  0x00007f3d4761caa1 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f3d35ce7795 in delete_command (control=0x7f3d3d1457f8, prog=0x2d3cb00, cmd=0x7f3d35cfcbdd "DELETE_RECORDING") at proginfo.c:388
#2  0x00007f3d35cc36b2 in MythConnection::DeleteRecording (this=0x7f3d3ce9c9a0, recording=...) at src/cppmyth/MythConnection.cpp:227
#3  0x00007f3d35cba187 in PVRClientMythTV::DeleteRecording (this=0x7f3d3ce9c9a0, recording=...) at src/pvrclient-mythtv.cpp:547
#4  0x000000000096036c in PVR::CPVRClient::DeleteRecording (this=0x260b940, recording=<optimized out>) at PVRClient.cpp:585
#5  0x00000000009699ed in PVR::CPVRClients::DeleteRecording (this=<optimized out>, recording=...) at PVRClients.cpp:479
#6  0x0000000000ef1318 in PVR::CPVRRecording::Delete (this=0x7f3d3d455010) at PVRRecording.cpp:117
#7  0x0000000000979541 in PVR::CGUIWindowPVRCommon::ActionDeleteRecording (this=<optimized out>, item=0x7f3d3c196630) at GUIWindowPVRCommon.cpp:496
#8  0x0000000000981148 in PVR::CGUIWindowPVRRecordings::OnClickList (this=0x7f3d3d3979c0, message=<optimized out>) at GUIWindowPVRRecordings.cpp:290
#9  0x0000000000973615 in OnMessageClick (message=..., this=0x7f3d3c56f7b0) at GUIWindowPVR.cpp:232
#10 PVR::CGUIWindowPVR::OnMessageClick (this=0x7f3d3c56f7b0, message=...) at GUIWindowPVR.cpp:216
#11 0x0000000000973797 in PVR::CGUIWindowPVR::OnMessage (this=0x7f3d3c56f7b0, message=...) at GUIWindowPVR.cpp:141
#12 0x0000000000993c8a in CGUIBaseContainer::OnClick (this=0x2c84ea0, actionID=80) at GUIBaseContainer.cpp:736
#13 0x0000000000a24350 in CGUIWindow::OnAction (this=0x7f3d3c56f7b0, action=...) at GUIWindow.cpp:413
#14 0x0000000000f2972e in CGUIMediaWindow::OnAction (this=0x7f3d3c56f7b0, action=...) at GUIMediaWindow.cpp:181
#15 0x0000000000a29e2d in CGUIWindowManager::OnAction (this=0x175faa0, action=...) at GUIWindowManager.cpp:483
#16 0x0000000000f52faf in CApplication::OnAction (this=0x175e740, action=...) at Application.cpp:2608
#17 0x0000000000f54c57 in CApplication::OnKey (this=0x175e740, key=...) at Application.cpp:2530
#18 0x0000000000f55802 in CApplication::OnEvent (newEvent=...) at Application.cpp:480
#19 0x0000000000f2270f in CWinEventsSDL::MessagePump () at WinEventsSDL.cpp:289
#20 0x0000000000f5ad16 in CApplication::FrameMove (this=0x175e740, processEvents=<optimized out>, processGUI=<optimized out>) at Application.cpp:2938
#21 0x0000000000fe45b2 in CXBApplicationEx::Run (this=0x175e740, renderGUI=<optimized out>) at XBApplicationEx.cpp:142
#22 0x0000000000fec1ac in XBMC_Run (renderGUI=true) at xbmc.cpp:69
#23 0x000000000071dd78 in main (argc=1, argv=0x7fff26cb7338) at main.cpp:84

Several of these.
Code:
Core was generated by `/usr/local/lib/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0  cmyth_datetime_to_string (str=0x7ffff801f400 "\310\002\032\003", ts=0x74007964656d6f43) at timestamp.c:435
435        tm_datetime.tm_year = ts->timestamp_year - 1900;

This one looks like it might have been resolved with the locking commit yesterday?
Code:
Program terminated with signal 11, Segmentation fault.
#0  cmyth_get_bookmark (conn=0x7f928000edc8, prog=0x0) at bookmark.c:38
38        cmyth_datetime_to_string(start_ts_dt, prog->proginfo_rec_start_ts);

Several of these.
Code:
Program terminated with signal 11, Segmentation fault.
#0  operator cmyth_proginfo* (this=<optimized out>) at src/cppmyth/MythPointer.h:47
47        return m_mythpointer;
@dteirney
Yes David same issue like we resolved 2 days ago on get/set bookmark. Thanks for your feedback. I resolve it.
find quote
rlust Offline
Junior Member
Posts: 5
Joined: Sep 2011
Reputation: 0
Post: #1488
Has anyone gotten the plugin to work on a Raspberry pi or a Mac OSX Lion?
find quote
cfetzer Offline
Fan
Posts: 307
Joined: Jul 2011
Reputation: 16
Post: #1489
(2012-11-06 17:09)janbar Wrote:  
(2012-11-06 11:06)dteirney Wrote:  @janbar, @fetzerch, where is the best place to record segmentation faults? I've had a number of crashes the last few nights. Only just got around to getting the crashlogs off the HTPC.

Code:
Program terminated with signal 11, Segmentation fault.
#0  0x00007f3d4761caa1 in ?? () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7f3d4e121780 (LWP 16482)):
#0  0x00007f3d4761caa1 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f3d35ce7795 in delete_command (control=0x7f3d3d1457f8, prog=0x2d3cb00, cmd=0x7f3d35cfcbdd "DELETE_RECORDING") at proginfo.c:388
#2  0x00007f3d35cc36b2 in MythConnection::DeleteRecording (this=0x7f3d3ce9c9a0, recording=...) at src/cppmyth/MythConnection.cpp:227
#3  0x00007f3d35cba187 in PVRClientMythTV::DeleteRecording (this=0x7f3d3ce9c9a0, recording=...) at src/pvrclient-mythtv.cpp:547
#4  0x000000000096036c in PVR::CPVRClient::DeleteRecording (this=0x260b940, recording=<optimized out>) at PVRClient.cpp:585
#5  0x00000000009699ed in PVR::CPVRClients::DeleteRecording (this=<optimized out>, recording=...) at PVRClients.cpp:479
#6  0x0000000000ef1318 in PVR::CPVRRecording::Delete (this=0x7f3d3d455010) at PVRRecording.cpp:117
#7  0x0000000000979541 in PVR::CGUIWindowPVRCommon::ActionDeleteRecording (this=<optimized out>, item=0x7f3d3c196630) at GUIWindowPVRCommon.cpp:496
#8  0x0000000000981148 in PVR::CGUIWindowPVRRecordings::OnClickList (this=0x7f3d3d3979c0, message=<optimized out>) at GUIWindowPVRRecordings.cpp:290
#9  0x0000000000973615 in OnMessageClick (message=..., this=0x7f3d3c56f7b0) at GUIWindowPVR.cpp:232
#10 PVR::CGUIWindowPVR::OnMessageClick (this=0x7f3d3c56f7b0, message=...) at GUIWindowPVR.cpp:216
#11 0x0000000000973797 in PVR::CGUIWindowPVR::OnMessage (this=0x7f3d3c56f7b0, message=...) at GUIWindowPVR.cpp:141
#12 0x0000000000993c8a in CGUIBaseContainer::OnClick (this=0x2c84ea0, actionID=80) at GUIBaseContainer.cpp:736
#13 0x0000000000a24350 in CGUIWindow::OnAction (this=0x7f3d3c56f7b0, action=...) at GUIWindow.cpp:413
#14 0x0000000000f2972e in CGUIMediaWindow::OnAction (this=0x7f3d3c56f7b0, action=...) at GUIMediaWindow.cpp:181
#15 0x0000000000a29e2d in CGUIWindowManager::OnAction (this=0x175faa0, action=...) at GUIWindowManager.cpp:483
#16 0x0000000000f52faf in CApplication::OnAction (this=0x175e740, action=...) at Application.cpp:2608
#17 0x0000000000f54c57 in CApplication::OnKey (this=0x175e740, key=...) at Application.cpp:2530
#18 0x0000000000f55802 in CApplication::OnEvent (newEvent=...) at Application.cpp:480
#19 0x0000000000f2270f in CWinEventsSDL::MessagePump () at WinEventsSDL.cpp:289
#20 0x0000000000f5ad16 in CApplication::FrameMove (this=0x175e740, processEvents=<optimized out>, processGUI=<optimized out>) at Application.cpp:2938
#21 0x0000000000fe45b2 in CXBApplicationEx::Run (this=0x175e740, renderGUI=<optimized out>) at XBApplicationEx.cpp:142
#22 0x0000000000fec1ac in XBMC_Run (renderGUI=true) at xbmc.cpp:69
#23 0x000000000071dd78 in main (argc=1, argv=0x7fff26cb7338) at main.cpp:84

Several of these.
Code:
Core was generated by `/usr/local/lib/xbmc/xbmc.bin'.
Program terminated with signal 11, Segmentation fault.
#0  cmyth_datetime_to_string (str=0x7ffff801f400 "\310\002\032\003", ts=0x74007964656d6f43) at timestamp.c:435
435        tm_datetime.tm_year = ts->timestamp_year - 1900;

This one looks like it might have been resolved with the locking commit yesterday?
Code:
Program terminated with signal 11, Segmentation fault.
#0  cmyth_get_bookmark (conn=0x7f928000edc8, prog=0x0) at bookmark.c:38
38        cmyth_datetime_to_string(start_ts_dt, prog->proginfo_rec_start_ts);

Several of these.
Code:
Program terminated with signal 11, Segmentation fault.
#0  operator cmyth_proginfo* (this=<optimized out>) at src/cppmyth/MythPointer.h:47
47        return m_mythpointer;
@dteirney
Yes David same issue like we resolved 2 days ago on get/set bookmark. Thanks for your feedback. I resolve it.

@dteirney: Pushed janbar's fix for DeleteRecordings to my master. The place to report issues that are related only to the addon is: https://github.com/fetzerch/xbmc-pvr-addons/issues

MythTV PVR addon - Wiki - Development
find quote
allen00se Offline
Member
Posts: 85
Joined: Apr 2011
Reputation: 0
Post: #1490
This might be a silly question... but can I build the add-on from a windows machine and use it on a linux machine?
find quote
cfetzer Offline
Fan
Posts: 307
Joined: Jul 2011
Reputation: 16
Post: #1491
(2012-11-05 22:45)dteirney Wrote:  I'll be looking at implementing the EDL skip support. The EDL class in XBMC needs to be updated to get the commercial break information from the PVR API if a PVR file is being played. It's not too complicated so if anyone else wants to look at it feel free as my time is, unfortunately, quite limited for XBMC development at the moment.

I have started to think about this a while ago. It's been indeed not so much work: https://github.com/xbmc/xbmc/pull/1743

Cheers,
Christian

MythTV PVR addon - Wiki - Development
find quote
janbar Offline
Fan
Posts: 379
Joined: Sep 2012
Reputation: 24
Location: France
Post: #1492
(2012-11-07 00:14)allen00se Wrote:  This might be a silly question... but can I build the add-on from a windows machine and use it on a linux machine?
NO. But i think to ask Bill to use a linux kernel for his future release. Wink
find quote
PhoenixMage Offline
Junior Member
Posts: 19
Joined: Feb 2012
Reputation: 0
Post: #1493
Hi All, its been a while since I updated but tonight after I did I get the following error on Windows:
00:21:32 T:16268 ERROR: AddOnLog: MythTV cmyth PVR Client: Failed to connect to backend
00:21:32 T:16268 ERROR: PVR - couldn't get the capabilities for add-on 'unknown'. Please contact the developer of this add-on: Christian Fetzer, Jean-Luc Barrière, Tonny Petersen

I have seen similar problems where someone said a recompile fixed it but I havent had any such luck.
find quote
kwlockwo Offline
Junior Member
Posts: 3
Joined: Nov 2012
Reputation: 0
Post: #1494
Hi,

I have been trying to get this work on my debain (wheezy) box with no luck so far. I compiled the add-on following these instructions here http://wiki.xbmc.org/index.php?title=PVR...FromSource. I haven't build my own XBMC because from my understanding the Debian packages (from http://www.deb-multimedia.org) are pretty recent.

So after I enable this add-on XBMC crashes immediately and I have to delete it from the .xbmc add-on directory to be able start XBMC up.

Here is my debug log http://xbmclogs.com/show.php?id=14031.

Any help will be appreciated.

Thanks,
Keith
find quote
NewJerseyNinja Offline
Junior Member
Posts: 42
Joined: Apr 2011
Reputation: 0
Post: #1495
I'm the guy with an HDHR prime + cableCARD on Fios (approximately 500 channels or so) using SchedulesDirect for EPG and an HDHR with ATSC antenna using ATSC for EPG (approximately 30 channels)

Behavior that I've noticed:

Sorry, right now I do not have log data, I will collect it though to narrow down whats wrong.

[1] Freezeup on startup: Loading EPG from client takes about 20 min to complete. I am currently storing the EPG in the database. Would not storing the EPG in the database help?

[2] Occasional freeze: I have a dual core machine. CPU1 will go to 100% sometimes, for about 20 minutes. During this time RAM useage rapidly cycles from about 1500MB free to 1000MB free over and over, I think this may be EPG related, I will confirm it later.

[3] Freeze on channel change, I think this is the same as [2] but I'm not sure. It mainly happens when I change from a channel on HDHR Prime to a channel on HDHR and vice versa.

[4] Freeze on exiting XBMC, this happens nearly everytime. I think this has to do with the EPG and database, however I will try to grab a log to confirm.

Is there any test I should try tonight?
(This post was last modified: 2012-11-08 16:28 by NewJerseyNinja.)
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #1496
(2012-11-08 15:41)kwlockwo Wrote:  Hi,

I have been trying to get this work on my debain (wheezy) box with no luck so far. I compiled the add-on following these instructions here http://wiki.xbmc.org/index.php?title=PVR...FromSource. I haven't build my own XBMC because from my understanding the Debian packages (from http://www.deb-multimedia.org) are pretty recent.

So after I enable this add-on XBMC crashes immediately and I have to delete it from the .xbmc add-on directory to be able start XBMC up.

Here is my debug log http://xbmclogs.com/show.php?id=14031.

Any help will be appreciated.

Thanks,
Keith


Can you try a more recent build of xbmc? i.e build from git?

This happened to me and it was because xbmc and the addons were out of sync.

I hope this helps,

Dubstar_04

All Things PVR
find quote
janbar Offline
Fan
Posts: 379
Joined: Sep 2012
Reputation: 24
Location: France
Post: #1497
(2012-11-08 16:16)NewJerseyNinja Wrote:  I'm the guy with an HDHR prime + cableCARD on Fios (approximately 500 channels or so) using SchedulesDirect for EPG and an HDHR with ATSC antenna using ATSC for EPG (approximately 30 channels)

Behavior that I've noticed:

Sorry, right now I do not have log data, I will collect it though to narrow down whats wrong.

[1] Freezeup on startup: Loading EPG from client takes about 20 min to complete. I am currently storing the EPG in the database. Would not storing the EPG in the database help?

[2] Occasional freeze: I have a dual core machine. CPU1 will go to 100% sometimes, for about 20 minutes. During this time RAM useage rapidly cycles from about 1500MB free to 1000MB free over and over, I think this may be EPG related, I will confirm it later.

[3] Freeze on channel change, I think this is the same as [2] but I'm not sure. It mainly happens when I change from a channel on HDHR Prime to a channel on HDHR and vice versa.

[4] Freeze on exiting XBMC, this happens nearly everytime. I think this has to do with the EPG and database, however I will try to grab a log to confirm.

Is there any test I should try tonight?
Hi, if you run backend/xbmc on Linux or osx, can you run "top" command to see what is consuming lot of cpu and ram ? br
find quote
janbar Offline
Fan
Posts: 379
Joined: Sep 2012
Reputation: 24
Location: France
Post: #1498
(2012-11-08 15:41)kwlockwo Wrote:  Hi,

I have been trying to get this work on my debain (wheezy) box with no luck so far. I compiled the add-on following these instructions here http://wiki.xbmc.org/index.php?title=PVR...FromSource. I haven't build my own XBMC because from my understanding the Debian packages (from http://www.deb-multimedia.org) are pretty recent.

So after I enable this add-on XBMC crashes immediately and I have to delete it from the .xbmc add-on directory to be able start XBMC up.

Here is my debug log http://xbmclogs.com/show.php?id=14031.

Any help will be appreciated.

Thanks,
Keith
HI, i read in the log the xbmc build: "12.0-ALPHA6". It is too old. Please try the latest source: remove your last clone and redo git clone git://github.com/xbmc/xbmc.git . You must to rebuild it. Next time if you want to update source of xbmc type "git pull" only.
EDIT: Or check debian version is 12.0-ALPHA7. Else build it as above.
(This post was last modified: 2012-11-09 00:41 by janbar.)
find quote
rdoac Online
Senior Member
Posts: 171
Joined: May 2009
Reputation: 0
Post: #1499
I had to revert back to the Eden-PVR build as the slingbox plugin the main xbmc is still not working correctly. However, I don't know if the tsp's Eden-PVR branch will talk with a Myth 0.26 build? Does anyone know? Can it be patched? It's failing to login at the moment due to a protocol jump. I seem to remember this being addressed when Gentoo jumped us up to the latest mythtv a while back.
find quote
NewJerseyNinja Offline
Junior Member
Posts: 42
Joined: Apr 2011
Reputation: 0
Post: #1500
(2012-11-04 17:05)NewJerseyNinja Wrote:  
(2012-11-04 14:28)speed32219 Wrote:  Janbar, when I make zip using your most current, I do not get a pvr.mythtv.cmyth.zip file. It would also be nice if in your sig's if you could put the link to your git repos. (Janbar/cfetzer)

I have an HDHR using the over the air EPG from ATSC broadcast stations AND an HDHR prime using SchedulesDirect for cablecard channels.

The cablecard channels EPG seems to import ok, but,

I am having some issues with importing the EPG from the US ATSC over the air EPG info.

The mythtv addon for XBMC seems to get hung up while importing EPG from clients, it takes FOREVER and on my dual core system seems to put the second CPU core at 100% useage.

Mythtv does a continuous EPG crawl for ATSC broadcast stations, maybe that is a problem?


--Update--

After waiting maybe 20 minutes for the EPG on one ATSC channel, it did work properly, no freeze up after changing channels.

However, when I stopped playback. And tried to exit XBMC, it froze up with the exit menu just sitting there.

If this freeze-on-exit can be fixed then everything is working for me.

(2012-11-09 00:24)janbar Wrote:  
(2012-11-08 16:16)NewJerseyNinja Wrote:  I'm the guy with an HDHR prime + cableCARD on Fios (approximately 500 channels or so) using SchedulesDirect for EPG and an HDHR with ATSC antenna using ATSC for EPG (approximately 30 channels)

Behavior that I've noticed:

Sorry, right now I do not have log data, I will collect it though to narrow down whats wrong.

[1] Freezeup on startup: Loading EPG from client takes about 20 min to complete. I am currently storing the EPG in the database. Would not storing the EPG in the database help?

[2] Occasional freeze: I have a dual core machine. CPU1 will go to 100% sometimes, for about 20 minutes. During this time RAM useage rapidly cycles from about 1500MB free to 1000MB free over and over, I think this may be EPG related, I will confirm it later.

[3] Freeze on channel change, I think this is the same as [2] but I'm not sure. It mainly happens when I change from a channel on HDHR Prime to a channel on HDHR and vice versa.

[4] Freeze on exiting XBMC, this happens nearly everytime. I think this has to do with the EPG and database, however I will try to grab a log to confirm.

Is there any test I should try tonight?
Hi, if you run backend/xbmc on Linux or osx, can you run "top" command to see what is consuming lot of cpu and ram ? br



Hello, I believe [3] is actually this mythtv bug:

http://code.mythtv.org/trac/ticket/10754

When I change channels on the HDHR Prime + CableCARD to another HDHR Prime + CableCARD channel, everything works ok (except for the painfully slow mythtv channel changes.)

When I change channels on the HDHR Prime + CableCARD to the HDHR + ATSC tuner, the ATSC show will play for about 5 seconds, then freeze up.


Also,

What happens if I use the "do not store the EPG in database" option in XBMC? How does XBMC handle EPG then?

I am trying to cut down on the 20 minute EPG read time.
(This post was last modified: 2012-11-09 16:46 by NewJerseyNinja.)
find quote
Post Reply