First configuration...crash during "adding filter section" (1 Viewer)

hoborg

Portal Pro
June 13, 2008
4,413
1,644
Nový Jičín
Home Country
Czech Republic Czech Republic
That is a long time known MePo configuration crash problem. I reported it ~year ago with easy way how to reproduce it.
This is caused by error in registry when filter is not installed/uninstalled correctly.
If you have SAF installed, please send me your SAF logs.
To identify source of the problem - START - SAT - Tools - Filmerit.
Here click on "bug" icon - this will show only bugs. expand it fully and post screenshot here. I will then identify the source of the problem. And possibly add a registry fix in my SAF if such bug is detected.
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    That is a long time known MePo configuration crash problem. I reported it ~year ago with easy way how to reproduce it.
    Ahhhh, sorry didn't know this - this was before I became "active" here.

    This is caused by error in registry when filter is not installed/uninstalled correctly.
    So the cause is that a filter doesn't exist in the file system in the location specified in the registry?

    If you have SAF installed, please send me your SAF logs.
    To identify source of the problem - START - SAT - Tools - Filmerit.
    Here click on "bug" icon - this will show only bugs. expand it fully and post screenshot here. I will then identify the source of the problem. And possibly add a registry fix in my SAF if such bug is detected.
    Personally I agree with tourettes - this is something that should be fixed in MP. If we can, please let's do that (before we apply a fix to jeremfg's system... otherwise I won't be able to fix the problem).

    mm
     

    hoborg

    Portal Pro
    June 13, 2008
    4,413
    1,644
    Nový Jičín
    Home Country
    Czech Republic Czech Republic
    So the cause is that a filter doesn't exist in the file system in the location specified in the registry?

    The problem i reported happend, when filter is registered but one part is missing.
    Filters have two keys in registry, for example FFDshow on x86 - (04FE9017-F873-410E-871E-AB91661A4EF7):

    HKEY_CLASSES_ROOT\CLSID\{04FE9017-F873-410E-871E-AB91661A4EF7}
    and
    HKEY_CLASSES_ROOT\CLSID\{083863F1-70DE-11d0-BD40-00A0C911CE86}\Instance\{04FE9017-F873-410E-871E-AB91661A4EF7}

    If second one is missing, MePo config will crash while adding codecs.

    EDIT:
    It looks like it is some more complex.
    If i delete second key from registry, it is still working.
    Best way how to reproduce is add reg key i posted in bug report.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    Thanks again hoborg :D
    From jeremfg's system log I can see that a null reference exception was thrown so from my perspective I think it is just a matter of tracking down where this exception is thrown from and figuring out how to handle it properly. I'll see if I can reproduce the problem here but I want to be careful that I don't mess up my system. ;)
     

    hoborg

    Portal Pro
    June 13, 2008
    4,413
    1,644
    Nový Jičín
    Home Country
    Czech Republic Czech Republic
    I'll see if I can reproduce the problem here but I want to be careful that I don't mess up my system. ;)

    Dont worry, there is nothing to mess. What Os do you have? If x86 you can just add my reg key to registry. To remove it, edit it and add "-" on begin, and apply it again. It will be removed.
    On x64 reg file need to be modified - it is located in a different key.
     

    hoborg

    Portal Pro
    June 13, 2008
    4,413
    1,644
    Nový Jičín
    Home Country
    Czech Republic Czech Republic
    Found what exactly is causing it.

    To reproduce for FFDshow - open regedit and list "HKEY_CLASSES_ROOT\CLSID\{083863F1-70DE-11d0-BD40-00A0C911CE86}\Instance\{04FE9017-F873-410E-871E-AB91661A4EF7}" (x64 have different key)
    Here is field "FriendlyName". Rename it to for example to "FriendlyName1". Now MePo config will crash now. Rename it back to "FriendlyName". It is working again :)

    So it looks like MePo config will crash if "FriendlyName" key is missing.
     

    jeremfg

    Portal Member
    August 16, 2009
    21
    2
    Home Country
    Canada Canada
    No problem at all... I'm just glad you're here to help me out!

    Well... It's probably my fault... but it's just getting worse and worse...

    I can no longer run the Debug-Mode utility to retrieve log files... During the process, it crashes, about not finding the "MediaPortal.xml" file... I've checked, and it's true that I don't have it! Attached is a screenshot of this error I get.

    What I noticed however, a mistake in the path... See the double back-slash in the path just before the file name!

    I've also attached the Configuration log, wich might be the file you need the most!

    Thanks again for your kind help
     

    Attachments

    • Error.png
      Error.png
      11.6 KB

    jeremfg

    Portal Member
    August 16, 2009
    21
    2
    Home Country
    Canada Canada
    lol,.... a lot was said while I was trying the debuggin and log files...

    If you have SAF installed, please send me your SAF logs.
    To identify source of the problem - START - SAT - Tools - Filmerit.
    Here click on "bug" icon - this will show only bugs. expand it fully and post screenshot here. I will then identify the source of the problem. And possibly add a registry fix in my SAF if such bug is detected.

    I no longer have SAF installed, Do you want me to re-install it so I can try what you suggested?

    Found what exactly is causing it.

    To reproduce for FFDshow - open regedit and list "HKEY_CLASSES_ROOT\CLSID\{083863F1-70DE-11d0-BD40-00A0C911CE86}\Instance\{04FE9017-F873-410E-871E-AB91661A4EF7}" (x64 have different key)
    Here is field "FriendlyName". Rename it to for example to "FriendlyName1". Now MePo config will crash now. Rename it back to "FriendlyName". It is working again :)

    So it looks like MePo config will crash if "FriendlyName" key is missing.


    Would love to check it's non-existence on my server. Any idea where it should be on x64?

    Edit :
    I've checked everything I have in "HKEY_CLASSES_ROOT\CLSID\{083863F1-70DE-11d0-BD40-00A0C911CE86}\Instance\" and they all have a FriendlyName key... However, one of them has a Friendly Name of "Null Renderer"...

    I don't know much about filters and codecs, so I didn't know it this was normal.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,228
    Home Country
    New Zealand New Zealand
    Found what exactly is causing it.... So it looks like MePo config will crash if "FriendlyName" key is missing.
    Confirmed. :)

    I can no longer run the Debug-Mode utility to retrieve log files... During the process, it crashes, about not finding the "MediaPortal.xml" file... I've checked, and it's true that I don't have it!
    This is a problem that *should* resolve itself if you were able to run MP config.

    However, one of them has a Friendly Name of "Null Renderer"...
    Not a problem - the problem on your system may be different. We'll see I guess. :)

    Okay, so I was able to reproduce the problem easily using the FriendlyName trick. It took awhile to find all the places that needed to be patched since another problem seemed to popup every time I thought I had got them all. Try the attached Configuration.exe and see how you go...

    mm
     

    Attachments

    • Configuration.zip
      1.2 MB

    Users who are viewing this thread

    Similar threads

    MP1 MP2 1.36 .NET error DE
    looks like a corrupt xml. I would guess medaportal.xml can you try opening it in notepad and see if it still looks ok? Or better yet: restore it from a recent backup...
    looks like a corrupt xml. I would guess medaportal.xml can you try opening it in notepad and see if it still looks ok? Or better...
    So I woke up this morning to these error messages: Application: MediaPortal.exe Framework Version: v4.0.30319 Description: The...
    Replies
    1
    Views
    657
    If you remember, I wrote about it when tests because of x86/x64 problems
    If you remember, I wrote about it when tests because of x86/x64 problems
    Hia all, So, decided to setup a new client instance and getting fed-up with the tonne of bloatware and cr*p that comes with...
    Replies
    9
    Views
    2K
    Oh no. That's not good news. It looks like this is going to be complicated. OnlineVideos won't let us record, so that isn't going to work on this occasion, but I do like the information you have given on Online Videos because I have tried and failed to understand the wiki on that. I will remember this for future use. In the meantime...
    Oh no. That's not good news. It looks like this is going to be complicated. OnlineVideos won't let us record, so that isn't going...
    Good evening! I am trying to set up a TV channel in the TV server to show my live stream from a local camera. I am clearly doing...
    Replies
    14
    Views
    3K
    Thanks for explaining. I found a passing reference to this here: https://www.team-mediaportal.com/wiki/display/MediaPortal1/HID%20Profiles which I had overlooked in the past. I would find it logical for a created custom profile to be automatically activated, but until that happens, I will try to create a wiki page for the current...
    Thanks for explaining. I found a passing reference to this here...
    I have used custom actions in the "Mapping" section of "HID" since moving to a FLIRC as a remote receiver a couple of years ago...
    Replies
    14
    Views
    2K
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use just to control volume and standby, will no longer put my devices (TV & AVR) to sleep when the HTPC is put in standby. Also when I wake up the HTPC MP closes or crashes (not sure which) as per the example in...
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use...
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use...
    Replies
    0
    Views
    818
    Top Bottom