TV Server Error on Fresh Vista Install (1 Viewer)

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Hi, I've used MediaPortal on many PCs so far and installed without Problems.

    This time I have set up a fresh Vista x64 SP1 install and tried MediaPortal setup which runs fine, but the TV Server won't start.
    (Actually the Service is running says Windows but starting the config tool it asks to start the service and fails)

    The error log keeps saying that there is a NullReferenceException in TvLibrary.Implementations.TVCardCollection.DetectCards()

    Any idea what I am missing?

    SQLServerExpress2008 is installed, working and the DB was successfully created.
    MY TV Card works (I confirmed with ProgDVB).

    TV-Server Version: 1.0 RC4
    MediaPortal Version: 1.0 RC4
    MediaPortal Skin: BlueTwoWide
    Windows Version: Windows Vista SP1 64 bit
    CPU Type: AMD X2 4850e
    HDD: WD 300 GB
    Memory: 2 GB DDR
    Motherboard: Asus A8N-VM CSM
    Video Card: ATI
    Video Card Driver: 169.25
    Sound Card: OnBoard AD1988
    Sound Card AC3: SPDIF
    Sound Card Driver:
    1. TV Card: Technotrend C-1500
    1. TV Card Type: DVB-C
    1. TV Card Driver: 5.0.0.19
    MPEG2 Video Codec: ATI AVIVO Video
    MPEG2 Audio Codec: AC3 Filter
    h.264 Video Codec: Core AVC
    Satelite/CableTV Provider: KabelBW
    HTPC Case:
    Cooling:
    Power Supply: 450W
    Remote: Logitech UltraX
    TV: Mitsubishi HC4900
    TV - HTPC Connection: DVI
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #2
    I've looked up the source code what happens in DetectCards(), but that is alot of stuff. Can someone send me the pdb files, so I can tell you the line of code where it is failing, or is there a way to get the full exception text, not just the message?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #3
    I taken the lates code from svn and compiles the TVServer and Plugins to get the Debug files. I replaced the files on my system with the ones I compiled and I did NOT get the error anymore :(
    But I still can't get it to work, my card is detected now, but when doing a scan, it says no signal on all transponders... (I confirmed that I have signal using ProgDVB).
    The attached Logfiles show the scan and one error when starting up the service:

    2008-12-16 19:27:26.425687 [TVService]: Exception : System.BadImageFormatException: Es wurde versucht, eine Datei mit einem falschen Format zu laden. (Ausnahme von HRESULT: 0x8007000B)
    bei TvLibrary.Streaming.RtspStreaming.StreamSetup(String ipAdress)
    bei TvLibrary.Streaming.RtspStreaming..ctor(String hostName) in C:\MediaPortalTVServer\TVLibrary\Streaming\RtspStreaming.cs:Zeile 79.
    Exception :Es wurde versucht, eine Datei mit einem falschen Format zu laden. (Ausnahme von HRESULT: 0x8007000B)
    site :Void StreamSetup(System.String)
    source :TVLibrary
    stacktrace: bei TvLibrary.Streaming.RtspStreaming.StreamSetup(String ipAdress)
    bei TvLibrary.Streaming.RtspStreaming..ctor(String hostName) in C:\MediaPortalTVServer\TVLibrary\Streaming\RtspStreaming.cs:Zeile 79.


    Please any help from the devs?
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #4
    Ok after compiling the TVService was running as 64 bit, I recompiled for x86 and now I get the error again.

    it is in the file TvLibrary.Implementations.TvCardCollection.DetectCards() line 118:

    Code:
    if (devices.Length > 0)
          {
            ITuningSpace tuningSpace;
            ILocator locator;
            IFilterGraph2 graphBuilder = (IFilterGraph2)new FilterGraph();
            DsROTEntry rotEntry = new DsROTEntry(graphBuilder);
    
            //DVBT
            Guid networkProviderClsId = typeof(DVBTNetworkProvider).GUID;
            IBaseFilter networkDVBT = FilterGraphTools.AddFilterFromClsid(graphBuilder, networkProviderClsId, "DVBT Network Provider");
    
            tuningSpace = (ITuningSpace)new DVBTuningSpace();
            tuningSpace.put_UniqueName("DVBC TuningSpace");
            tuningSpace.put_FriendlyName("DVBC TuningSpace");
            tuningSpace.put__NetworkType(typeof(DVBTNetworkProvider).GUID);
            ((IDVBTuningSpace)tuningSpace).put_SystemType(DVBSystemType.Terrestrial);
    
            locator = (ILocator)new DVBTLocator();
            locator.put_CarrierFrequency(-1);
            locator.put_InnerFEC(FECMethod.MethodNotSet);
            locator.put_InnerFECRate(BinaryConvolutionCodeRate.RateNotSet);
            locator.put_Modulation(ModulationType.ModNotSet);
            locator.put_OuterFEC(FECMethod.MethodNotSet);
            locator.put_OuterFECRate(BinaryConvolutionCodeRate.RateNotSet);
            locator.put_SymbolRate(-1);
            tuningSpace.put_DefaultLocator(locator);
            ((ITuner)networkDVBT).put_TuningSpace(tuningSpace);

    the last line throws the error, any idea? I don't have any DVB-T device...

    I changed it to only detect DVB-C card and now it's working.
    Maybe you should put a try catch around the detection of each card type?
    In my case the variable networkDVBT was null a giving the exception!
     

    Coyal

    New Member
    December 23, 2008
    1
    0
    Hello

    Im using swedish Vista 64 bit (MCE with Tv pack 2008) and I seem to have a very similar problem, it may be the same problem but I dont want to make any assumptions.

    2008-12-23 18:11:20.195061 [TVService]: Exception :confused:ystem.NullReferenceException: Objektreferensen har inte angetts till en instans av ett objekt.
    vid TvLibrary.Implementations.TvCardCollection.DetectCards()
    vid TvLibrary.Implementations.TvCardCollection..ctor()
    vid TvService.TVController.InitController()
    Exception :Objektreferensen har inte angetts till en instans av ett objekt.
    site :Void DetectCards()
    source :TVLibrary
    stacktrace: vid TvLibrary.Implementations.TvCardCollection.DetectCards()
    vid TvLibrary.Implementations.TvCardCollection..ctor()
    vid TvService.TVController.InitController()

    "Objektreferensen har inte angetts till en instans av ett objekt."= Object reference has not been set to an object instance

    I just bought FireDTV C today, installed to get it working in Media Center (which works fine). I then wanted to try Media Portal since I want to use both my analog tv tuner and my FireDTV which I have read I can do in Media Portal but not in Media Center, and thats when I got stuck when starting the Tv-server.

    I think that FireDTV reclassifies the device as DVB-T instead of C just to get Vista Media Center to accept the device, could this be the reason that the exception is thrown?

    Regards Coyal
     

    neo2001

    Portal Member
    December 26, 2008
    37
    0
    Home Country
    Germany Germany
    I'm getting the same error message when I try to start the TV Service!

    I'm also using a (german) Vista x64 Home Premium SP 1 with a Technisat SkyStar 2 HD DVB-S2 Card (which works fine with DVBViewer).

    On my other PC (Vista x64 SP 1 Ultimate) the TV Server works (no error) with a Technisat external USB DVB-S Box ("SkyStar USB plus").

    On both systems I'm using SQL Server 2008 Express.
     

    jaeger

    Portal Member
    July 27, 2007
    23
    1
    Home Country
    Finland Finland
    Hi,

    I'm seeing a problem that looks very much like the one described above. Problem description and logs seem to match (didn't compare full logs thou)

    I'm using Vista x64, service pack 1 + TV pack 2008. I've two Technotrend C-1500 TV cards.

    Code:
    2008-12-26 18:31:06.943059 [8]: Exception   :System.NullReferenceException: Object reference not set to an instance of an object.
       at TvLibrary.Implementations.TvCardCollection.DetectCards()
       at TvLibrary.Implementations.TvCardCollection..ctor()
       at TvService.TVController.InitController()
    Exception   :Object reference not set to an instance of an object.
      site      :Void DetectCards()
      source    :TVLibrary
      stacktrace:   at TvLibrary.Implementations.TvCardCollection.DetectCards()
       at TvLibrary.Implementations.TvCardCollection..ctor()
       at TvService.TVController.InitController()

    I'll post full logs if needed. Right now I need to take a break :confused:

    Hi,

    I think I've solved my problem. I disabled 4 Services related to Media Center and TV Server started working.

    It wasn't enough just to stop the services, as they restarted again.
     

    neo2001

    Portal Member
    December 26, 2008
    37
    0
    Home Country
    Germany Germany
    I think I've solved my problem. I disabled 4 Services related to Media Center and TV Server started working.

    It wasn't enough just to stop the services, as they restarted again.
    Hi!

    Hm... I disabled the following services: Mcx2Svc (was already disabled), ehRecvr, ehSched and ehstart - but the problem remains. Which services did you disable?

    The (for me) strange thing is, that the MediaPortal tv service is listed as "running" in the Windows services manager - but if I start the TV Server Setup it still tells me that tv service isn't running and asks me if I want to start it now - and if I choose yes - I get the permanent "TV service not startet/running" error (NULL reference exception etc. in the logs).

    Maybe it's related to the TV Pack 2008 (on x64) - because on the machine everything works fine I never installed the pack (and never used the Windows Media Center anyway).
     

    jaeger

    Portal Member
    July 27, 2007
    23
    1
    Home Country
    Finland Finland
    Hi,

    I disabled the following services
    Mcx2Svc (Windows Media Center Extender Service)
    ehRecvr (Windows Media Center Receiver Service)
    ehSched (Windows Media Center Scheduler Service)
    ehstart (Windows Media Center Service Launcher)

    I think I disabled this one as well (or it was disabled already)
    WMPNetworkSvc (Windows Media Player Network Sharing Service)

    I've no idea which one helped. However, the problem seems to come back every time I reboot (The services above stay disabled, so disabling them helped only so far).

    The (for me) strange thing is, that the MediaPortal tv service is listed as "running" in the Windows services manager - but if I start the TV Server Setup it still tells me that tv service isn't running and asks me if I want to start it now - and if I choose yes - I get the permanent "TV service not startet/running" error (NULL reference exception etc. in the logs).

    I can get around the problem you mentioned by stopping the TV service manually and then starting the TV-Server Configuration utility. It still tells me that tv service isn't running and asks me if I want to start it now - and if I choose yes - it doesn't complain anymore about TV service running. Instead the program throws following exception. TV service starts anyway and I can watch TV after that (until next reboot)

    Code:
    2008-12-29 18:13:21.550155 [SetupTv]: Exception   :System.Runtime.Remoting.RemotingException: Requested Service not found
    
    Server stack trace: 
       at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at TvControl.IController.get_Cards()
       at SetupTv.Startup.Main(String[] arguments)
    Exception   :Requested Service not found
      site      :System.Runtime.Remoting.Channels.ServerProcessing ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage ByRef, System.Runtime.Remoting.Channels.ITransportHeaders ByRef, System.IO.Stream ByRef)
      source    :System.Runtime.Remoting
      stacktrace:
    Server stack trace: 
       at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
    
    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at TvControl.IController.get_Cards()
       at SetupTv.Startup.Main(String[] arguments)

    I'll try some combinations and take the logs later. That will probably be on Thursday or Saturday.
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    You're all using bda drivers(required for MP) for your card & not fake drivers(which some tuner manufactures have made) so MCE can use it?

    Regards
    Roy
     

    Users who are viewing this thread

    Top Bottom