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 657769 - Sync progress bar does not stop
Sync progress bar does not stop
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device (general)
git master
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
: 677035 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-08-30 22:57 UTC by William Witt
Modified: 2012-08-29 15:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Debug while syncing (12.00 KB, text/x-log)
2011-09-04 02:42 UTC, William Witt
  Details
Hide the progress bar when there's nothing new to sync (856 bytes, patch)
2012-03-29 19:20 UTC, Fabrice Bellet
committed Details | Review

Description William Witt 2011-08-30 22:57:21 UTC
As shown in linked video, the syncing progress bar does not stop once the system is done syncing.

http://www.vimeo.com/28242141

Video recorded using git master on a mythbuntu(XFCE) virtual machine.

video originally shot for BGO#657526
Comment 1 Bertrand Lorentz 2011-09-03 10:45:18 UTC
Thank you for the bug report and the video !

Could you also provide the complete log output when reproducing the issue ?

Just a piece of advice, unrelated to the bug itself :
If you want to run banshee from a git checkout, you can just do a "make run"
Comment 2 William Witt 2011-09-04 02:42:31 UTC
Created attachment 195607 [details]
Debug while syncing

This might be a timing issue, during this run there was actually nothing to sync, but in previous runs, playlists needed to sync.

Ran with the followingcomand:
make run > ~/banshee.log 2>&1 

I also ran a "tail -f ~/banshee.log" in another tab and following lines appeared after clicking sync, then nothing until I told it to quit.    
[7 Debug 21:29:36.937] Starting DAP sync
[7 Debug 21:29:36.961] Starting
[7 Debug 21:29:37.266] Ending DAP sync

I did get a dialog box saying that "Important tasks" were running, but the details box was blank.
Comment 3 Philip Gillißen 2011-09-12 10:55:05 UTC
I experienced this error, too. Ubuntu 11.04, Banshee unstable and stable PPA, AMD64.
It does not occur everytime, but I could not grasp a pattern yet.
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2011-09-12 11:40:22 UTC
(In reply to comment #3)
> It does not occur everytime, but I could not grasp a pattern yet.

Agreed, I think it is a race condition.
Comment 5 Questioner 2011-09-13 02:52:50 UTC
Is this bug related to https://bugzilla.gnome.org/show_bug.cgi?id=656590

Or is it an entirely different problem?
Comment 6 Philip Gillißen 2011-09-16 15:52:44 UTC
(In reply to comment #4)
> Agreed, I think it is a race condition.

Is it possible for us to provide you some more information on this issue? I don't see that a normal log file would really help...
Comment 7 Fabrice Bellet 2012-03-29 19:12:09 UTC
I also see this behaviour when syncing to a device when there's no new tracks to be added.
Comment 8 Fabrice Bellet 2012-03-29 19:20:36 UTC
Created attachment 210890 [details] [review]
Hide the progress bar when there's nothing new to sync

This patch calls the Finish() method of the ServiceStack object, when the track list to be synced on the device is empty. When the list is non-empty, this is normally achieved by add_track_job.Completed++ in IncrementAddedTracks()
Comment 9 Andrés G. Aragoneses (IRC: knocte) 2012-03-29 19:45:05 UTC
Thanks for the patch Fabrice!

William, do you mind testing Fabrice's patch? I would test myself but I found this bug difficult (although not impossible) to reproduce...

Thanks
Comment 10 William Witt 2012-03-31 19:09:38 UTC
I'll have to recreate a virtual machine, but I have no problems testing the patch.
Comment 11 Andrés G. Aragoneses (IRC: knocte) 2012-05-04 00:07:14 UTC
(In reply to comment #10)
> I'll have to recreate a virtual machine, but I have no problems testing the
> patch.

Sounds good, ping? :)
Comment 12 William Witt 2012-05-04 01:59:09 UTC
Sorry for the delay...

The patch seems to work for me.
Comment 13 Andrés G. Aragoneses (IRC: knocte) 2012-05-29 19:06:21 UTC
*** Bug 677035 has been marked as a duplicate of this bug. ***
Comment 14 Timo Dörr 2012-07-01 21:32:19 UTC
If run into the same bug and it gave me a hard time until I discovered this report.

I've played around in the MD debugger and Fabrice is just right - the IncrementAddedTracks () is never called when the list is empty, hence the BatchUserJob.Completed field is never incremented (via add_track_job), and the Job never finished. 

The patch works as expceted and fixes the issue. Its quite crucial, as it will always happen if you sync a device that does not need syncing (because all tracks are up to date) and should go into master asap.
Comment 15 Bertrand Lorentz 2012-08-18 16:31:06 UTC
Comment on attachment 210890 [details] [review]
Hide the progress bar when there's nothing new to sync

Thanks for the patch, committed!
Sorry it took so long !
Comment 16 Bertrand Lorentz 2012-08-18 16:31:17 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 17 Vlad G 2012-08-29 14:05:26 UTC
When would be the next major software release or how I could install development version?
Comment 18 Andrés G. Aragoneses (IRC: knocte) 2012-08-29 15:09:57 UTC
Vlad, banshee 2.5.0 should include this fix.