LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   XSession-errors file eats my hard drive (http://www.linuxquestions.org/questions/linux-newbie-8/xsession-errors-file-eats-my-hard-drive-108830/)

alexbgd 10-26-2003 05:44 PM

XSession-errors file eats my hard drive
 
.xsession-errors file in my home directory sometimes grows up to severeal hundred MB, although I don't experience any strange X server behaviour. It's a fresh SuSE 9 install. Can I disable writing to this file?

tgflynn 10-26-2003 06:01 PM

Some applicaion must be generating a lot of errors. Can you tell of some message or set of messages is being repeated in the file ?

Tim

alexbgd 10-27-2003 08:26 AM

I've found out that most of the errors are generated by playing divx movies:

fifo_audio_out: blocked for more than 20 ms,
fifo_audio_out: 1152 sample(s) discarded.
fifo_audio_out: blocked for more than 47 ms,
fifo_audio_out: 1152 sample(s) discarded.
fifo_audio_out: blocked for more than 47 ms,
fifo_audio_out: 1152 sample(s) discarded.
fifo_audio_out: blocked for more than 47 ms,
fifo_audio_out: 1152 sample(s) discarded.
fifo_audio_out: blocked for more than 46 ms,
fifo_audio_out: 1152 sample(s) discarded.
fifo_audio_out: blocked for more than 47 ms,
fifo_audio_out: 1152 sample(s) discarded.
fifo_audio_out: blocked for more than 47 ms,
(...)

and this goes on and on for hundreds of MB (if I watch the whole movie).

tgflynn 10-27-2003 10:18 AM

It looks to me like an application may have been configured with debugging turned on.

Do you know what application is generating these messages ? Is it something you compiled yourself or was it part of the distribution.

If you're using KDE you might be able to modify the applink icon or menu entry so that the app is run with standard error directed to /dev/null. The line would look like this :

program_name &> /dev/null

Tim

alexbgd 10-27-2003 11:20 AM

Thanks for your help Tim.

Those messages are generated by Kaffeine and Noatun - default media players on SuSE, however that doesn't happen with Totem, so I'll stick with it if I can't manage to fix this..
For some reason I can't play the movie if I start the player with that option. Is there a way to make all applications send standard error messages to /dev/null ?

tgflynn 10-27-2003 03:31 PM

No I don't think so. I don't know why the program won't run with stdout and stderr thrown away. You might also try the following :

program_name 2> /dev/null (only discards stderr, not stdout)

program_name 2> /dev/null &

Tim


All times are GMT -5. The time now is 05:53 PM.