Bug 199429 - Collection not initialized on startup nor Collection scan
Summary: Collection not initialized on startup nor Collection scan
Status: RESOLVED NOT A BUG
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.2-SVN
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-08 15:40 UTC by herr-schneider.m
Modified: 2009-07-14 07:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Console output of amarok --debug (94.75 KB, text/plain)
2009-07-08 16:14 UTC, herr-schneider.m
Details

Note You need to log in before you can comment on or make changes to this bug.
Description herr-schneider.m 2009-07-08 15:40:32 UTC
Version:           recent SVN (using Devel)
Compiler:          gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291] 
OS:                Linux
Installed from:    Compiled sources

After a complete and fresh compile from the current SVN sources and cleanup of .kde4/share/apps resp. config, amarok will not build any collection database.

1. Started amarok
2. Set up amarok to use which directory for collection, activated autoscan, recursive scan
3. Scan happened, no items in collection
4. After several retries, started amarok in debug mode, oops: amarok did not have any initialized mysql collection (see attached trace)
Comment 1 herr-schneider.m 2009-07-08 16:14:09 UTC
Created attachment 35157 [details]
Console output of amarok --debug
Comment 2 Myriam Schweingruber 2009-07-09 17:43:29 UTC
Quoting from the konsole output:
amarok:        Checking for batch file in  "/home/marcusschneider/.kde4/share/apps/amarok/amarokcollectionscanner_batchfullscan.xml" 
amarok:        GOING TO SCAN: 
amarok:       BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:       END__: QStringList MountPointManager::collectionFolders() - Took 0.00025s 
amarok:             "/home/marcusschneider/downloadedMusic" 
amarok:       BEGIN: QStringList MountPointManager::collectionFolders() 
amarok:       END__: QStringList MountPointManager::collectionFolders() - Took 0.00021s 
amarok:     END__: void ScanManager::startFullScan() - Took 0.013s 
amarok:   END__: void CollectionSetup::writeConfig() - Took 0.016s 
amarok:   BEGIN: void App::applySettings(bool) 
amarok:     BEGIN: void Amarok::OSD::applySettings() 
amarok:     END__: void Amarok::OSD::applySettings() - Took 0.00049s 
amarok:     BEGIN: void MainWindow::hideContextView(bool) 
amarok:     END__: void MainWindow::hideContextView(bool) - Took 0.00017s 
amarok:   END__: void App::applySettings(bool) - Took 0.002s 
amarok:   BEGIN: virtual OSDWidget::~OSDWidget() 
amarok:   END__: virtual OSDWidget::~OSDWidget() - Took 0.0006s 
amarok:   BEGIN: void DatabaseUpdater::createTemporaryTables() 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:      [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:   END__: void DatabaseUpdater::createTemporaryTables() - Took 0.001s 
amarok:    [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:    [ERROR!] Tried to perform query on uninitialized MySQL 
amarok:    [ERROR!] Tried to perform escape() on uninitialized MySQL 

This very much looks like you have a problem with your MySQL database. How did you install it, what version of MySQL are you using? Please check this page on our wiki:

http://amarok.kde.org/wiki/Development/MySQL_Embedded

it will tell you how to start the MySQL server which seems not to have started for you.
Comment 3 herr-schneider.m 2009-07-14 07:24:38 UTC
(In reply to comment #2)
[...] 
> This very much looks like you have a problem with your MySQL database. How did
> you install it, what version of MySQL are you using? Please check this page on
> our wiki:
> 
> http://amarok.kde.org/wiki/Development/MySQL_Embedded
> 
> it will tell you how to start the MySQL server which seems not to have started
> for you.

Yes - MySQL as distributed by openSUSE 11.1 does not work for compiling amarok. I had to remove the libmysqlclient16 and libmysqld-devel packages and build mysql myself according to amarok wiki.