Bug in BrowserHost

Discussion in 'OnlineVideos' started by belcom, April 2, 2017.

  1. belcom
    • Premium Supporter

    belcom Retired Team Member

    Joined:
    February 27, 2009
    Messages:
    154
    Likes Received:
    40
    Gender:
    Male
    Location:
    Leibnitz
    Ratings:
    +42 / 0
    Home Country:
    Austria Austria
    Hi there!

    Took me a while to figure it out, but in the end I discovered that there is a bug in BrowserHost.
    It only has impact if there is another program with the same bug running.

    In my case it was RevitAccelerator.exe from AutoCAD Revit 2017.



    Both programs try to listen on "net.pipe://localhost/" (Which to my understanding is quite useless... there should be something unique appended)

    So if RevitAccelerator is already running and you try to open something which requires BroserHost, e.g. Netflix, you get a System Exception "Another process is already listening..."

    Besides of this,
    Thanks for this great plugin!

    Best regards,
    belcom.
     
    • Like Like x 1
    • Informative Informative x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Ministerk
    • Super User

    Ministerk Super User

    Joined:
    November 28, 2007
    Messages:
    970
    Likes Received:
    401
    Occupation:
    Systems developer
    Location:
    Uppsala
    Ratings:
    +831 / 3
    Home Country:
    Sweden Sweden
    Show System Specs
    Hi, I don't know if its a bug or not. I have not written the browser player, but I think OnlineVideos/MP and the BrowserHost process i talking with each other through named pipes (remote control commands and logging messages) hence listening to net.pipe://localhost/ is necessary (or?).
     
  4. belcom
    • Premium Supporter

    belcom Retired Team Member

    Joined:
    February 27, 2009
    Messages:
    154
    Likes Received:
    40
    Gender:
    Male
    Location:
    Leibnitz
    Ratings:
    +42 / 0
    Home Country:
    Austria Austria
    I don't know which communication is passed on this pipe, but it should be something like "net.pipe://localhost/mediaportal/BrowserHost/" to make it unique and not to interfere with other things.
     
    • Like Like x 1
  5. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,069
    Likes Received:
    4,761
    Ratings:
    +6,817 / 11
    Home Country:
    Germany Germany
    Show System Specs
    I can confirm the usage of different pipes in OV code:
    upload_2017-4-24_19-59-3.png
    What makes me really wondering are the different URLs registered: while the implementations are using
    net.pipe://localhost/
    while the server part uses
    net.pipe://localhost/WebBrowserPlayerCallbackService

    @offbyone @Brownard @Ministerk any ideas?
     
  6. Ministerk
    • Super User

    Ministerk Super User

    Joined:
    November 28, 2007
    Messages:
    970
    Likes Received:
    401
    Occupation:
    Systems developer
    Location:
    Uppsala
    Ratings:
    +831 / 3
    Home Country:
    Sweden Sweden
    Show System Specs
    I'm only guessing, and I haven't looket at the code and I haven't the possibility to look at it more than in a browser....
    But net.pipe://localhost/WebBrowserPlayerCallbackService calls the WebBrowserPlayerCallbackService service endpoint at net.pipe://localhost/.

    If we would to construct the Uri (at line 14 in the image above) like new Uri("net.pipe://localhost/BrowserHost/") then the service endpoint would be net.pipe://localhost/BrowserHost/WebBrowserPlayerCallbackService" and the application would listen to net.pipe://localhost/BrowserHost/

    Then it should be something like:
    Code (Text):
    1.  
    2. new EndpointAddress("net.pipe://localhost/BrowserHost/WebBrowserPlayerCallbackService") //This is a service endpoint address
    3. new EndpointAddress("net.pipe://localhost/BrowserHost/WebBrowserPlayerService")
    4. new Uri("net.pipe://localhost/BrowserHost/") //This is the base Uri where you bind your service endpoint
    5. new Uri("net.pipe://localhost/BrowserHost/")
    6.  
     
  7. belcom
    • Premium Supporter

    belcom Retired Team Member

    Joined:
    February 27, 2009
    Messages:
    154
    Likes Received:
    40
    Gender:
    Male
    Location:
    Leibnitz
    Ratings:
    +42 / 0
    Home Country:
    Austria Austria
    Sounds good to me :)

    But I would prefer to make it even more unique and "speaking"...
    like "net.pipe://localhost/MediaPortal/OnlineVideos/BrowserHost/"

    Who is going to put it in Mantis?
    I don't have access...
     
    • Request done Request done x 1
  8. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,069
    Likes Received:
    4,761
    Ratings:
    +6,817 / 11
    Home Country:
    Germany Germany
    Show System Specs
    • Thank You! Thank You! x 1
  9. Ministerk
    • Super User

    Ministerk Super User

    Joined:
    November 28, 2007
    Messages:
    970
    Likes Received:
    401
    Occupation:
    Systems developer
    Location:
    Uppsala
    Ratings:
    +831 / 3
    Home Country:
    Sweden Sweden
    Show System Specs
    Sorry, I cannot test at the moment:( I have no working dev environment.
     
    • Like Like x 1
  10. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    I haven't tested this, but it looks fine to me.
    Since a 2.3.1 bugfix release is required anyway, I'll merge that one into master.
     
    • Like Like x 1
  11. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,069
    Likes Received:
    4,761
    Ratings:
    +6,817 / 11
    Home Country:
    Germany Germany
    Show System Specs
    It's already part of MP2.1 final release, so it should work ok :)
     
Loading...

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!