[fixed] - [MP2-786] Cannot play audio playlist with >=1000 entries | Page 3

Discussion in 'Submit: Bug Reports' started by Nikki Locke, February 6, 2019.

  1. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    9,663
    Likes Received:
    1,027
    Gender:
    Male
    Ratings:
    +2,225 / 21
    Home Country:
    Germany Germany
    Show System Specs
    Since we can add a multi-thousand music collection to a playlist (which then plays) the issue is related to either the saving or the loading process.

    +1000 entry playlists are correctly displayed in the playlist overview, but I have no means of verifying if the saving process is ok.

    P.S.: This is the first time in 10 years of running MediaPortal, that I touch playlists :LOL:


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Nikki Locke
    • Super User

    Nikki Locke Super User

    Joined:
    February 2, 2019
    Messages:
    109
    Likes Received:
    13
    Gender:
    Male
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    I have a very simple fix for this. I tried the fix a few days ago when I was investigating, but the build environment is set up so that changing the source code file involved does not trigger a recompile, so I thought my fix was not working.

    It basically involves changing the chunk size if ManagePlaylistsModel.cs:329 from 1000 to 500. I will check it in once I have figured out the best place to do it (a branch based on master or WIP, or just directly to master or WIP).
     
  4. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    9,663
    Likes Received:
    1,027
    Gender:
    Male
    Ratings:
    +2,225 / 21
    Home Country:
    Germany Germany
    Show System Specs
    Sounds good. Although I don’t understand why the chunk size is affecting the behavior, but I am not a developer of course.:notworthy:

    When you have your patches, you may post them here, so that I can test the behavior with my playlists.
     
  5. Nikki Locke
    • Super User

    Nikki Locke Super User

    Joined:
    February 2, 2019
    Messages:
    109
    Likes Received:
    13
    Gender:
    Male
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    There is a hard limit to the number of parameters the SQLite database will accept. Loading a playlist involves one parameter for each media item in the requested chunk. Chunks bigger than about 500 exceed the database parameter limit.
    Will post an executable later today.
     
    • Like Like x 1
    • Thank You! Thank You! x 1
  6. Nikki Locke
    • Super User

    Nikki Locke Super User

    Joined:
    February 2, 2019
    Messages:
    109
    Likes Received:
    13
    Gender:
    Male
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    Here is a zip file of the fixed Plugins\Media\Media.dll.

    Pull request on its way.
     

    Attached Files:

    • Like Like x 1
  7. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    9,663
    Likes Received:
    1,027
    Gender:
    Male
    Ratings:
    +2,225 / 21
    Home Country:
    Germany Germany
    Show System Specs
    Could be slightly too early.:cautious:

    The good news is that the 1000 track playlist can now be loaded and is playing (y)
    The bad news is that MP2 is not starting correctly. I am getting this screen

    786.jpg

    and the screen need ti be called from the context menu.

    When I restore the original media.dll, things work agains as supposed. Log attached.
     

    Attached Files:

    Last edited: February 11, 2019 at 18:03
  8. Nikki Locke
    • Super User

    Nikki Locke Super User

    Joined:
    February 2, 2019
    Messages:
    109
    Likes Received:
    13
    Gender:
    Male
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    What version are you running - the media.dll I uploaded is based on master (i.e. the release version).

    Are you running a WIP version?
     
  9. HTPCSourcer
    • Team MediaPortal
    • Administrator

    HTPCSourcer MP2 Product Manager

    Joined:
    May 16, 2008
    Messages:
    9,663
    Likes Received:
    1,027
    Gender:
    Male
    Ratings:
    +2,225 / 21
    Home Country:
    Germany Germany
    Show System Specs
    Yes, we are a little bit more advanced.:)

    @Brownard , how can Nikki make his changes on the basis of 2.2.1 ?
     
  10. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    5,683
    Likes Received:
    1,434
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart (But living abroad)
    Ratings:
    +2,175 / 2
    Home Country:
    Germany Germany
    He can folk also the WiP2.2.1 branch, there shouldn’t be any restrictions.
     
    • Thank You! Thank You! x 1
  11. Nikki Locke
    • Super User

    Nikki Locke Super User

    Joined:
    February 2, 2019
    Messages:
    109
    Likes Received:
    13
    Gender:
    Male
    Ratings:
    +17 / 0
    Home Country:
    United Kingdom United Kingdom
    No problem - here is the fix based on WIP.

    [Note - I the original upload had the wrong version in it, so I have uploaded it again]
     

    Attached Files:

    Last edited: February 12, 2019 at 09:49
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!