libkarma crashes Amarok
Jeff Mitchell
kde-dev at emailgoeshere.com
Mon Nov 13 07:58:37 UTC 2006
Ned--
Although I have no experience with the Karma device, it looks like libkarma
isn't set up correctly to talk to your device. When it returns an error to
Amarok you get the crash (keep in mind the Karma device hasn't been
extensively tested, as there aren't a lot of Karmas floating around the
development team...)
Most device libraries come with some sort of program to open up a basic
session with the device and check for connectivity. For MTP devices with
libmtp, it's mtp-detect. You may want to look for something similar with
libkarma, to verify that libkarma itself can actually see and handle your
Karma. Then, once libkarma's happy, try Amarok again.
--Jeff
On Sunday 12 November 2006 21:06, Ned Wolpert wrote:
> Folks-
>
> I'm trying to get Amarok working with my karma... on Fedora 5 (2.6.18-1.)
> using Amarok 1.4.4, omfs-0.7.2 and libkarma-0.0.6. (./configure
> --without-mp4v2 --enable-postgresql
> --with-qt-dir=/usr/lib/qt-3.3--with-libkarma)
>
> As soon as I try to enable the karma media device in the configuration
> window, and hit okay, it crashes with the following debug report, after the
> plugin info listed. Any ideas? (What version of Linux, omfs and libkarma
> are other people using?)
>
> (Build plugin info:
> = The following extra functionality will NOT be included:
> = - NMM-engine
> = - Helix-engine
> = - XMMS Visualization Wrapper
> = - MySql Support
> = - MP4/AAC Tag Write Support
> = - iPod Support
> = - iRiver iFP Support
> = - Creative Nomad Jukebox Support
> = - MTP Device Support
> =
> = The following extra functionality will be included:
> = + xine-engine
> = + libvisual Support
> = + Postgresql Support
> = + Konqueror Sidebar
> = + MusicBrainz Support
> = + Rio Karma Support
> )
>
> Stdout from amarokapp:
> * Libkarma warning: no device-settings file
> ** Libkarma error: utime() failed
> Amarok is crashing...
> Running: gdb --nw -n --batch -x /tmp/kde-wolpert/amaroksZ36sb.tmp amarokapp
> 6608
>
> 0x00aa0410 in __kernel_vsyscall ()
> #0 0x00aa0410 in __kernel_vsyscall ()
> #1 0x00b2dceb in __waitpid_nocancel () from /lib/libpthread.so.0
> #2 0x0804d27f in Amarok::Crash::crashHandler ()
> #3 <signal handler called>
> #4 0x026cab9b in read_properties_smalldb (properties=0xbfc4a268)
> at karmaUsb.c:734
> #5 0x026cb336 in lk_karmaUsb_load_database_smalldb (rio=0) at karmaUsb.c
>
> :966
>
> #6 0x026c6f7e in lk_karma_load_database (rio=0) at karma.c:289
> #7 0x026b32a1 in RioKarmaMediaDevice::readKarmaMusic ()
> from /usr/lib/kde3/libamarok_riokarma-mediadevice.so
> #8 0x026b4873 in RioKarmaMediaDevice::openDevice ()
> from /usr/lib/kde3/libamarok_riokarma-mediadevice.so
> #9 0x0039258c in MediaDevice::connectDevice () from
> /usr/lib/libamarok.so.0 #10 0x00392d94 in MediaBrowser::addDevice () from
> /usr/lib/libamarok.so.0 #11 0x003930f7 in MediaBrowser::mediumAdded () from
> /usr/lib/libamarok.so.0 #12 0x0039504b in MediaBrowser::pluginSelected ()
> from
> /usr/lib/libamarok.so.0
> #13 0x003998c6 in MediaBrowser::qt_invoke () from /usr/lib/libamarok.so.0
> #14 0x044f14aa in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #15 0x003ad8dd in MediumPluginManager::selectedPlugin ()
> from /usr/lib/libamarok.so.0
> #16 0x003b355d in MediumPluginManager::finished () from
> /usr/lib/libamarok.so.0
> #17 0x002e59e5 in AmarokConfigDialog::updateSettings ()
> from /usr/lib/libamarok.so.0
> #18 0x04cf040e in KConfigDialog::qt_invoke () from /usr/lib/libkdeui.so.4
> #19 0x002e15c3 in AmarokConfigDialog::qt_invoke () from
> /usr/lib/libamarok.so.0
> #20 0x044f1411 in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #21 0x044f201d in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #22 0x04c02ccc in KDialogBase::okClicked () from /usr/lib/libkdeui.so.4
> #23 0x04c02d02 in KDialogBase::slotOk () from /usr/lib/libkdeui.so.4
> #24 0x04cf0289 in KDialogBase::qt_invoke () from /usr/lib/libkdeui.so.4
> #25 0x04cf03f3 in KConfigDialog::qt_invoke () from /usr/lib/libkdeui.so.4
> #26 0x002e15c3 in AmarokConfigDialog::qt_invoke () from
> /usr/lib/libamarok.so.0
> #27 0x044f14aa in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #28 0x044f201d in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #29 0x0488388c in QButton::clicked () from
> /usr/lib/qt-3.3/lib/libqt-mt.so.3 #30 0x0459556d in
> QButton::mouseReleaseEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #31 0x0452e745 in QWidget::event () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #32 0x0448892b in QApplication::internalNotify ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #33 0x04489f57 in QApplication::notify ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #34 0x03be0723 in KApplication::notify () from /usr/lib/libkdecore.so.4
> #35 0x044201a8 in QETWidget::translateMouseEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #36 0x0441ec9f in QApplication::x11ProcessEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #37 0x04430a6b in QEventLoop::processEvents ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #38 0x044a1dd0 in QEventLoop::enterLoop ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #39 0x044a1c96 in QEventLoop::exec () from
> /usr/lib/qt-3.3/lib/libqt-mt.so.3 #40 0x0448843f in QApplication::exec ()
> from /usr/lib/qt-3.3/lib/libqt- mt.so.3
> #41 0x0804be1f in main ()
>
>
> #0 0x00aa0410 in __kernel_vsyscall ()
> No symbol table info available.
> #1 0x00b2dceb in __waitpid_nocancel () from /lib/libpthread.so.0
> No symbol table info available.
> #2 0x0804d27f in Amarok::Crash::crashHandler ()
> No symbol table info available.
> #3 <signal handler called>
> No symbol table info available.
> #4 0x026cab9b in read_properties_smalldb (properties=0xbfc4a268)
> at karmaUsb.c:734
> fp = (FILE *) 0x8cb33e0
> tmp = 0xb334f008
> "fid=368\noffset=1184\ntrailer=0\nduration=242808\nlength=4301580\nsamplera
>te=44100\nctime=1117982794\noptions=0\nbpm=0\nrms=4863\nstddev=3557\nnormali
>sation=0\nplay_last=1152293473\nplay_count_limit=0\nplay_count=9"... ptr =
> 0xb3566431 ""
> prop_strs = (char **) 0x8cbea48
> propnames = 0x8c6b420 "fid"
> tmpnum = 745
> nfiles = 3755
> allocated_size = 8192
> i = 3165
> j = 38
> ret = -1
> #5 0x026cb336 in lk_karmaUsb_load_database_smalldb (rio=0) at karmaUsb.c
>
> :966
>
> count = 0
> aux = 0
> properties = 0x0
> #6 0x026c6f7e in lk_karma_load_database (rio=0) at karma.c:289
> No locals.
> #7 0x026b32a1 in RioKarmaMediaDevice::readKarmaMusic ()
> from /usr/lib/kde3/libamarok_riokarma-mediadevice.so
> No symbol table info available.
> #8 0x026b4873 in RioKarmaMediaDevice::openDevice ()
> from /usr/lib/kde3/libamarok_riokarma-mediadevice.so
> No symbol table info available.
> #9 0x0039258c in MediaDevice::connectDevice () from
> /usr/lib/libamarok.so.0 No symbol table info available.
> #10 0x00392d94 in MediaBrowser::addDevice () from /usr/lib/libamarok.so.0
> No symbol table info available.
> #11 0x003930f7 in MediaBrowser::mediumAdded () from /usr/lib/libamarok.so.0
> No symbol table info available.
> #12 0x0039504b in MediaBrowser::pluginSelected () from
> /usr/lib/libamarok.so.0
> No symbol table info available.
> #13 0x003998c6 in MediaBrowser::qt_invoke () from /usr/lib/libamarok.so.0
> No symbol table info available.
> #14 0x044f14aa in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #15 0x003ad8dd in MediumPluginManager::selectedPlugin ()
> from /usr/lib/libamarok.so.0
> No symbol table info available.
> #16 0x003b355d in MediumPluginManager::finished () from
> /usr/lib/libamarok.so.0
> No symbol table info available.
> #17 0x002e59e5 in AmarokConfigDialog::updateSettings ()
> from /usr/lib/libamarok.so.0
> No symbol table info available.
> #18 0x04cf040e in KConfigDialog::qt_invoke () from /usr/lib/libkdeui.so.4
> No symbol table info available.
> #19 0x002e15c3 in AmarokConfigDialog::qt_invoke () from
> /usr/lib/libamarok.so.0
> No symbol table info available.
> #20 0x044f1411 in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #21 0x044f201d in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #22 0x04c02ccc in KDialogBase::okClicked () from /usr/lib/libkdeui.so.4
> No symbol table info available.
> #23 0x04c02d02 in KDialogBase::slotOk () from /usr/lib/libkdeui.so.4
> No symbol table info available.
> #24 0x04cf0289 in KDialogBase::qt_invoke () from /usr/lib/libkdeui.so.4
> No symbol table info available.
> #25 0x04cf03f3 in KConfigDialog::qt_invoke () from /usr/lib/libkdeui.so.4
> No symbol table info available.
> #26 0x002e15c3 in AmarokConfigDialog::qt_invoke () from
> /usr/lib/libamarok.so.0
> No symbol table info available.
> #27 0x044f14aa in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #28 0x044f201d in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #29 0x0488388c in QButton::clicked () from
> /usr/lib/qt-3.3/lib/libqt-mt.so.3 No symbol table info available.
> #30 0x0459556d in QButton::mouseReleaseEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #31 0x0452e745 in QWidget::event () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #32 0x0448892b in QApplication::internalNotify ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #33 0x04489f57 in QApplication::notify ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #34 0x03be0723 in KApplication::notify () from /usr/lib/libkdecore.so.4
> No symbol table info available.
> #35 0x044201a8 in QETWidget::translateMouseEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #36 0x0441ec9f in QApplication::x11ProcessEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #37 0x04430a6b in QEventLoop::processEvents ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #38 0x044a1dd0 in QEventLoop::enterLoop ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> No symbol table info available.
> #39 0x044a1c96 in QEventLoop::exec () from
> /usr/lib/qt-3.3/lib/libqt-mt.so.3 No symbol table info available.
> #40 0x0448843f in QApplication::exec () from /usr/lib/qt-3.3/lib/libqt-
> mt.so.3
> No symbol table info available.
> #41 0x0804be1f in main ()
> No symbol table info available.
>
>
> ==== (gdb) thread apply all bt ====
>
> Thread 6 (Thread 122379168 (LWP 6634)):
> #0 0x00aa0410 in __kernel_vsyscall ()
> #1 0x00b2a75c in pthread_cond_timedwait@@GLIBC_2.3.2 ()
> from /lib/libpthread.so.0
> #2 0x07917d35 in _x_metronom_init () from /usr/lib/libxine.so.1
> #3 0x00b27433 in start_thread () from /lib/libpthread.so.0
> #4 0x010a7a1e in clone () from /lib/libc.so.6
>
> Thread 5 (Thread -1213359200 (LWP 6637)):
> #0 0x00aa0410 in __kernel_vsyscall ()
> #1 0x0109e440 in poll () from /lib/libc.so.6
> #2 0x076991b1 in ?? ()
> from /usr/lib/xine/plugins/1.1.2/xineplug_ao_out_alsa.so
> #3 0x00b27433 in start_thread () from /lib/libpthread.so.0
> #4 0x010a7a1e in clone () from /lib/libc.so.6
>
> Thread 4 (Thread -1224119392 (LWP 6638)):
> #0 0x00aa0410 in __kernel_vsyscall ()
> #1 0x00b2a4d6 in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #2 0x0792624e in _x_ao_channels2mode () from /usr/lib/libxine.so.1
> #3 0x0792924a in xine_get_next_audio_frame () from /usr/lib/libxine.so.1
> #4 0x00b27433 in start_thread () from /lib/libpthread.so.0
> #5 0x010a7a1e in clone () from /lib/libc.so.6
>
> Thread 3 (Thread -1236497504 (LWP 6639)):
> #0 0x00aa0410 in __kernel_vsyscall ()
> #1 0x00b2a4d6 in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #2 0x0791b3c0 in _x_dummy_fifo_buffer_new () from /usr/lib/libxine.so.1
> #3 0x07921de9 in _x_audio_decoder_init () from /usr/lib/libxine.so.1
> #4 0x00b27433 in start_thread () from /lib/libpthread.so.0
> #5 0x010a7a1e in clone () from /lib/libc.so.6
>
> Thread 2 (Thread -1246987360 (LWP 6640)):
> #0 0x00aa0410 in __kernel_vsyscall ()
> #1 0x00b2a4d6 in pthread_cond_wait@@GLIBC_2.3.2 () from
> /lib/libpthread.so.0
> #2 0x0792aa28 in xine_event_wait () from /usr/lib/libxine.so.1
> #3 0x0792aab0 in xine_event_wait () from /usr/lib/libxine.so.1
> #4 0x00b27433 in start_thread () from /lib/libpthread.so.0
> #5 0x010a7a1e in clone () from /lib/libc.so.6
>
> Thread 1 (Thread -1208441104 (LWP 6608)):
> #0 0x00aa0410 in __kernel_vsyscall ()
> #1 0x00b2dceb in __waitpid_nocancel () from /lib/libpthread.so.0
> #2 0x0804d27f in Amarok::Crash::crashHandler ()
> #3 <signal handler called>
> #4 0x026cab9b in read_properties_smalldb (properties=0xbfc4a268)
> at karmaUsb.c:734
> #5 0x026cb336 in lk_karmaUsb_load_database_smalldb (rio=0) at karmaUsb.c
>
> :966
>
> #6 0x026c6f7e in lk_karma_load_database (rio=0) at karma.c:289
> #7 0x026b32a1 in RioKarmaMediaDevice::readKarmaMusic ()
> from /usr/lib/kde3/libamarok_riokarma-mediadevice.so
> #8 0x026b4873 in RioKarmaMediaDevice::openDevice ()
> from /usr/lib/kde3/libamarok_riokarma-mediadevice.so
> #9 0x0039258c in MediaDevice::connectDevice () from
> /usr/lib/libamarok.so.0 #10 0x00392d94 in MediaBrowser::addDevice () from
> /usr/lib/libamarok.so.0 #11 0x003930f7 in MediaBrowser::mediumAdded () from
> /usr/lib/libamarok.so.0 #12 0x0039504b in MediaBrowser::pluginSelected ()
> from
> /usr/lib/libamarok.so.0
> #13 0x003998c6 in MediaBrowser::qt_invoke () from /usr/lib/libamarok.so.0
> #14 0x044f14aa in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #15 0x003ad8dd in MediumPluginManager::selectedPlugin ()
> from /usr/lib/libamarok.so.0
> #16 0x003b355d in MediumPluginManager::finished () from
> /usr/lib/libamarok.so.0
> #17 0x002e59e5 in AmarokConfigDialog::updateSettings ()
> from /usr/lib/libamarok.so.0
> #18 0x04cf040e in KConfigDialog::qt_invoke () from /usr/lib/libkdeui.so.4
> #19 0x002e15c3 in AmarokConfigDialog::qt_invoke () from
> /usr/lib/libamarok.so.0
> #20 0x044f1411 in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #21 0x044f201d in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #22 0x04c02ccc in KDialogBase::okClicked () from /usr/lib/libkdeui.so.4
> #23 0x04c02d02 in KDialogBase::slotOk () from /usr/lib/libkdeui.so.4
> #24 0x04cf0289 in KDialogBase::qt_invoke () from /usr/lib/libkdeui.so.4
> #25 0x04cf03f3 in KConfigDialog::qt_invoke () from /usr/lib/libkdeui.so.4
> #26 0x002e15c3 in AmarokConfigDialog::qt_invoke () from
> /usr/lib/libamarok.so.0
> #27 0x044f14aa in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #28 0x044f201d in QObject::activate_signal ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #29 0x0488388c in QButton::clicked () from
> /usr/lib/qt-3.3/lib/libqt-mt.so.3 #30 0x0459556d in
> QButton::mouseReleaseEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #31 0x0452e745 in QWidget::event () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #32 0x0448892b in QApplication::internalNotify ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #33 0x04489f57 in QApplication::notify ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #34 0x03be0723 in KApplication::notify () from /usr/lib/libkdecore.so.4
> #35 0x044201a8 in QETWidget::translateMouseEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #36 0x0441ec9f in QApplication::x11ProcessEvent ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #37 0x04430a6b in QEventLoop::processEvents ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #38 0x044a1dd0 in QEventLoop::enterLoop ()
> from /usr/lib/qt-3.3/lib/libqt-mt.so.3
> #39 0x044a1c96 in QEventLoop::exec () from
> /usr/lib/qt-3.3/lib/libqt-mt.so.3 #40 0x0448843f in QApplication::exec ()
> from /usr/lib/qt-3.3/lib/libqt- mt.so.3
> #41 0x0804be1f in main ()
>
>
>
>
> If you need anymore information, please ask.
More information about the Amarok
mailing list