Bug 174784

Summary: Incomplete collection import from Amarok 1.4
Product: [Applications] amarok Reporter: Stephen O'Neill <squid>
Component: generalAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: a.m.p.boelens, ehmke, frederic.coiffier, josh, kate_baggins, matej, soulflyb, stuffcorpse, sven.burmeister, tony
Priority: VHI    
Version First Reported In: 2.0-beta   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace from Amarok for crash in 'import collection'
gdb output
Another dbg trace
another trace
New Debug Trace
Output of amarok --debug

Description Stephen O'Neill 2008-11-10 14:55:31 UTC
Version:           2.0 beta 3 (using KDE 4.1.2)
OS:                Linux
Installed from:    Ubuntu Packages

In amarok 2 beta 3 (ubuntu packages) I get a crash when I try to import my collection from Amarok 1.4 using tools->import wizard.

It crashes whether I have "import artwork" ticked or not and crashes with the same command line output each time - so appears to crash at the same point during the import each time.

The output on the command line shortly before this event is:

amarok:      [ERROR!] GREPME MySQLe query failed! Duplicate entry 'file:////home/soneill/Music/Compressed/MP3/RadioHead/Unreleased/' for key 'uniqueid'  on  "INSERT INTO urls_temp(directory,deviceid,rpath,uniqueid) VALUES ( 0, -1, './home/soneill/Music/Compressed/MP3/RadioHead/Unreleased/Towering above the rest/Disc 10/Radiohead - Towering Above The Rest (Disc 10) - 14 - Just (Edit).mp3', 'file:////home/soneill/Music/Compressed/MP3/RadioHead/Unreleased/Towering%20above%20the%20rest/Disc%2010/Radiohead%20-%20Towering%20Above%20The%20Rest%20(Disc%2010)%20-%2014%20-%20Just%20(Edit).mp3' );" 
amarok: BEGIN: void DatabaseUpdater::copyToPermanentTables() 
amarok: BEGIN: void Dynamic::BiasedPlaylist::startSolver(bool) 
amarok: BEGIN: void ProgressBarNG::setDescription(const QString&) 
amarok: END__: void ProgressBarNG::setDescription(const QString&) - Took 9.2e-05s 
amarok: BEGIN: void CompoundProgressBar::addProgressBar(ProgressBarNG*, QObject*) 
amarok:            setting fixed height:  27  *  1  =  31 
amarok:            p before:  QPoint(2,-54) 
amarok:            p after:  QPoint(4,606) 
amarok:            we now have  1  progress ops running 
amarok: BEGIN: void ProgressBarNG::setDescription(const QString&) 
amarok: END__: void ProgressBarNG::setDescription(const QString&) - Took 7.9e-05s 
amarok: END__: void CompoundProgressBar::addProgressBar(ProgressBarNG*, QObject*) - Took 0.0011s 
amarok: BEGIN: void Dynamic::BiasSolver::prepareToRun() 
amarok: BEGIN: void Dynamic::BiasSolver::updateUniverse() 
amarok: END__: void Dynamic::BiasSolver::updateUniverse() - Took 0.00013s 
amarok: END__: void Dynamic::BiasSolver::prepareToRun() - Took 0.00031s 
amarok: END__: void Dynamic::BiasedPlaylist::startSolver(bool) - Took 0.0028s 
amarok: END__: void DatabaseUpdater::copyToPermanentTables() - Took 1.4s 
amarok: BEGIN: void DatabaseUpdater::removeTemporaryTables() 
amarok: BEGIN: void Dynamic::BiasSolver::universeResults(QString, QStringList) 
amarok: END__: void DatabaseUpdater::removeTemporaryTables() - Took 0.054s 
amarok: END__: void Dynamic::BiasSolver::universeResults(QString, QStringList) - Took 0.021s 
amarok:      Sending changed signal 
QObject::connect: Cannot queue arguments of type 'QHash<QString,QString>'
(Make sure 'QHash<QString,QString>' is registered using qRegisterMetaType().)
amarok: BEGIN: virtual ScanResultProcessor::~ScanResultProcessor() 
amarok: END__: virtual ScanResultProcessor::~ScanResultProcessor() - Took 6.1e-05s 
amarok: END__: virtual void SqlCollectionLocation::insertTracks(const QMap<KSharedPtr<Meta::Track>, QString>&) - Took 1.8s 
amarok: BEGIN: virtual void SqlCollectionLocation::insertStatistics(const QMap<KSharedPtr<Meta::Track>, QString>&) 
ASSERT: "!isEmpty()" in file /usr/include/qt4/QtCore/qlist.h, line 246
KCrash: Application 'amarok' crashing...





The backtrace is:

Application: Amarok (amarok), signal SIGABRT
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb3a7aa20 (LWP 21585)]
[New Thread 0xab560b90 (LWP 21600)]
[New Thread 0xabd61b90 (LWP 21599)]
[New Thread 0xac562b90 (LWP 21598)]
[New Thread 0xad854b90 (LWP 21597)]
[New Thread 0xaee07b90 (LWP 21596)]
[New Thread 0xafaffb90 (LWP 21594)]
[New Thread 0xb0485b90 (LWP 21593)]
[New Thread 0xb0c86b90 (LWP 21592)]
[New Thread 0xb16f8b90 (LWP 21586)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb7f43430 in __kernel_vsyscall ()
#7  0xb698c880 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb698e248 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb7410795 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb7410872 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb7410915 in qt_assert () from /usr/lib/libQtCore.so.4
#12 0xaef745c0 in ?? ()
   from /usr/lib/kde4/libamarok_collection-sqlcollection.so
#13 0xb7e0cbf5 in ?? () from /usr/lib/libamaroklib.so.1
#14 0xb5f258b0 in ?? () from /usr/lib/libthreadweaver.so.4
#15 0xb5f25a95 in ThreadWeaver::Job::execute ()
   from /usr/lib/libthreadweaver.so.4
#16 0xb5f24762 in ?? () from /usr/lib/libthreadweaver.so.4
#17 0xb5f24925 in ThreadWeaver::Thread::run ()
   from /usr/lib/libthreadweaver.so.4
#18 0xb74186ae in ?? () from /usr/lib/libQtCore.so.4
#19 0xb532250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#20 0xb6a427ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xac562b90 (LWP 21598)):
#0  0xb7f43430 in __kernel_vsyscall ()
#1  0xb5326075 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6a509ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb74196f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5f22bfb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5f2652c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5f2149b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5f2666f in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5f26691 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb5f26691 in ?? () from /usr/lib/libthreadweaver.so.4
#12 0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#13 0xb5f26691 in ?? () from /usr/lib/libthreadweaver.so.4
#14 0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#15 0xb5f26691 in ?? () from /usr/lib/libthreadweaver.so.4
#16 0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#17 0xb5f247ad in ?? () from /usr/lib/libthreadweaver.so.4
#18 0xb5f24925 in ThreadWeaver::Thread::run ()
   from /usr/lib/libthreadweaver.so.4
#19 0xb74186ae in ?? () from /usr/lib/libQtCore.so.4
#20 0xb532250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#21 0xb6a427ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xabd61b90 (LWP 21599)):
#0  0xb7f43430 in __kernel_vsyscall ()
#1  0xb5326075 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6a509ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb74196f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5f22bfb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5f2652c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5f2149b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5f2666f in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5f26691 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb5f26691 in ?? () from /usr/lib/libthreadweaver.so.4
#12 0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#13 0xb5f26691 in ?? () from /usr/lib/libthreadweaver.so.4
#14 0xb5f23c73 in ?? () from /usr/lib/libthreadweaver.so.4
#15 0xb5f247ad in ?? () from /usr/lib/libthreadweaver.so.4
#16 0xb5f24925 in ThreadWeaver::Thread::run ()
   from /usr/lib/libthreadweaver.so.4
#17 0xb74186ae in ?? () from /usr/lib/libQtCore.so.4
#18 0xb532250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#19 0xb6a427ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xab560b90 (LWP 21600)):
#0  0xb7f43430 in __kernel_vsyscall ()
#1  0xb5326075 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6a509ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb74196f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb4fc8532 in ?? () from /usr/lib/libQtNetwork.so.4
#5  0xb74186ae in ?? () from /usr/lib/libQtCore.so.4
#6  0xb532250f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb6a427ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb3a7aa20 (LWP 21585)):
#0  0xb7f43430 in __kernel_vsyscall ()
#1  0xb6a3ac01 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0xb4a12e5f in ?? () from /usr/lib/libxcb.so.1
#3  0xb4a14862 in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#4  0xb50bb369 in _XReply () from /usr/lib/libX11.so.6
#5  0xb50974f9 in XGetImage () from /usr/lib/libX11.so.6
#6  0xb6ccdaaf in ?? () from /usr/lib/libQtGui.so.4
#7  0xb6cc0c8b in QPixmap::toImage () from /usr/lib/libQtGui.so.4
#8  0xb6ceb5d6 in QBrush::textureImage () from /usr/lib/libQtGui.so.4
#9  0xb6d816b1 in ?? () from /usr/lib/libQtGui.so.4
#10 0xb6d82ffc in ?? () from /usr/lib/libQtGui.so.4
#11 0xb6d0287b in ?? () from /usr/lib/libQtGui.so.4
#12 0xb6d0294b in ?? () from /usr/lib/libQtGui.so.4
#13 0xb6d0cd51 in QPainter::drawPath () from /usr/lib/libQtGui.so.4
#14 0xb6d07b33 in ?? () from /usr/lib/libQtGui.so.4
#15 0xb6d0a362 in QPainter::drawRects () from /usr/lib/libQtGui.so.4
#16 0xb6d0c2bb in QPainter::drawPixmap () from /usr/lib/libQtGui.so.4
#17 0xb395cd0f in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#18 0xb396d530 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#19 0xb750804a in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
   from /usr/lib/libQtCore.so.4
#20 0xb6bf98ca in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#21 0xb6c0183a in QApplication::notify () from /usr/lib/libQtGui.so.4
#22 0xb79d8b2d in KApplication::notify () from /usr/lib/libkdeui.so.5
#23 0xb7508e61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#24 0xb6c5a41e in ?? () from /usr/lib/libQtGui.so.4
#25 0xb6c50150 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
#26 0xb6dbffae in ?? () from /usr/lib/libQtGui.so.4
#27 0xb6dc0477 in ?? () from /usr/lib/libQtGui.so.4
#28 0xb6c515b6 in QWidget::event () from /usr/lib/libQtGui.so.4
#29 0xb6fa5497 in QMainWindow::event () from /usr/lib/libQtGui.so.4
#30 0xb7aaa958 in KMainWindow::event () from /usr/lib/libkdeui.so.5
#31 0xb7aee15c in KXmlGuiWindow::event () from /usr/lib/libkdeui.so.5
#32 0xb6bf98ec in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#33 0xb6c0183a in QApplication::notify () from /usr/lib/libQtGui.so.4
#34 0xb79d8b2d in KApplication::notify () from /usr/lib/libkdeui.so.5
#35 0xb7508e61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#36 0xb7509ae5 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#37 0xb7509cdd in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#38 0xb753382f in ?? () from /usr/lib/libQtCore.so.4
#39 0xb4ea56f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0xb4ea8da3 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0xb4ea8f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0xb7533478 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#43 0xb6c93ee5 in ?? () from /usr/lib/libQtGui.so.4
#44 0xb750752a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#45 0xb75076ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#46 0xb7066907 in QDialog::exec () from /usr/lib/libQtGui.so.4
#47 0xb7dcc5cc in MainWindow::importCollection ()
   from /usr/lib/libamaroklib.so.1
#48 0xb7dd04a9 in MainWindow::qt_metacall () from /usr/lib/libamaroklib.so.1
#49 0xb751da60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#50 0xb751de60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#51 0xb6bf35f1 in QAction::triggered () from /usr/lib/libQtGui.so.4
#52 0xb6bf3f5f in QAction::activate () from /usr/lib/libQtGui.so.4
#53 0xb6fd14e4 in ?? () from /usr/lib/libQtGui.so.4
#54 0xb6fd1f72 in QMenu::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#55 0xb7aadb95 in KMenu::mouseReleaseEvent () from /usr/lib/libkdeui.so.5
#56 0xb6c519a2 in QWidget::event () from /usr/lib/libQtGui.so.4
#57 0xb6fd4269 in QMenu::event () from /usr/lib/libQtGui.so.4
#58 0xb6bf98ec in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#59 0xb6c02121 in QApplication::notify () from /usr/lib/libQtGui.so.4
#60 0xb79d8b2d in KApplication::notify () from /usr/lib/libkdeui.so.5
#61 0xb7508e61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#62 0xb6c013ae in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#63 0xb6c6b91e in ?? () from /usr/lib/libQtGui.so.4
#64 0xb6c6aa25 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#65 0xb6c947ea in ?? () from /usr/lib/libQtGui.so.4
#66 0xb4ea56f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#67 0xb4ea8da3 in ?? () from /usr/lib/libglib-2.0.so.0
#68 0xb4ea8f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#69 0xb7533478 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#70 0xb6c93ee5 in ?? () from /usr/lib/libQtGui.so.4
#71 0xb750752a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#72 0xb75076ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#73 0xb7509da5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#74 0xb6bf9767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#75 0x0804bf70 in _start ()
#0  0xb7f43430 in __kernel_vsyscall ()
Comment 1 Stephen O'Neill 2008-11-10 14:56:12 UTC
Sorry, I incorrectly filed this under 'bug report no crashes'.
Comment 2 Ben Kloester 2008-11-12 12:02:25 UTC
Created attachment 28513 [details]
Backtrace from Amarok for crash in 'import collection'
Comment 3 M Lenzen 2008-11-17 23:15:27 UTC
I get a similar crash when trying to import my 1.4 collection using latest ubuntu packages

Application: Amarok (amarok), signal SIGSEGV
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb3b086e0 (LWP 4166)]
[New Thread 0xae80db90 (LWP 4218)]
[New Thread 0xaf00eb90 (LWP 4217)]
[New Thread 0xaf80fb90 (LWP 4216)]
[New Thread 0xb126eb90 (LWP 4215)]
[New Thread 0xb1f40b90 (LWP 4169)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#6  0xb065a7e8 in ?? ()
   from /usr/lib/kde4/libamarok_collection-sqlcollection.so
#7  0xb06599cd in ?? ()
   from /usr/lib/kde4/libamarok_collection-sqlcollection.so
#8  0xb064ee14 in ?? ()
   from /usr/lib/kde4/libamarok_collection-sqlcollection.so
#9  0xb5fb38b0 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5fb3a95 in ThreadWeaver::Job::execute ()
   from /usr/lib/libthreadweaver.so.4
#11 0xb5fb2762 in ?? () from /usr/lib/libthreadweaver.so.4
#12 0xb5fb2925 in ThreadWeaver::Thread::run ()
   from /usr/lib/libthreadweaver.so.4
#13 0xb74a76ae in ?? () from /usr/lib/libQtCore.so.4
#14 0xb53b150f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0xb6ad17ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xaf80fb90 (LWP 4216)):
#0  0xb7fce430 in __kernel_vsyscall ()
#1  0xb53b5075 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6adf9ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb74a86f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5fb0bfb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5fb452c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5faf49b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5fb466f in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5fb1c73 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5fb4691 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5fb1c73 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb5fb27ad in ?? () from /usr/lib/libthreadweaver.so.4
#12 0xb5fb2925 in ThreadWeaver::Thread::run ()
   from /usr/lib/libthreadweaver.so.4
#13 0xb74a76ae in ?? () from /usr/lib/libQtCore.so.4
#14 0xb53b150f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0xb6ad17ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xaf00eb90 (LWP 4217)):
#0  0xb7fce430 in __kernel_vsyscall ()
#1  0xb53b5075 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6adf9ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb74a86f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5fb0bfb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5fb452c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5faf49b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5fb466f in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5fb1c73 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5fb27ad in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5fb2925 in ThreadWeaver::Thread::run ()
   from /usr/lib/libthreadweaver.so.4
#11 0xb74a76ae in ?? () from /usr/lib/libQtCore.so.4
#12 0xb53b150f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#13 0xb6ad17ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xae80db90 (LWP 4218)):
#0  0xb7fce430 in __kernel_vsyscall ()
#1  0xb53b5075 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb6adf9ed in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb74a86f2 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#4  0xb5fb0bfb in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb5fb452c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb5faf49b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb5fb466f in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb5fb1c73 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb5fb4691 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb5fb1c73 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb5fb4691 in ?? () from /usr/lib/libthreadweaver.so.4
#12 0xb5fb1c73 in ?? () from /usr/lib/libthreadweaver.so.4
#13 0xb5fb27ad in ?? () from /usr/lib/libthreadweaver.so.4
#14 0xb5fb2925 in ThreadWeaver::Thread::run ()
   from /usr/lib/libthreadweaver.so.4
#15 0xb74a76ae in ?? () from /usr/lib/libQtCore.so.4
#16 0xb53b150f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#17 0xb6ad17ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb3b086e0 (LWP 4166)):
#0  0xb7fce430 in __kernel_vsyscall ()
#1  0xb6a8cde6 in nanosleep () from /lib/tls/i686/cmov/libc.so.6
#2  0xb6aca59c in usleep () from /lib/tls/i686/cmov/libc.so.6
#3  0xb064c10d in ?? ()
   from /usr/lib/kde4/libamarok_collection-sqlcollection.so
#4  0xb75a5dec in qDeleteInEventHandler () from /usr/lib/libQtCore.so.4
#5  0xb75a77a3 in QObject::event () from /usr/lib/libQtCore.so.4
#6  0xb6c888ec in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#7  0xb6c9076e in QApplication::notify () from /usr/lib/libQtGui.so.4
#8  0xb7a66b2d in KApplication::notify () from /usr/lib/libkdeui.so.5
#9  0xb7597e61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#10 0xb7598ae5 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#11 0xb7598cdd in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#12 0xb75c282f in ?? () from /usr/lib/libQtCore.so.4
#13 0xb4f336f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#14 0xb4f36da3 in ?? () from /usr/lib/libglib-2.0.so.0
#15 0xb4f36f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#16 0xb75c2478 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#17 0xb6d22ee5 in ?? () from /usr/lib/libQtGui.so.4
#18 0xb759652a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#19 0xb75966ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#20 0xb7598da5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#21 0xb6c88767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#22 0x0804bf70 in _start ()
#0  0xb7fce430 in __kernel_vsyscall ()
Comment 4 Seb Ruiz 2008-11-18 01:56:53 UTC
Hi everyone.
Thanks for your reports. All of your backtraces are unhelpful since they have been stripped of debugging symbols.

  (no debugging symbols found)

Is a big hint that the traces are useless.

Could you please install an amarok-debug package and submit a better trace, as this would make it much easier for me to find the source of the problem.
Comment 5 Stephen O'Neill 2008-11-18 15:05:35 UTC
@Seb I installed the dbg packages but still no backtrace. I will try to figure out what is going on and post a better trace up when I do.
Comment 6 M Lenzen 2008-11-18 22:37:59 UTC
(In reply to comment #5)
> @Seb I installed the dbg packages but still no backtrace. I will try to figure
> out what is going on and post a better trace up when I do.
> 

You have to append the debug flag: `amarok --debug`

I'm getting a different crash now (after uninstalling yesterday and reinstalling today) so I'm not going to post mine here.
Comment 7 Seb Ruiz 2008-11-18 22:49:36 UTC
> You have to append the debug flag: `amarok --debug` 

No, this is not necessarily true. --debug will show console output from the application, but I'm not interested in this. I need a stack trace of the application leading to the crash. Here's a quick run through with gdb:

gdb amarok
r --nofork
... wait/cause crash ...
bt
Comment 8 Stephen O'Neill 2008-11-19 08:15:43 UTC
Created attachment 28684 [details]
gdb output
Comment 9 Stephen O'Neill 2008-11-19 08:16:03 UTC
I have attached all the output from gdb. I have included absolutely everything, but I think the stuff you'll be interested in is at the end up to "ASSERT: "!isEmpty()" in file /usr/include/qt4/QtCore/qlist.h, line 246"

I don't have any debugging knowledge - so let me know if you need more and how to get it.
Comment 10 Mark Kretschmann 2008-11-19 09:11:33 UTC
Your backtrace is still invalid (missing Amarok-debug package), but this could be an interesting hint:

amarok: BEGIN: virtual void SqlCollectionLocation::insertStatistics(const QMap<KSharedPtr<Meta::Track>, QString>&) 
ASSERT: "!isEmpty()" in file /usr/include/qt4/QtCore/qlist.h, line 246
Comment 11 Stephen O'Neill 2008-11-19 09:29:37 UTC
Created attachment 28685 [details]
Another dbg trace

Apologies - I thought I had it installed, but there was a dependency problem with the kde libs dbg package on my machine.

amarok-dbg is now installed, is the attached more useful? - it looks substantively similar to the untrained eye.
Comment 12 Mark Kretschmann 2008-11-19 09:33:42 UTC
This is much better, yes :)
Comment 13 Stephen O'Neill 2008-11-19 09:39:40 UTC
Thanks for your patience!
Comment 14 Seb Ruiz 2008-11-19 22:43:48 UTC
Stephen, the main problem with this crash is that we have an assertion coming from within QList, which for some reason doesn't let us find out the line number of where we are trying to access the invalid index.

Do you have any experience compiling applications from source? Since I cannot reproduce this, it would be very helpful if you'd be able to apply a patch for me and try again so we can track down the cause of the problem.
Comment 15 Stephen O'Neill 2008-11-20 08:45:59 UTC
Hi Seb, my experience is pretty much limited to ./configure && make && make install.

However I have given it a bash. I seem to have got most of the dependencies installed but I'm not sure what to do about:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_gl_LIBRARY (ADVANCED)
[snip]
QT_QTOPENGL_LIBRARY (ADVANCED)

I am on ubuntu so appreciate that it will be hard for you to support me installing from packages - I don't mind building those libraries manually too.

I do have the qt4-dev-tools package installed, but can't see one that sounds promising for offering qtopengl. I do have libgl1-mesa-dev installed too... though I'm confused as opengl in the README is optional and I didn't ask for it.

Also I used the tarball rather than svn - again is this unhelpful?

As you can tell, I'm a bit out of my depth - so thanks for your help.
Comment 16 Stephen O'Neill 2008-11-20 08:53:16 UTC
Scrub the qt opengl one - I now have libqt4-opengl-dev installed ... just the "OPENGL_gl_LIBRARY (ADVANCED)" dependency to fathom now.
Comment 17 Seb Ruiz 2008-11-20 10:09:33 UTC
You'll have to find the right -dev package to solve the missing dependency. Alternatively, use svn since we've removed the opengl check as it's not needed.
Comment 18 Stephen O'Neill 2008-11-20 17:15:36 UTC
Seb, good news - I have successfully compiled from SVN and can reproduce the crash with my new install (though you may in fact regard the latter as bad news).

Please let me know as and when you're ready for me to test anything out for you.
Comment 19 Seb Ruiz 2008-11-20 22:28:00 UTC
Thanks Stephen. I think we can take this discussion off the bug tracker for now. I'll mail you personally with a patch that can be applied.
Comment 20 Frédéric COIFFIER 2008-11-23 13:09:11 UTC
If you need a 2nd tester, I also reproduce the problem (SVN 887886):

#0  0xb7fb3424 in __kernel_vsyscall ()
#1  0x4314dfa5 in raise () from /lib/libc.so.6
#2  0x4314f7b1 in abort () from /lib/libc.so.6
#3  0xb7dda59f in qt_message_output () from /usr/lib/qt4/libQtCore.so.4
#4  0xb7dda680 in qFatal () from /usr/lib/qt4/libQtCore.so.4
#5  0xb7dda707 in qt_assert () from /usr/lib/qt4/libQtCore.so.4
#6  0xb062cf8b in QList<QString>::first (this=0xada58018) at /usr/include/qt4/QtCore/qlist.h:252
#7  0xb0644de9 in SqlCollectionLocation::insertStatistics (this=0x9e7ce368, trackMap=@0xada58250)
    at /var/tmp/portage/media-sound/amarok-1.99/work/amarok-1.99/src/collection/sqlcollection/SqlCollectionLocation.cpp:334
#8  0xb78ef5cf in FastForwardWorker::run (this=0xafe6180)
    at /var/tmp/portage/media-sound/amarok-1.99/work/amarok-1.99/src/databaseimporter/amarok14/FastForwardWorker.cpp:162
#9  0xb678b2bd in ThreadWeaver::JobRunHelper::runTheJob () from /usr/kde/4.1/lib/libthreadweaver.so.4
Comment 21 herr-schneider.m 2008-11-26 09:22:21 UTC
For your interest, I have the same problem, self compiled from tarball of RC 1. Distribution is openSuSe 11.0 Current Beta, no self compiled packages except for Amarok. gdb trace attached. If you need further testers, pls consider contacting me.
Comment 22 herr-schneider.m 2008-11-26 09:23:31 UTC
Created attachment 28832 [details]
another trace
Comment 23 Seb Ruiz 2008-11-26 10:06:59 UTC
This crash has been fixed in SVN. Note, however, that I'm fixing the symptom and not the problem. I can justify this by saying that a crash is the worst possible outcome, and silently failing is better.

I suspect that this crash is caused by files with accented characters either in the filename or metadata.

If anybody can confirm this or provide more information, I would be happy to look into it further. I can't do this currently since I cannot reproduce this problem. Please open a new bug report if you can find a better more accurate trend.
Comment 24 Frédéric COIFFIER 2008-11-26 10:39:42 UTC
Do you think you could reproduce the problem with my Amarok 1.4 database ? But the problem may be link to media or cover pictures on my disk...
Comment 25 Seb Ruiz 2008-11-26 12:14:32 UTC
No, since any database url references which are non physically on my disk will be simply skipped over.
Comment 26 Frédéric COIFFIER 2008-11-26 17:15:15 UTC
I've tested the last SVN version and as expected, there is no more crash during import.
Comment 27 Mark Kretschmann 2008-11-27 09:48:22 UTC
SVN commit 889579 by markey:

Use mysql_real_escape_string() for escaping, instead of our own
concoction of an escaping routine. This might fix escaping errors that
could affect the following bugs:

CCBUG: 176154
CCBUG: 174784

Please test.

 M  +10 -1     MySqlEmbeddedCollection.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=889579
Comment 28 Frédéric COIFFIER 2008-11-27 11:58:20 UTC
The new code works (no crash) but I can't say if the result is better
Comment 29 Mark Kretschmann 2008-11-27 12:02:50 UTC
@Frédéric: 

1) Have you tried with the latest SVN code after my commit 889579?

2) What do you mean with "I can't say"? Can you not tell if there is a difference, or is there none?

Comment 30 Frédéric COIFFIER 2008-11-27 12:31:26 UTC
1) SVN 889595

2) I can't confirm there is a difference. With your code, 6626 tracks are imported but I don't remember how many tracks were imported with the previous code. If you have replaced the workaround of Seb Ruiz by a correct implementation, we could suppose that the problem is fixed as I have no more crash during import.
Comment 31 Lydia Pintscher 2008-11-27 13:06:22 UTC
*** Bug 176228 has been marked as a duplicate of this bug. ***
Comment 32 herr-schneider.m 2008-11-27 13:22:43 UTC
SVN commit 889579 did not change behaviour: Import of original Collection crashed exactely at the same last track. I tested against another collection that makes heavy use of an album with special chars: Sigur Rós - Ágætis Byrjun. No song at all got imported. Pls contact me if I can further support. 
Comment 33 herr-schneider.m 2008-11-27 13:23:21 UTC
SVN current (889690) did not change behaviour: Import of original Collection crashed exactely at the same last track. I tested against another collection that makes heavy use of an album with special chars: Sigur Rós - Ágætis Byrjun. No song at all got imported. Pls contact me if I can further support. 
Comment 34 Mark Kretschmann 2008-11-28 12:11:44 UTC
Please try again with latest SVN trunk. We have a new patch in for an encoding problem:

SVN commit 890023 by woebbe:

escape():
- fix encoding (don't use implicit const char* -> QString cast)
- build with -pedantic

 M  +4 -3      MySqlEmbeddedCollection.cpp

Comment 35 herr-schneider.m 2008-11-28 14:05:38 UTC
Created attachment 28876 [details]
New Debug Trace

890023 did not change behaviour, but still the "fix" that makes the import exit silently exists, so that no backtrace can be provided. Nevertheless I attached a recent gdb output.
Comment 36 herr-schneider.m 2008-12-03 15:05:10 UTC
Why has this bug been marked as fixed and closed? There is obviously no fix by Seb Ruiz according to his comment - only a workaround to avoid crashing of the whole application due to misbehaviour of the import. I guess that with a fixed marked bug no activity takes place anymore?
Please reopen this bug!
Comment 37 Seb Ruiz 2008-12-03 23:00:53 UTC
*** Bug 176820 has been marked as a duplicate of this bug. ***
Comment 38 Seb Ruiz 2008-12-03 23:02:16 UTC
Yes, I suppose the bug that caused the crash is still valid. I'm having a very hard time tracking down the problem as I cannot reproduce.
Comment 39 Seb Ruiz 2008-12-03 23:02:26 UTC
*** Bug 176786 has been marked as a duplicate of this bug. ***
Comment 40 tony 2008-12-04 00:53:35 UTC
(In reply to comment #38)
> Yes, I suppose the bug that caused the crash is still valid. I'm having a very
> hard time tracking down the problem as I cannot reproduce.
> 

Hi Seb,
I can reproduce this with 100% reliability. I'm happy to test/try anything you want to try to track it down. The fact that it seems to occur at about the same point in the import (on the basis that I think I've got the same number of imported tracks) suggests there's something about a particular track that's causing the problem (I get that feeling from other comments). If there's a way to trace what track's being imported at the time of the crash I might be able to isolate it - maybe send a copy of the track to help you reproduce?
Comment 41 S. Burmeister 2008-12-04 01:01:23 UTC
What about adding some debug output that displays the track that is going to be imported?
Comment 42 Seb Ruiz 2008-12-04 01:28:58 UTC
If you run amarok with the --debug argument you should be able to see a load of debug. I'll add some more this evening.
Comment 43 tony 2008-12-04 01:46:17 UTC
Created attachment 29025 [details]
Output of amarok --debug
Comment 44 tony 2008-12-04 01:55:00 UTC
Ran with --debug as suggested. Output attached. I've uploaded the Ogg it seems to be failing on to http://www.web-brewer.co.uk/008DaltonReed-GivingOnIntoLove.ogg
Comment 45 Seb Ruiz 2008-12-04 01:59:01 UTC
Thanks Tony. Looks like I might be able to make some headway with your output.
Comment 46 tony 2008-12-04 02:16:10 UTC
Looking more closely at the output, I think the Ogg I uploaded isn't the beast causing the problem after all.

amarok:      [ERROR!] GREPME MySQLe query failed! Duplicate entry 'file:////oggs/Johann%20Sebastian%20Bach%20-%20the%206%20Brandenb' for key 'uniqueid'  on  "INSERT INTO urls_temp(directory,deviceid,rpath,uniqueid) VALUES ( 0, -1, './oggs/Johann Sebastian Bach - the 6 Brandenburg Concertos - Yehudi Menuhin and the Bath Festival Orchestra/013 No 4: Presto.ogg', 'file:////oggs/Johann%20Sebastian%20Bach%20-%20the%206%20Brandenburg%20Concertos%20-%20Yehudi%20Menuhin%20and%20the%20Bath%20Festival%20Orchestra/013%20No%204:%20Presto.ogg' );" 

seems significant. Though I don't know if that's the original problem or an artefact of the fact that I've re-run the import (does it wipe everything each time?) But it could be that the database field that needs to be unique is too small to hold the whole string, so because there's more than one track matching the substring, it's clashing.
Comment 47 Seb Ruiz 2008-12-04 02:41:39 UTC
The actual file doens't help me at all. The debug (including that sql error), does.
Comment 48 S. Burmeister 2008-12-06 12:25:42 UTC
For me it seems that I get different warnings, then the one above for thaose songs, that are not added. Revision: 893108

amarok:      [WARNING!] SQL Query returned no results: "SELECT id FROM urls WHERE deviceid = -1 AND rpath = './media/Bueffel/Musik/xyz.mp3';"

I'm not sure how amarok works, but the file is in /media... and depending where it starts, ./media might fail.

How do I get all of amarok's output into a file? amarok --debug > somefile.txt does not work.

for the albumart I get some of these:
"/home/rabauke/.kde/share/apps/amarok/albumcovers/large/11e105a9183afd1b37144e1e0857fe00"
QObject::connect: Cannot queue arguments of type 'KIO::filesize_t'
(Make sure 'KIO::filesize_t' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'KIO::filesize_t'
(Make sure 'KIO::filesize_t' is registered using qRegisterMetaType().)
amarok:    image copy: "11eab94b16bd30003d0641eca3ee5f9f"  :  "/home/rabauke/.kde/share/apps/amarok/albumcovers/large/11eab94b16bd30003d0641eca3ee
Comment 49 tony 2008-12-11 12:03:18 UTC
A new version (2.0, build date Dec 5) showed up on my Kubuntu updater this morning and it successfully imported my entire collection.So I reckon that's fixed it, thanks Seb (and others?)
Comment 50 S. Burmeister 2008-12-11 14:20:22 UTC
Does not work here.
Comment 51 Arnout Boelens 2008-12-11 19:35:35 UTC
For me (on Debian unstable/experimental) it doesn't work either.
Comment 52 soulflyb 2008-12-12 14:56:33 UTC
On Mandriva 2009.0, it's working but the score isn't imported.
Comment 53 Martin Ehmke 2008-12-14 10:51:47 UTC
Hi,

I just got amarok 2 installed and I run into the same problems: less than 1 percent of my collection is imported...

I basically get also those duplicate key errors. Before those another one:

amarok:        [ERROR!] GREPME MySQLe query failed! Specified key was too long; max key length is 1000 bytes  on  "CREATE UNIQUE
INDEX urls_id_rpath_temp ON urls_temp(deviceid, rpath);"


Is there separate script available as a workaround?

Best regards
Martin
Comment 54 Seb Ruiz 2008-12-17 11:52:03 UTC
SVN commit 897993 by seb:

Do some slight sanity checking when updating metdata of imported tracks.
eg:
 - don't set empty fields (rating, score, playcount)
 - don't set older lastPlayed or newer firstPlayed dates
This is useful since there may be multiple database entries which map to
single urls in the 1.4 database due to HDD changes and dynamic
collections. This tries to take the best of each statistic row as the
best heuristic.
BUG: 176237
CCBUG: 174784

 M  +20 -5     SqlMeta.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=897993
Comment 55 Arnout Boelens 2008-12-18 23:58:15 UTC
I just tried Amarok-nightly (20081218+svn898671-0neon1) and my entire collection was imported without any errors!

However, none of my cover art was imported..
Comment 56 Arnout Boelens 2008-12-19 00:01:37 UTC
Also, the information of whether a song belongs to a various artists album or not is lost.
Comment 57 herr-schneider.m 2008-12-20 13:51:07 UTC
(In reply to comment #54)
> SVN commit 897993 by seb:
> 
> Do some slight sanity checking when updating metdata of imported tracks.
> eg:

Still does not work for me, stops at exact the same position. If I provided you with my old Amarok Collection, would that help?
Comment 58 Mark Kretschmann 2008-12-23 20:54:13 UTC
*** Bug 178596 has been marked as a duplicate of this bug. ***
Comment 59 Martin Ehmke 2008-12-28 15:40:12 UTC
I checked with latest SVN (902502) and now it even crashes (and doesn't import anything)

Another strange thing is that it shows something like: amarok:    11459  no track produced for URL  "/mnt/zeug./zeug1/ ... 

The latter part of the shown URL is correct, but not the beginning: /mnt/zeug is the actual mount point of the disk containing files, and /mnt/zeug1 exists as well, because of backward compatibility issues. But the strange thing is the inserted dot, because there is no such directory as zeug. - maybe it comes from concatenating the mount point with something like ./ ...?
Comment 60 Myriam Schweingruber 2009-06-25 15:59:45 UTC
*** Bug 192945 has been marked as a duplicate of this bug. ***
Comment 61 Myriam Schweingruber 2009-08-02 13:02:16 UTC
bug 174269 seems to be the same problem. Any news on this?
Comment 62 herr-schneider.m 2009-08-02 13:07:27 UTC
(In reply to comment #61)
> bug 174269 seems to be the same problem. Any news on this?

No - I simply did not try it anymore. And nowadays - I do not have any 1.4 Collection at hand anymore.
Comment 63 soulflyb 2009-08-02 16:02:34 UTC
(In reply to comment #62)
> (In reply to comment #61)
> > bug 174269 seems to be the same problem. Any news on this?
> 
> No - I simply did not try it anymore. And nowadays - I do not have any 1.4
> Collection at hand anymore.

amarok2 is still unable to import correctly a collection from amarok1.4 ... 

i can provide you my collection if you want cause i'm still using amarok1.4
Comment 64 Myriam Schweingruber 2009-08-09 15:10:03 UTC
Changed priority. From the comments I get that the crash doesn't happen anymore, but the import ist still more than flaky.
Comment 65 Matěj Laitl 2009-09-11 18:54:00 UTC
Current git trunk (very similar to 2.2-beta1) imports my Amarok 1.4 collection correctly.

(while the previous versions of Amarok 2 had problems with my 1.4 collection)

So, from my PoV this WORKSFORME.
Comment 66 Myriam Schweingruber 2009-09-12 00:44:09 UTC
Please, everyone of those running current 2.2-git or 2.1.80 with an old 1.4 database at hand, could you try now if this bug is indeed fixed?

Would be nice if we could close this one.
Comment 67 Mark Kretschmann 2009-10-16 09:42:00 UTC
It is fixed in 2.2-GIT, apart from one little oops with importing scores. We have a patch for that, it's in BUG 174444

So I'm closing this report, and we'll keep the other one open until the patch is applied.