MP2 - V2.1 After changing audio device (WASAPI exclusive) MP2 crashed (2 Viewers)

Status
Not open for further replies.

Helios61

Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    871
    59
    NRW
    Home Country
    Germany Germany
    Country flag
    Hi,
    i've noticed, that MP2 crashed to desktop, if you try to play an audiofile after changing WASAPI exclusiv audio device.

    Requirement:
    HDMI connection <-> PC <-> AVR <-> TV

    Steps to reproduce.
    1. Turn on AVR & TV, in my case then TV is audio device in Windows Audio Settings
    2. Configure TV as WASAPI exclusive Audio device in MP2
    3. Play some music (it should work fine)
    4. Stop playback and exit MP2
    5. Turn off TV -> now AVR (Yamaha RX-V679) is audio device with the same audio properities in Windows as LG-TV.
    6. Start MP2 and change Audio device settings to AVR.
    7. Try to playback some musicfiles -> Playback fails and MP2 crashed to desktop with these error messages ->
    snip_20170104160717.png


    Related log entry ->

    Code:
    [2017-01-04 16:05:46,846] [22416  ] [Thread9  ] [INFO ] - BassLibrary: Loading player add-ins from 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\BassLibraries\Plugins'
    [2017-01-04 16:05:46,865] [22435  ] [Thread9  ] [INFO ] - BassLibrary: Loaded 16 audio decoders.
    [2017-01-04 16:05:47,008] [22579  ] [Thread9  ] [INFO ] - BassLibrary: Stream info: FLAC, 44100Hz, Stereo, 16bit
    [2017-01-04 16:05:47,029] [22600  ] [Thread9  ] [INFO ] - BassLibrary: Stream content: PCM
    [2017-01-04 16:05:47,029] [22600  ] [Thread9  ] [INFO ] - BassLibrary: Preparing for playback: 'BassAudioFileInputSource: D:\ToDo\John Lee Hooker (1962) - The Big Soul of John Lee Hooker\05. I Love Her.flac'
    [2017-01-04 16:05:47,086] [22656  ] [BassPlay ] [INFO ] - BassLibrary: Initializing WASAPI device 'RX-V679 (Intel(R) Display-Audio)' (device no 8)
    [2017-01-04 16:05:47,089] [22659  ] [BassPlay ] [INFO ] - BassLibrary: BASS: WASAPI exclusive mode not directly supported for samplerate of 44100 and 2 channels
    [2017-01-04 16:05:47,091] [22662  ] [BassPlay ] [ERROR] - Exception in player main thread
    System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> MediaPortal.Extensions.BassLibraries.BassLibraryException: Error calling function BASS_WASAPI_Init(): BASS_ERROR_DRIVER
       bei MediaPortal.UI.Players.BassPlayer.OutputDevices.WASAPIOutputDevice.SetInputStream(BassStream stream, Boolean passThrough)
       bei MediaPortal.UI.Players.BassPlayer.PlayerComponents.OutputDeviceManager.SetInputStream(BassStream stream, Boolean passThrough)
       bei MediaPortal.UI.Players.BassPlayer.PlayerComponents.PlaybackSession.Initialize(IInputSource inputSource)
       bei MediaPortal.UI.Players.BassPlayer.PlayerComponents.PlaybackSession.Create(Controller controller)
       bei MediaPortal.UI.Players.BassPlayer.PlayerComponents.PlaybackProcessor.MoveToNextInputSource_Sync()
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
       bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
       bei System.Delegate.DynamicInvokeImpl(Object[] args)
       bei MediaPortal.UI.Players.BassPlayer.Controller.PlayerThreadMain()

    It is possible to configure a DS Sound device and playback music, but changing the WASAPI device isn't possible here.

    Bet regards
    Helios
     
    Last edited:

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    871
    59
    NRW
    Home Country
    Germany Germany
    Country flag
    Unfortunately it is impossible now to change WASAPI daudio device. I have to reinstall MP2 completely :confused::confused:
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Home Country
    Germany Germany
    Country flag
    Is this still happening now that you have reinstalled?
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,361
    3,803
    Lehmden
    Home Country
    Germany Germany
    Country flag
    Hi.
    I can not confirm this. Tried it on both clients (Asrock H97M-Pro4 with Intel i5 4590 and Asrock q1900 itx with Intel J1900) without any crashes or other issues. So it looks as if it is something specific to your environment. Maybe another program using WASAPI too is causing this. I don't have any other audio software excerpt for MediaMonkey and mp3tag (both on the "big" system only) installed. And afaik both are NOT using WASAPI. But it's just a guess.
    Your error messages are two different things. The log is telling about an exception in BASS player and the popups are telling about not working logging function.

    Also it may be hard, but a clean Windows install with MP2 only could be very useful to track this down.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Home Country
    Germany Germany
    Country flag
    I can not confirm this.
    Thanks. I have not been able to reproduce the problem at my side either.

    Also it may be hard, but a clean Windows install with MP2 only could be very useful to track this down.
    Helios could consider installing a VM (VMWare is free). A Windows 7 installation will not be activated but functional for 30 days, so enough to test.
     

    Helios61

    Retired Team Member
  • Premium Supporter
  • January 30, 2008
    4,587
    871
    59
    NRW
    Home Country
    Germany Germany
    Country flag
    Also it may be hard, but a clean Windows install with MP2 only could be very useful to track this down.
    I will never do a complete clean install of Win10 for MP2 testing. MP2 is for the moment complete useless for me. Changing Audo devices is no problem in all other software, i use (MP1, MusicBee, Foobar2000). There are a lot of issues in musicpart have to be fixxed, not my Windows installation.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,361
    3,803
    Lehmden
    Home Country
    Germany Germany
    Country flag
    As you are the only one with this issue I've heard from (up to now) it must be something with your system that is causing this. Maybe someone else will report similar in future but up to then we can not fix this as we don't know where it comes from and if it is caused by MP2 code at all...
    It will take you one hour, make an image of your recent installation, install Windows from scratch, install MP 2.1, make a test and write the image back...
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,431
    2,334
    Home Country
    Germany Germany
    Country flag
    @Helios61 , easy.:)

    It's not that we don't believe that you are experiencing problems with Music. I can simply not mark it as bug and add an entry to the Issue Tracker if other test environments are unable to reproduce the problem - there would be nothing to fix for devs.

    As Lehmden is suggesting, we need your help to identify which factors are the root cause of the problem on your system. Ideally you would do this on the same machine.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,361
    3,803
    Lehmden
    Home Country
    Germany Germany
    Country flag
    Turn on AVR & TV, in my case then TV is audio device in Windows Audio Settings
    Oh, I just saw this. I think this is not really as expected... If the AVR is "ON" it should be the HDMI audio device, not the TV. TV only should be the HDMI audio device if AVR is "OFF". At least it is the case on my system and how I understand this in general...
    In your setup the audio signal from PC is send to the TV through the AVR and then is send back to the AVR by ARC. Don't think this is how this was meant. In my setup the audio signal is send from PC to the AVR and I'm done. I even don't know how I can change this (not that I want to change it).
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Similar threads

    • Locked
    Yes, I know, I realized it today morning (see my previous post). I'll remove the static default class and write the default values into the properties, like it is done in other settings. Then I can load it via SettignsManager in the WASAPI class. I'll do it tonight. Sorry for that and thanks for your attention!
    Yes, I know, I realized it today morning (see my previous post). I'll remove the static default class and write the default...
    I tried to reproduce this issue but could not yet. In mean time I have bought a new AVR which supports higher rates, so in...
    Replies
    71
    Views
    7K
    I should probably add, it does the same thing with all audio files I've tried, FLAC and MP3. I've also tried updating my drivers but no luck
    I should probably add, it does the same thing with all audio files I've tried, FLAC and MP3. I've also tried updating my drivers...
    Hi, I'm having a problem playing music in Mediaportal 1.18 It plays the first track without problems, but then stops and is unable...
    Replies
    1
    Views
    830
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the DefaultWide skin. It really messes up the overlays though.
    this seems to be related to the Ares skin. It can be somewhat fixed by replacing the mytvrecordedtv.xml with the one found in the...
    For the past year or so I have not been able to get into my TV recordings menu. MediaPortal wont crash, but it just hangs and...
    Replies
    1
    Views
    677
    MP1 MP2 No AC3 sound ... DE
    @fanol Thanks for providing the log files. However they contain only limited detail. Could you please collect new log files, and this time use the Watchdog tool with option 1 or 2 ("report a bug...") to do it. The Watchdog tool is the preferred method/source for collecting log files. Please use it whenever you can. General...
    @fanol Thanks for providing the log files. However they contain only limited detail. Could you please collect new log files, and...
    Hi! I start to play, and there is no sound. Established LAV 0.68 everywhere. On the other formats and movies is no such problem. I...
    Replies
    84
    Views
    11K
    This issue seems have been rectified as all the previously unavailable videos are now watchable.
    This issue seems have been rectified as all the previously unavailable videos are now watchable.
    Hi all If this has been covered elsewhere, sorry I searched, please point me to the right place :) I saw a lot of posts about...
    Replies
    6
    Views
    2K
    Top Bottom