Unable to play | Page 2

Discussion in 'Listen Music' started by Ben, March 2, 2013.

  1. Ben

    Ben Portal Member

    Joined:
    April 3, 2006
    Messages:
    47
    Likes Received:
    0
    Ratings:
    +0 / 0
    It did not. I can see it recreating the db3 file, but it still hangs with 15% cpu. Unless it is actually rebuilding the database not allowing me to do anything else. The music folder contains around 43.000 files.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. hwahrmann
    • Team MediaPortal

    hwahrmann Development Group

    Joined:
    September 15, 2004
    Messages:
    4,497
    Likes Received:
    1,639
    Gender:
    Male
    Location:
    Vienna, Austria
    Ratings:
    +2,266 / 1
    Home Country:
    Austria Austria
    Do you see the database size changing during this time? or maybe see a second file with "journal" in the name?
     
  4. Ben

    Ben Portal Member

    Joined:
    April 3, 2006
    Messages:
    47
    Likes Received:
    0
    Ratings:
    +0 / 0
    No database changing. no file with journal in the name. Actually the modified date of the db3 does not change at all.

    So I went in configuration and unchecked the directory with the mp3's, and checked the standard Music directory (no music there)
    It then started up, even MUSIC works (but does not show anything). It showed me the (unchecked) MP3 directory there too if I go one level up. If I click it MP hangs again. So it obviously has something to do with this directory (on a USB3.0 external harddisk).
    My guess though is that the openfolderdatabase before actually filling the database is reading all the MP3 filenames, maybe their types etc. Building internal treelists or something, and having as many files as I have may cuase this delay (looks like hanging) and the 15% cpu usage (On a dual quad xeon!)
    Could it be that this new release changed the openfolderdatabase that way, and before it was actually filling the database WHILE recursing the folder directories?

    But I also placed a MP3 in the standard music directory. Started MP, if I play the file. again I get an 'unable to play'.

    2013-03-06 21:08:39.510689 [ERROR][MPMain(1)]: BASS: Unable to play C:\Users\Ben\Music\01 - Rubber Bullets.mp3. Reason: BASS_ERROR_HANDLE.
    2013-03-06 21:08:39.520691 [ERROR][MPMain(1)]: PlaylistPlayer: *** unable to play - C:\Users\Ben\Music\01 - Rubber Bullets.mp3 - skipping track!
    2013-03-06 21:08:44.458376 [ERROR][MPMain(1)]: BASS: Play caused an exception: System.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.MusicPlayer.BASS.BassAudioEngine.Play(String filePath).
    2013-03-06 21:08:44.465378 [ERROR][MPMain(1)]: PlaylistPlayer: *** unable to play - C:\Users\Ben\Music\01 - Rubber Bullets.mp3 - skipping track!
    So the latest release gives me two problems...the mp3 directory and BASS not able to play my mp3's.
    Any suggestions?[DOUBLEPOST=1362601365][/DOUBLEPOST]Some more from one of the logs

    013-03-06 21:08:37.843458 [Info.][MPMain(1)]: g_Player.Play(C:\Users\Ben\Music\01 - Rubber Bullets.mp3 Music)
    2013-03-06 21:08:37.866461 [Info.][MPMain(1)]: Loading external players plugins
    2013-03-06 21:08:37.870461 [Info.][MPMain(1)]: found plugin:MediaPortal.ITunesPlayer.ITunesPlugin in C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    2013-03-06 21:08:37.873464 [Info.][MPMain(1)]: player:iTunes. author: Frodo
    2013-03-06 21:08:37.876462 [Info.][MPMain(1)]: found plugin:MediaPortal.WinampPlayer.WinampPlugin in C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    2013-03-06 21:08:37.878463 [Info.][MPMain(1)]: player:Winamp. author: int_20h
    2013-03-06 21:08:37.883464 [Info.][MPMain(1)]: BASS: Initializing BASS audio engine...
    2013-03-06 21:08:37.898466 [Warn.][MPMain(1)]: BASS: specified Sound device does not exist. Using default Sound Device
    2013-03-06 21:08:39.343666 [Info.][MPMain(1)]: BASS: Device Information
    2013-03-06 21:08:39.348667 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:39.352667 [Info.][MPMain(1)]: BASS: Name: Speakers=2, MinRate=100, MaxRate=192000, DX=9, EAX=False
    2013-03-06 21:08:39.356668 [Info.][MPMain(1)]: BASS: Directsound version: 9
    2013-03-06 21:08:39.359668 [Info.][MPMain(1)]: BASS: # Output Channels: 2
    2013-03-06 21:08:39.363669 [Info.][MPMain(1)]: BASS: Minimum Buffer Samples: 31
    2013-03-06 21:08:39.366669 [Info.][MPMain(1)]: BASS: Current Sample rate: 44100
    2013-03-06 21:08:39.369670 [Info.][MPMain(1)]: BASS: Maximum Sample rate: 192000
    2013-03-06 21:08:39.372670 [Info.][MPMain(1)]: BASS: Minimum Sample rate: 100
    2013-03-06 21:08:39.375671 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:39.378671 [Info.][MPMain(1)]: BASS: Initialization done.
    2013-03-06 21:08:39.402674 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:39.405675 [Info.][MPMain(1)]: BASS: Creating BASS audio stream
    2013-03-06 21:08:39.413676 [Info.][MPMain(1)]: BASS: Stream Information
    2013-03-06 21:08:39.416676 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:39.418676 [Info.][MPMain(1)]: BASS: File: C:\Users\Ben\Music\01 - Rubber Bullets.mp3
    2013-03-06 21:08:39.421677 [Info.][MPMain(1)]: BASS: Type of Stream: BASS_CTYPE_STREAM_MP3
    2013-03-06 21:08:39.424677 [Info.][MPMain(1)]: BASS: Number of Channels: 2
    2013-03-06 21:08:39.427678 [Info.][MPMain(1)]: BASS: Stream Samplerate: 48000
    2013-03-06 21:08:39.430679 [Info.][MPMain(1)]: BASS: Stream Flags: BASS_MUSIC_FLOAT, BASS_STREAM_DECODE, BASS_UNICODE
    2013-03-06 21:08:39.433679 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:39.449681 [Info.][MPMain(1)]: BASS: Successfully created BASS audio stream
    2013-03-06 21:08:39.452681 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:39.461683 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:39.464683 [Info.][MPMain(1)]: BASS: Creating BASS mixer stream
    2013-03-06 21:08:39.500688 [Info.][MPMain(1)]: BASS: Successfully created BASS Mixer stream
    2013-03-06 21:08:39.503688 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:39.507689 [Info.][MPMain(1)]: BASS: Unable to play C:\Users\Ben\Music\01 - Rubber Bullets.mp3. Reason: BASS_ERROR_HANDLE.
    2013-03-06 21:08:39.514690 [Info.][MPMain(1)]: g_Player: ended
    2013-03-06 21:08:39.517690 [Info.][MPMain(1)]: PlaylistPlayer: *** unable to play - C:\Users\Ben\Music\01 - Rubber Bullets.mp3 - skipping track!
    2013-03-06 21:08:39.568697 [Warn.][MPMain(1)]: GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\dialogOK.xml' is missing control id 11 (window property: btnYes)
    2013-03-06 21:08:44.398368 [Info.][MPMain(1)]: g_Player.Play(C:\Users\Ben\Music\01 - Rubber Bullets.mp3 Music)
    2013-03-06 21:08:44.402368 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:44.406369 [Info.][MPMain(1)]: BASS: Creating BASS audio stream
    2013-03-06 21:08:44.415371 [Info.][MPMain(1)]: BASS: Stream Information
    2013-03-06 21:08:44.420371 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:44.424371 [Info.][MPMain(1)]: BASS: File: C:\Users\Ben\Music\01 - Rubber Bullets.mp3
    2013-03-06 21:08:44.428373 [Info.][MPMain(1)]: BASS: Type of Stream: BASS_CTYPE_STREAM_MP3
    2013-03-06 21:08:44.432373 [Info.][MPMain(1)]: BASS: Number of Channels: 2
    2013-03-06 21:08:44.435373 [Info.][MPMain(1)]: BASS: Stream Samplerate: 48000
    2013-03-06 21:08:44.440374 [Info.][MPMain(1)]: BASS: Stream Flags: BASS_MUSIC_FLOAT, BASS_STREAM_DECODE, BASS_UNICODE
    2013-03-06 21:08:44.443374 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:44.446380 [Info.][MPMain(1)]: BASS: Successfully created BASS audio stream
    2013-03-06 21:08:44.448375 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-06 21:08:44.455376 [Info.][MPMain(1)]: BASS: Play caused an exception: System.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.MusicPlayer.BASS.BassAudioEngine.Play(String filePath).
    2013-03-06 21:08:44.460377 [Info.][MPMain(1)]: g_Player: ended
    2013-03-06 21:08:44.463376 [Info.][MPMain(1)]: PlaylistPlayer: *** unable to play - C:\Users\Ben\Music\01 - Rubber Bullets.mp3 - skipping track!
    2013-03-06 21:08:44.490380 [Warn.][MPMain(1)]: GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\dialogOK.xml' is missing control id 11 (window property: btnYes)
    2013-03-06 21:19:14.227433 [Info.][MPMain(1)]: TexturePacker: disposing texture:1999
    2013-03-06 21:19:14.234434 [Info.][MPMain(1)]: TexturePacker: disposing texture:1997
    2013-03-06 21:19:14.237434 [Info.][MPMain(1)]: TexturePacker: disposing texture:1996
    2013-03-06 21:19:14.240434 [Info.][MPMain(1)]: TexturePacker: disposing texture:1995
    2013-03-06 21:19:14.244440 [Info.][MPMain(1)]: TexturePacker: disposing texture:1982
    2013-03-06 21:19:14.255436 [Info.][MPMain(1)]: BASS: Error stopping mixer: BASS_ERROR_HANDLE
    2013-03-06 21:19:14.262437 [Info.][MPMain(1)]: BASS: Error freeing mixer: BASS_ERROR_HANDLE
    2013-03-06 21:19:14.290441 [Info.][MPMain(1)]: Main: Exiting
    2013-03-06 21:19:14.295442 [Info.][MPMain(1)]: PlugInManager.Stop()
    2013-03-06 21:19:14.299447 [Info.][MPMain(1)]: PluginManager: stopping MediaPortal.MusicShareWatcher.MusicShareWatcherPlugin
    2013-03-06 21:19:14.302442 [Info.][MPMain(1)]: fonts.SafeDispose()
    2013-03-06 21:19:14.306443 [Info.][MPMain(1)]: TexturePacker:Dispose()
    2013-03-06 21:19:14.330447 [Info.][MPMain(1)]: Playlist: Saving default playlist default.m3u
    2013-03-06 21:19:14.341447 [Info.][MPMain(1)]: GUIWindowManager: Could not find window -1
     
    Last edited: March 6, 2013
  5. hwahrmann
    • Team MediaPortal

    hwahrmann Development Group

    Joined:
    September 15, 2004
    Messages:
    4,497
    Likes Received:
    1,639
    Gender:
    Male
    Location:
    Vienna, Austria
    Ratings:
    +2,266 / 1
    Home Country:
    Austria Austria
    We need to get rid of theis error:

    2013-03-06 21:08:37.898466 [Warn.][MPMain(1)]: BASS: specified Sound device does not exist. Using default Sound Device

    Could you please go into Configuration and select a sound device within the BASS dialog
     
  6. Ben

    Ben Portal Member

    Joined:
    April 3, 2006
    Messages:
    47
    Likes Received:
    0
    Ratings:
    +0 / 0
    013-03-09 00:56:09.325392 [ERROR][MPMain(1)]: TVHome: Error occured in Init(): Requested Service not found, st at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
    at System.Environment.get_StackTrace()
    at TvPlugin.TVHome.OnAdded()
    at MediaPortal.GUI.Library.GUIWindowManager.Add(GUIWindow& Window)
    at MediaPortal.GUI.Library.PluginManager.LoadWindowPlugin(String strFile)
    at MediaPortal.GUI.Library.PluginManager.LoadWindowPlugins()
    at MediaPortalApp.InitializeDeviceObjects()
    at MediaPortal.D3DApp.InitializeEnvironment()
    at MediaPortal.D3DApp.CreateGraphicsSample()
    at MediaPortalApp.Main(String[] args)
    2013-03-09 00:56:24.080360 [ERROR][MPMain(1)]: BASS: Unable to play C:\Users\Ben\Music\01 - Rubber Bullets.mp3. Reason: BASS_ERROR_HANDLE.
    2013-03-09 00:56:24.092362 [ERROR][MPMain(1)]: PlaylistPlayer: *** unable to play - C:\Users\Ben\Music\01 - Rubber Bullets.mp3 - skipping track!
    2013-03-09 00:56:36.277987 [ERROR][MPMain(1)]: BASS: Error stopping mixer: BASS_ERROR_HANDLE
    2013-03-09 00:56:36.284988 [ERROR][MPMain(1)]: BASS: Error freeing mixer: BASS_ERROR_HANDLE

    g_Player.Play(C:\Users\Ben\Music\01 - Rubber Bullets.mp3 Music)
    2013-03-09 00:56:22.386134 [Info.][MPMain(1)]: Loading external players plugins
    2013-03-09 00:56:22.390135 [Info.][MPMain(1)]: found plugin:MediaPortal.ITunesPlayer.ITunesPlugin in C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    2013-03-09 00:56:22.393135 [Info.][MPMain(1)]: player:iTunes. author: Frodo
    2013-03-09 00:56:22.397136 [Info.][MPMain(1)]: found plugin:MediaPortal.WinampPlayer.WinampPlugin in C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    2013-03-09 00:56:22.401136 [Info.][MPMain(1)]: player:Winamp. author: int_20h
    2013-03-09 00:56:22.406136 [Info.][MPMain(1)]: BASS: Initializing BASS audio engine...
    2013-03-09 00:56:22.422139 [Info.][MPMain(1)]: BASS: Device Information
    2013-03-09 00:56:22.426139 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:22.429140 [Info.][MPMain(1)]: BASS: Name: Speakers (ASUS Xonar D2 Audio Device)
    2013-03-09 00:56:22.432140 [Info.][MPMain(1)]: BASS: Default Device: True
    2013-03-09 00:56:22.436144 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:23.891335 [Info.][MPMain(1)]: BASS: Device Information
    2013-03-09 00:56:23.897336 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:23.902337 [Info.][MPMain(1)]: BASS: Name: Speakers=2, MinRate=100, MaxRate=192000, DX=9, EAX=False
    2013-03-09 00:56:23.906337 [Info.][MPMain(1)]: BASS: Directsound version: 9
    2013-03-09 00:56:23.912338 [Info.][MPMain(1)]: BASS: # Output Channels: 2
    2013-03-09 00:56:23.916339 [Info.][MPMain(1)]: BASS: Minimum Buffer Samples: 31
    2013-03-09 00:56:23.920339 [Info.][MPMain(1)]: BASS: Current Sample rate: 44100
    2013-03-09 00:56:23.923339 [Info.][MPMain(1)]: BASS: Maximum Sample rate: 192000
    2013-03-09 00:56:23.927345 [Info.][MPMain(1)]: BASS: Minimum Sample rate: 100
    2013-03-09 00:56:23.930340 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:23.934341 [Info.][MPMain(1)]: BASS: Initialization done.
    2013-03-09 00:56:23.960344 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:23.964344 [Info.][MPMain(1)]: BASS: Creating BASS audio stream
    2013-03-09 00:56:23.972345 [Info.][MPMain(1)]: BASS: Stream Information
    2013-03-09 00:56:23.976346 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:23.979346 [Info.][MPMain(1)]: BASS: File: C:\Users\Ben\Music\01 - Rubber Bullets.mp3
    2013-03-09 00:56:23.983347 [Info.][MPMain(1)]: BASS: Type of Stream: BASS_CTYPE_STREAM_MP3
    2013-03-09 00:56:23.986347 [Info.][MPMain(1)]: BASS: Number of Channels: 2
    2013-03-09 00:56:23.990352 [Info.][MPMain(1)]: BASS: Stream Samplerate: 48000
    2013-03-09 00:56:23.993349 [Info.][MPMain(1)]: BASS: Stream Flags: BASS_MUSIC_FLOAT, BASS_STREAM_DECODE, BASS_UNICODE
    2013-03-09 00:56:23.996349 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:24.012351 [Info.][MPMain(1)]: BASS: Successfully created BASS audio stream
    2013-03-09 00:56:24.016352 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:24.025352 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:24.029353 [Info.][MPMain(1)]: BASS: Creating BASS mixer stream
    2013-03-09 00:56:24.068359 [Info.][MPMain(1)]: BASS: Successfully created BASS Mixer stream
    2013-03-09 00:56:24.072359 [Info.][MPMain(1)]: BASS: ---------------------------------------------
    2013-03-09 00:56:24.076360 [Info.][MPMain(1)]: BASS: Unable to play C:\Users\Ben\Music\01 - Rubber Bullets.mp3. Reason: BASS_ERROR_HANDLE.
    2013-03-09 00:56:24.083360 [Info.][MPMain(1)]: g_Player: ended
    2013-03-09 00:56:24.088362 [Info.][MPMain(1)]: PlaylistPlayer: *** unable to play - C:\Users\Ben\Music\01 - Rubber Bullets.mp3 - skipping track!
     
  7. hwahrmann
    • Team MediaPortal

    hwahrmann Development Group

    Joined:
    September 15, 2004
    Messages:
    4,497
    Likes Received:
    1,639
    Gender:
    Male
    Location:
    Vienna, Austria
    Ratings:
    +2,266 / 1
    Home Country:
    Austria Austria
    i need to see the full log.
    and you shoudl turn on Debugging.
    After the error with the TVPlugin i see that there was a problem freeing the mixer, which means that a mixer must have been created before already.

    Please run with debug turned on and attach the log file. Don't copy the content of it into the thread.
     
  8. Ben

    Ben Portal Member

    Joined:
    April 3, 2006
    Messages:
    47
    Likes Received:
    0
    Ratings:
    +0 / 0
    zip
     
  9. Ben

    Ben Portal Member

    Joined:
    April 3, 2006
    Messages:
    47
    Likes Received:
    0
    Ratings:
    +0 / 0
    Got the latest version from GitHub, compiled it and started it in Visual Studio in debug mode. The song plays fine. I don't know if it uses the BASS engine. In configuration 'Player', is blank.
    How can I check it is using the BASS engine?

    I also had a look at MP hanging when I go to the MP3 directory:

    It's this routine that is in a 'forever' loop:

    protected virtual void SwitchToNextAllowedLayout(Layout selectedLayout)
    {
    int iSelectedLayout = (int)selectedLayout;
    int totalLayouts = Enum.GetValues(typeof(Layout)).Length - 1;
    if (iSelectedLayout > totalLayouts)
    iSelectedLayout = 0;
    bool shouldContinue = true;
    do
    {
    if (!AllowLayout(selectedLayout) || facadeLayout.IsNullLayout(selectedLayout))
    {
    iSelectedLayout++;
    if (iSelectedLayout > totalLayouts)
    iSelectedLayout = 0;
    }
    else
    {
    shouldContinue = false;
    }
    } while (shouldContinue);
    CurrentLayout = (Layout)iSelectedLayout;
    SwitchLayout();
    }

    What I see happening is:

    totalLayouts = 6;

    in the while(shouldContinue) loop my
    iSelectedLayout becomes greater than the totalLayouts which causes iSlectedlayout to
    be reset to 0, and the loop continues forever because shouldContinue is never set to false;


    I have no idea what it actually tries to do, but looking at the logic in the loop I think that testing selectedLayout in this line:
    if (!AllowLayout(selectedLayout) || facadeLayout.IsNullLayout(selectedLayout))
    is not a good idea if you actually increase iSelectedLayout in the loop.
    That is probably problem 1. But if you would change that, testing iSelectedLayout, you still have a risk of a forever loop if none of the layouts is ever accepted, so you would need to make sure that when all possibilities have been tried, you get out of the loop or throw an exception.
     
    Last edited: March 9, 2013
  10. hwahrmann
    • Team MediaPortal

    hwahrmann Development Group

    Joined:
    September 15, 2004
    Messages:
    4,497
    Likes Received:
    1,639
    Gender:
    Male
    Location:
    Vienna, Austria
    Ratings:
    +2,266 / 1
    Home Country:
    Austria Austria
    BASS Player is used to play on your ASUS Xonar D2 Audio Device.

    I get however a strange error, which i don't understand why.
    I need to add more debug information.
    I am a bit occupied the next 2 days. hopefully i can do that on Thursday.
    I'll keep you posted.
     
  11. Ben

    Ben Portal Member

    Joined:
    April 3, 2006
    Messages:
    47
    Likes Received:
    0
    Ratings:
    +0 / 0
    Fine, is someone picking up the other bug or should I post that somewhere else?
     
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!