Bug 213143 - Unable to scan collection
Summary: Unable to scan collection
Status: RESOLVED NOT A BUG
Alias: None
Product: amarok
Classification: Applications
Component: Collections/Local (show other bugs)
Version: 2.3-GIT
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 21:13 UTC by Andreas Stangl
Modified: 2009-11-09 01:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Debug output of amarok (109.07 KB, text/plain)
2009-11-06 12:37 UTC, Andreas Stangl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Stangl 2009-11-04 21:13:19 UTC
Version:           2.2-GIT (using 4.3.3 (KDE 4.3.3), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.31-gentoo-r3

I just updated amarok from git and it seems that I am unable to scan/update my collection. When I start amarok, it says I have 0 tracks im my collection (but I have about 3000 Tracks...).

When I click on Tools->Update collection the debug output is like this:
------------------
amarok: BEGIN: void CollectionManager::checkCollectionChanges()                                                                              
amarok:   BEGIN: void ScanManager::startIncrementalScan()                                                                                    
amarok:     BEGIN: void ScanManager::checkTables(bool)                                                                                       
amarok:     END__: void ScanManager::checkTables(bool) - Took 9e-05s                                                                         
amarok:     BEGIN: QStringList ScanManager::getDirsToScan()                                                                                  
amarok:     END__: QStringList ScanManager::getDirsToScan() - Took 0.084s                                                                    
amarok:      GOING TO SCAN:                                                                                                                  
amarok:           "/media/extdata/Musik/_AMAROKMTIME_1256074304"                                                                             
amarok:           "/media/extdata/Musik/16Volt_vs._Spahn_Ranch/_AMAROKMTIME_1242059418"                                                      
amarok:           "/media/extdata/Musik/16Volt_vs._Spahn_Ranch/Dont_Blow_Your_Cover_A_Tribute_to_KMFDM/_AMAROKMTIME_1244393499"              
amarok:           "/media/extdata/Musik/16Volt_vs_Spahn_Ranch/_AMAROKMTIME_1252843502"                                                       
amarok:           "/media/extdata/Musik/2Pac/_AMAROKMTIME_1252843502"                                                                        
amarok:           "/media/extdata/Musik/2raumwohnung/_AMAROKMTIME_1252843502"                                                                
amarok:           "/media/extdata/Musik/3_Doors_Down/_AMAROKMTIME_1252858964"                                                                
amarok:           "/media/extdata/Musik/3rd_Strike/_AMAROKMTIME_1252843502"                                                                  
amarok:           "/media/extdata/Musik/_Lyrics/_AMAROKMTIME_1252843503"                                                                     
amarok:           "/media/extdata/Musik/_webradio/_AMAROKMTIME_1252843503"                                                                   
amarok:           "/media/extdata/Musik/A_Perfect_Circle/_AMAROKMTIME_1252843503"                                                            
amarok:           "/media/extdata/Musik/A_Place_To_Bury_Strangers/_AMAROKMTIME_1242059419"                                                   

*** and all the other folders under /media/extdata/Musik/ ***
                                       
amarok:     BEGIN: void ScanManager::writeBatchIncrementalInfoFile()                                                                         
amarok:     END__: void ScanManager::writeBatchIncrementalInfoFile() - Took 0.00086s                                                         
amarok:     BEGIN: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*)                                                                    
amarok:       BEGIN: void ProgressBar::setDescription(const QString&)                                                                        
amarok:       END__: void ProgressBar::setDescription(const QString&) - Took 7.8e-05s                                                        
amarok:       BEGIN: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*)                                                        
amarok:         BEGIN: void ProgressBar::setDescription(const QString&)                                                                      
amarok:         END__: void ProgressBar::setDescription(const QString&) - Took 6.9e-05s                                                      
amarok:       END__: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*) - Took 0.00049s                                        
amarok:       BEGIN: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*)                                                           
amarok:          Setting abort slot for  "Scanning music"                                                                                    
amarok:          connecting to  1abort()                                                                                                     
amarok:       END__: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*) - Took 0.00014s                                           
amarok:     END__: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*) - Took 0.0015s                                                     
amarok:     BEGIN: virtual void XmlParseJob::run()                                                                                           
amarok:       BEGIN: ScanResultProcessor::ScanResultProcessor(SqlCollection*)                                                                
amarok:       END__: ScanResultProcessor::ScanResultProcessor(SqlCollection*) - Took 0.00013s
amarok:     END__: void ScanManager::startIncrementalScan() - Took 0.11s
amarok:   END__: void CollectionManager::checkCollectionChanges() - Took 0.11s
amarok:   BEGIN: void ScanManager::slotError(QProcess::ProcessError)
amarok:      Error:  0
amarok:      Scan error:  "Unknown error: reseting scan manager state"
amarok:      Success. Committing result to database.
amarok:      ERROR: Database temporary table setup did not complete.  This is probably a result of no directories being scanned.
amarok:     BEGIN: virtual ScanResultProcessor::~ScanResultProcessor()
amarok:     END__: virtual ScanResultProcessor::~ScanResultProcessor() - Took 6.5e-05s
amarok:   END__: virtual void XmlParseJob::run() - Took 0.03s
amarok:   BEGIN: void ScanManager::stopParser()
amarok:     BEGIN: virtual void XmlParseJob::requestAbort()
amarok:     END__: virtual void XmlParseJob::requestAbort() - Took 6.7e-05s
amarok:   END__: void ScanManager::stopParser() - Took 0.00017s
amarok: END__: void ScanManager::slotError(QProcess::ProcessError) - Took 0.00085s
QCoreApplication::postEvent: Unexpected null receiver
amarok: BEGIN: virtual XmlParseJob::~XmlParseJob()
amarok:   BEGIN: void CompoundProgressBar::childBarComplete(ProgressBar*)
amarok:     BEGIN: void ProgressBar::setDescription(const QString&)
amarok:     END__: void ProgressBar::setDescription(const QString&) - Took 7.6e-05s
amarok:     BEGIN: void StatusBar::hideProgress()
amarok:     END__: void StatusBar::hideProgress() - Took 0.013s
amarok:   END__: void CompoundProgressBar::childBarComplete(ProgressBar*) - Took 0.013s
amarok: END__: virtual XmlParseJob::~XmlParseJob() - Took 0.014s

When I try to do a full rescan of my collection the debug output is:
--------------------------
amarok: BEGIN: void ScanManager::startFullScan()                                                                                             
amarok:   BEGIN: void ScanManager::checkTables(bool)                                                                                         
amarok:     BEGIN: void DatabaseUpdater::checkTables(bool)                                                                                   
amarok:     END__: void DatabaseUpdater::checkTables(bool) - Took 0.39s                                                                      
amarok:   END__: void ScanManager::checkTables(bool) - Took 0.39s                                                                            
amarok:   BEGIN: void ScanManager::cleanTables()                                                                                             
amarok:   END__: void ScanManager::cleanTables() - Took 0.00082s                                                                             
amarok:   BEGIN: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*)                                                                      
amarok:     BEGIN: void ProgressBar::setDescription(const QString&)                                                                          
amarok:     END__: void ProgressBar::setDescription(const QString&) - Took 7.6e-05s                                                          
amarok:     BEGIN: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*)                                                          
amarok:       BEGIN: void ProgressBar::setDescription(const QString&)                                                                        
amarok:       END__: void ProgressBar::setDescription(const QString&) - Took 7.2e-05s                                                        
amarok:     END__: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*) - Took 0.0005s                                           
amarok:     BEGIN: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*)                                                             
amarok:        Setting abort slot for  "Scanning music"                                                                                      
amarok:        connecting to  1abort()                                                                                                       
amarok:     END__: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*) - Took 0.00014s                                             
amarok:   END__: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*) - Took 0.0015s                                                       
amarok:    Checking for batch file in  "/home/stan/.kde4.2/share/apps/amarok/amarokcollectionscanner_batchfullscan.xml"                      
amarok:    GOING TO SCAN:                                                                                                                    
amarok:   BEGIN: QStringList MountPointManager::collectionFolders()                                                                          
amarok:     [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik"                                                     
amarok:     BEGIN: virtual void XmlParseJob::run()                                                                                           
amarok:       BEGIN: ScanResultProcessor::ScanResultProcessor(SqlCollection*)                                                                
amarok:       END__: ScanResultProcessor::ScanResultProcessor(SqlCollection*) - Took 6.9e-05s                                                
amarok:     END__: QStringList MountPointManager::collectionFolders() - Took 0.00071s                                                        
amarok:     BEGIN: QStringList MountPointManager::collectionFolders()                                                                        
amarok:       [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik"                                                   
amarok:     END__: QStringList MountPointManager::collectionFolders() - Took 0.00042s
amarok:           "/media/extdata/Musik"
amarok:   END__: void ScanManager::startFullScan() - Took 0.4s
amarok:   BEGIN: void ScanManager::slotError(QProcess::ProcessError)
amarok:      Error:  0
amarok:      Scan error:  "Unknown error: reseting scan manager state"
amarok:      Success. Committing result to database.
amarok:     BEGIN: void ScanManager::stopParser()
amarok:       BEGIN: virtual void XmlParseJob::requestAbort()
amarok:       END__: virtual void XmlParseJob::requestAbort() - Took 8.5e-05s
amarok:        ERROR: Database temporary table setup did not complete.  This is probably a result of no directories being scanned.
amarok:       BEGIN: virtual ScanResultProcessor::~ScanResultProcessor()
amarok:       END__: virtual ScanResultProcessor::~ScanResultProcessor() - Took 6.7e-05s
amarok:     END__: virtual void XmlParseJob::run() - Took 0.024s
amarok:   END__: void ScanManager::stopParser() - Took 0.1s
amarok: END__: void ScanManager::slotError(QProcess::ProcessError) - Took 0.1s
QCoreApplication::postEvent: Unexpected null receiver
amarok: BEGIN: virtual XmlParseJob::~XmlParseJob()
amarok:   BEGIN: void CompoundProgressBar::childBarComplete(ProgressBar*)
amarok:     BEGIN: void ProgressBar::setDescription(const QString&)
amarok:     END__: void ProgressBar::setDescription(const QString&) - Took 9.1e-05s
amarok:     BEGIN: void StatusBar::hideProgress()
amarok:     END__: void StatusBar::hideProgress() - Took 0.00031s
amarok:   END__: void CompoundProgressBar::childBarComplete(ProgressBar*) - Took 0.0009s
amarok: END__: virtual XmlParseJob::~XmlParseJob() - Took 0.0011s


Any ideas?
Comment 1 Jeff Mitchell 2009-11-05 04:40:41 UTC
What was the last revision you were using?
Comment 2 Andreas Stangl 2009-11-06 11:40:56 UTC
the last commit of my version was 71ed4bb2f05b88c6aae870292093cd06a989eac2
(btw. it might be useful for git-users to get the current revision via Help->About Amarok), I have just updated and am compiling e04f919b8f832590f8d0216f6d751eb5a538faae, hope it helps.
Comment 3 Andreas Stangl 2009-11-06 11:56:43 UTC
problem is still there :-(
Comment 4 Myriam Schweingruber 2009-11-06 12:19:47 UTC
Andreas, you can check your git checkout easily with 'git log'.

Strange, it works perfectly well here, no scanning problems at all. Git commit 3ef284a3cbfb9ee864088ac3aa8813359413850c.
Comment 5 Andreas Stangl 2009-11-06 12:36:07 UTC
Now I've moved ~/.kde/share/apps/amarok and ~/.kde/share/config/amarok* out of the way, but the problem still persists. Strange: I just clicked "Fully rescan Collection" two or three times pretty fast and now amarok is not responding. The status bar of the main windows says "scanning music" and the progress-bar is shown and stays at 0% but nothing happens. I had to kill amarok because of this. I'm going to attach a full debug log to this bug, soon.
Comment 6 Andreas Stangl 2009-11-06 12:37:25 UTC
Created attachment 38131 [details]
Debug output of amarok
Comment 7 Myriam Schweingruber 2009-11-06 13:16:41 UTC
Copy of the relevant parts inline:

amarok: BEGIN: virtual bool Amarok2ConfigDialog::hasChanged() 
amarok:   BEGIN: virtual bool CollectionConfig::hasChanged() 
amarok:     BEGIN: bool CollectionSetup::hasChanged() const 
amarok:       BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:         [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik" 
amarok:       END__: QStringList MountPointManager::collectionFolders() - Took 0.00046s 
amarok:     END__: bool CollectionSetup::hasChanged() const - Took 0.00059s 
amarok:   END__: virtual bool CollectionConfig::hasChanged() - Took 0.00068s 
amarok:   BEGIN: virtual bool ServiceConfig::hasChanged() 
amarok:   END__: virtual bool ServiceConfig::hasChanged() - Took 5.5e-05s 
amarok: END__: virtual bool Amarok2ConfigDialog::hasChanged() - Took 0.00092s 
amarok: BEGIN: void ScanManager::startFullScan() 
amarok:   BEGIN: void ScanManager::checkTables(bool) 
amarok:     BEGIN: void DatabaseUpdater::checkTables(bool) 
amarok:     END__: void DatabaseUpdater::checkTables(bool) - Took 0.39s 
amarok:   END__: void ScanManager::checkTables(bool) - Took 0.39s 
amarok:   BEGIN: void ScanManager::cleanTables() 
amarok:   END__: void ScanManager::cleanTables() - Took 0.00077s 
amarok:   BEGIN: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*) 
amarok:     BEGIN: void ProgressBar::setDescription(const QString&) 
amarok:     END__: void ProgressBar::setDescription(const QString&) - Took 7.7e-05s 
amarok:     BEGIN: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*) 
amarok:       BEGIN: void ProgressBar::setDescription(const QString&) 
amarok:       END__: void ProgressBar::setDescription(const QString&) - Took 6.9e-05s 
amarok:     END__: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*) - Took 0.00049s 
amarok:     BEGIN: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*) 
amarok:        Setting abort slot for  "Scanning music" 
amarok:        connecting to  1abort() 
amarok:     END__: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*) - Took 0.00022s 
amarok:   END__: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*) - Took 0.0016s 
amarok:    Checking for batch file in  "/home/stan/.kde4.2/share/apps/amarok/amarokcollectionscanner_batchfullscan.xml" 
amarok:    GOING TO SCAN: 
amarok:   BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:     [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik" 
amarok:     BEGIN: virtual void XmlParseJob::run() 
amarok:       BEGIN: ScanResultProcessor::ScanResultProcessor(SqlCollection*) 
amarok:       END__: ScanResultProcessor::ScanResultProcessor(SqlCollection*) - Took 7.1e-05s 
amarok:     END__: QStringList MountPointManager::collectionFolders() - Took 0.00078s 
amarok:     BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:       [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik" 
amarok:     END__: QStringList MountPointManager::collectionFolders() - Took 0.00038s 
amarok:           "/media/extdata/Musik" 
amarok:   END__: void ScanManager::startFullScan() - Took 0.4s 
amarok:   BEGIN: void ScanManager::slotError(QProcess::ProcessError) 
amarok:      Error:  0 
amarok:      Scan error:  "Unknown error: reseting scan manager state" 
amarok:      Success. Committing result to database. 
amarok:      ERROR: Database temporary table setup did not complete.  This is probably a result of no directories being scanned. 
amarok:     BEGIN: virtual ScanResultProcessor::~ScanResultProcessor() 
amarok:     END__: virtual ScanResultProcessor::~ScanResultProcessor() - Took 5.5e-05s 
amarok:   END__: virtual void XmlParseJob::run() - Took 0.01s 
amarok:   BEGIN: void ScanManager::stopParser() 
amarok:     BEGIN: virtual void XmlParseJob::requestAbort() 
amarok:     END__: virtual void XmlParseJob::requestAbort() - Took 7.8e-05s 
amarok:   END__: void ScanManager::stopParser() - Took 0.00023s 
amarok: END__: void ScanManager::slotError(QProcess::ProcessError) - Took 0.00094s 
QCoreApplication::postEvent: Unexpected null receiver
amarok: BEGIN: virtual XmlParseJob::~XmlParseJob() 
amarok:   BEGIN: void CompoundProgressBar::childBarComplete(ProgressBar*) 
amarok:     BEGIN: void ProgressBar::setDescription(const QString&) 
amarok:     END__: void ProgressBar::setDescription(const QString&) - Took 0.00011s 
amarok:     BEGIN: void StatusBar::hideProgress() 
amarok:     END__: void StatusBar::hideProgress() - Took 0.00034s 
amarok:   END__: void CompoundProgressBar::childBarComplete(ProgressBar*) - Took 0.00091s 
amarok: END__: virtual XmlParseJob::~XmlParseJob() - Took 0.0011s 
amarok: BEGIN: void ScanManager::startFullScan() 
amarok:   BEGIN: void ScanManager::checkTables(bool) 
amarok:     BEGIN: void DatabaseUpdater::checkTables(bool) 
amarok:     END__: void DatabaseUpdater::checkTables(bool) - Took 0.39s 
amarok:   END__: void ScanManager::checkTables(bool) - Took 0.39s 
amarok:   BEGIN: void ScanManager::cleanTables() 
amarok:   END__: void ScanManager::cleanTables() - Took 0.00082s 
amarok:   BEGIN: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*) 
amarok:     BEGIN: void ProgressBar::setDescription(const QString&) 
amarok:     END__: void ProgressBar::setDescription(const QString&) - Took 7.1e-05s 
amarok:     BEGIN: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*) 
amarok:       BEGIN: void ProgressBar::setDescription(const QString&) 
amarok:       END__: void ProgressBar::setDescription(const QString&) - Took 7.4e-05s 
amarok:     END__: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*) - Took 0.0005s 
amarok:     BEGIN: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*) 
amarok:        Setting abort slot for  "Scanning music" 
amarok:        connecting to  1abort() 
amarok:     END__: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*) - Took 0.00013s 
amarok:   END__: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*) - Took 0.0014s 
amarok:    Checking for batch file in  "/home/stan/.kde4.2/share/apps/amarok/amarokcollectionscanner_batchfullscan.xml" 
amarok:    GOING TO SCAN: 
amarok:   BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:     [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik" 
amarok:     BEGIN: virtual void XmlParseJob::run() 
amarok:       BEGIN: ScanResultProcessor::ScanResultProcessor(SqlCollection*) 
amarok:       END__: QStringList MountPointManager::collectionFolders() - Took 0.00053s 
amarok:       BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:       END__: ScanResultProcessor::ScanResultProcessor(SqlCollection*) - Took 0.00022s 
amarok:       [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik" 
amarok:     END__: QStringList MountPointManager::collectionFolders() - Took 0.00046s 
amarok:           "/media/extdata/Musik" 
amarok:   END__: void ScanManager::startFullScan() - Took 0.4s 
amarok:   BEGIN: void ScanManager::slotError(QProcess::ProcessError) 
amarok:      Error:  0 
amarok:      Scan error:  "Unknown error: reseting scan manager state" 
amarok:     BEGIN: void ScanManager::stopParser() 
amarok:       BEGIN: virtual void XmlParseJob::requestAbort() 
amarok:          Abort requested. 
amarok:         BEGIN: void DatabaseUpdater::removeTemporaryTables() 
amarok:            Initialized thread, count== 5 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'tracks_temp'  on  "DROP TABLE tracks_temp;" 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'images_temp'  on  "DROP TABLE images_temp;" 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'albums_temp'  on  "DROP TABLE albums_temp;" 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'genres_temp'  on  "DROP TABLE genres_temp;" 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'years_temp'  on  "DROP TABLE years_temp;" 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'composers_temp'  on  "DROP TABLE composers_temp;" 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'artists_temp'  on  "DROP TABLE artists_temp;" 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'urls_temp'  on  "DROP TABLE urls_temp;" 
amarok:            [ERROR!] GREPME MySQL query failed! Unknown table 'directories_temp'  on  "DROP TABLE directories_temp" 
amarok:         END__: void DatabaseUpdater::removeTemporaryTables() - Took 0.0014s 
amarok:         BEGIN: virtual ScanResultProcessor::~ScanResultProcessor() 
amarok:         END__: virtual ScanResultProcessor::~ScanResultProcessor() - Took 5.6e-05s 
amarok:       END__: virtual void XmlParseJob::run() - Took 0.0084s 
amarok:     END__: virtual void XmlParseJob::requestAbort() - Took 0.0019s 
amarok:   END__: void ScanManager::stopParser() - Took 0.0021s 
amarok: END__: void ScanManager::slotError(QProcess::ProcessError) - Took 0.0023s 
QCoreApplication::postEvent: Unexpected null receiver
amarok: BEGIN: virtual XmlParseJob::~XmlParseJob() 
amarok:   BEGIN: void CompoundProgressBar::childBarComplete(ProgressBar*) 
amarok:     BEGIN: void ProgressBar::setDescription(const QString&) 
amarok:     END__: void ProgressBar::setDescription(const QString&) - Took 7.3e-05s 
amarok:     BEGIN: void StatusBar::hideProgress() 
amarok:     END__: void StatusBar::hideProgress() - Took 0.0003s 
amarok:   END__: void CompoundProgressBar::childBarComplete(ProgressBar*) - Took 0.00085s 
amarok: END__: virtual XmlParseJob::~XmlParseJob() - Took 0.00096s 
amarok: BEGIN: void ScanManager::startFullScan() 
amarok:   BEGIN: void ScanManager::checkTables(bool) 
amarok:     BEGIN: void DatabaseUpdater::checkTables(bool) 
amarok:     END__: void DatabaseUpdater::checkTables(bool) - Took 0.39s 
amarok:   END__: void ScanManager::checkTables(bool) - Took 0.39s 
amarok:   BEGIN: void ScanManager::cleanTables() 
amarok:   END__: void ScanManager::cleanTables() - Took 0.00073s 
amarok:   BEGIN: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*) 
amarok:     BEGIN: void ProgressBar::setDescription(const QString&) 
amarok:     END__: void ProgressBar::setDescription(const QString&) - Took 7.4e-05s 
amarok:     BEGIN: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*) 
amarok:       BEGIN: void ProgressBar::setDescription(const QString&) 
amarok:       END__: void ProgressBar::setDescription(const QString&) - Took 7e-05s 
amarok:     END__: void CompoundProgressBar::addProgressBar(ProgressBar*, QObject*) - Took 0.0005s 
amarok:     BEGIN: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*) 
amarok:        Setting abort slot for  "Scanning music" 
amarok:        connecting to  1abort() 
amarok:     END__: ProgressBar* ProgressBar::setAbortSlot(QObject*, const char*) - Took 0.00013s 
amarok:   END__: XmlParseJob::XmlParseJob(ScanManager*, SqlCollection*) - Took 0.0014s 
amarok:    Checking for batch file in  "/home/stan/.kde4.2/share/apps/amarok/amarokcollectionscanner_batchfullscan.xml" 
amarok:    GOING TO SCAN: 
amarok:   BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:     [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik" 
amarok:   END__: QStringList MountPointManager::collectionFolders() - Took 0.00048s 
amarok:   BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:     [MountPointManager] QDesktopServices::MusicLocation:  "/media/extdata/Musik" 
amarok:   END__: QStringList MountPointManager::collectionFolders() - Took 0.00033s 
amarok:         "/media/extdata/Musik" 
amarok: END__: void ScanManager::startFullScan() - Took 0.4s 
amarok: BEGIN: void ScanManager::slotError(QProcess::ProcessError) 
amarok:    Error:  0 
amarok:    Scan error:  "Unknown error: reseting scan manager state" 
amarok:   BEGIN: void ScanManager::stopParser() 
amarok:     BEGIN: virtual void XmlParseJob::requestAbort() 
amarok:     END__: virtual void XmlParseJob::requestAbort() - Took 6e-05s
Comment 8 Jeff Mitchell 2009-11-06 19:15:27 UTC
There's nothing useful in that debug log, other than the fact that it's getting some sort of error running the scanner.

Generally this is caused by multiple versions of Amarok installed, or libraries from old versions cruftily getting around places. I'd do an updatedb, then search around your system and try to fully clean out Amarok (look for libamarok items, directories with the name amarok in them, etc.) Then try installing again (and if you havent' done a fresh rebuild recently, clean your build dir and start that over too).

I don't know for sure that it will help, but that's the most common cause of strange errors like this.
Comment 9 Marc Collin 2009-11-07 15:57:10 UTC
i had a similar problem, i removed information about amarok in .kde... that work fine
Comment 10 Jeff Mitchell 2009-11-07 16:16:31 UTC
(In reply to comment #9)
> i had a similar problem, i removed information about amarok in .kde... that
> work fine

Mark, there are lots of problems for which removing the amarok folder in .kde4/share/apps will work fine -- but it also destroys any chance of trying to find what the problem is and fixing it so that others don't run into it. So please don't encourage this.
Comment 11 Jeff Mitchell 2009-11-07 16:21:52 UTC
Andreas, I fixed a few issues yesterday, can you see if those helped?
Comment 12 Marc Collin 2009-11-07 17:53:58 UTC
@jeff, often under kde, you get this kind of problem when you use a release of x and you upgrade... program don't run correctely with a old release of the config... so removing file fix the problem
Comment 13 Myriam Schweingruber 2009-11-07 19:15:27 UTC
(In reply to comment #12)
> @jeff, often under kde, you get this kind of problem when you use a release of
> x and you upgrade... program don't run correctely with a old release of the
> config... so removing file fix the problem

I don't thing you need to explain this to a long time KDE developer like Jeff is...
If he needs to narrow down where the problem lies, your suggestion of removing those exact files is not very helpful, please abstain from such suggestions, this is not a help forum but a bug report.
Comment 14 Andreas Stangl 2009-11-08 21:08:03 UTC
Jeff, I found some libamarok* in /usr/local/lib64 and removed them. Unfortunately it did not help, amarok still did not work right. After scratching my head for awhile I realized that /usr/bin/amarokcollectionscanner is in the package amarok-utils (I use gentoo) which I did not update recently and after the uidhash branch made it into the master branch, this file must have changed for sure. To cut to the chase: after I rebuilt amarok-utils and amarok everything works fine again. Closing this bug a little ashamed ;-)
Comment 15 Jeff Mitchell 2009-11-08 23:42:28 UTC
Hi Andreas,

Just to clear up a point -- you were disabling building the scanner from Git, and instead installing amarok-utils from portage and just the player from Git?
Comment 16 Andreas Stangl 2009-11-08 23:54:02 UTC
Both, media-sound/amarok-utils and media-sound/amarok are live-ebuilds, so everytime these packages are built the sources are fetched from git. This time I did only rebuild media-sound/amarok. Due to the changes in the collection scanner media-sound/amarok-utils has changed, but I only rebuilt media-sound/amarok. Because both ebuilds do not have version information (live ebuilds have the version 9999) portage cannot know that one of them needs updating so 

$ emerge amarok 

*only* rebuilds media-sound/amarok and amarok-utils stays untouched. In the future I will always rebulid both packages. 

Maybe I would be good to merge these two ebuilds. I will ask the gentoo guys if this is possible because I don't know any other packages that needs amarok-utils except amarok...
Comment 17 Andreas Stangl 2009-11-09 00:02:08 UTC
Just files http://bugs.gentoo.org/show_bug.cgi?id=292447. Jeff, do you know if there are any reasons why the collection scanner is in a different package than the rest of amarok?
Comment 18 Jeff Mitchell 2009-11-09 01:27:50 UTC
In general they are separate because we asked packagers to separate out the packages (-utils does not depend on X11 so you can run amarok_afttagger and amarokcollectionscanner on a headless server) -- however, the live ebuilds could certainly be merged, I think (I responded to the gentoo bug).

But, this explains things -- thanks  :-)