SplashScreen hangs when no audio device available (1 Viewer)

peque

Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    859
    98
    Spain Spain
    Country flag
    • Thread starter
    • Moderator
    • #1

    MediaPortal Version: 1.4.0

    Description
    Quite easy to explain. If I start MP with my AVR off (so no audio device in my system), Splashscreen hangs. This happens every day to me, as I've got my HTPC programmed to reboot itself each morning at 5.00 am. Obviously, at that time my TV+AVR are off. When I switch them on I find my MP completely freezed, and Splashscreen "not responding" in windows procces list. I can reproduce it also starting MP connecting to my HTPC through remote desktop (AVR off), so it's not related to the "start on boot" feature in MP. If I start MP with AVR on, there's no problem.

    Splashscreen always hangs, but sometimes it doesn't prevent MP to finally start and even I can use it. Also I've tested fullscreen splashscreen also. No difference. I had no problems with 1.3.0 (I've upgraded to 1.4.0 two days ago).

    This seems related to this bug report:

    https://forum.team-mediaportal.com/threads/splash-screen-still-running.120444/

    I can see this entry in my mediaportal.log:

    Code:
    [2013-08-06 09:01:22,680] [Log	] [BassAudio] [INFO ] - BASS: Initialize BASS environment ...
    [2013-08-06 09:01:22,701] [Log	] [BassAudio] [INFO ] - BASS: Loading Settings
    [2013-08-06 09:01:22,709] [Log	] [MPMain  ] [ERROR] - Exception: System.InvalidOperationException: Operación no válida dado el estado actual del objeto.
      en MediaPortal.Mixer.Mixer.Open(Int32 mixerIndex, Boolean isDigital)
      en MediaPortal.Player.VolumeHandler..ctor(Int32[] volumeTable)
      en MediaPortal.Player.VolumeHandler.CreateInstance()
      en MediaPortal.Player.VolumeHandler.get_Instance()
      en MediaPortalApp.OnStartup()
      en MediaPortal.D3D.OnLoad(Object sender, EventArgs e)
      en System.Windows.Forms.Form.OnLoad(EventArgs e)
      en System.Windows.Forms.Form.OnCreateControl()
      en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
      en System.Windows.Forms.Control.CreateControl()
      en System.Windows.Forms.Control.WmShowWindow(Message& m)
      en System.Windows.Forms.Control.WndProc(Message& m)
      en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
      en System.Windows.Forms.ContainerControl.WndProc(Message& m)
      en System.Windows.Forms.Form.WmShowWindow(Message& m)
      en System.Windows.Forms.Form.WndProc(Message& m)
      en MediaPortalApp.WndProc(Message& msg)  Message: Operación no válida dado el estado actual del objeto.  Site  : Void Open(Int32, Boolean)  Source : Core  Stack Trace:	 en MediaPortal.Mixer.Mixer.Open(Int32 mixerIndex, Boolean isDigital)
      en MediaPortal.Player.VolumeHandler..ctor(Int32[] volumeTable)
      en MediaPortal.Player.VolumeHandler.CreateInstance()
      en MediaPortal.Player.VolumeHandler.get_Instance()
      en MediaPortalApp.OnStartup()
      en MediaPortal.D3D.OnLoad(Object sender, EventArgs e)
      en System.Windows.Forms.Form.OnLoad(EventArgs e)
      en System.Windows.Forms.Form.OnCreateControl()
      en System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
      en System.Windows.Forms.Control.CreateControl()
      en System.Windows.Forms.Control.WmShowWindow(Message& m)
      en System.Windows.Forms.Control.WndProc(Message& m)
      en System.Windows.Forms.ScrollableControl.WndProc(Message& m)
      en System.Windows.Forms.ContainerControl.WndProc(Message& m)
      en System.Windows.Forms.Form.WmShowWindow(Message& m)
      en System.Windows.Forms.Form.WndProc(Message& m)
      en MediaPortalApp.WndProc(Message& msg)
    ... I assume MP doesn't see any audio device in my system, and then hangs BASS inicialization startup process.

    Steps to Reproduce:
    Just Start MP with no audio device in windows.
     
    Last edited by a moderator:

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    859
    98
    Spain Spain
    Country flag
    • Thread starter
    • Moderator
    • #2
    No one confirms? I would say it's quite a common scenario. Many of us use an AVR with HDMI inputs currently, and they're not 100% of the time ON... If you reload MP with AVR off (and no other audio device in system), it should hang Bass loading... ¿?
     
    Last edited:

    Owlsroost

    Development Group
  • Team MediaPortal
  • October 28, 2008
    5,539
    5,037
    Cambridge
    United Kingdom United Kingdom
    Country flag
    Just tried it on the dev laptop (by disabling all audio playback devices) - splashscreen hangs, but MP starts up and is not frozen.

    From the log:

    Code:
    [2013-08-07 13:39:41,850] [Log	] [MPMain  ] [INFO ] - Main: Initializing volume handler
    [2013-08-07 13:39:42,465] [Log	] [BassAudio] [INFO ] - BASS: Initialize BASS environment ...
    [2013-08-07 13:39:42,673] [Log	] [MPMain  ] [ERROR] - Exception: System.Runtime.InteropServices.COMException (0x80070490): Element not found. (Exception from HRESULT: 0x80070490)
      at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      at MediaPortal.Mixer.AEDev..ctor()
      at MediaPortal.Mixer.Mixer.Open(Int32 mixerIndex, Boolean isDigital)
      at MediaPortal.Player.VolumeHandler..ctor(Int32[] volumeTable)
      at MediaPortal.Player.VolumeHandler.CreateInstance()
      at MediaPortal.Player.VolumeHandler.get_Instance()
      at MediaPortalApp.OnStartup()
      at MediaPortal.D3D.OnLoad(Object sender, EventArgs e)
      at System.Windows.Forms.Form.OnLoad(EventArgs e)
      at System.Windows.Forms.Form.OnCreateControl()
      at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
      at System.Windows.Forms.Control.CreateControl()
      at System.Windows.Forms.Control.WmShowWindow(Message& m)
      at System.Windows.Forms.Control.WndProc(Message& m)
      at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
      at System.Windows.Forms.ContainerControl.WndProc(Message& m)
      at System.Windows.Forms.Form.WmShowWindow(Message& m)
      at System.Windows.Forms.Form.WndProc(Message& m)
      at MediaPortalApp.WndProc(Message& msg)  Message: Element not found. (Exception from HRESULT: 0x80070490)  Site  : Void ThrowExceptionForHRInternal(Int32, IntPtr)  Source : mscorlib  Stack Trace:	at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
      at MediaPortal.Mixer.AEDev..ctor()
      at MediaPortal.Mixer.Mixer.Open(Int32 mixerIndex, Boolean isDigital)
      at MediaPortal.Player.VolumeHandler..ctor(Int32[] volumeTable)
      at MediaPortal.Player.VolumeHandler.CreateInstance()
      at MediaPortal.Player.VolumeHandler.get_Instance()
      at MediaPortalApp.OnStartup()
      at MediaPortal.D3D.OnLoad(Object sender, EventArgs e)
      at System.Windows.Forms.Form.OnLoad(EventArgs e)
      at System.Windows.Forms.Form.OnCreateControl()
      at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
      at System.Windows.Forms.Control.CreateControl()
      at System.Windows.Forms.Control.WmShowWindow(Message& m)
      at System.Windows.Forms.Control.WndProc(Message& m)
      at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
      at System.Windows.Forms.ContainerControl.WndProc(Message& m)
      at System.Windows.Forms.Form.WmShowWindow(Message& m)
      at System.Windows.Forms.Form.WndProc(Message& m)
      at MediaPortalApp.WndProc(Message& msg)
    [2013-08-07 13:39:43,086] [Log	] [MPMain  ] [DEBUG] - Main: WM_SIZE (SIZE_RESTORED: 1280x720)
    [2013-08-07 13:39:43,087] [Log	] [MPMain  ] [INFO ] - GUIMusicPlaylist: Default Playlist loaded
    [2013-08-07 13:39:43,242] [Log	] [BassAudio] [INFO ] - BASS: Loading Settings
    [2013-08-07 13:39:43,832] [Log	] [MPMain  ] [INFO ] - Visualization Window: Loading skin settings...
    ....so basically I can confirm there is some sort of problem.

    @Developers @Testers - What should happen here ? Should MP continue to load if there is no audio device available, or just quit at this point (which is what some other multimedia software does) ?
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    859
    98
    Spain Spain
    Country flag
    • Thread starter
    • Moderator
    • #4
    Yes, I can confirm sometimes MP starts and doesn't freeze (is SplasScreen that keeps not responding in windows process list)... If you leave MP open, maybe after some minutes it becomes unresponsive.
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,571
    8,218
    New Zealand New Zealand
    Country flag
    I vote just quit. If there is no audio device available we would have issues with even little things like menu sounds. MP is not designed to run without audio... so I suggest we don't make it more complex than necessary.
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    859
    98
    Spain Spain
    Country flag
    • Thread starter
    • Moderator
    • #6
    The problem are HDMI audio devices, that appear/dissapear whenever you switch on/off your AVR/TV, even while MP is running (and there's no issue with that)... :(
     
    Last edited:

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    859
    98
    Spain Spain
    Country flag
    • Thread starter
    • Moderator
    • #8
    We all agree HDMI on/off stuff in Win7 is a serious problem... but... Do we, users, have an alternative? We can't leave AVR/TV On 24x7 (while HTPC IS)...
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,749
    New Zealand
    New Zealand New Zealand
    Country flag
    There are some hardware hacks/tricks that are designed to get around similar issues to this.

    They are called:
    Gefen HDMI Detective
    Dr HDMI
    "HDMI Pin 19 trick"
    Using an always powered on splitter with it's own EDID handshake etc.

    I can't really speak for the success rate of above as it's very situational.
     
    Last edited:

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

    OP Similar threads Forum Replies Date
    RoChess Splashscreen MePo version Titan Skin Feedback 8
    S SMPEditor crashes after 100% splashscreen download StreamedMP 5
    M MovingPictures: Hang at retrieving details (connection fails) ? Moving Pictures 23
    B loading input devices hang General Support 3
    horned_reaper [solved] Music playback hangs General Support 58
    joecrow Win 10 crash, hang and freeze with USB Tuner. General Support 13
    M [solved] Setup Issue - Hanging on Starting Services General 3
    A Hanging in Recorded TV menu General Support 1
    C MP hangs after suspend or TV off General Support 72
    E Hanging on Initializing Directx General Support 6
    Golf4 TV-Records werden als Audio-Files importiert ? Allgemeines Support- und Diskussionsforum 0
    W [solved] Incorrect audio being reported Moving Pictures 4
    404 [solved] Live TV...video and audio freeze General Support 20
    ninja 12 Audio dropouts with Dolby / DTS watch/edit Videos 12
    bta489 [solved] DVB-T2 Recordings: Sometimes no Audio after muxing with mkvmerge Tools and other software 2
    T [solved] MP2 Switch off visualisation when listening to audio....PLEASE!!! General 23
    azzuro [fixed] [WIP MP2.3] - Audio files not imported to MP MediaPortal 2 18
    S Remote button to change audio and subtitle on / off General 10
    F Audio render and font error in my logs General Support 2
    R [solved] Command / Shortcut for changing subtitles or audio Archive 5
    K Multichannel audio and subtitles for TV not properly supported General Support 4
    Glith Audio out of sync after pause. Rewind 15sec gets it into sync again. MediaPortal 1 Talk 0
    C ARC Audio Renderer Changer: wo kann man es konfigurieren? Video & DVD 15
    joecrow No Audio after MP Start/Resume from Sleep General Support 0
    C Ability to browse videos and audio by folder General 2
    Similar threads

























    Top Bottom