iPod Sync Issues

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

iPod Sync Issues

Steven Benedict
Hi:
I have been banging my head against a wall for almost 2 months. I am trying to switch from Macintosh and Windows to Ubuntu. All is going nice and smoothly except for banshee. I really like banshee as a media player except for one thing; the iPod sync capabilities seem to be a bit short of acceptable.

The Setup:
     iPod classic 160 GB (I think 6 gen) [it is the one that came out when they sold both the 80 GB and the 160 GB before they had just the 120 GB (3 resizes back?)
     iPod has been restored with Windows version of iTunes (running in Virtualbox)
     Ubuntu 10.04
     Banshee 1.6.1 (latest from the banshee ppa)
    
The Problem:
This issue has come close to putting me on lithium. When I sync my iPod in banshee, the iPod goes through everything and appears to have gone through the sync without a hitch. I can play songs from my iPod through banshee and everything before I disconnect. The problem manifests its self when I disconnect. THE SONGS ARE GONE! My iPod informs me that it is nice and clean of any and all media.

Solutions That Didn't Work:
I have been trying to figure this one out for a while. I have tried removing the songs mentioned above from the music library so they wouldn't be loaded onto the iPod, I have tried changing read/write permissions of the iPod like a few forums have suggested a few years back, I have also tried both rebuilding, and not rebuilding, the database, and a number of other methods. NONE WORKED! The only thing that did work was stopping the sync part way through. However, this just simply is not feasible, I have 25000 songs and I can't work that way.

Banshee Warnings:
After all of this trial and error, I decided to run banshee through the terminal so I could see any warnings or errors that occur. A few times banshee would crash Linux. However, the other times I caught a Warning that occurred sometime after the second stage of the syncing (adds the files fine and i think it goes through the entire sync, it may occur somewhere around the flushing stage). This Warning states that it can't save the iPod database to the iPod. I feel like this is a very major problem. I assume that the iPod database tells the iPod where to find the music and if it can't be updated then the songs are existent but not visible to the iPod's GUI.

Here is a copy of the Warning:

[Warn  22:59:09.404] Failed to save iPod database - System.NullReferenceException: Object reference not set to an instance of an object (in `ipod-sharp')
  at IPod.ImageNameRecord.SetData (System.IO.Stream stream, System.Byte[] data, Int32 offset) [0x00000]
  at IPod.ImageNameRecord.SetData (System.IO.Stream stream, System.Byte[] data) [0x00000]
  at IPod.PhotoDatabase.SaveThumbnails (System.Collections.Generic.List`1 existingNames, System.Collections.Generic.List`1 newNames, System.Collections.Generic.List`1 removedNames, IPod.ArtworkFormat format) [0x00000]
  at IPod.PhotoDatabase.SaveThumbnails () [0x00000]
  at IPod.PhotoDatabase.Save () [0x00000]
IPod.DatabaseWriteException: Failed to save database (in `ipod-sharp')
  at IPod.PhotoDatabase.Save () [0x00000]
  at IPod.TrackDatabase.Save () [0x00000]
IPod.DatabaseWriteException: Failed to save database (in `ipod-sharp')
  at IPod.TrackDatabase.Save () [0x00000]
  at IPod.Device.Save () [0x00000]
  at Banshee.Dap.Ipod.IpodSource.PerformSyncThreadCycle () [0x00000]


I am hoping this isn't too big of a problem. I would love to use Linux exclusively and this is the only thing holding me back, I am very tied to my music. If there is a problem on my end I am more than willing to try what you suggest.

Thank you very much,
     Steve



_______________________________________________
banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list  (unsubscribe here)
Reply | Threaded
Open this post in threaded view
|

Re: iPod Sync Issues

Michael Martin-Smucker
Sorry to hear about the problem, but good work tracking it down -- it definitely sounds more like a bug than a problem on your end.  At this point, you probably have enough information to create a useful bug report... for more information, see: http://banshee.fm/contribute/help-with-bug-reports/

Michael

On Thu, Jul 22, 2010 at 2:12 AM, Steven Benedict <[hidden email]> wrote:
Hi:
I have been banging my head against a wall for almost 2 months. I am trying to switch from Macintosh and Windows to Ubuntu. All is going nice and smoothly except for banshee. I really like banshee as a media player except for one thing; the iPod sync capabilities seem to be a bit short of acceptable.

The Setup:
     iPod classic 160 GB (I think 6 gen) [it is the one that came out when they sold both the 80 GB and the 160 GB before they had just the 120 GB (3 resizes back?)
     iPod has been restored with Windows version of iTunes (running in Virtualbox)
     Ubuntu 10.04
     Banshee 1.6.1 (latest from the banshee ppa)
    
The Problem:
This issue has come close to putting me on lithium. When I sync my iPod in banshee, the iPod goes through everything and appears to have gone through the sync without a hitch. I can play songs from my iPod through banshee and everything before I disconnect. The problem manifests its self when I disconnect. THE SONGS ARE GONE! My iPod informs me that it is nice and clean of any and all media.

Solutions That Didn't Work:
I have been trying to figure this one out for a while. I have tried removing the songs mentioned above from the music library so they wouldn't be loaded onto the iPod, I have tried changing read/write permissions of the iPod like a few forums have suggested a few years back, I have also tried both rebuilding, and not rebuilding, the database, and a number of other methods. NONE WORKED! The only thing that did work was stopping the sync part way through. However, this just simply is not feasible, I have 25000 songs and I can't work that way.

Banshee Warnings:
After all of this trial and error, I decided to run banshee through the terminal so I could see any warnings or errors that occur. A few times banshee would crash Linux. However, the other times I caught a Warning that occurred sometime after the second stage of the syncing (adds the files fine and i think it goes through the entire sync, it may occur somewhere around the flushing stage). This Warning states that it can't save the iPod database to the iPod. I feel like this is a very major problem. I assume that the iPod database tells the iPod where to find the music and if it can't be updated then the songs are existent but not visible to the iPod's GUI.

Here is a copy of the Warning:

[Warn  22:59:09.404] Failed to save iPod database - System.NullReferenceException: Object reference not set to an instance of an object (in `ipod-sharp')
  at IPod.ImageNameRecord.SetData (System.IO.Stream stream, System.Byte[] data, Int32 offset) [0x00000]
  at IPod.ImageNameRecord.SetData (System.IO.Stream stream, System.Byte[] data) [0x00000]
  at IPod.PhotoDatabase.SaveThumbnails (System.Collections.Generic.List`1 existingNames, System.Collections.Generic.List`1 newNames, System.Collections.Generic.List`1 removedNames, IPod.ArtworkFormat format) [0x00000]
  at IPod.PhotoDatabase.SaveThumbnails () [0x00000]
  at IPod.PhotoDatabase.Save () [0x00000]
IPod.DatabaseWriteException: Failed to save database (in `ipod-sharp')
  at IPod.PhotoDatabase.Save () [0x00000]
  at IPod.TrackDatabase.Save () [0x00000]
IPod.DatabaseWriteException: Failed to save database (in `ipod-sharp')
  at IPod.TrackDatabase.Save () [0x00000]
  at IPod.Device.Save () [0x00000]
  at Banshee.Dap.Ipod.IpodSource.PerformSyncThreadCycle () [0x00000]


I am hoping this isn't too big of a problem. I would love to use Linux exclusively and this is the only thing holding me back, I am very tied to my music. If there is a problem on my end I am more than willing to try what you suggest.

Thank you very much,
     Steve



_______________________________________________
banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list  (unsubscribe here)


_______________________________________________
banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list  (unsubscribe here)
Reply | Threaded
Open this post in threaded view
|

Re: iPod Sync Issues

ThomasD
In reply to this post by Steven Benedict
Steve,
if you are lucky, the songs are not gone, but the iPod has a problem finding them. The workaround is to attach the iPod to a PC that has iTunes on it. iTunes will read the data base, fix whatever was wrong before, and all your songs are back. There seems to be whatever Apple chose in its infinte wisdom to be required missing, may it be a hash key, an autograph of SJ, or know the hell.  The bottom line is, buy a reasonable media player, btw, I have a nano and a Classic for sale :-)

This is not a nice workaround, I have updated to 1.7.3 and see if I can figure something out that may be of help.

Ciao
Tom
Reply | Threaded
Open this post in threaded view
|

Re: iPod Sync Issues

Steven Benedict
Tom/Mike,

Whenever I connect it back into iTunes it classifies the data as other or doesn't show up. When this is the case I tend to just reinitialize and try again. I read somewhere that when Banshee 1.8 comes out it should have full support for iPods so maybe one of the 1.7 releases work better.

In the mean time I might have found a way to update my iTunes that I have running in my XP VirtualBox using Banshee as my main music player. I found a python script online that exported a specified Banshee playlist and adapted it so it exported all Banshee playlists to standard m3u format. I then wrote a c++ program that created an iTunes Music Library.xml file using those exported playlists as well and already existing iTunes Music Library.xml file. The previous xml file i got from the iTunes folder by importing the songs that exist on my Host Machine into the iTunes in the VM (making sure the iTunes Music Folder destination points to the VirtualBox). To interface between the python script and the c++ program I used a bash script. With that done I can import the iTunes Music Library.xml file to iTunes and I can update my iPod. It's a bit of a run around, but it almost works, ironing out the issues right now (iTunes uses funny characters for the special characters so the comparison doesn't capture all of the tracks).

And with regards to the bug reporting, I will probably get around to it one of these days. It took me almost a month to create this account so we shall see how soon I breakdown.

Thanks,
   Steven


_______________________________________________
banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list  (unsubscribe here)
Reply | Threaded
Open this post in threaded view
|

Re: iPod Sync Issues

"Andrés G. Aragoneses"
El 03/08/10 03:41, Steven Benedict escribió:
> Tom/Mike,
>
> Whenever I connect it back into iTunes it classifies the data as other
> or doesn't show up. When this is the case I tend to just reinitialize

As it's said in Banshee's UI and manuals, it's not recommended to use
iTunes and Banshee at the same time, it's not supported. If you start
using Banshee to sync, stop using iTunes.


> and try again. I read somewhere that when Banshee 1.8 comes out it
> should have full support for iPods so maybe one of the 1.7 releases work
> better.

Banshee 1.8 will most likely include a new more modern extension to
handle not only iPods but iPhones and others. However it will be in the
early stages and some people would even prefer to use the previous
extension (and any bug found on the new extension should actually be
filed against libgpod, not banshee).


> In the mean time I might have found a way to update my iTunes that I
> have running in my XP VirtualBox using Banshee as my main music player.
> I found a python script online that exported a specified Banshee
> playlist and adapted it so it exported all Banshee playlists to standard
> m3u format. I then wrote a c++ program that created an iTunes Music
> Library.xml file using those exported playlists as well and already
> existing iTunes Music Library.xml file. The previous xml file i got from
> the iTunes folder by importing the songs that exist on my Host Machine
> into the iTunes in the VM (making sure the iTunes Music Folder
> destination points to the VirtualBox). To interface between the python
> script and the c++ program I used a bash script. With that done I can
> import the iTunes Music Library.xml file to iTunes and I can update my
> iPod. It's a bit of a run around, but it almost works, ironing out the
> issues right now (iTunes uses funny characters for the special
> characters so the comparison doesn't capture all of the tracks).

As it seems you're a knowledgeable developer, it would be more useful to
land your efforts in upstream projects rather than little scripts or
workarounds that very few people will use or that would break easily. If
you know C++ and Python, I bet you can learn C# (or even C) very fast
and try helping the ipod-sharp library (or the libgpod project if you go
for C), which is most like the one to have the bug you're mentioning
(the NullReferenceException you posted in a previous message is a bug,
for sure).

And it's very usual that just for a small bug in the ipod-sharp library
that may be only affecting 1 or 2 songs of your entire library, the sync
operation gets broken as a whole. Thus, trying to isolate the problem
would also help. Here you can read an e-mail from me to the list some
months ago describing how to do it:

http://mail.gnome.org/archives/banshee-list/2010-March/msg00292.html


> And with regards to the bug reporting, I will probably get around to it
> one of these days. It took me almost a month to create this account so
> we shall see how soon I breakdown.

It will be appreciated.

  Andres

--


_______________________________________________
banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list  (unsubscribe here)
Reply | Threaded
Open this post in threaded view
|

Re: iPod Sync Issues

berniz95
In reply to this post by Steven Benedict
Steven Benedict wrote
When I sync my iPod in banshee, the iPod goes through everything and appears to have gone through the sync without a hitch. I can play songs from my iPod through banshee and everything before I disconnect. The problem manifests its self when I disconnect. THE SONGS ARE GONE! My iPod informs me that it is nice and clean of any and all media.
Dear Steven,
I managed to sync my iPod touch 2g using the following trick :

in menu Preferences, thumbnail Extensions, tick off all device types except Apple devices.

Tell us if it worls for you.

Cheers