View Issue Details

IDProjectCategoryView StatusLast Update
0010585MMW v4Otherpublic2013-03-09 22:46
Reporterlowlander Assigned To 
PriorityurgentSeverityminorReproducibilityrandom
Status closedResolutionfixed 
Product Version4.1 
Target Version4.1Fixed in Version4.1 
Summary0010585: Maintain Library SQL Errors
DescriptionRan Maintain Library on 1625 and was greeted with an AV on return. MediaMonkey had to be closed from Task Manager. On restart (now 1626) was greeted with SQL errors. DB has lost 40% of its size as well.
TagsNo tags attached.
Fixed in build1627

Activities

Ludek

2013-03-01 18:34

developer   ~0035218

Last edited: 2013-03-01 18:38

I have tried with your DB and I could reproduce that MM wants to periodically send error reports that MM is frozen.

This is because your MM.DB is really big ( > 1.2 GB ) and the full maintenance takes long on your DB and is performed in main thread (therefore debug build thinks that MM is frozen). I guess we should move DB maintenance to a thread or at least prevents from reporting the freeze as this isn't acctually a freeze.

To compare, full maintenance of my DB (10k tracks, 36 MB) takes just 15 seconds.

lowlander

2013-03-01 18:54

developer   ~0035219

I normally leave it running while away, but may impression is that it normally takes <30 minutes. This is also the first time that MediaMonkey hung on the process.
I wonder if things like Podcast downloading or UPnP playback (in other words any type of DB access) can cause problems while Maintain Library is running.

Ludek

2013-03-01 19:47

developer   ~0035220

Last edited: 2013-03-01 19:47

I don't think so, because I can reproduce the freeze with your DB too (without any background tasks running), the problem is elsewhere.
Actually I found that the maintenance is performed in a thread and main thread is just waiting so there is no reason for the freeze, studing more...

Ludek

2013-03-01 21:43

developer   ~0035224

I've made a fix, but I cannot verify it as I haven't been able to reproduce the freeze anymore.

So test with 1627+

Ludek

2013-03-05 13:23

developer   ~0035248

Last edited: 2013-03-05 13:24

Based on some ELFs there really exist some confilts, e.g. when File Monitor is running on background and wants to store a new track into DB (while DB is being re-created).

Re-opened for revision/fix.

Ludek

2013-03-05 18:59

developer   ~0035251

Last edited: 2013-03-05 19:03

I reproduce it this way:
1. Deleted MM.DB
2. Started MM and started scanning of songs to library
3. While scanning, run complete DB maintenance
=> scanning thread pauses (as expected), but then maintenace freezes or eventually the SQL error appears.
This is reproducible with 4.0.7 too


Fixed in build 1627.

peke

2013-03-09 22:46

developer   ~0035306

Verified 1627