[gutsy] hipo crash at start if the ipod database is unsupported

Bug #136400 reported by Basilio Kublik
2
Affects Status Importance Assigned to Milestone
Hipo
Fix Released
Critical
hipo (Debian)
Fix Released
Unknown
hipo (Ubuntu)
Fix Released
Medium
Hipo-team

Bug Description

Binary package hint: hipo

if i plug an ipod formated under itunes, with the latest firmware and then open hipo, i get a crash in the program:

sourcer@ideafix:~$ hipo

Unhandled Exception: IPod.DatabaseReadException: Detected unsupported database version 24
  at IPod.DatabaseRecord.Read (IPod.DatabaseRecord db, System.IO.BinaryReader reader) [0x00000]
  at IPod.TrackDatabase.Reload (Boolean createFresh) [0x00000]
  at IPod.TrackDatabase..ctor (IPod.Device device, Boolean createFresh) [0x00000]
  at IPod.Device.LoadTrackDatabase (Boolean createFresh) [0x00000]
  at IPod.Device.LoadTrackDatabase () [0x00000]
  at IPod.Device.get_TrackDatabase () [0x00000]
  at IPod.Device.get_Name () [0x00000]
  at IPod.DeviceCombo.AddDevice (IPod.Device device) [0x00000]
  at IPod.DeviceCombo.Refresh () [0x00000]
  at IPod.DeviceCombo..ctor () [0x00000]
  at Hipo.HipoMainWindow.CreateWindow (System.String[] args) [0x00000]
  at Hipo.HipoMain.Main (System.String[] args) [0x00000]

if hipo is already open and plug the same ipod, the report is similar, but hipo doen't crash:

Error creating new device (/org/freedesktop/Hal/devices/volume_label_HIPOD): IPod.DatabaseReadException: Detected unsupported database version 24
  at IPod.DatabaseRecord.Read (IPod.DatabaseRecord db, System.IO.BinaryReader reader) [0x00000]
  at IPod.TrackDatabase.Reload (Boolean createFresh) [0x00000]
  at IPod.TrackDatabase..ctor (IPod.Device device, Boolean createFresh) [0x00000]
  at IPod.Device.LoadTrackDatabase (Boolean createFresh) [0x00000]
  at IPod.Device.LoadTrackDatabase () [0x00000]
  at IPod.Device.get_TrackDatabase () [0x00000]
  at IPod.Device.get_Name () [0x00000]
  at IPod.DeviceCombo.AddDevice (IPod.Device device) [0x00000]
  at IPod.DeviceCombo.OnNotify () [0x00000]

It shouldn't give this awful error, or even crash i think hipo should pop up a dialog window informing the user about the problem and optionally a solution like format the ipod with a supported database version.
And hopefully instead of this last suggestion, just support newer databases, like banshee or rhythmbox does.

related packages:
===========
hipo 0.4-0ubuntu1
libipod-cil 0.6.3-2
libipodui-cil 0.6.3-2
libipoddevice0 0.5.3-3
libglade2.0-cil 2.10.1-3build1
libglib2.0-cil 2.10.1-3build

hardware information:
===============
   Device Model: Shuffle
   iPod Generation: First (1)
   Adv. Capacity: 512 MB
   Firmware Version: 1.1.5

by the way, banshee said the database version is 20 and hipo 24

Related branches

Changed in hipo:
assignee: nobody → hipo-team
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report, i guess that should be supported. I'll try with a newer libipod-cil ; which version of libipod-cil do you have installed? that's for sure a crash in that librar. probably because of a not supported bd, but as i said that should be supported, anyways more info would be nice.

Changed in hipo:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Felipe Barros (felipeb) wrote :

The Banshee solution for this issue is rebuild the Ipod database and you lose all your playlists but not your music.

Pedro what do you think about banshee solution?

but the problem in my opinion is in libipoddevice and i don't know if they fix them.

even when we implement the same banshee-solution the problem persist if you plug your Ipod in Windows and use iTunes again, sadly iTunes don't ask if you want to upgrade your Ipod database.

Changed in hipo:
status: Unknown → New
Changed in hipo:
status: New → Confirmed
Changed in hipo:
status: Confirmed → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

This was fixed upstream and it'll be soon available with release 0.6, thanks.

Changed in hipo:
status: Triaged → Fix Committed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Fixed on Hardy with hipo 0.6.1, thanks for reporting.

Changed in hipo:
status: Fix Committed → Fix Released
Revision history for this message
Miguel Ruiz (mruiz) wrote :

As version 0.6.1 isn't part of Hardy Heron, this bug is not fixed.

I'll request the upload of the new package ASAP.

Cheers!

Changed in hipo:
status: Fix Released → Confirmed
Changed in hipo:
status: Unknown → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hipo - 0.6.1-0ubuntu1

---------------
hipo (0.6.1-0ubuntu1) hardy; urgency=low

  * New upstream version (LP: #198390, LP: #136400)
  * debian/control:
    + Modified Maintainer value to match the DebianMaintainerField
      specification.
    + Added dpatch as Depends.
  * debian/patches:
    + 0001-Build-against-libtaglib2.0-cil.patch removed (no needed
      due upstream changes).
    + hipo_desktop_fix.dpatch added to fix desktop file.
  * debian/rules:
    + Updated to work with dpatch.
  * debian/copyright:
    + Updated according to the new upstream version.

 -- Miguel Ruiz <email address hidden> Tue, 04 Mar 2008 12:32:37 -0300

Changed in hipo:
status: Confirmed → Fix Released
Changed in hipo:
importance: Unknown → Critical
Changed in hipo (Debian):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.