WifiRemote - a tcp remote control server 0.8.3 [2014-07-20] (3 Viewers)

Shukuyen

Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    @Shukuyen
    Mediaportal crashed when coming from resume today. The crash was caused by wifiremote. Any clue to prevent this from happening again?
    Ok my guess what happened here is that WifiRemote tried to publish the Bonjour service while already trying to publish it. That wouldn't normally be a problem, but in this case you may have run in some kind of race condition I guess. Not really sure though. I put some checks in the code to maybe prevent that from happening.

    Are you able to reproduce the crash? Or was that a one-time thing? If you are able to reproduce it I can send you a test dll file if you want to try my fix.

    Also you have a lot of other problems in your MediaPortal.log file ... One that also has to do with WifiRemote is this:
    [WIFI_REMOTE] Could not decrypt config string!
    This happens when WifiRemote reads the username and password you set in the config from your MediaPortal.xml file and tries to decrypt them without success ... Not sure why that happens, but you should be able to fix that by having a look at the WifiRemote section in there.[DOUBLEPOST=1403642207][/DOUBLEPOST]@wilcken @wonkyd @NewbieFromHell Was your error fixed by removing the -1 plugin from the savedPlugins entry in the MediaPortal.xml file?
    @Kevin Penny Were you able to solve your problem? If not please PM me, maybe I can help you
     
    Last edited:

    CypherMK

    Test Group
  • Team MediaPortal
  • March 11, 2009
    1,735
    617
    Netherlands Netherlands
    Country flag
    Ok my guess what happened here is that WifiRemote tried to publish the Bonjour service while already trying to publish it. That wouldn't normally be a problem, but in this case you may have run in some kind of race condition I guess. Not really sure though. I put some checks in the code to maybe prevent that from happening.

    Are you able to reproduce the crash? Or was that a one-time thing? If you are able to reproduce it I can send you a test dll file if you want to try my fix.

    Also you have a lot of other problems in your MediaPortal.log file ... One that also has to do with WifiRemote is this:
    [WIFI_REMOTE] Could not decrypt config string!
    This happens when WifiRemote reads the username and password you set in the config from your MediaPortal.xml file and tries to decrypt them without success ... Not sure why that happens, but you should be able to fix that by having a look at the WifiRemote section in there.[DOUBLEPOST=1403642207][/DOUBLEPOST]@wilcken @wonkyd @NewbieFromHell Was your error fixed by removing the -1 plugin from the savedPlugins entry in the MediaPortal.xml file?
    @Kevin Penny Were you able to solve your problem? If not please PM me, maybe I can help you
    Thanks for looking into this.

    This was a random crash. I remember having these crashes before, but they don't happen that often.

    What should I do? Test your fix anyway, or wait for another crash?
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    Thanks for looking into this.

    This was a random crash. I remember having these crashes before, but they don't happen that often.

    What should I do? Test your fix anyway, or wait for another crash?
    I will try to get a new version out with this fix and one for the configuration xml crash the other guys were reporting (plugins with the same plugin id, btw) soon. If it doesn't happen all the time I guess you can just wait and update :)
     

    Eggert

    MP Donator
  • Premium Supporter
  • May 23, 2005
    70
    6
    Hi,

    is there any way to log all the communications between the client and wifiremote?
    I just had a look in the Mediaportal.log but did only find translated messages and not the "raw" ones.

    Thanks!
    Eggert
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    Hi,

    is there any way to log all the communications between the client and wifiremote?
    I just had a look in the Mediaportal.log but did only find translated messages and not the "raw" ones.

    Thanks!
    Eggert
    Hi eggert,

    Only by compiling the plugin yourself and enabling the log statements in Core/SocketServer.cs lines 245 and 519.
     

    Eggert

    MP Donator
  • Premium Supporter
  • May 23, 2005
    70
    6
    Hi Shukuyen,

    thanks for the info!
    I'll try to get this done, never compiled anything before :D

    Eggert
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    Let me know if you have any problems. When I find the time I can send you a dll with the changes.
     

    Eggert

    MP Donator
  • Premium Supporter
  • May 23, 2005
    70
    6
    Hi Shukuyen,

    I found a simplier way (for me) to get the log into the client software.
    I am just trying to understand what happens. I found a message which does not start with "Type" which caused my client to have unexpected errors.
    I thought every message is defined by the "Type".

    Do you know what's this about?

    Code:
    {"MediaType":"music","MpExtId":"-1","MpExtMediaType":1,"MpExtProviderId":4,"ItemId":-1,"Album":"","AlbumArtist":"","Artist":"","BitRate":0,"BitRateMode":"","BPM":0,"Channels":0,"Codec":"","Comment":"","Composer":"","Conductor":"","DateTimeModified":"\/Date(-62135596800000+0100)\/","DateTimePlayed":"\/Date(-62135596800000+0100)\/","DiscId":0,"DiscTotal":0,"Duration":0,"Genre":"","Lyrics":"","Rating":0,"SampleRate":0,"TimesPlayed":0,"Title":"","Track":0,"TrackTotal":0,"URL":"","WebImage":"","Year":0,"ImageName":""}
    Thanks!
    Eggert
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    299
    Lake of Constance
    Germany Germany
    Hm that is part of the "nowplaying music" message and should not be a message sent by Wifiremote on its own.
    It should always be inside the "MediaInfo" property of a message with type nowplaying.

    Are you sure you are getting this standalone?
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 3)

    OP Similar threads Forum Replies Date
    R Problem with MP1 and WifiRemote Skins and Plugins Installer (MPEI) 8
    D PS3 Bluetooth Remote Remotes 1
    henrysinn Remote - W10 Gyro by Pepper Jobs General 8
    G Remote control suggestions? MediaPortal 1 Talk 16
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    F MCE Remote has no focus General 6
    TLD Can not watch tv from remote clients Television (MyTV frontend and TV-Server) 19
    R Problems accessing MySQL database remotely MediaPortal 1 Talk 0
    D Full fuctional htpc - Silverstone Case - Digital Devices Cine S2 - SSD - IR Remote For Sale 1
    N Play a TV recording needs a double selection - twice ok on remote Television (MyTV frontend and TV-Server) 2
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    S Remote button to change audio and subtitle on / off General 10
    S Problem with Remote Control One-for-all Streamer Newcomers Forum 6
    brena MCE Remote Disable Volume Mapping Input / Output interfaces 0
    T How to add missing buttons IR Server Suite (IRSS) 0
    P MP2 TV Server crashes when starting - throws error remoting exception General 2
    A FB funktioniert plötzlich nicht mehr korrekt Allgemeines Supportforum 0
    A Let TV Server sleep whilst remote client active General Support 0
    B TV Remote Watch / Listen Media 0
    B iPhone app for MCE remote General Support 2
    T Can Emprex 3009ARF III MCE Remote Control be used to toggle Fullscreen/Windowed mode?? Remotes 7
    G [solved] Mini EPG purpose? General 2
    N [Proposal] Make text input using remote control easier MediaPortal 2 4
    S Mediaportal 1.22 Pre-Release remote live-tv freezes MediaPortal 1.22 Pre Release 0
    N [Proposal] Make text input possible with remote control in SMS style MediaPortal 2 1
    Similar threads

























    Top Bottom