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 613407 - Syncing N900 causes interface to hang unrecoverably
Syncing N900 causes interface to hang unrecoverably
Status: RESOLVED DUPLICATE of bug 614039
Product: banshee
Classification: Other
Component: Device - USB Mass Storage
git master
Other Linux
: Normal major
: 1.x
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-03-20 12:48 UTC by David Nielsen
Modified: 2010-09-22 12:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
logs (411.46 KB, application/x-bzip)
2010-03-20 12:48 UTC, David Nielsen
Details
banshee logs opt out of anonymous data collection (678.82 KB, application/x-bzip)
2010-03-20 22:23 UTC, David Nielsen
Details
banshee logs opt out of anonymous data collection, connect device after startup (392.11 KB, text/x-log)
2010-03-21 12:14 UTC, David Nielsen
Details

Description David Nielsen 2010-03-20 12:48:05 UTC
Created attachment 156618 [details]
logs

Whenever I attempt to sync my N900 (USB Mass Storage) the interface hangs unrecoverably. 

Attached are 5 debug logs of the issue obtained following:

kill -s QUIT $(pidof banshee-1); cp ~/.config/banshee-1/log ~/banshee.log

The issue is made worse if one has the N900 mounted and the auto sync feature enabled as Banshee now automatically goes to hang itself on startup.
Comment 1 David Nielsen 2010-03-20 12:49:59 UTC
Jeroen is also an N900 user, CC'ing to see if he can confirm the issue.
Comment 2 Jeroen Budts 2010-03-20 14:34:02 UTC
Hi David.

I have no problems to sync my N900 with Banshee. It takes a while to search and load all the music on the N900, but while Banshee is scanning the device it stays responsive. The past few days i have been using the version from Git Master to sync, but on Ubuntu Karmic (while you seem to be using Lucid).  I also just updated from Git and tested again, but i have no problems.
Maybe it is a problem in combination with the mono version in Lucid? In the error log i see a lot of threading exceptions, but i'm not yet experienced enough with the Banshee codebase to really understand what is happening.
If nobody else has a version of Lucid and a N900 to confirm this bug, i can try to setup a Lucid installation an VirtualBox and test it again.
Comment 3 Bertrand Lorentz 2010-03-20 15:50:35 UTC
It looks like the UI hangs because the usage-data collection stuff is running a database query on the main thread, and this query is probably waiting on some other query to finish.

Could you try disabling the usage data collection (in the preferences dialog), to see if it helps ?
Comment 4 David Nielsen 2010-03-20 22:23:58 UTC
Created attachment 156640 [details]
banshee logs opt out of anonymous data collection

It still happens when I opt out of the anonymous data collection. I've attached 5 new logs obtained in the same fashion under these conditions.
Comment 5 Bertrand Lorentz 2010-03-21 09:58:53 UTC
Thanks for the logs. By the way, you don't need to attach the 5 files, the last one contains all the info.

Looks like another query done on the main thread is waiting for some other query.
Those logs are taken by first connecting your N900 and then starting Banshee, am I right ?

Could you try to first start Banshee and then connect your device ?
My hope is that Banshee will not freeze, and after the sync is done, the long running query should be visible in the logs.
Comment 6 David Nielsen 2010-03-21 12:09:07 UTC
My apologies, I was following the advice from an earlier hang of this type where Gabriel asked me to capture logs with a few seconds in between to see what Banshee was doing.

There is no difference connecting before or after Banshee starts.

I found that the synchronization will try to sync podcast episode that are yet not downloaded (the presense of which stems from another bug where download all episodes isn't being honored). After downloading the missing file the ui still hangs.
Comment 7 David Nielsen 2010-03-21 12:14:23 UTC
Created attachment 156669 [details]
banshee logs opt out of anonymous data collection, connect device after startup
Comment 8 Jeroen Budts 2010-03-23 20:22:07 UTC
I have installed a version of Ubuntu Lucid in Virtual Box and setup a git version of Banshee in it. I will try tomorrow if i can replicate this bug with that setup
Comment 9 David Nielsen 2010-03-23 21:51:14 UTC
I've noticed that I can transfer a small number of tracks, say an album, having it transcode and put them on the device without any issue. However when I give it the big +1000 item sync, it hangs the UI unrecoverably very early in the process (probably the first file that requires transcoding).
Comment 10 David Nielsen 2010-03-26 17:26:23 UTC
I found that disabling the podcast extension works around the problem.

Maybe related:
https://bugzilla.gnome.org/show_bug.cgi?id=614039
Comment 11 David Nielsen 2010-04-04 17:38:21 UTC
I have now tested with the n900 connected at startup, during run time. On a whim I tested the same with my Sansa Fuze which also has experienced synchronization problems. Every time the only thing that makes any difference is whether or not the podcast plugin is loaded at the time the synchronization starts.

Should we move this to Podcast?
Comment 12 David Nielsen 2010-09-22 12:55:42 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

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