Page 1 of 2

PROBLEM: Ghost Playlists.

Posted: Wed Jun 03, 2015 3:43 pm
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 ))

Re: PROBLEM: Ghost Playlists.

Posted: Thu Jun 04, 2015 6:40 am
by conandrum
To moderator....

Should this be moved to wishlist?

Re: PROBLEM: Ghost Playlists.

Posted: Thu Jun 04, 2015 3:28 pm
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

Re: PROBLEM: Ghost Playlists.

Posted: Sat Jun 06, 2015 9:51 am
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?

Re: PROBLEM: Ghost Playlists.

Posted: Sun Jun 07, 2015 8:16 am
by conandrum
I want to move this to wish list please moderator.

It is so simple to implement and saves such hussle!
Thanks

Re: PROBLEM: Ghost Playlists.

Posted: Sun Jun 07, 2015 8:33 am
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

Re: PROBLEM: Ghost Playlists.

Posted: Sun Jun 07, 2015 8:45 am
by conandrum
Thanks

Re: PROBLEM: Ghost Playlists.

Posted: Mon Jun 08, 2015 12:24 pm
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.

Re: PROBLEM: Ghost Playlists.

Posted: Mon Jun 08, 2015 10:12 pm
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.

Re: PROBLEM: Ghost Playlists.

Posted: Wed Jun 17, 2015 8:24 pm
by nohitter151
Should be fixed in the 1748 beta build: http://www.mediamonkey.com/forum/viewto ... 40#p410012

Re: PROBLEM: Ghost Playlists.

Posted: Wed Jun 17, 2015 10:48 pm
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))

Re: PROBLEM: Ghost Playlists.

Posted: Thu Jun 18, 2015 8:54 am
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.

Re: PROBLEM: Ghost Playlists.

Posted: Thu Jun 18, 2015 5:37 pm
by conandrum
)) Excellent.

Re: PROBLEM: Ghost Playlists.

Posted: Wed Jul 22, 2015 5:43 am
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!

Re: PROBLEM: Ghost Playlists.

Posted: Wed Jul 22, 2015 3:18 pm
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.