[confirm] - MP always crashes after wakeup from standby when starting a recorded file | Page 2

Discussion in '1.7.0 Pre Release' started by rogerleifert, March 2, 2014.

  1. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,296
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    RC (Remote control) ?
    So it act like you want to resume multiple times ?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. elliottmc
    • Premium Supporter

    elliottmc Retired Team Member

    Joined:
    August 7, 2005
    Messages:
    14,927
    Likes Received:
    4,011
    Gender:
    Male
    Location:
    Cardiff, UK
    Ratings:
    +5,503 / 13
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Thanks. Which RC do you have? Maybe there is a way to configure it.
     
  4. rogerleifert
    • Premium Supporter

    rogerleifert Retired Team Member

    Joined:
    April 22, 2009
    Messages:
    239
    Likes Received:
    57
    Gender:
    Male
    Location:
    Aachen
    Ratings:
    +78 / 1
    Home Country:
    Germany Germany
    Show System Specs
    Well, it's not that easy. As you can see from my system-specs I am using the Zalman HD160-XT case which has a proprietary IR-receiver, IR-RC and IR-control-software ("Zini"). The IR-codes from the Zalman IR-RC were mapped to my Logitech Harmony 885 which controls all in all 10 devices in my Stereo-/Video-Setup.
    It is able to send commands in any imaginable combination as well as repeating some commands after a delay etc.

    Now the wakeup-command from standby is a kind of "Power-On" command and works normally.
    That would normally be followed by the "Mediaportal.exe" command with a safety-delay of a few seconds.
    But since upgrading from WinXP/32bit to Win7/64bit I have problems with the proprietary "Zini" control software which translates IR-commands to nearly any desired and configurable action (combination of up to 3 key-presses, direct execution of an .exe like Mediaportal.exe, internal commands like Standby etc.)

    Formerly I had to send the Power-On command a second time to execute the "Mediaportal.exe"! Strange isn't it.
    That must have something to do with that the Zini control software sometimes being not in focus and then not or not correctly reacting to IR-commands.
    So it's really a bit confusing. However after that the IR-RC worked perfectly with the Zini-software once MP was started (and in focus, because Zini recognizes which program is in focus and you can map different commands to different programs being in focus).

    Perhaps the clean solution would be to install Win7/32bit instead of 64bit. I wish I never had installed the 64bit version because one suspicion is that the problems with the Zini-software originate from having to run it in WinXP-compatibility mode to work at all.

    Anyway. After I recognized that manually starting MP after wakeup seemed to make the problem go away, I deleted the second Power-On command, gave the system a 20-second delay after wakeup before starting MP with the "Mediaportal.exe" command. The only annoyance was that MP now does not always start automatically after Power-up. But at least I thought that would make the crashes go away.

    Yesterday everything went well, but today the old problem reappeared at least once :(

    So everything back to start. I am really confused and it probably sounds as confusing to you.

    Perhaps I will now try to directly start the Watchdog.exe with MP in debug mode with the IR-RC instead of the Mediaportal.exe and try it at least 10 times directly after wakeup. That could at least narrow down the problem a bit.
    We'll see....

    Kind regards

    Roger
     
  5. rogerleifert
    • Premium Supporter

    rogerleifert Retired Team Member

    Joined:
    April 22, 2009
    Messages:
    239
    Likes Received:
    57
    Gender:
    Male
    Location:
    Aachen
    Ratings:
    +78 / 1
    Home Country:
    Germany Germany
    Show System Specs
    Now I was able to catch the MP-crash in Debug-mode even with the "cleaned up" RC-commands.
    See attached logs

    Kind regards

    Roger
     
    • Thank You! Thank You! x 1
  6. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,296
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    Yep it's related to Audio Device not ready.
    In fact in MP on wakeup, MP start/try to init Audio device :
    It failed :
    Code (Text):
    1. 2014-03-09 15:26:58,328] [Log    ] [MPMain   ] [ERROR] - Exception: System.InvalidOperationException: Mixer.GetControl.2
    2.    bei MediaPortal.Mixer.Mixer.GetControl(MixerComponentType componentType, MixerControlType controlType)
    3.    bei MediaPortal.Mixer.Mixer.Open(Int32 mixerIndex, Boolean isDigital)
    4.    bei MediaPortal.Player.VolumeHandler..ctor(Int32[] volumeTable)
    5.    bei MediaPortal.Player.VolumeHandler.CreateInstance()
    6.    bei MediaPortal.Player.VolumeHandler.get_Instance()
    7.    bei MediaPortalApp.OnStartup()
    8.    bei MediaPortal.D3D.OnLoad(Object sender, EventArgs e)
    9.    bei System.Windows.Forms.Form.OnLoad(EventArgs e)
    10.    bei System.Windows.Forms.Form.OnCreateControl()
    11.    bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    12.    bei System.Windows.Forms.Control.CreateControl()
    13.    bei System.Windows.Forms.Control.WmShowWindow(Message& m)
    14.    bei System.Windows.Forms.Control.WndProc(Message& m)
    15.    bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    16.    bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
    17.    bei System.Windows.Forms.Form.WmShowWindow(Message& m)
    18.    bei System.Windows.Forms.Form.WndProc(Message& m)
    19.    bei MediaPortalApp.WndProc(Message& msg)  Message: Mixer.GetControl.2  Site   : MixerControlDetails GetControl(MediaPortal.Mixer.MixerComponentType, MediaPortal.Mixer.MixerControlType)  Source : Core  Stack Trace:     bei MediaPortal.Mixer.Mixer.GetControl(MixerComponentType componentType, MixerControlType controlType)
    20.    bei MediaPortal.Mixer.Mixer.Open(Int32 mixerIndex, Boolean isDigital)
    After that, in other part of code, i have add a double check when connection Audio Pin :
    Code (Text):
    1.               try
    2.               {
    3.                 if (pinName == "Audio")
    4.                 {
    5.                   try
    6.                   {
    7.                   #pragma warning disable 168
    8.                     VolumeHandler vh = VolumeHandler.Instance;
    9.                   #pragma warning restore 168
    10.                     // vh.Volume = 19660500 that means Audio endpoint device are not available.
    11.                     if (vh.Volume == 19660500) // Check if new audio device is connected
    12.                     {
    13.                       VolumeHandler.Dispose();
    14.                     #pragma warning disable 168
    15.                       vh = VolumeHandler.Instance;
    16.                     #pragma warning restore 168
    17.                     }
    18.                     if (vh.Volume != 19660500)
    19.                     {
    20.                       hr = graphBuilder.Render(pins[0]);
    21.                     }
    22.                   }
    23.                   catch (Exception exception)
    24.                   {
    25.                     Log.Warn("DirectShowUtil: Could not initialize volume handler (don't connect Audio Pin) : ",
    26.                              exception.Message);
    27.                   }
    28.                 }
    29.                 else
    30.                 {
    31.                   hr = graphBuilder.Render(pins[0]);
    32.                 }
    33.               }
    It failed too :

    log line :
    Code (Text):
    1. [2014-03-09 15:27:26,193] [Log    ] [MPMain   ] [WARN ] - DirectShowUtil: Could not initialize volume handler (don't connect Audio Pin) :
    So it's fully related to audio device not init and can't be init even after a while it seems.

    Can you test next time to play something on your PC before start to play something in MP (but let MP running) ?

    Thanks :)
     
  7. rogerleifert
    • Premium Supporter

    rogerleifert Retired Team Member

    Joined:
    April 22, 2009
    Messages:
    239
    Likes Received:
    57
    Gender:
    Male
    Location:
    Aachen
    Ratings:
    +78 / 1
    Home Country:
    Germany Germany
    Show System Specs
    Did just that.
    Wokeup MP from standby and started MP.
    Then (before playing a recorded TV-file) I started VLC mediaplayer and played a .ts-file.
    No problem with VLC.
    Sound is OK.
    Then tried to play a recorded TV-file with MP.
    And boom. Same crash as before.
    I can now always predict when MP will crash because the startup-time of MP is much slower than normal before a crash.
    Logs attached
     
  8. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,296
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    Yep the slowdown time is surely related because MP failed to init audio device. :)
    Can you try something else than vlc (i know audio work but like it maybe not use the same directx level lol (i'm not 100% sure) but can you try mpc-hc for example that will use lav audio) ?

    Thanks for log, i can try to add log in bin to detect if directshowutil try to really init the audio device when it failed the first time.
     
  9. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,296
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    Can you try with attached dll ? :)
    Try to use MP as normal to see if all is ok and then try to standby/wakeup :)
    It have more log (set as error) to try to see what happen :)
    Thanks :)
     
  10. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,296
    Likes Received:
    6,249
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,270 / 9
    Home Country:
    France France
    Show System Specs
    New files :) previous one has not all log and this one try to catch more exception.
    Try with this v2 dll with your current setting, after that if you can reproduce the issue, try to set MP to Volume Master and not Wave :

    upload_2014-3-9_21-54-27.png
     

    Attached Files:

  11. rogerleifert
    • Premium Supporter

    rogerleifert Retired Team Member

    Joined:
    April 22, 2009
    Messages:
    239
    Likes Received:
    57
    Gender:
    Male
    Location:
    Aachen
    Ratings:
    +78 / 1
    Home Country:
    Germany Germany
    Show System Specs
    With your dll I can start playing a recorded .ts-file, but I cannot stop it anymore.
    Is this intended?
    Of course starting is sufficient to get the crash :)

    Edit: Only just saw your V2-dll.
    Will try that one
     
    • Thank You! Thank You! x 1
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!