MediaPortal Error log issue (1 Viewer)

Anthony Vaughan

MP Donator
  • Premium Supporter
  • June 25, 2015
    277
    44
    United Kingdom United Kingdom
    Country flag
    I don't know if this is related in any way but I am starting to see the following error as well:

    [2021-02-19 11:40:29,726] [Error ] [MPMain ] [ERROR] - GUIVideoFiles: LoadDirectory Object reference not set to an instance of an object.

    I have just upgraded several of my client machines from standard BIOS to UEFI. I thought it was since then I have been getting this log message, but it may be something else, like the upgrade to 1.27.

    I think this is happening when I navigate to the Recorded TV folder on TV Server machine. I have checked that the permissions are right for that folder and the clients can see the contents of this folder, but the log has started to display this error.

    I've just tried reinstalling 1.27 and it fixed the issue on a couple of machines but not on all machines.

    Could you explain when this error would be expected to happen - allowing, of course, that 'Object reference not set to an instance of an object' should never happen:)?

    I'm happy to do any testing that might help.

    Tony
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    3,772
    2,013
    Nuenen
    Netherlands Netherlands
    Country flag
    well, that reinstalling helps sometimes is really strange, that would mean you first install wasn't completely correct...
    Do you have the full mediaportal.log?
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    277
    44
    United Kingdom United Kingdom
    Country flag
    Here's the debug log for that machine.

    What I did was to reinstall MP and the first time I used MP, after he re-install, the log showed the error above. But the second time I ran MP, after the re-install, the error went away - as you will see in the log.

    But now I've run MP again and am getting the following error:

    [2021-02-20 11:45:07,281] [Error ] [17 ] [ERROR] - Utils: GetUsbHardDisks Error: Thread was being aborted.

    But then I ran MP in debug mode again and there was no error and still no error when back in error log mode.

    So, the problem has gone away. But, speaking as a programmer, there seems to be a 'not captured' issue that then throws an 'Object reference not set to an instance of an object' error. In my experience, these are a nightmare to track down when you can't reproduce the problem.

    I guess we'll have to wait until someone else gets this problem.

    Thanks for your help and I'll let you know if the issue recurs.

    Tony
     

    Attachments

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    3,772
    2,013
    Nuenen
    Netherlands Netherlands
    Country flag
    Ok, thanks for the info.
    Most of the exceptions in the log are due to me, I've added logging to all the empty catch-blocks, because I was always struggling when programming/testing Mediaportal.
    Lots of times I was just missing a dll or some other resource/setting and it didn't show up in the logs so had to track it down by stepping through the code...
    That's when I decided to fill in all the empty catches with logging in error mode, because I still think unforeseen exceptions should be errors.
    As a consequence I still have to deal with the fallout of that :)
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    277
    44
    United Kingdom United Kingdom
    Country flag
    Ok, thanks for the info.
    Most of the exceptions in the log are due to me, I've added logging to all the empty catch-blocks, because I was always struggling when programming/testing Mediaportal.
    Lots of times I was just missing a dll or some other resource/setting and it didn't show up in the logs so had to track it down by stepping through the code...
    That's when I decided to fill in all the empty catches with logging in error mode, because I still think unforeseen exceptions should be errors.
    As a consequence I still have to deal with the fallout of that :)
    That's great. I, for one, think you are doing the right thing. At least with the try/catches you'll know roughly where something is going wrong when, previously, the app would just crash.

    Just when I thought the '[Error ] [MPMain ] [ERROR] - GUIVideoFiles: LoadDirectory Object reference not set to an instance of an object' problem had gone away, the object reference error came back again. It seems to be intermittent. The 'MediaPC01\Recorded TV' folder is the recordings folder on the TVServer machine and it has public rights for all of my client machines and each client has windows access rights to the TVServer machine. As I mentioned above, I tried re-installing MP and I also tried removing the link (in the config app) to the Recorded TV folder and adding it again (using the config app). But the error has not gone away.

    Here' the log. Just search for "[error" and you'll land on the spot where the null object reference occurs. If you find the error, I'll happily test any changes.

    Tony
     

    Attachments

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    3,772
    2,013
    Nuenen
    Netherlands Netherlands
    Country flag
    This should fix it, can you verify?
    It should go into the C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows folder
     

    Attachments

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    277
    44
    United Kingdom United Kingdom
    Country flag
    This should fix it, can you verify?
    It should go into the C:\Program Files (x86)\Team MediaPortal\MediaPortal\plugins\Windows folder
    I've loaded the dll on one of my client machines and it worked. I'll install it on all of the others and let you know.

    Thank you!

    Tony
     

    Users who are viewing this thread

    Similar threads
    OP Title Forum Replies Date
    horned_reaper MediaPortal configuration error log message General Support 1
    G 1.26.0 Errors when exiting Mediaportal GUI using StreamedMP 3.2.2.0 skin. StreamedMP 0
    F MediaPortal 1.16 server crashing due to user error? General Support 5
    ajs [solved] 4982: Why this error hard stop when Mediaportal start? MediaPortal 1 3
    gpnash 1.27.0 mediaportal split between two monitors? MediaPortal 1 Talk 8
    Steve.Rayner61 MediaPortal won't start following W10 Update General Support 5
    Scheibes I must leave MediaPortal Team Lounge 2
    V Einstellen von ServusTV zum Aufnehmen provoziert Neustart von Mediaportal TV / Streaming 0
    R MpExtended fails to find MediaPortal TV Server Installation, configuration support 0
    T Madvr with GeForce 30xx - can't play SDR content after playing HDR General Support 26
    high 1.27.0 MediaPortal 1 - 1.27 Released! News and Announcements 0
    M TechniSat CableStar HD2 / Windows 10? Und dann natürlich auch unter Mediaportal? TV / Streaming 1
    ge2301 MediaPortal 2.3.2 Release News and Announcements 0
    S mediaportal with headphone General Support 13
    ge2301 MediaPortal 2.3.1 Release News and Announcements 0
    ajs 1.27.0 MediaPortal 1.27 Pre-Release ready for testing! News and Announcements 2
    T Change tv subtitle in MediaPortal 1.26 Newcomers Forum 12
    T Change tv subtitle in MediaPortal 1.26 MediaPortal 1 Talk 0
    S MP2 - V2.3 MediaPortal 2.3 Client stürzt ab - freetype6.dll nicht gefunden General 1
    ajs 1.26.0 MediaPortal 1 - 1.26 Released! News and Announcements 1
    T Neuer MediaPortal Rechner Barebones/PC-Systeme/Kaufberatung 2
    morpheus_xx [News] MediaPortal 2.3 Release News and Announcements 4
    G Anyone else having issues with MC2XML? (not a Mediaportal issue) General Support 3
    A MediaPortal crash (and restart) on LiveTV after Windows Update (Sep 2020) driver update for Intel HD Graphics 4600 General Support 12
    A VideoDatabaseV5.db3 lock not released on shutting down PC from MediaPortal Installation, configuration support 0

    Similar threads

    Top Bottom