Bug 174761 - Amarok crashes building collection
Summary: Amarok crashes building collection
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Collections/Local (show other bugs)
Version: 2.0-SVN
Platform: Fedora RPMs Linux
: HI crash
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-10 02:35 UTC by a thing
Modified: 2009-12-09 11:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description a thing 2008-11-10 02:35:22 UTC
Version:           2.0-SVN (using KDE 4.1.0)
Installed from:    Fedora RPMs

Amarok will not detect its collection. ~/.kde/share/apps/amarok/mysqle/ exists and is 21MB. So, upon startup, it starts the collection scanner. However, once it is started, the scan progress bar disappears from the bottom and Amarok does not use the collection (even upon restarting Amarok). CLI output before scan:

amarok: BEGIN: void CurrentEngine::setupTracksData()                                                               
amarok: END__: void CurrentEngine::setupTracksData() - Took 0.00041s                                               
amarok: BEGIN: virtual int App::newInstance()                                                                      
amarok: BEGIN: static void App::handleCliArgs()                                                                    
amarok: END__: static void App::handleCliArgs() - Took 0.00074s                                                    
amarok: END__: virtual int App::newInstance() - Took 0.0014s                                                       
QGArray::find: Index 0 out of range                                                                                
QDom: saving invalid character �, the document will not be well-formed                                      
QDom: saving invalid character �, the document will not be well-formed                                      
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.                        
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                              
TagLib: ID3v2.4 no longer supports the frame type RVAD.  It will be discarded from the tag.                        
QDom: saving invalid character , the document will not be well-formed                                         
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                              
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                              
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                              
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                              
amarok: BEGIN: void DatabaseUpdater::createTemporaryTables()                                                       
amarok:      Initialized thread, count== 4                                                                         
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);"                                                                     
amarok: BEGIN: void CurrentTrack::dataUpdated(const QString&, const QHash<QString, QVariant>&)                                
amarok(1700) CurrentTrack::dataUpdated: CurrentTrack::dataUpdated                                                             
amarok: END__: void CurrentTrack::dataUpdated(const QString&, const QHash<QString, QVariant>&) - Took 0.00082s                
QDBusConnection received a message of type 3 that it shouldn't have                                                           
error: "org.freedesktop.DBus.Error.ServiceUnknown" "The name :1.2645 was not provided by any .service files"                  
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                         
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                         
amarok: END__: void DatabaseUpdater::createTemporaryTables() - Took 0.3s                                                      
amarok:    do-while done with error                                                                                           
amarok: BEGIN: void DatabaseUpdater::removeTemporaryTables()                                                                  
amarok: END__: void DatabaseUpdater::removeTemporaryTables() - Took 0.0014s                                                   
amarok: BEGIN: virtual ScanResultProcessor::~ScanResultProcessor()                                                            
amarok: END__: virtual ScanResultProcessor::~ScanResultProcessor() - Took 6e-05s                                              
amarok: END__: virtual void XmlParseJob::run() - Took 50s                                                                     
amarok: BEGIN: virtual XmlParseJob::~XmlParseJob()                                                                            
amarok: BEGIN: void CompoundProgressBar::childBarComplete(ProgressBarNG*)                                                     
amarok:      p before:  QPoint(2,-9)                                                                                          
amarok:      p after:  QPoint(4,914)                                                                                          
amarok: BEGIN: void ProgressBarNG::setDescription(const QString&)                                                             
amarok: END__: void ProgressBarNG::setDescription(const QString&) - Took 0.00016s                                             
amarok: BEGIN: void StatusBar::hideProgress()                                                                                 
amarok: END__: void StatusBar::hideProgress() - Took 6.8s                                                                     
amarok: END__: void CompoundProgressBar::childBarComplete(ProgressBarNG*) - Took 6.8s                                         
amarok: END__: virtual XmlParseJob::~XmlParseJob() - Took 6.8s                                                                
TagLib: MPEG::Properties::read() -- Could not find a valid last MPEG frame in the stream.                                     
TagLib: ID3v2.4 no longer supports the frame type TDAT.  It will be discarded from the tag.                                   
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                         
TagLib: MPEG::Properties::read() -- Page headers were invalid.                                                                
TagLib: MPEG::Header::parse() -- Invalid sample rate.                                                                         
TagLib: MPEG::Header::parse() -- Invalid sample rate.
Comment 1 Seb Ruiz 2008-11-10 03:27:19 UTC
I can't see anything here that would point to a cause of the problem. the index error is safely ignorable.
Comment 2 a thing 2008-11-12 05:37:44 UTC
If that does not point to the cause of the problem, well that sucks. But this is still a huge problem, so I am reopening this bug.
Comment 3 Seb Ruiz 2008-11-12 05:49:36 UTC
Please run amarok with amarok --nofork, see if you can ascertain what the problem is.

Also, using the script console with the script manager, please report the terminal output when running the following command: Amarok.Collection.query( "SHOW TABLES" );
Comment 4 a thing 2008-11-13 02:14:06 UTC
I tried running with --nofork, and I got the same crash as bug 174762.
Comment 5 Seb Ruiz 2008-11-13 02:21:59 UTC
Try manually run the amarokcollectionscanner application and see if there is a particular file which is causing the scanner to crash.
Comment 6 a thing 2008-11-13 04:26:48 UTC
Running amarokcollectionscanner manually works fine (exit status 0).
Comment 7 Seb Ruiz 2008-11-13 04:58:10 UTC
Did you run it with your collection path?

amarokcollectionscanner -R /path/to/music
Comment 8 a thing 2008-11-13 05:18:57 UTC
Yes.
Comment 9 Mark Kretschmann 2008-11-13 10:57:06 UTC
I can confirm this. Had similar issues with scanning yesterday.

Looking into it.
Comment 10 FiNeX 2008-11-19 20:25:58 UTC
Changed severity to "crash". I hope to have selected only the right bugs (>100) :-)
Comment 11 a thing 2008-11-26 05:57:54 UTC
This has been fixed, but bug 174761 still leaves Amarok without a collection.
Comment 12 a thing 2008-11-26 20:49:40 UTC
Nevermind, Amarok actually does still crash with signal 6.
Comment 13 Mark Kretschmann 2008-11-26 21:59:25 UTC
Ok, then please provide a valid backtrace.
Comment 14 Mark Kretschmann 2008-12-03 19:41:47 UTC
So, any new information on this? Without it it's gonna be a hard to fix.
Comment 15 a thing 2008-12-04 01:18:03 UTC
No because I have had an issue with CMake since installing Fedora 10 and no one has had a clue on IRC. I just filed bug 176843 for this.
Comment 16 a thing 2008-12-05 13:53:54 UTC
It works now. :D
Comment 17 Mark Kretschmann 2008-12-05 15:15:20 UTC
Thanks for confirming. Closing report then :)