MP2 - V2.1 - TV Server Crashing - EPG

Discussion in 'Older releases' started by jonathantwynham, April 14, 2018.

Thread Status:
Not open for further replies.
  1. jonathantwynham

    jonathantwynham Portal Pro

    Joined:
    March 27, 2013
    Messages:
    79
    Likes Received:
    1
    Gender:
    Male
    Ratings:
    +2 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    MediaPortal 2 Version: 2.1.3

    Description
    Hi.

    Having an issue with my TV server.

    It seems that when it's idle it crashes. I can happily watch TV all night and it's fine.

    Looking through the TV server logs it crashes with an exception of the epg.. service not available.

    I have gone into the TV server configuration. I can select the main epg settings page properly but as soon as I try to select the TV epg or radio epg mapping page the TV server config crashes the TV service.



    I then have to go to the service monitor and start the service again and it's fine until something epg related happens. It seems I have some epg data collected but not all.

    Any help greatly appreciated.

    Steps to Reproduce:
    Leave system idle and when it attempts an epg grab it crashes the service. Also going into the TV server configuration on epg pages crashes the service.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. jonathantwynham

    jonathantwynham Portal Pro

    Joined:
    March 27, 2013
    Messages:
    79
    Likes Received:
    1
    Gender:
    Male
    Ratings:
    +2 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    logs..
     

    Attached Files:

  4. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,896
    Likes Received:
    767
    Gender:
    Male
    Ratings:
    +1,294 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hi,
    Can you create a set of debug logs showing the issue. I think you'll need to set the log level in both TvSetup and in MP2 Client.
     
  5. jonathantwynham

    jonathantwynham Portal Pro

    Joined:
    March 27, 2013
    Messages:
    79
    Likes Received:
    1
    Gender:
    Male
    Ratings:
    +2 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    OK, so I turned on debug level in the GUI and managed to get a crash - it seems that its whenever the tuners are doing anything (live TV or grabbing) and media importer is running..

    I came to this conclusion because I realised that I hadn't imported my photos in yet and was watching TV downstairs and through I would do it whilst i was thinking about it - it ran live tv for 5 minutes and the server fell over. I then realised that every other time its done it was when I was going upstairs to watch TV in bed and I had set the importer going on the client downstairs (I was importing my movies and tv series etc) - by the time I had cleaned my teeth and turned the TV on it had crashed!

    Ive attached the client and server logs from when the live tv is going and also the server log from when the client is idle but its importing whilst epg is grabbing.

    I can replicate this by removing the media sources and starting again or just by re-importing the sources.
     

    Attached Files:

  6. jonathantwynham

    jonathantwynham Portal Pro

    Joined:
    March 27, 2013
    Messages:
    79
    Likes Received:
    1
    Gender:
    Male
    Ratings:
    +2 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Anyone got any ideas??
     
  7. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,896
    Likes Received:
    767
    Gender:
    Male
    Ratings:
    +1,294 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hi,
    The server logs are still only at info level though they should have been switched to debug when the client was switched so not sure what happened there. You can switch the server manually by editing the file C:\ProgramData\Team MediaPortal\MP2-Server\Config\MediaPortal.Common.Services.Logging.LogSettings.xml and changing LogLevel to Debug.

    The SetupTv logs are however full of the below
    Code (Text):
    1. [2018-04-15 15:22:43,615] [1458148] [SetupTv  ] [ERROR] -
    2. System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 192.168.1.116:31456
    3.  
    4. Server stack trace:
    5.    at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
    6.    at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(AddressFamily family)
    7.    at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket()
    8.    at System.Runtime.Remoting.Channels.RemoteConnection.GetSocket()
    9.    at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortAndSid, Boolean openNew)
    10.    at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.SendRequestWithRetry(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream)
    11.    at System.Runtime.Remoting.Channels.Tcp.TcpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
    12.    at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)
    13.  
    14. Exception rethrown at [0]:
    15.    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    16.    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    17.    at TvControl.IController.CardPresent(Int32 cardId)
    18.    at SetupTv.Sections.TestService.UpdateCardStatus()
    19. [2018-04-15 15:22:47,717] [1462251] [SetupTv  ] [DEBUG] - Exception in setuptv
    Can you try temporarily disabling any antivirus/firewall and see if that resolves it? If it does can you try adding a rule to your firewall to allow the port 31456 through?
     
  8. jonathantwynham

    jonathantwynham Portal Pro

    Joined:
    March 27, 2013
    Messages:
    79
    Likes Received:
    1
    Gender:
    Male
    Ratings:
    +2 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
  9. jonathantwynham

    jonathantwynham Portal Pro

    Joined:
    March 27, 2013
    Messages:
    79
    Likes Received:
    1
    Gender:
    Male
    Ratings:
    +2 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    sorry it has taken me a while to do this..

    windows firewall off and avg in passive mode (as close to off as you can get now..

    I am still getting my tv server falling over whenever a media import is happening.

    logs attached (mp2 server logs now in debug).

    let me know what you think - be nice to fix this as SWMBO has subtly (not so tonight) suggested that MP1 was better as it worked! if MP2 didnt keep doing this (and i can then move onto the onlinevideos forum to report my issues with that) and i could get it reliable there would be no grumbles!
     

    Attached Files:

  10. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,896
    Likes Received:
    767
    Gender:
    Male
    Ratings:
    +1,294 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    From the Windows event log I can see that the crash is being caused by a StackOverflowException in taglib-sharp which is a library we use for reading audio files. You have loads of 'audio file seems to be broken' errors during an import so I suspect it's choking on some issue with reading your audio files.

    Does any of your audio get successfully imported? Is there anything special about the files that don't (a random selection is below but there are lots more)?
    Maybe check file permissions, etc, to ensure that the server can open the files.
    Code (Text):
    1. [2018-04-22 23:01:32,975] [1810134] [65       ] [INFO ] - AudioMetadataExtractor: Audio file '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///R:/mp-music/2002 Mercury Music Prize - The Album/04 - Track  4.mp3' seems to be broken
    2. [2018-04-22 23:02:01,444] [1838603] [79       ] [INFO ] - AudioMetadataExtractor: Audio file '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///R:/mp-music/Chitty Chitty Bang Bang - Original London Cast Recording/01 - Orchestra.mp3' seems to be broken
    3. [2018-04-22 23:02:19,871] [1857030] [69       ] [INFO ] - AudioMetadataExtractor: Audio file '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///R:/mp-music/Fame Academy - Various/02 - Track  2.mp3' seems to be broken
     
  11. jonathantwynham

    jonathantwynham Portal Pro

    Joined:
    March 27, 2013
    Messages:
    79
    Likes Received:
    1
    Gender:
    Male
    Ratings:
    +2 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    OK. This is really really odd.. the random selection of mp3 you highlighted are corrupted.. and I don't mean a little.. they have 0 bytes data!!

    I've looked through a random collection of other folders and a lot of them too are 0 bytes.. however I have a USB stick that I run in my car radio that was copied from the server and that is fine so I can copy the files back across..

    Thank you for your help.. I would never have spotted this..

    I guess then the importer needs changing so that on a file error it continues next and flags an error rather than the mp service (and the TV server itself) crash..
     
Loading...
Thread Status:
Not open for further replies.

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!