gPodder Bug Tracker – Bug 1832
gPodder OSX device sync's progress isn't updated
Last modified: 2013-06-18 06:59:35 BST
When I sync episodes to a device, the Progress tab shows Queued state for all the files and isn't updated, even though the sync works ok. I have two test configurations: one with a small db and a couple of files (the bug is not reproduced), and one with a 12MB db and a few dozens of files, that's where the bug appears. In settings, I set device type to fs-based, and set the mountpoint.
When I select the "Sync to device" menu item, gPodder logs >1000 excluded episodes (because they're old and were deleted long ago), then it starts syncing and all the files in Progress tab are Queued. The titles of the tab and windows aren't updated. But when I double-click a file, the list is updated (synced files are deleted, current file shows the progress) and then freezes again.
gPodder.app 3.5.1 on OSX 10.8.3
Some details: actually, there are 7000 skipped episodes in the test database, and it takes gPodder 5 seconds to log them. Yes, I run it with the "-v" flag. If I comment out the 'Excluding %s from sync' logging line in sync.py, the bug disappears!
Here are interesting parts of the log:
2013-06-13 23:30:16,245 [gpodder.gtkui.main] INFO: enable_download_list_update: False
2013-06-13 23:30:16,245 [gpodder.gtkui.main] DEBUG: update_downloads_list
2013-06-13 23:30:17,708 [gpodder.gtkui.main] INFO: All tasks have finished.
2013-06-13 23:30:17,720 [gpodder.gtkui.main] DEBUG: update_downloads_list
2013-06-13 23:30:19,153 [gpodder.gtkui.main] INFO: All tasks have finished.
2013-06-13 23:30:19,174 [gpodder.gtkui.main] DEBUG: source_id = 63
2013-06-13 23:30:19,174 [gpodder.gtkui.desktop.sync] INFO: Not creating playlists - starting sync
2013-06-13 23:30:19,174 [gpodder.dbsqlite] DEBUG: Commit.
2013-06-13 23:30:19,177 [gpodder.gtkui.main] INFO: enable_download_list_update: True
2013-06-13 23:30:19,177 [gpodder.util] DEBUG: run_in_background: <function sync_thread_func at 0x10c792f50> (False)
2013-06-13 23:30:19,179 [gpodder.sync] INFO: Excluding … from sync
2013-06-13 23:30:20,673 [gpodder.sync] INFO: Excluding … from sync
2013-06-13 23:30:20,676 [gpodder.gtkui.main] DEBUG: update_downloads_list
2013-06-13 23:30:22,083 [gpodder.sync] INFO: Excluding … from sync
2013-06-13 23:30:22,264 [gpodder.gtkui.main] INFO: All tasks have finished.
2013-06-13 23:30:22,264 [gpodder.sync] INFO: Excluding … from sync
2013-06-13 23:30:22,276 [gpodder.gtkui.main] DEBUG: update_downloads_list
After that, update_downloads_list is never called again. The logs with excluded episodes stopped two seconds later.
Thomas, please check my patch here: https://github.com/gpodder/gpodder/pull/101
Patch merged, thanks :)