PROBLEM: Ghost Playlists.

This forum is for reporting bugs in MediaMonkey for Windows 4. Note that version 4 is no longer actively maintained as it has been replaced by version 5.

Moderator: Gurus

conandrum
Posts: 24
Joined: Wed Apr 02, 2014 2:19 pm

PROBLEM: Ghost Playlists.

Post by conandrum »

Hi there,

PROBLEM: Ghost Playlists.

After many synchs, and resets, I ended up with many playlists on my android mobile phone with a "_1" at the end of them (Clearly duplicates).
I deleted all playlists from the phone again and again but the duplicates kept being transfered from MMW to the phone.
I could see them being generated by MMW in the task bar.
I deseleted all synch playlists, and synchronized just a single flat (no tree) playlist. Still, the same playlists were being sent over to the phone!!!
Where was MMW finding these OLD playlists/non existent playlists/deleted playlists/previously removed playlists/unselected playlists???
Where are all these OLD ORPHAN PLAYLISTS hiding? In the MMW database.
I found the answer here and many thanks to the person that discovered it.http://www.mediamonkey.com/forum/viewto ... =1#p260638
These are left over playlists that have lost their connection to their parent for a number of reasons... e.g. I forced MM to close before a playlist was moved completely from Playlists to some other collection node.
Since they do not have a parent, they do not appear in the synch list, but they do get transfered.
To solve I used a tool like SQLite to run this code straight in the MMW DB.

Code: Select all

delete from playlists where parentplaylist not in (select idplaylist from playlists) and parentplaylist > 0
SUGGESTED SOLUTION:
Since this problem ADVERSLY affects performance and is a serious nuisance for all but the most tech savvy of users, I suggest MMW running the code automatically when it first starts, and just before an autosynch or manual synch is initiated.
This will be a very good solution to the problem.

Thank you for listening ))
Last edited by conandrum on Sun Jun 07, 2015 8:14 am, edited 1 time in total.
conandrum
Posts: 24
Joined: Wed Apr 02, 2014 2:19 pm

Re: PROBLEM: Ghost Playlists.

Post by conandrum »

To moderator....

Should this be moved to wishlist?
Lowlander
Posts: 58575
Joined: Sat Sep 06, 2003 5:53 pm

Re: PROBLEM: Ghost Playlists.

Post by Lowlander »

I wonder if File > Maintain Library with complete optimization would have fixed this issue.

http://www.ventismedia.com/mantis/view.php?id=12748
conandrum
Posts: 24
Joined: Wed Apr 02, 2014 2:19 pm

Re: PROBLEM: Ghost Playlists.

Post by conandrum »

Unfortunately it does not.
I just tried it.
The ghost entries are playlists from MagicNodes that have an aggregate function (count(*)) on all nodes e.g. "reggae (210 files)".
When new reggae files are added to the library the number increases and therefore a new entry is created. The old entry is orphaned.
I have 471 orphans at the moment.
I tried maintain library - optimize database (complete) but no cookie.
It has to be done manually in the database.

Is there a program that can run sql code when mediamonkey is started or closed?
Can it be added to "Maintain Library" functionality?
conandrum
Posts: 24
Joined: Wed Apr 02, 2014 2:19 pm

Re: PROBLEM: Ghost Playlists.

Post by conandrum »

I want to move this to wish list please moderator.

It is so simple to implement and saves such hussle!
Thanks
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: PROBLEM: Ghost Playlists.

Post by nohitter151 »

conandrum wrote:I want to move this to wish list please moderator.

It is so simple to implement and saves such hussle!
Thanks
No need it is a bug and has been reported at http://www.ventismedia.com/mantis/view.php?id=12748
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
conandrum
Posts: 24
Joined: Wed Apr 02, 2014 2:19 pm

Re: PROBLEM: Ghost Playlists.

Post by conandrum »

Thanks
Lowlander
Posts: 58575
Joined: Sat Sep 06, 2003 5:53 pm

Re: PROBLEM: Ghost Playlists.

Post by Lowlander »

conandrum wrote:The ghost entries are playlists from MagicNodes that have an aggregate function (count(*)) on all nodes e.g. "reggae (210 files)".
Kinda sounds like a Magic Nodes bug maybe.
conandrum
Posts: 24
Joined: Wed Apr 02, 2014 2:19 pm

Re: PROBLEM: Ghost Playlists.

Post by conandrum »

Don't think its a bug. I suppose if mediamonkey is forced to close when an sql command is running, it can leave a table in a mess.
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: PROBLEM: Ghost Playlists.

Post by nohitter151 »

Should be fixed in the 1748 beta build: http://www.mediamonkey.com/forum/viewto ... 40#p410012
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
conandrum
Posts: 24
Joined: Wed Apr 02, 2014 2:19 pm

Re: PROBLEM: Ghost Playlists.

Post by conandrum »

All I can say is that with minimal use of the paid version of the plugin, I have not encountered the problem. It may still exist.
However this situation may arise from any plugin...
so might as well fix it in MM to avoid future hustle in support requests.

Thanks))
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: PROBLEM: Ghost Playlists.

Post by nohitter151 »

conandrum wrote:All I can say is that with minimal use of the paid version of the plugin, I have not encountered the problem. It may still exist.
However this situation may arise from any plugin...
so might as well fix it in MM to avoid future hustle in support requests.

Thanks))
... it is fixed. See my post above.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
conandrum
Posts: 24
Joined: Wed Apr 02, 2014 2:19 pm

Re: PROBLEM: Ghost Playlists.

Post by conandrum »

)) Excellent.
frankenpod
Posts: 90
Joined: Thu May 14, 2015 9:08 am

Re: PROBLEM: Ghost Playlists.

Post by frankenpod »

I am still having this problem with 1751.

It might be that the fix stops the corruption happening, but if its already happened with the previous version of MM you are still stuck with it still in your database and so still get the ghost playlists synced. I guess I will have to have a look at the sql fix suggested near the top of this thread.


Edit - OK having looked at it, I need more help! How do I open and clean the MM database using libre office Base, say? I suppose I should go back to the 'help' forum to ask...

Edit2 - blast, tried it and it didn't work - still have the phantom playlists being synced!
Ludek
Posts: 5093
Joined: Fri Mar 09, 2007 9:00 am

Re: PROBLEM: Ghost Playlists.

Post by Ludek »

Hi, that is strange, it should no longer happen with 1751.

Could you share your zipped database?
See this http://www.mediamonkey.com/support/inde ... -ini-files if you are not sure where is located your database (MM.DB)

You can open eSupport ticket and share it there if you don't wish to post it here.
Post Reply