After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 575110 - Downloading Cover Art Eats CPU Usage Till Process is Killed
Downloading Cover Art Eats CPU Usage Till Process is Killed
Status: RESOLVED DUPLICATE of bug 548131
Product: banshee
Classification: Other
Component: Other Extensions
1.4.3
Other All
: Normal critical
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-12 16:59 UTC by Corey McClain
Modified: 2009-03-23 22:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
log file (264.86 KB, application/x-compressed-tar)
2009-03-19 17:33 UTC, Corey McClain
Details

Description Corey McClain 2009-03-12 16:59:09 UTC
Please describe the problem:
Downloading cover art works up till ~99% where it will freeze and eat CPU cycles until Banshee is killed, even if the Cover Art downloading is canceled. Banshee continues to function normally during this.

Steps to reproduce:
1. Download Cover Art
2. 
3. 


Actual results:
Cover Art is downloaded and then stops, CPU usages jumps to 85%+ for a Core 2 Duo.

Expected results:
That CPU cycles don't get eaten.

Does this happen every time?
If a new song is added to the library I think yes.

Other information:
Comment 1 Bertrand Lorentz 2009-03-12 18:31:30 UTC
Could you run the commands given in comment 9 of bug #548131 ?

I think it might be the same problem, and it seems the fix hasn't made it into 1.4.3.
Comment 2 Corey McClain 2009-03-18 19:35:53 UTC
It does seem to be the same bug, except I ran the commands from comment 9:

sqlite3 ~/.config/banshee-1/banshee.db "select count(*) from coretracks where albumid not in (select albumid from corealbums)"

sqlite3 ~/.config/banshee-1/banshee.db "select count(*) from coretracks where artistid not in (select artistid from coreartists)"

and both return a 0 value. I am not sure what this means.
Comment 3 Bertrand Lorentz 2009-03-18 20:31:30 UTC
It means it's certainly a different bug. Could you please run the following command :

banshee --debug --debug-sql > banshee.log

reproduce the problem, and attach the banshee.log here.
Comment 4 Corey McClain 2009-03-19 17:33:06 UTC
Created attachment 130983 [details]
log file

Sorry the logfile is so large, I had to try and import music and download the cover art multiple times before I saw the error again.
Comment 5 Bertrand Lorentz 2009-03-21 09:57:13 UTC
The symptoms are the same as for bug #548131 : banshee seems to be stuck in an infinite loop running the 2 queries. But the cause seems different.

Would it be OK for you to send me your database file ? I need to take a look at it to investigate further.
It's ~/.config/banshee-1/banshee.db. Please send it to me directly by e-mail, my address is my bugzilla login (see the link on my name).
Comment 6 Bertrand Lorentz 2009-03-23 22:46:32 UTC
After looking at your DB, I figured out what's wrong :
Some of the albums have a reference to a non existing artist.
This is shown by the following query :

select count(*) from CoreAlbums where ArtistID not in (select ArtistID from CoreArtists);

So this is in fact the same underlying issue as in bug #548131 :
1. the query that counts the cover art to fetch returns >0, 
2. but the query that selects the data returns nothing
3. Go back to 1

The fix for bug #548131 make the two queries identical, so it also fixes this case.
I'm marking this as a duplicate, then.

Corey, thanks for your help investigating this.

*** This bug has been marked as a duplicate of 548131 ***