View Issue Details

IDProjectCategoryView StatusLast Update
0005013MMW v4Otherpublic2009-01-13 20:02
ReporterOwynAssigned To 
PriorityimmediateSeveritymajorReproducibilitysometimes
Status resolvedResolutionunable to reproduce 
Product Version3.1 
Fixed in Version3.1 
Summary0005013: Podcast: Some downloaded episodes are mal-linked in Library
DescriptionIntermittent problems with downloaded episodes incorrectly updated in Library.

Restarting MM3 may be a temporary fix to the problem.
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=6&t=34729
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=34825
TagsNo tags attached.
Attached Files
dir.lst (65,153 bytes)
Fixed in build1203

Activities

Owyn

2008-12-10 00:56

updater   ~0015572

Added additional info as requested.
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=34729&p=178943#p178943

Owyn

2008-12-10 01:42

updater   ~0015574

Uploaded zipped debug log of 3 Update Podcast's.
All 3 ended up with new track playable from Location node but NOT available from Podcast node.

Owyn

2008-12-10 19:55

updater   ~0015585

Just realized that the PodcastEpisodes.IDTrack of (many?/all?) of the problem episodes are junk.

SELECT * FROM PodcastEpisodes WHERE IDTrack > (SELECT MAX(ID) FROM Songs)

Found 24 rows.

Ludek

2008-12-11 09:42

developer   ~0015594

Last edited: 2008-12-11 09:43

Owyn, that is really strange. I have made a code review and I don't see any clue. Could you send me your DB, please? Hopefully I will be able to reproduce this strange issue then. You can use e.g. www.yousendit.com

Owyn

2008-12-11 14:48

updater   ~0015600

See http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=34729&p=179173#p179154

Ludek

2008-12-12 12:23

developer   ~0015612

Last edited: 2008-12-12 19:13

I found a clue, if a track is deleted from library (via location node, not via podcast node) then the idTrack in PocdastEpisodes table doesn't seem to be updated, this might be the reason why there are some rows for the query
"SELECT * FROM PodcastEpisodes WHERE IDTrack > (SELECT MAX(ID) FROM Songs)"

I will investigate further later.

Owyn

2008-12-12 13:50

updater   ~0015614

Uploaded debug log for Re-scan of Podcasts abort.
DELL530.081212.0833.LOG.zip

Ludek

2008-12-12 17:20

developer   ~0015622

Last edited: 2008-12-12 17:22

Fixed the clue I found out: if an episode is not deleted from podcast node, but from location node then idTrack in PodcastEpisodes table is not properly updated. Fixed in build 1203.

Re: the log, I agree that re-scan could do something with this but only when the "associate tracks to podcast subscriptions" process is running, but it is not seen from the log, althoug I believe that the process run, but you might just didn't catch it.

Re: the rest: see http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=34729&p=179173#p179154

Owyn

2008-12-12 18:14

updater   ~0015623

New log uploaded (081212.1306).

Started DbugView
Started MM3
Re-Scanned Podcasts via Computer node (Nothing left in Location to point to)
Stopped again after 54 tracks
Exited MM3
Saved log in DebugView and exited.
Checked log in editor. Looks complete. Zipped and uploaded.

Ludek

2008-12-12 18:30

developer   ~0015625

Last edited: 2008-12-12 19:11

As discovered in the forum post:
When unsubscribing there is 'DELETE FROM PodcastEpisodes WHERE idPodcast = x AND idTrack < 0 ', BUT
there should rather be 'DELETE FROM PodcastEpisodes WHERE idPodcast = x AND ((idTrack < 0) OR NOT EXISTS (SELECT ID FROM Songs WHERE ID = idTrack ))) '

Fixed in 1203.

i.e. Episodes with broken link to the Songs table should be deleted when unsubscribing.

Ludek

2008-12-12 20:35

developer   ~0015629

As discussed here:
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=34729&st=0&sk=t&sd=a&start=60

It was caused by DB corruption. Nevertheless there were added the 2 auto-corrections I mentioned (added in build 1203) in the case the PodcastEpisodes.idTrack is damaged.

Owyn

2008-12-12 22:38

updater   ~0015630

Not just a database corruption issue.
I renamed my AppData\Local\MediaMonkey folder and then started 1202. This created a new empty database.
Scanned Podcasts folder tree and re-created same error as in previous database.

Owyn

2008-12-12 22:39

updater   ~0015631

Note: This was done before adding any Podcast subscriptions.

Ludek

2008-12-12 23:54

developer   ~0015634

Last edited: 2008-12-12 23:57

Owyn, I has not been able to reproduce any issues you had on the corrupted DB, if you have any steps to reproduce on a clean DB then put it down and re-open the issue.

Note: If you mean the scan error then we should rather re-open another mantis issue for this. Is the 0005038 the issue?

Owyn

2008-12-13 00:03

updater   ~0015635

Yes. I am running through a test plan for Podcasts starting with an empty database.

Owyn

2008-12-19 13:33

updater   ~0015743

Problem recurred on re-built database. See comments starting here:
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=34729&start=45#p180661

Ludek

2009-01-13 20:02

developer   ~0016189

Last edited: 2009-01-13 20:02

I have not been able to reproduce. As discussed in the forum link:
http://www.mediamonkey.com/forum/viewtopic.php?f=6&t=34729&start=45#p180661
it was caused by corrupted DB from Owyn, but there is not known what could cause the DB corruption. Owyn, any new foundations?