GNOME Bugzilla – Bug 629838
System.OverflowException: This isn't a 64bits machine (sync to ipod doesn't work using AppleDevice)
Last modified: 2010-09-29 07:59:56 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.
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
Do you have the AppleDevice extension enabled? (Check in menu Edit->Preferences->Extensions tab.)
Apple device support is enabled.
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
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.
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.
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!
(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?
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.
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?
Created attachment 170451 [details] log from the terminal window
-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?
Thanks for the logs! This has been reported in launchpad already.
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)?
(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.
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.
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.
The patch to banshee to handle the overflow case has been committed to git and will be in the next daily/official release.
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.
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! :)
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.
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 on attachment 170520 [details] [review] patch to fix overflow issue with datetimes I pushed this patch (after rewording the commit log a little bit)
*** Bug 630164 has been marked as a duplicate of this bug. ***
Closing as fixed since patches have been committed to banshee and libgpod.
*** Bug 630840 has been marked as a duplicate of this bug. ***