MP 1 Hangs on resume fro sleep (TV) (1 Viewer)

joecrow

Test Group
  • Team MediaPortal
  • August 9, 2012
    1,933
    1,382
    Home Country
    Germany Germany
    Country flag
    When I finish watching TV I always stop the playback and exit to the home gui before putting the HTPC to sleep and have no problems. I currently have some non computer savvy guests staying with me who like to watch TV, I have done my best to give them instructions on using the HTPC but they frequently simply hit the standby button on the remote without stopping and closing TV, with the result on resume from sleep that MP is hung either with a black screen or a frozen still of the TV program. The only way out is to close MP1 using the Taskmanager or reboot, Watchdog is no help. I do appreciate that failing to stop playback prior to putting the HTPC to sleep and expecting a full recovery may be unreasonable but I do not think a complete hang is a reasonable result either.
    Is this a bug (MP 1.25), my setup or some other issue.
    Logs attached.

    Update:-
    The problem seems to be related to the use of Madvr, selecting the option "Use EVR for TV" in MP Config can be used as a workaround to avoid the failure.
     

    Attachments

    • MediaPortalLogs_14_07_20__11_29.zip
      1.7 MB · Views: 0
    Last edited:

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,310
    1,403
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    When I finish watching TV I always stop the playback and exit to the home gui before putting the HTPC to sleep and have no problems.
    Me too! (y) :)

    they frequently simply hit the standby button on the remote without stopping and closing TV, with the result on resume from sleep that MP is hung either with a black screen or a frozen still of the TV program.
    I occasionally do this. As well as using MP, I also sometimes watch live TV using the TV's tuner :eek:. I switch it off by pressing the OFF button on my Logitech Harmony 650 remote, which switches everything off. But if I am actually using MP to watch TV, the OFF button does not stop live TV playing, with the result that my system never hibernates (it runs continuously).

    To avoid my HTPC running all night, I have set up another AutoHotKey script to use with my hibernation controller. When invoked, this script sends the keystrokes for STOP, HOME, and EXIT (ALT_F4) (the script contains a bit more than this):
    • STOP stops playback of live TV, video, radio, music.
    • HOME displays the "Home" panel (required because there is a config setting that prevents sleep or hibernation if not on the "Home" panel).
    • EXIT (ALT_F4) either exits MP, or displays the exit pop-up (depends on your remote control config). If your remote control config displays the "Exit" pop-up in response to ALT_F4, you need to send ENTER too, in order to select the first item on the pop-up.
    The problem now is how to cause this script to be invoked when the system is about to sleep or hibernate. I use my weird hibernation controller, but in the absence of that, you might be able to use PowerScheduler to invoke a progam when the system is about to sleep or hibernate. It is the Run command on system power state change on the "Advanced" tab in PowerScheduler config (you need to be in expert mode).

    The catch here is that the command needs to have admin authority, and AutoHotKey scripts do not have admin authority. The way that I think that you can get around this is to use "Task Scheduler" to set up a "run on request" task, and create a shortcut on the desktop to invoke it. The task runs the AutoHotKey script, and the reason this works (I think) is that you can select a setting on the task properties panel that allows the task to run with admin authority. So:
    • When the system is about to sleep or hibernate, PowerScheduler invokes the desktop shortcut.
    • The desktop shortcut starts the task.
    • The task runs the AutoHotKey script with admin authority.
    • The script sends the commands to stop playback and close MP.
    Well... it might work o_O (I have not actually tried it :D).

    -- from CyberSimian in the UK
     

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    1,933
    1,382
    Home Country
    Germany Germany
    Country flag
    Thanks for that but it does seem to me that Madvr is the issue here, I guess it is not as robust as the EVR or does not get shut down as elegantly, I also suspect, though I have not tried it, that the result would be the same for playback of any video, i.e. not just TV.
    Given that German TV is now all transmitted as full HD, the need to use Madvr for upscalling is no longer there, EVR looks really good too.
    I think for now I will keep the option to use EVR for tv enabled as a workaround with the added bonus that I can use the D3D11 Hardware Decoder in LAV which seems more efficient but has a problem with Madvr and TV channel changing, but no problem with EVR.:)
     

    Users who are viewing this thread

    Similar threads

    For me not ;) -- Tapatalk | WBR, ajs
    For me not ;) -- Tapatalk | WBR, ajs
    Description: After a resume from sleep the Radio Time plugin will no longer play any radio stations and gives the error shown in...
    Replies
    10
    Views
    1K
    Hi, I have exactly the same problem. I have attached the log of a session where I start a movie (August 6, 19:31:16), then it stops in a split second, then I start it again (at 19:31:24) and then it starts normal..
    Hi, I have exactly the same problem. I have attached the log of a session where I start a movie (August 6, 19:31:16), then it stops...
    Resuming playback has been an issue for me and has been an issue for many versions of MP. After stopping a program and then wanting...
    Replies
    4
    Views
    853
    Hello guy's please can you try in this order : 1. - try to use official mediainfo tool : https://mediaarea.net/download/binary/mediainfo-gui/20.08/MediaInfo_GUI_20.08_Windows_i386_WithoutInstaller.7z unzip and open how many times for opening ? if fast please test next stuff. 2. (do backup of your db and thumbs folder first)...
    Hello guy's please can you try in this order : 1. - try to use official mediainfo tool ...
    Hi all, Not sure where this should go, as it encompasses a couple of issues, I have been having, for some time, over multiple MP...
    Replies
    25
    Views
    4K
    Thanks I'm thinking to remove that settings, it seems to do more issues than solving it. Or maybe set it to false on fresh install. Like we have done reworks for audio renderer detection maybe after all we can remove it lol Tapatalk
    Thanks I'm thinking to remove that settings, it seems to do more issues than solving it. Or maybe set it to false on fresh install...
    MediaPortal Version: 1.21 Description This may be a further symptom of the bug #3 reported previously here, but with much more...
    Replies
    5
    Views
    1K
    I am still having problems with no audio after starting (including auto-start on reboot) MP or resuming from sleep. It only occurs if I enable the "Hide Windows Volume OSD" setting, I would like to have both the Windows and MP volume OSDs hidden as I use the HDMI volume control in the CEC Remote plugin which shows my AVR volume OSD...
    I am still having problems with no audio after starting (including auto-start on reboot) MP or resuming from sleep. It only occurs...
    I am still having problems with no audio after starting (including auto-start on reboot) MP or resuming from sleep. It only occurs...
    Replies
    0
    Views
    582
    Top Bottom