Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to try something. Is there anyway I can capture a log of what's happening when I go to open a movie and it fails? I have VLC player as well as Movie Player that comes with Ubuntu. This may she more light as to what is happening.
Yes, you can do that. Usually, if the application is not making its own log somewhere, we would start it from a console, and use shell redirection to send all output to a file, like so:
Code:
shell$ vlc 2>&1 >> some_file
That will redirect all output to the file called "some_file". If the application (vlc in my example) is producing meaningful output when a problem occurs, it should appear in the file. Basically, the file will capture all the stuff that normally goes onto your console window.
NOTE: WHen wanting to start an application like this, check the manpage to see if there are any additional options that the application can accept, to make it more verbose or to make it output additional information (more than it usually would). Commonly -v or --verbose are used to make an app more verbose.
Look in your menu and locate the terminal, I believe it's called "Gnome-terminal" on Ubuntu.
Start a terminal (Click the application). You should now have a terminal window, with a little command prompt in it.
At that prompt, enter the following:
Code:
vlc >> my_output_file
NOTE: Replace "vlc" with whatever is the name of the application you want to start.
Now, the application should start. Use it. When done using it, close or exit the application.
Now, you should type into the terminal:
Code:
ls -l # NOTE: that last character is a lowercase L
Somewhere in the list of files we just listed using the `ls` command, you should see your new file, called "my_output_file", which contains anything outputted by the application.
To view that file from your terminal, type ONE of:
Code:
less my_output_file
more my_output_file
Now you can scroll up/down using cursor keys or pageup/down keys or maybe mouse, and you can copy/paste using mouse. When finished looking at the file, press Q.
OK, I haven't got vlc installed, but internet claims that it has a --help option. In a terminal type:
Code:
vlc --help
That will show you options that vlc can accept when you run it. See if there's a "--verbose" option, or a "--debug" option, something that says it will make the program output more information. If so, add it to the command I gave earlier, like so:
Code:
vlc --debug >> my_output_file 2>&1
Now use the application, and again, when done, examine the file created (named "my_output_file" in this example..
If there's no verbose or debug or similar option, then I do not know of a way to make it tell us what it's problem is. Perhaps then try `cheese` as suggested by MTK358
The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 578 error_code 11 request_code 132 minor_code 19)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
If that's correct, and there's a bug in the program, there's not much you can do but report the bug and/or use another program, and/or fix the bug. Or maybe see if there's a newer version of the program, that has already been fixed (check your Synaptic tool for that).
Sometimes I'll search Google for the error message and see what other people have discovered about it. I would search for, in this case:
Code:
totem BadAlloc (insufficient resources for operation)
and see if anything turned up that made sense to me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.