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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: PVR Development (/forumdisplay.php?fid=136)
+--- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694)



RE: New MythTV add-on using libcmyth - andyb2000 - 2012-05-28 15:39

Hm, very strange. I can start it up with plugin disabled and xbmc itself is fine. Enable the add-one I get a crash, or a hang.

http://xbmclogs.com/show.php?id=3042

(EDIT: That first one I didn't have the plugin full debug on, thats with the plugin debug on also)

Is the log from xbmc, the last line is where it hangs, basically I've got xbmc onscreen but totally frozen.

Any ideas what to try next?


RE: New MythTV add-on using libcmyth - ZIOLele - 2012-05-28 17:29

(2012-05-26 23:31)InoD Wrote:  
(2012-05-26 18:07)druhboruch Wrote:  InoD: Could you share your recent openelec build?

Of course. Please find OpenELEC 2.0 beta 4 with tsp's latest code from his Eden-PVR branch behind the links below:
ION x86_64
Ultra x86_64
(at time of uploading/writing it is no longer latest... the GIT hash tag is in the filename)

Nice! InoD taks for the build, but if your buildscript is integrated in openelec' buildchain, could you share it? so we can build on the latest tsp development.


RE: New MythTV add-on using libcmyth - tsp42 - 2012-05-28 20:42

andyb2000: Some of the threads can still be alive and produce log messages. Could you provide me with a full stack trace as described in the very first post in this thread of the deadlocked xbmc.bin process? I can't see any obvious reason for the hang in the log file.


RE: New MythTV add-on using libcmyth - apnar - 2012-05-28 21:31

(2012-05-28 15:39)andyb2000 Wrote:  Hm, very strange. I can start it up with plugin disabled and xbmc itself is fine. Enable the add-one I get a crash, or a hang.

Any ideas what to try next?

I had a similar issue recently. I switched to a new .xbmc dir and it worked fine.


RE: New MythTV add-on using libcmyth - KeithLM - 2012-05-29 03:49

While working on some other issues with my client system I noticed that on occasional reboots the PVR client wouldn't start every time and coincidentally that the weather was reporting incorrectly. This lead me to think that there was an issue with network connectivity. I've run into other issues with ubuntu and certain services starting in the wrong order and have found a fix for this. If you are using an XBMCbuntu based installation go to /etc/init and edit the file xbmcbuntu.conf and look for the line that begins with "start on". Change it to the following:
Code:
start on (starting lightdm and net-device-up IFACE!=lo)

This will keep xbmc from starting until the network interface is up and connected.


RE: New MythTV add-on using libcmyth - andyb2000 - 2012-05-29 11:59

Thanks tsp42, Sorry i hadn't seen the method of getting crashlogs there, I've got them for the hung xbmc process, pasted at:
http://xbmclogs.com/show.php?id=3062

Am going to try resetting my .xbmc home dir and see how that goes too just incase there is something strange in there.
--EDIT: Reset my .xbmc folder, setup just the cmyth add-on, enabled live tv, and same, crash.


KeithLM: Good call, this is a common issue I've spotted when my machine powers up, it complains it cannot connect to the PVR service, wait a few seconds, then it comes up. I also attribute this to using Cisco switches which take a while to go through BLF before the interface passes traffic.


RE: New MythTV add-on using libcmyth - rdoac - 2012-05-29 14:09

Anyone know what's going on with sound in this version. Everything works until it just decides not to. I get this in the log.

Code:
07:03:55 T:2990332736   DEBUG: CSoftAE::Run - Sink restart flagged
07:03:55 T:2990332736    INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
07:03:55 T:2990332736    INFO: CAESinkALSA::Initialize - Attempting to open device iec958:CARD=SB,DEV=0
07:03:55 T:2990332736   ERROR: CAESinkALSA::Initialize - snd_pcm_open_lconf(-16) - iec958:CARD=SB,DEV=0
07:03:55 T:2990332736   ERROR: CAESinkOSS::Initialize - Failed to get supported formats, assuming AFMT_S16_NE
07:03:55 T:2990332736    INFO: CSoftAE::InternalOpenSink - NULL Initialized:
07:03:55 T:2990332736    INFO:   Output Device : iec958:CARD=SB,DEV=0
07:03:55 T:2990332736    INFO:   Sample Rate   : 44100
07:03:55 T:2990332736    INFO:   Sample Format : AE_FMT_FLOAT
07:03:55 T:2990332736    INFO:   Channel Count : 2
07:03:55 T:2990332736    INFO:   Channel Layout: FL,FR
07:03:55 T:2990332736    INFO:   Frames        : 22000
07:03:55 T:2990332736    INFO:   Frame Samples : 2
07:03:55 T:2990332736    INFO:   Frame Size    : 8
07:03:55 T:2990332736   DEBUG: CSoftAE::Initialize - Using speaker layout: 5.1
07:03:55 T:2990332736    INFO: CAEWAVLoader::Initialize - Sound Loaded: /usr/local/share/xbmc/addons/skin.confluence/sounds/cursor.wav
07:03:55 T:2990332736   DEBUG: AERemap: Downmix normalization is enabled



RE: New MythTV add-on using libcmyth - andyb2000 - 2012-05-29 14:20

Hi rdoac,

I also noticed this with the build, sound effects for the menus, etc, at first boot work fine, however try to play a video, either from your saved ones or via TV and no audio, I get errors about libdvd. I tried the git from dushmaniac and it doesn't suffer from this audio issue (although obviously Myth doesn't work there).


RE: New MythTV add-on using libcmyth - InoD - 2012-05-29 21:26

(2012-05-28 17:29)ZIOLele Wrote:  Nice! InoD taks for the build, but if your buildscript is integrated in openelec' buildchain, could you share it? so we can build on the latest tsp development.

You're welcome.
My buildscript is really a custom script that automates the steps needed to build OpenELEC with a different XBMC version. I could share it, but it is not pretty nor perfect.
The steps it takes care of for me:
  • Pull and create TAR of XBMC source (this script is from OpenELEC's tree).
  • Copy TAR to local webserver
  • Checkout & Pull OpenELEC tree
  • Patch xbmc-pvr's meta file (modify package source and version)
  • Modify libboost build script (include filesystem lib)
  • Rename xbmc-pvr's patch files
  • Exclude patches that conflict with alternative xbmc source (trial & error)
  • Add custom/personal patches (for debugging)
  • Build target(s)
  • Rename target(s) (so that they are easier to track afterwards)
  • Undo (well try) all modifications done to OpenELEC tree.

I have some options for which XBMC source to get (tsp's or mine) and whether to do debugging and this is where it gets to get messy.
Sometimes my OpenELEC tree gets messed up with changes that weren't undone and since untracked file are not removed on a normal checkout, I sometimes have to manually clean the tree.
Let me know if you dare to use it, then I'll post it.


RE: New MythTV add-on using libcmyth - dodoadoodoo - 2012-05-29 22:06

(2012-05-29 14:09)rdoac Wrote:  Anyone know what's going on with sound in this version. Everything works until it just decides not to. I get this in the log.

Code:
07:03:55 T:2990332736   DEBUG: CSoftAE::Run - Sink restart flagged
07:03:55 T:2990332736    INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
07:03:55 T:2990332736    INFO: CAESinkALSA::Initialize - Attempting to open device iec958:CARD=SB,DEV=0
07:03:55 T:2990332736   ERROR: CAESinkALSA::Initialize - snd_pcm_open_lconf(-16) - iec958:CARD=SB,DEV=0
07:03:55 T:2990332736   ERROR: CAESinkOSS::Initialize - Failed to get supported formats, assuming AFMT_S16_NE
07:03:55 T:2990332736    INFO: CSoftAE::InternalOpenSink - NULL Initialized:
07:03:55 T:2990332736    INFO:   Output Device : iec958:CARD=SB,DEV=0
07:03:55 T:2990332736    INFO:   Sample Rate   : 44100
07:03:55 T:2990332736    INFO:   Sample Format : AE_FMT_FLOAT
07:03:55 T:2990332736    INFO:   Channel Count : 2
07:03:55 T:2990332736    INFO:   Channel Layout: FL,FR
07:03:55 T:2990332736    INFO:   Frames        : 22000
07:03:55 T:2990332736    INFO:   Frame Samples : 2
07:03:55 T:2990332736    INFO:   Frame Size    : 8
07:03:55 T:2990332736   DEBUG: CSoftAE::Initialize - Using speaker layout: 5.1
07:03:55 T:2990332736    INFO: CAEWAVLoader::Initialize - Sound Loaded: /usr/local/share/xbmc/addons/skin.confluence/sounds/cursor.wav
07:03:55 T:2990332736   DEBUG: AERemap: Downmix normalization is enabled

Looks like you may have AudioEngine running there. Are you perhaps using the master branch? If so, you should probably post a full log over at that thread.

If there is no particular reason for you to run master (aka pre-frodo) you may want to try the Eden-pvr branch, which is quite stable.

/D