(Not a) MusicInfoHandler problem? (2 Viewers)

Requiem

MP Donator
  • Premium Supporter
  • January 1, 2012
    588
    216
    Home Country
    Germany Germany
    Hi, I don't think this is really a pure problem of MusicInfoHandler. My logs suddenly got started to be spammed (see MediaPortalError.log) with errors. I already tried rolling back my databases from a backup, rebuilt my music database from scratch and reinstalled FanartHandler and MusicInfoHandler. Only thing I changed before was upgrading from 1.13pre to 1.13.

    Any idea on what is causing this and how to fix it?
     

    Requiem

    MP Donator
  • Premium Supporter
  • January 1, 2012
    588
    216
    Home Country
    Germany Germany
    Happy new year everyone!

    I made a system image rollback to a clean state today. No problems. Then, I updated MediaPortal from this clean state image from 1.12 to 1.13 and updated my addons. No other changes were made to the system. The errors from the log above reappeared at once. I have now disabled MusicInfoHandler (which of course stopped the error messages from appearing). Another problem: When I start listening to a web radio stream (no matter which one), MP will crash mit a BASS player error message (while I have WASAPI enabled in my setting). Logs attached (see MPError2.log).

    Any ideas?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,069
    11,153
    Kyiv
    Home Country
    Ukraine Ukraine
    No ideas, anyone?
    One can see my mistake, it is necessary to add a check in the conditions. :(:cry:
    https://github.com/MediaPortal/Medi...ore/MusicPlayer/BASS/MusicStream.cs#L954-L963
    C#:
          streamUrlIndex = title.IndexOf("';");
          if ((streamUrlIndex > -1) && (streamUrlIndex == title.Length - 2))
          {
            title = _tagInfo.title.Substring(0, streamUrlIndex);
          }
          streamUrlIndex = title.IndexOf(";");
          if ((streamUrlIndex > -1) && (streamUrlIndex == title.Length - 1))
          {
            title = _tagInfo.title.Substring(0, streamUrlIndex);
          }
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,069
    11,153
    Kyiv
    Home Country
    Ukraine Ukraine
    I still can not help :(, can @hwahrmann can? :whistle::unsure: Create a test build of correcting this unfortunate error. :barefoot::coffee:
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,069
    11,153
    Kyiv
    Home Country
    Ukraine Ukraine
    Have you tried your change above atz your local installation?
    I have such an error does not occur, even though I constantly listen to the radio. I use 1.13.
    otherwise i would need to know how i can reproduce the above.
    I currently do not have the possibility to compile the media portal. There is no free space on the disk. But judging by the log file is: http://www.lounge-radio.com/listen128.m3u
    Code:
    [2016-01-01 15:55:59,451] [Log    ] [MPMain   ] [INFO ] - g_Player.PlayAudioStream(http://www.lounge-radio.com/listen128.m3u)
    [2016-01-01 15:55:59,451] [Log    ] [MPMain   ] [INFO ] - BASS: Initializing BASS audio engine...
    [2016-01-01 15:55:59,466] [Log    ] [MPMain   ] [INFO ] - BASS: Using WASAPI device: Realtek Digital Output (Realtek High Definition Audio)
    [2016-01-01 15:55:59,595] [Log    ] [MPMain   ] [INFO ] - BASS: Device Information
    [2016-01-01 15:55:59,596] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2016-01-01 15:55:59,597] [Log    ] [MPMain   ] [INFO ] - BASS: Name: Realtek Digital Output (Realtek High Definition Audio)
    [2016-01-01 15:55:59,598] [Log    ] [MPMain   ] [INFO ] - BASS: Shared Mode Channels: 2
    [2016-01-01 15:55:59,599] [Log    ] [MPMain   ] [INFO ] - BASS: Shared Mode Samplerate: 48000
    [2016-01-01 15:55:59,761] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2016-01-01 15:55:59,762] [Log    ] [MPMain   ] [INFO ] - BASS: Initialization done.
    [2016-01-01 15:55:59,792] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2016-01-01 15:55:59,793] [Log    ] [MPMain   ] [INFO ] - BASS: Creating BASS audio stream
    [2016-01-01 15:56:00,682] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: ICY 200 OK
    [2016-01-01 15:56:00,683] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
    [2016-01-01 15:56:00,684] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR>
    [2016-01-01 15:56:00,692] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: icy-name:LOUNGE-RADIO.COM - swiss made
    [2016-01-01 15:56:00,692] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: icy-genre:Electronic Downtempo Lounge Ambient Easy Listening
    [2016-01-01 15:56:00,693] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: icy-url:http://www.lounge-radio.com
    [2016-01-01 15:56:00,694] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: icy-pub:1
    [2016-01-01 15:56:00,694] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: icy-metaint:32768
    [2016-01-01 15:56:00,694] [Log    ] [MPMain   ] [INFO ] - BASS: Connection Information: icy-br:128
    [2016-01-01 15:56:00,717] [Log    ] [MPMain   ] [INFO ] - BASS: Internet Stream. New Song:  - listen128
    [2016-01-01 15:56:00,725] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Information
    [2016-01-01 15:56:00,726] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2016-01-01 15:56:00,726] [Log    ] [MPMain   ] [INFO ] - BASS: File: http://www.lounge-radio.com/listen128.m3u
    [2016-01-01 15:56:00,727] [Log    ] [MPMain   ] [INFO ] - BASS: Number of Channels: 2
    [2016-01-01 15:56:00,727] [Log    ] [MPMain   ] [INFO ] - BASS: Stream Samplerate: 44100
    [2016-01-01 15:56:00,728] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2016-01-01 15:56:00,734] [Log    ] [MPMain   ] [INFO ] - BASS: Successfully created BASS audio stream
    [2016-01-01 15:56:00,735] [Log    ] [MPMain   ] [INFO ] - BASS: ---------------------------------------------
    [2016-01-01 15:56:00,751] [Log    ] [MPMain   ] [INFO ] - BASS: No upmixing of Stereo selected
    [2016-01-01 15:56:00,754] [Log    ] [MPMain   ] [INFO ] - BASS: Initialising WASAPI device
    [2016-01-01 15:56:00,800] [Log    ] [MPMain   ] [INFO ] - BASS: WASAPI Device successfully initialised
    [2016-01-01 15:56:00,813] [Log    ] [MPMain   ] [INFO ] - BASS: playback started
    [2016-01-01 15:56:00,823] [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() http://www.lounge-radio.com/listen128.m3u media:Radio
    [2016-01-01 15:56:00,843] [Log    ] [MPMain   ] [INFO ] - Audio stream: switching to preferred AC3/MPEG audio stream 0 (only 1 track avail.)
    [2016-01-01 15:56:01,149] [Log    ] [BASS MetaSync] [INFO ] - BASS: Internet Stream. New Song: Die Falschen Freunde (Nicola Conte) - Dort (Via Di Qui)
    [2016-01-01 15:56:07,370] [Log    ] [19       ] [INFO ] - MPSync: [Process_DB_folder] aborted as player playing.
    [2016-01-01 15:56:07,376] [Log    ] [19       ] [INFO ] - MPSync: DB process sleeping 900 seconds.....
    [2016-01-01 15:56:08,756] [Log    ] [MPMain   ] [INFO ] - Main: Deactivation request received
    [2016-01-01 15:56:16,383] [Error  ] [BASS MetaSync] [ERROR] - MediaPortal: Unhandled exception occured
    [2016-01-01 15:56:16,446] [Log    ] [BASS MetaSync] [ERROR] - Exception: System.ArgumentOutOfRangeException: Die Länge darf nicht kleiner als 0 (null) sein.
    Parametername: length
       bei System.String.Substring(Int32 startIndex, Int32 length)
       bei MediaPortal.MusicPlayer.BASS.MusicStream.GetMetaTags()
     

    Requiem

    MP Donator
  • Premium Supporter
  • January 1, 2012
    588
    216
    Home Country
    Germany Germany
    Thanks! So if I understand right, this explains my crash when listening to radio, but probably not the log entries spawned by MusicInfoHandler in my first post?
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,069
    11,153
    Kyiv
    Home Country
    Ukraine Ukraine
    this explains my crash when listening to radio
    Yes, I think @hwahrmann fix it. Yesterday I found a radio station that leads to this error, but the day before yesterday it worked perfectly. It can be seen that have changed in the tags, and they now come half empty ...
     

    lappmarre

    Portal Member
    November 29, 2007
    18
    4
    I've got this problem as well - start playing a radio stream and MP will crash within seconds. My log shows the same two errors (BASS unhandled exception/argument out of range). Fresh install with Win10 and 1.13, 1.12 worked perfectly fine before reinstall. Annoying because radio listening is my primary use for this system...is there anything I could do to correct the missing tags mentioned above myself, should I revert to 1.12 or what?

    You could try this channel, crashes every time..: http://http-live.sr.se/srmetropol-mp3-192
     

    Users who are viewing this thread

    Top Bottom