"Enter" no longer reliably adds a recording from TV Guide (1 Viewer)

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,160
    2,407
    Nuenen
    Home Country
    Netherlands Netherlands
    Hm, somehow I suspect mediaportal's loglevel is still not debug...
    one of the first lines in OnRecordProgram is
    Log.Debug("TVProgammInfo_OnRecordProgram - programm = {0}", program.ToString()); and I don't see that one in your log...
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,135
    115
    Home Country
    Switzerland Switzerland
    just took a quick glance and this
    Code:
    [2021-03-17 16:30:56,299] [Error  ] [MPMain   ] [ERROR] - OnMessage exception:System.NullReferenceException: Object reference not set to an instance of an object.
       at TvPlugin.TVProgramInfo.OnRecordProgram(Program program)
       at TvPlugin.TVProgramInfo.OnClicked(Int32 controlId, GUIControl control, ActionType actionType)
       at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)
    seems like the cause.
    Yes, that looks like what I posted at the start of this thread.
    Nothing in the tvservice.log around that time so now to dig into mediaportalcode to see what's wrong.
    btw, I do notice quite some errors in the tvservice.log, and a strange one in mediaportal.log about the gentle.config...
    Thanks, I will be grateful if you can find a cause. I know it is tough when the problem doesn't repeat reliably.
    The EPG errors from yesterday are a mystery to me. I went through the TV guide yesterday and today and didn't see any problems. There are channels for which no EPG info is available, but I have unchecked them all in the TV Epg grabber.
    The gentle.config error in the MediaPortal log is just as mysterious to me. I am using SQL Server express because I repeatedly had connectivity problems with the built-in MySQL DB, often accompanied by gentle.config errors. At least with SQL Server, I don't experience blocking errors at the user interface level.
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,135
    115
    Home Country
    Switzerland Switzerland
    Hm, somehow I suspect mediaportal's loglevel is still not debug...
    one of the first lines in OnRecordProgram is
    Log.Debug("TVProgammInfo_OnRecordProgram - programm = {0}", program.ToString()); and I don't see that one in your log...
    Absolutely correct: I checked again, and my change to the log settings did not take effect. I know that such changes first take effect when MP (or TV service) is restarted, but I expected them to take effect with my daily reboot at 5 AM (configured in Power Scheduler),
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,135
    115
    Home Country
    Switzerland Switzerland
    While trying to turn on debug log level for MP, I came across an interesting peculiarity. I normally do my maintenance via RDP to an admin account on my HTPC to avoid interfering with the normal interactive use of the 10 ft. GUI. When I make changes to TV Server, some take effect immediately and some require a service restart. If the service is active (e.g. recording) I deny restart and the changes take effect at the next scheduled system reboot. MP client OTOH likes to be restarted after every change. I always deny restart in my RDP session, since that used to try to start MP in my RDP session (I don't know if that is still the case). Instead, I would then restart MP from the 10 ft. GUI or, again, just wait for the scheduled reboot. Up until now, this has worked for everything I have changed in mp Configuration. However, some changes to the General tab (Log verbosity and Watchdog enabled) would not "stick" if I made them while the MP client was running. To get them to take effect, I had to first stop the MP Client, then make the changes in MP Configuration and then restart MP. Curiouser and curiouser!
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,160
    2,407
    Nuenen
    Home Country
    Netherlands Netherlands
    I've added some logging to hopefully pinpoint where exactly it's going wrong.
    just stop mediaporta, navigate to C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows, backup old tvplugin.dll (be sure to either move it to a completely different folder or change the extension so the old one isn't loaded by mediaportal) and put in the new dll
    I suspect this is going to take a while to fix though...
     

    Attachments

    • TvPlugin.zip
      179.6 KB

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,135
    115
    Home Country
    Switzerland Switzerland
    Thanks! After installing your DLL and restarting MP, the problem isn't showing itself (a corollary of Murphy's law), but I suspect it will show up again in a day or two.
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,135
    115
    Home Country
    Switzerland Switzerland
    The problem still hasn‘t reappeared. If all you changed was the number of debugging messages. this suggests to me a timing problem. This might explain why the problem is intermittent for me and hasn‘t shown up with other users. Perhaps the timing is affeceted by the choice of TV Server DB: I am using SQL Server Express 2017.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,160
    2,407
    Nuenen
    Home Country
    Netherlands Netherlands
    Timing problems are very hard to debug....
    I would be rather surprised if the log lines I added change the timing of things...
     

    rsbrux

    Documentation Group
  • Team MediaPortal
  • April 15, 2007
    1,135
    115
    Home Country
    Switzerland Switzerland
    Indeed, as a former developer, I know how touhg it is to diagnose intermittent problems, especially if timing is a factor!
    Just when I had given up hope of reproducing the problem, it happened again. Logs attached.
    Many thanks for your help!

    P.S: After restarting MP (not TV Server) the problem is gone again. ;-}
     

    Attachments

    • MPlogs.zip
      521.9 KB
    • TVlogs.zip
      3.9 MB
    Last edited:

    Users who are viewing this thread

    Similar threads

    I will explicitly test this issue until wednesday then, and let you know in case it happens again.
    I will explicitly test this issue until wednesday then, and let you know in case it happens again.
    MediaPortal Version: 1.12.0 Description Hi all, MP 1.12 is installed. Using Titanius Skin. This happens sometimes: Open the TV...
    Replies
    62
    Views
    8K
    Good evening Vasilich, I have always uses EVR but for testing purpouse I used VMR9 so the logs ar for that reason. I don't really use My videos pugins, only for testing as rochess suggest, but I fixed that issue on corrupt database a week ago but that is the database for MyVideos plugin not MovinPictures (that actually uses...
    Good evening Vasilich, I have always uses EVR but for testing purpouse I used VMR9 so the logs ar for that reason. I don't really...
    Good Morning, My Mediaportal Crash when playing some avi files and I need to force close by Alt+F4 to recover control of the...
    Replies
    4
    Views
    1K
    Just the server or server and clients? Edit: Disabling server IPv6 dropped it down to about 3 seconds...I think that is sufficient. So there's only two one zero outstanding issues now: 1) TV still has no audio. Configurator -> Codecs and renderers -> TV Codecs -> MPEG / AC3 Audio select LAV, click on box to the left -> Formats tab...
    Just the server or server and clients? Edit: Disabling server IPv6 dropped it down to about 3 seconds...I think that is...
    The problems I have noticed: 1) Attempting to schedule a radio recording, Quick Record and Advanced Record do nothing when clicked...
    Replies
    18
    Views
    3K
    Do I even need this? just reading up it looks like it's an apple service, I don't have any apple devices. Can I just delete the plugin or does MPExtended need it?
    Do I even need this? just reading up it looks like it's an apple service, I don't have any apple devices. Can I just delete the...
    I'm having an issue where Mediaportal will crash at the end of a track, I can play one, entire mp3 before this occurs. I can then...
    Replies
    2
    Views
    900
    kiwijunglist, Thanks for responding but no, the recording + timeshifting directories were still correct. I even clicked the "make all tuners use the same directory" button and it still didn't work. I ended up reinstalling the server and that fixed it. That is a painful process. It's been too long since I setup 1.2.3. Figuring...
    kiwijunglist, Thanks for responding but no, the recording + timeshifting directories were still correct. I even clicked the "make...
    I'm getting the following error messages when I try to schedule a new recording with "Quick Record" or "Advanced Record" in...
    Replies
    2
    Views
    897
    Top Bottom