Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379611 - media-sound/clementine-0.7.1-r1 dies when opening iPod nano 4Gb
Summary: media-sound/clementine-0.7.1-r1 dies when opening iPod nano 4Gb
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-17 18:53 UTC by Paul Gover
Modified: 2012-06-06 15:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Backtrace from "gdb clementine" when triggering the crash. (clementine.backtrace,5.90 KB, text/plain)
2011-08-17 18:56 UTC, Paul Gover
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Gover 2011-08-17 18:53:02 UTC
Trying to open my iPod with Clementine crashes with "ASSERT failure in QList<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 464".

There are a couple of other minor (I think) errors:
"Couldn't load icon" for "clementine-panel", "clementine-panel-grey" and "find".
and
"Application asked to unregister timer 0x1800000b which is not registered in this thread. Fix application."

Reproducible: Always

Steps to Reproduce:
1. Start clementine from command line (same happens when started from KDE application launcher but you don't get diagnostics)
2. Open the application (if it's minimized to the system tray)
3. Have an iPod nano plugged in (this is a vanilla iPod running whatever Apple iTunes put on it when synchronized under Windows Vista)
4. Click on the Devices icon in the left hand pane
5. If the iPod doesn't show as "connected", mount the device.  It should say "double click to open".
6. Right Mouse Button on the iPod icon, and click on Properties.  Mine shows a panel of stuff that all looks fine
7. Click on File Formats tab
8. Click on Open device.  Clementine crashes.
The same happens if you double click on the iPod icon in step 6.

I've a udev rule to change the device name to iPod that I found on the web to make iPods work with Amarok, but the same clementine bug shows up without that rule.

Attached below a backtrace.

Actual Results:  
Crash bang wallop, no clementine.

Expected Results:  
Something to synchronize my PC music with my iPod.

emerge --info (as modifed to collect the backtrace):

Portage 2.2.0_alpha51 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3lxc x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3lxc-x86_64-AMD_Phenom-tm-_9150e_Quad-Core_Processor-with-gentoo-2.0.3
Timestamp of tree: Sat, 13 Aug 2011 17:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA IBM-J1.6 dlj-1.1 AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O1 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O1 -pipe -ggdb"
DISTDIR="/var/tmp/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirror.ovh.net/gentoo-distfiles/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en en_US"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cleartype cli consolekit corefonts cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran gdbm gdu gif glibc-omitfp gpm gtk handbook iconv id3 id3tag ipv6 java joystick jpeg kde kipi lcms ldap libnotify mad midi mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 readline reports sdl semantic-desktop session sndfile spell sql sse sse2 sse3 ssl startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vorbis x264 xcb xcomposite xine xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="fglrx" XFCE_PLUGINS="menu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paul Gover 2011-08-17 18:56:21 UTC
Created attachment 283681 [details]
Backtrace from "gdb clementine" when triggering the crash.
Comment 2 Nikoli 2012-01-05 14:14:41 UTC
Are you able to reproduce this bug with clementine-1.0.0?
Comment 3 Paul Gover 2012-01-05 20:22:25 UTC
You must be psychic!  I just (30 mins ago) installed Clementine 1.0 from source!  It still fails, but with different messages.

About the last message on starting Clementine is:
INFO  DeviceManager:411                Device added: "DeviceKit/000A27001B0B0C61/Apple/iPod/3891793920"

Then when I try Device properties->File formats->Open device, it dies with a segmentation fault:

DeviceManager:555                Connecting  QUrl( "ipod:/media/iPod_paul" )  
ConnectedDevice:43               connected  QUrl( "ipod:/media/iPod_paul" )  "DeviceKit/000A27001B0B0C61/Apple/iPod/3891793920" false 
Segmentation fault


I'm wondering if I need to do some firmware upgrade via iTunes.
Comment 4 Nikoli 2012-01-05 20:28:35 UTC
Please report this bug upstream.
Comment 5 Paul Gover 2012-01-16 09:44:15 UTC
While collecting diagnostics on version 1, I did a bit of digging.  Turns out it's caused by an obsolete entry for the iPod device in Clementine's SQLite database.  I could cure the problem by deleting the device, and then letting Clementine create a new entry when I plugged the iPod in.  It's still a bug, as it tries to handle the situation but gets it wrong, so I will report it upstream.

Since you contacted me to test it with Clementine V1, I suspect you may be looking at bumping the ebuild.  In which case you might like to know the results of some tinkering I've done with the package installed outside of portage.

!!! I've just noticed there's a Clementine V1 ebuild in the x86 tree.  I'm sure it wasn't there on my desktop machine when I tinkered.  That's an AMD64 box, and is the one where I'm trying to use the iPod.  I'm writing this on my x86 netbook, and am away from home this week, so I can't check whether I've fouled up at the moment.  I'll leave the following here in case it's useful, and check what happens with the V1 ebuild on my AMD box next week:

With Clementine v1 compiled outside portage, I got a new problem, which is that when trying to copy songs to the iPod, transcoding from FLAC to M4A AAC starts out OK, but stops with the progress indicator saying something like 39% and the Clementine window locks up.  If I kill Clementine and restart it, the iPod has some files that named as the transcoding threads create in the /tmp directory, rather than with an appropriate .m4a or whatever filetype.  Said files can be played by Clementine.  The iPod can see the songs, but if I try to play them it says their duration is a negative time that I guess is the actual length of the song.  And of course, it doesn't play them.  I couldn't get it to copy and transcode to MP3 at all.

My guess here is that I was missing some libraries, which is what you get for installing the package outside of portage.  I noticed the sound quality for the M4A AAC transcoding was awful unless I installed the gstreamer FAAC plug-in.  This doesn't seem to be a prereq for Clementine, not sure about phonon.