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 629838 - System.OverflowException: This isn't a 64bits machine (sync to ipod doesn't work using AppleDevice)
System.OverflowException: This isn't a 64bits machine (sync to ipod doesn't w...
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device - iPod
1.7.5
Other Linux
: High critical
: 1.x
Assigned To: Alan McGovern
Banshee Maintainers
: 630164 630840 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-09-16 11:10 UTC by alexpotato
Modified: 2010-09-29 07:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
log from the terminal window (2.21 KB, text/plain)
2010-09-17 01:20 UTC, alexpotato
  Details
patch to fix overflow issue with datetimes (2.01 KB, patch)
2010-09-17 21:36 UTC, Alan McGovern
committed Details | Review

Description alexpotato 2010-09-16 11:10:17 UTC
My current setup:

-Ubuntu 10.04
-Banshee 1.7.5 (I followed the instructions to set up the PPA and get the latest version)
-IPod 5th gen video (MA147LL) with firmware 1.3

Here is the issue: 
-I restore the Ipod on a windows machine
-I plug in the Ipod on the Ubuntu machine
-I set the sync preferences to be "Sync to " and "Sync when connected and when libraries change"
-Banshee says it is syncing with the Ipod
-When it says it's done, I disconnect the Ipod and there are no songs or playlist on the Ipod
-When I plug the Ipod back into the Ubuntu box, Banshee tells me the database on the ipod is too new or needs to be repaired.

If log snippets or anything else would help in resolving this, please let me know. FYI, I also work in Application Support for a major bank so if you need help in general, I am willing to offer my free time.
Comment 1 alexpotato 2010-09-16 11:14:09 UTC
Some clarification:

-In Banshee 1.6, reconnecting after a sync led to the database was corrupt
-In Banshee 1.7.5, my Ipod appeared again with no music or playlist after reconnecting
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2010-09-16 11:15:57 UTC
Do you have the AppleDevice extension enabled? (Check in menu Edit->Preferences->Extensions tab.)
Comment 3 alexpotato 2010-09-16 11:18:06 UTC
Apple device support is enabled.
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2010-09-16 11:22:06 UTC
Thanks for the information. We still need more information to resolve this issue:

a) How many songs are you syncing?
b) How do you disconnect your iPod? Just physically? Or do you also use the contextual menu (right-click) on the iPod icon to disconnect it?

Thanks
Comment 5 alexpotato 2010-09-16 11:30:33 UTC
for version 1.7.5 I have tried the following:

-A smart playlist that holds all of my songs rated 3 stars and above (about 700 songs)
-A regular playlist that holds about 50 songs

For disconnecting, I hit the "disconnect" button in Banshee. Once the ipod goes back to the regular mode (e.g. it shows the regular Ipod menu), I disconnect it from the machine.
Comment 6 alexpotato 2010-09-16 11:47:40 UTC
As additional information:

After the sync is done, I see ALL of my playlists under the Ipod even though I only selected one playlist to sync with.
Comment 7 Andrés G. Aragoneses (IRC: knocte) 2010-09-16 11:48:23 UTC
You're disconnecting the device in the proper way, thanks.

Now let's get more information: 

1) With the iPod disconnected, could you reduce your library to 0 songs (backup your database if you need it).
2) Then connect the iPod so it syncs (that is, it removes everything from the iPod).
3) Disconnect the iPod and confirm it has nothing.
4) Add 10 (only 10 please) songs to your iPod. (Don't care about playlists, support for that hasn't been added yet, for more info see this bug 628675).
5) Exit banshee.
6) Connect the iPod again.
7) Run banshee with logs enabled.
8) Let banshee sync the iPod, then disconnect.
9) Post banshee logs here and tell us if the 10 songs got into the iPod.

To run banshee with logs you have to basically follow this instructions: http://banshee.fm/contribute/file-bugs/ (that is, remove the file ~/.config/banshee-1/log so it gets created again later , then use banshee, then attach that file here in the bug)

Thanks!
Comment 8 Andrés G. Aragoneses (IRC: knocte) 2010-09-16 11:49:15 UTC
(In reply to comment #6)
> As additional information:
> 
> After the sync is done, I see ALL of my playlists under the Ipod even though I
> only selected one playlist to sync with.

As I said in previous comment, let's not concentrate on playlist, let's deal first with the most important and simplest scenario: songs.

BTW are you using manual or auto-sync?
Comment 9 Alan McGovern 2010-09-16 21:24:40 UTC
Run banshee in a terminal and attach the entire output of your syncing process to the bug report. It sounds like you're not actually using the AppleDevice extension but are instead falling back to the ipod-sharp one. That's what would give you those strange errors.
Comment 10 Andrés G. Aragoneses (IRC: knocte) 2010-09-16 22:32:42 UTC
Hey Alan, let's see if we're on the same page here:

(In reply to comment #9)
> Run banshee in a terminal and attach the entire output of your syncing process

It's not needed, as in http://banshee.fm/contribute/file-bugs/ it's said that anyway the log is always saved right?

> to the bug report. It sounds like you're not actually using the AppleDevice
> extension but are instead falling back to the ipod-sharp one.

He said he had the extension enabled. Can the extension not work somehow if it's enabled?
Comment 11 alexpotato 2010-09-17 01:20:01 UTC
Created attachment 170451 [details]
log from the terminal window
Comment 12 alexpotato 2010-09-17 01:21:40 UTC
-Created new user under Ubuntu
-Opened Banshee
-Connected IPod
-Selected "Sync entire library" under Music
-Hit disconnect
-Ipod shows no songs
-Added 3 songs to library
-Quit Banshee
-Connected IPod and launched Banshee
-Selected "Sync entire library" under Music
-Hit sync.
-Sync finishes 
-If I click on the IPod under Banshee, songs show up under Music under the IPod
-Disconnect IPod. 
-There are no songs.

Logs are from after the songs were added. It seems under the new user, the logs weren't automatically created so I ran banshee from the terminal as suggested. How exactly do I enable the logging?
Comment 13 Andrés G. Aragoneses (IRC: knocte) 2010-09-17 11:02:09 UTC
Thanks for the logs! This has been reported in launchpad already.
Comment 14 alexpotato 2010-09-17 11:10:03 UTC
Andres,

Couple questions:

1. When should I report bugs here and when should I report them to Launchpad?
2. Do you have the bug # in Launchpad?
3. I'm still curious as to how you get Banshee to write to a log (as my default user it seemed to be already on but as my test user it wasn't)?
Comment 15 Andrés G. Aragoneses (IRC: knocte) 2010-09-17 14:56:11 UTC
(In reply to comment #14)
> 1. When should I report bugs here and when should I report them to Launchpad?

Here when the problem can be fixed in Banshee's source code, in Launchpad when the problem must be fixed downstream in the distro (for example, Ubuntu packaging). So you did it correctly.

> 2. Do you have the bug # in Launchpad?

I posted it on the SeeAlso field.

> 3. I'm still curious as to how you get Banshee to write to a log (as my default
> user it seemed to be already on but as my test user it wasn't)?

This is a good question, and is similar to what I was discussing with Alan.
Comment 16 Alan McGovern 2010-09-17 21:29:52 UTC
You hit two issues. Firstly bug #488149. Your idevice wasn't getting automatically mounted by your OS and banshee did not automatically mount it either, it just assumed it was already mounted. This bug has been resolved in git and will be part of the release after 1.7.6.

The overflow bug is an issue in the libgpod-sharp bindings and will be fixed with the next libgpod-sharp release (hopefully). I'll also commit a workaround in banshee for the moment to allow banshee to work with the existing bindings.
Comment 17 Alan McGovern 2010-09-17 21:36:43 UTC
Created attachment 170520 [details] [review]
patch to fix overflow issue with datetimes

This patch fixes the overflow in the libgpod-sharp bindings. It needs to be applied in their git repository.
Comment 18 Alan McGovern 2010-09-17 21:46:42 UTC
The patch to banshee to handle the overflow case has been committed to git and will be in the next daily/official release.
Comment 19 Carlos Moffat 2010-09-18 17:01:59 UTC
Hi Alan,

I applied the patch to the PPA version of libgpod-sharp (libgpod-cil), installed the new libgpod-cil, deleted /.config/banshee-1 and tried to sync a podcast. No luck, same error. Am I missing something?

Thanks.
Comment 20 Alan McGovern 2010-09-18 19:40:23 UTC
Unless banshee was recompiled against the new library, that would have had no affect. libgpod-sharp is an unstable library and so the policy for these libraries is to copy them at compile time from the system package. This prevents application X from breaking when the user updates unstable lib Y. 

You can force banshee to use the new library by replacing the bundled version with the one with the patch applied. The bundled version should be located at: /usr/lib/banshee-1/Extensions/libgpod-sharp.dll , or somewhere similar on your distro.

Also please don't mark this one resolved until I can verify the fix and make sure the patch for libgpod-sharp has been upstreamed, thanks! :)
Comment 21 Carlos Moffat 2010-09-18 20:24:52 UTC
Hi Alan,

I replaced the bundled version as you suggested, and your patch works! I am now having a separate issue with the podcasts ending in the main music library, but at least they're showing up!

BTW, this on 10.04/386 using the PPA libgpod-sharp from the unstable repository and a 5G ipod nano.

Thanks for the good work.
Comment 22 Alan McGovern 2010-09-19 11:52:37 UTC
That's great news, thanks for testing it. The next version of banshee will work around this issue as will the next version of libgpod-sharp. In the mean time, if you come across any other issues do let us know.
Comment 23 Christophe Fergeau 2010-09-19 21:08:19 UTC
Comment on attachment 170520 [details] [review]
patch to fix overflow issue with datetimes

I pushed this patch (after rewording the commit log a little bit)
Comment 24 Andrés G. Aragoneses (IRC: knocte) 2010-09-21 10:25:08 UTC
*** Bug 630164 has been marked as a duplicate of this bug. ***
Comment 25 Gabriel Burt 2010-09-23 19:37:36 UTC
Closing as fixed since patches have been committed to banshee and libgpod.
Comment 26 Alan McGovern 2010-09-29 07:59:56 UTC
*** Bug 630840 has been marked as a duplicate of this bug. ***