This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Why amaroK reads files at startup ?

Tags: None
(comma "," separated)
Avinash Meetoo
Karma
0

Why amaroK reads files at startup ?

Sun May 29, 2005 7:59 pm
Hi,

I use amaroK 1.2.3 in Gentoo Linux and since yesterday it has been crashing every time I launch it. I kept having \'Segmentation Faults\'

Using \'strace -f\' on amarokapp, I finally understood what was happening. amaroK (for some obscure reason) reads all files in the home directory when it is launched.

Out of memory, amaroK does (for each file) :

(1) open
(2) fstat
(3) mmap
(4) madvise

and for most files, that was ok (though I still don\'t see the need to read those files as my music collection is not in my home directory)

But, one specific file (my current Gnucash financial data !!!) makes amaroK crash when it does the madvise.

Why does amaroK reads all files in the home directory at startup??? :huh:

And why does it crash only with my financial data? Am I too poor? :evil:
User avatar
apachelogger
KDE Developer
Posts
525
Karma
5
OS
http://amarok.kde.org/wiki/index.php/AotM_Interview#.22we_learn_latest_feature_is_hang_on_bad_stream._how_do_you_respond_against_this.3F.22
yes you\'re too poor, says our database

but it shouldn\'t read all files (only the important)

take a look at $HOME/.kde/share/config/amarokrc
your home is maybe at Collection Folders= defined
if it is, delete it


Annoyed with bbcode since 1999.
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS
Probably the file browser is open to your ~/, that is why. As to the crash, please get a backtrace.


Amarok Developer
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS
Avinash Meetoo wrote:
Why does amaroK reads all files in the home directory at startup??? :huh:

It\'s for the FileBrowser, which lists only files that amaroK can actually play. So it must read the files on startup (current folder only) and determine their status.


--
Mark Kretschmann - Amarok Developer
Avinash Meetoo
Karma
0
Ok guys,

I\'ve checked my amarokrc. In fact, I have:

[code:1]
[Filebrowser]
Dir History=
Location=$HOME/
[/code:1]

So I understand why amaroK reads my home directory at every startup... but I still don\'t understand why it crashes with a specific file. I\'ve done a test by compressing the file (gzip) and amaroK starts. So, my only guess is that the contents of the (uncompressed) file is causing amaroK to crash.

I\'ll try to have a look in the sources... :evil:


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar