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 684876 - Duplicate playlists when syncing iPod
Duplicate playlists when syncing iPod
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: Device - iPod
git master
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
: 674835 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-09-26 13:57 UTC by cidthecoatrack
Modified: 2012-12-15 01:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description cidthecoatrack 2012-09-26 13:57:13 UTC
When syncing an iPod that has already been synced at least once with Banshee, instead of simply updating the playlists listed on the iPod, Banshee adds new playlists, often creating duplicates.  This occurs each time the iPod is updated - so, if the iPod is updated 3 times, there are triplicates of most playlists.  It is easy to see the result - when looking at the available space in the iPod overview window, it lists the space taken by the extra playlists as "other".  Banshee should either recognize a playlist on an iPod and update or (probably simpler in the current structure) delete all old playlists from the iPod and then sync the current ones (it already does this, minus the deleting old playlists portion).
Comment 1 Andrés G. Aragoneses (IRC: knocte) 2012-09-26 19:34:16 UTC
Bummer, I can reproduce.
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2012-09-27 18:53:44 UTC
cidthecoatrack: can you tell me what's your distro and the version? And if you're running a 64bits OS or not?

Thanks
Comment 3 cidthecoatrack 2012-09-27 20:32:59 UTC
I'm running Xubuntu 12.04, 64-bit.  Some other info that might be helpful:

1. The iPod is a 5th-gen iPod Classic (the 160 GB version)
2. The syncing issues occur when one disconnects the iPod and then reconnects.
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2012-09-27 21:06:43 UTC
Thanks.

I did some tests yesterday and I have the feeling that this is a packaging bug.

Do you have access to a box that has an Ubuntu-12.04-based distribution, but 32bits instead of 64bits? If yes, it would greatly help to know if you can reproduce the bug there too or not.
Comment 5 cidthecoatrack 2012-09-28 13:34:34 UTC
Unfortunately, I don't have ready access to that kind of box.  Might there be a way to emulate that type of OS temporarily, perhaps like the "trial run" one can do before installing a Linux OS?
Comment 6 Andrés G. Aragoneses (IRC: knocte) 2012-09-28 19:18:22 UTC
(In reply to comment #5)
> Unfortunately, I don't have ready access to that kind of box.  Might there be a
> way to emulate that type of OS temporarily, perhaps like the "trial run" one
> can do before installing a Linux OS?

Yeah, maybe you can run Banshee when booting in an Ubuntu-32bits LIVE CD?

In the meantime, I've opened a bug downstream with a patch: http://bugs.debian.org/689054

Let's not close this bug yet until we have confirmed it is fixed by the patch.
Comment 7 cidthecoatrack 2012-09-29 16:41:25 UTC
Sorry, but just had a slow moment, and realized I should clarify one other thing, just to make sure: the duplicate playlists appear on the iPod, not in the Banshee library.  Furthermore, when Banshee displays the iPod's contents, it will only show one copy of each playlist - but the iPod itself shows the duplicates.

Working on getting a Live CD for Ubuntu 32-bit, and I'll give it a shot.
Comment 8 Andrés G. Aragoneses (IRC: knocte) 2012-09-29 20:43:41 UTC
(In reply to comment #7)
> Sorry, but just had a slow moment, and realized I should clarify one other
> thing, just to make sure: the duplicate playlists appear on the iPod, not in
> the Banshee library.  Furthermore, when Banshee displays the iPod's contents,
> it will only show one copy of each playlist - but the iPod itself shows the
> duplicates.

Yeah, there was no need to clarify, I already tested myself and reproduced it exactly as you mention (as I said in comment#1). Reason I think I didn't catch this bug earlier is that the computer where I usually do the syncs from is not 64bits, and this bug is only affecting this architecture.

> Working on getting a Live CD for Ubuntu 32-bit, and I'll give it a shot.

Great, if I'm right you won't be able to reproduce the bug in that case. If that's the case we just need to wait for new deb packages to be generated so you can test. I've been told they take only 6 hours to be built after the change is made (and I've already pinged the appropriate people!).
Comment 9 Age Bosma (IRC: Forage) 2012-10-07 13:04:18 UTC
Duplicate of bug #675678 if you ask me
Comment 10 Age Bosma (IRC: Forage) 2012-10-07 17:10:50 UTC
I've seen the other "duplicate playlist" issues, but I'm a bit sceptical about it being 64-bit related to be honest. Doesn't hurt to look into that of course. For what it's worth I'm on Ubuntu 12.04 64-bit.
Comment 11 Andrés G. Aragoneses (IRC: knocte) 2012-10-07 17:26:16 UTC
Age, I think it's 64bits related because I tried to debug it in my box, and as soon as I compiled libgpod from upstream, it started working (in particular, the is_podcast field started being populated properly from libgpod to the Playlist class in libgpod-sharp...). Libgpod-sharp uses different layout for structs depending on the arch, but the debian packaging spec files only specify the package as noarch... Long story short, I'm still waiting for the packagers to provide a fix (a simple s/all/any/ is not enough aparently) so we can hand new packages to testers/reporters.
Comment 12 Andrés G. Aragoneses (IRC: knocte) 2012-10-15 15:38:03 UTC
This has been fixed upstream in theory:

http://anonscm.debian.org/gitweb/?p=pkg-gtkpod/packages/libgpod.git;a=blobdiff;f=debian/changelog;h=b1af4321f3c1c46460bac43176991134cb5af355;hp=6dde490fc6eb9acdad10218d5b1ee88badeb9e70;hb=fc079878d32195dfd4452ac67ad1a162d49c0b3f;hpb=a5c38880c5eab3fb65bdeabbdde382244e22d053

cidthecoatrack: can you test with libpod-cil package version 0.8.2-7 instead of 0.8.2-6?
Comment 13 Andrés G. Aragoneses (IRC: knocte) 2012-10-15 15:38:24 UTC
(I meant downstream)
Comment 14 cidthecoatrack 2012-10-17 18:12:17 UTC
How odd - found out through Synaptic that I somehow didn't even have libgpod-cil installed.  Maybe that's the issue to begin with... installing now... it'll be a bit before I can test it again on my iPod, but I'll reply as soon as I find out whether this fixed the issue.
Comment 15 cidthecoatrack 2012-10-22 12:24:53 UTC
Alrighty, have libgpod-cil now installed, version 0.8.2-6.  Synaptic doesn't say 0.8.2-7 is available.  Is it a beta or something?

With libgpod-cil 0.8.2-6 actually installed, playlists still duplicate.
Comment 16 Andrés G. Aragoneses (IRC: knocte) 2012-10-22 14:26:11 UTC
0.8.2-6 is the old one.

I just installed Ubuntu 12.10 today and I'm experiencing the same weird things:
- libgpod-cil is not installed, and AppleDevice support is enabled in the "bundled" banshee.
- libgpod packages are versioned 0.8.2-6, so I guess the -7 didn't arrive early enough for the Ubuntu QA team?

There must be a way to install the -7 version manually anyway, I'll try to figure out.
Comment 17 cidthecoatrack 2012-11-04 17:38:20 UTC
I manually downloaded the .deb file from here: https://launchpad.net/ubuntu/raring/amd64/libgpod-cil/0.8.2-7 and installed it.  Now for testing that to see if it fixes the problem...
Comment 18 Andrés G. Aragoneses (IRC: knocte) 2012-11-04 18:00:56 UTC
(In reply to comment #17)
> I manually downloaded the .deb file from here:

That won't help. It turns out, the reason why iPod sync was working for us even when not having libgpod-cil installed is because it's an "unstable" dep, therefore it's only needed at banshee's compile time, thus banshee includes it in its package.

So what you need is to test a new version of banshee (new version of the package) which has been compiled with libgpod-cil 0.8.2-7. I'm not sure where to find this so I've been pinging hyperair on IRC the last days but didn't catch him yet.
Comment 19 Andrés G. Aragoneses (IRC: knocte) 2012-12-12 15:47:30 UTC
Ok, so apparently banshee's official package in 12.10 is versioned as "2.6.0-1ubuntu2".

Chow (hypera1r) is telling me that a new package with this bugfix has been proposed here: https://bugs.launchpad.net/bugs/1070631

They need us to verify the new package works. There are two ways to do it:
1) Enable the quantal-proposed repository, and upgrade banshee, as explained in the first section of this page: https://wiki.ubuntu.com/Testing/EnableProposed
2) Grab the package manually from https://launchpad.net/ubuntu/+source/banshee (the one versioned 2.6.0-1ubuntu2.1 I guess, in the row labeled "Quantal", "proposed").

Can you give it a go?
Comment 20 cidthecoatrack 2012-12-13 12:40:04 UTC
I certainly can.  Will respond with the results.
Comment 21 cidthecoatrack 2012-12-13 13:04:05 UTC
Alright, I hope I have installed the patches correctly (I grabbed the package manually and used quilt push -a as per the instructions in the README).
Comment 22 Andrés G. Aragoneses (IRC: knocte) 2012-12-13 13:13:35 UTC
patches? I didn't mention any patch. I hope you mean packages.

I have never used quilt push, don't know what it is.

This just boils down to making sure you have the new package versioned "2.6.0-1ubuntu2.1" instead of "2.6.0-1ubuntu2".
Comment 23 cidthecoatrack 2012-12-13 23:51:33 UTC
Hmm, I tried downloading the package manually, but when it wanted to install, it talked about using quilt to install patches.  Where did I go wrong?
Comment 24 cidthecoatrack 2012-12-14 00:04:58 UTC
Attempting the enabling of the repository this time to see if I have any more luck.
Comment 25 cidthecoatrack 2012-12-14 00:22:36 UTC
Okay, something super fishy is going on.  After enabling the repository, it wants me to delete almost everything I have installed in order to install this new version of Banshee and its dependencies.  What is going on?
Comment 26 cidthecoatrack 2012-12-14 00:49:33 UTC
Alright, something has gotten seriously buggered up.  Disabled the quantal repository, banshee has been inexplicably completely uninstalled (along with several other apps), and attempting to reinstall them prompts the removal of other apps - like Chromium and Caffiene and even Catfish.  I hate to say this, but it is quite dissatisfying when attempting to troubleshoot a bug like this ends up buggering the whole system - this is not the first time such a wreck has occurred.  I love linux and xubuntu and would use nothing else, but this is really frustrating. /rant
Comment 27 Age Bosma (IRC: Forage) 2012-12-14 08:50:21 UTC
@cidthecoatrack: Then there must have been other issues plaguing your system earlier. Installing from an additional repository like proposed can not cause such issues. Installing from the quantal-proposed repository worked just fine for me. Though I don't have time for proper testing until tomorrow.
Comment 28 Age Bosma (IRC: Forage) 2012-12-14 19:41:24 UTC
Looking good!

Testing steps:
1. Connect iPod
2. Launch Banshee
3. Remove all playlists (including duplicates)
4. Sync iPod based on playlist
5. Reconnect iPod
6. Sync iPod based on playlist
7. Reconnect iPod

Findings:
- At first launch (2), all playlist, including duplicates, appear and can be removed.
- Syncing (4) still adds all locally available playlists again (different issue)
- After reconnecting (5) all playlist are listed
- After syncing again (6) and reconnecting again (7), no duplicate playlists are present.
Comment 29 cidthecoatrack 2012-12-14 22:04:14 UTC
I was afraid of those other issues.  But with this fresh install, things should be cleaner.  I will attempt this fix once I have restored my library.
Comment 30 Andrés G. Aragoneses (IRC: knocte) 2012-12-15 01:07:05 UTC
Alright, I just tested it and confirm it works, as Age says. \o/

So I'm closing this as NOTGNOME, given that it was a Debian/Ubuntu packaging bug.
Comment 31 Andrés G. Aragoneses (IRC: knocte) 2012-12-15 01:14:33 UTC
*** Bug 674835 has been marked as a duplicate of this bug. ***