![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Bug Reports / Support Request assistance with Backports packages, or report problems with them |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
First Cup of Ubuntu
![]() |
Video players (Totem, VLC, etc.) fail with BadAlloc error
When I try to play a video with totem, vlc, mplayer, etc. the command line shows a consistent error.
For totem: Code:
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 86 error_code 11 request_code 140 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.)
Code:
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 140 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 83
Current serial number in output stream: 84
I've scoured forums like crazy, and several people have posted these errors, but with no successful results. It's not just an Ubuntu thing, because people on Fedora forums have posted the same problem. Most people indicate a likely xorg.conf problem, although I can't pin down what it could be. I'm using a Dell 2005fpw monitor with resolution of 1680x1050, which required some tweaking in xorg.conf, but everything worked great in Ubuntu 5.10, which I just got rid of in lieu of 6.06 (I didn't actually upgrade, I just formatted and installed 6.06). This is extremely frustrating, if anyone has any clue what's going on, I would definitely appreciate it. |
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Location: Sydney, Australia
Beans: 95
Ubuntu 6.06
|
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
I get the same error when trying to play high resolution videos. For example, I made a 'screencast' with ffmpeg in 1024x768 resoulution which I can't play with any video player. Can you play low resolution videos, or does this happen regardless of resolution?
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() |
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
I believe the problem occurs with all videos. Even a video from zefrank.com/theshow, which are something like 230x170, cause the error to occur. More info: I installed the MPlayer firefox plugin, and once it's buffered, it will attempt to start playing, show a completely blue frame for less than a second, then simply stop.
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() |
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
Well, as always, Linux has made me feel like an idiot
|
|
|
|
|
#5 |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Location: Sydney, Australia
Beans: 95
Ubuntu 6.06
|
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
Thought I'd post my solution to this error. I'm using the i810 graphics driver, and my video card uses shared memory, which seems to be causing the error. My problem was that all movie players crashed when playing any video with a resolution higher than 640x480. After adding two lines to my xorg.conf file, I can finally play my 1024x768 screencasts.
I added these lines to Section "Device" in xorg.conf: Code:
Option "VideoRam" "65536"
Option "CacheLines" "1980"
Last edited by cskeide; June 15th, 2006 at 11:55 AM.. |
|
|
|
|
#6 | |
|
Gee! These Aren't Roasted!
![]() Join Date: May 2006
Location: France
Beans: 160
|
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
Quote:
Last edited by jackn; July 4th, 2006 at 07:13 AM.. |
|
|
|
|
|
#7 |
|
Gee! These Aren't Roasted!
![]() Join Date: May 2006
Location: France
Beans: 160
|
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
Thanks a lot, cskeide.
I've tried this solution, but it won't save the changes (read-only, it says). I'm also not sure I'm in the right place in the file, as the word 'device' appears several times. I tried to append the suggested lines to a section called 'device section' only, while in other cotexts, it said other things as well, such as 'input device'. Thanx, Jackn |
|
|
|
|
#8 | |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Location: Sydney, Australia
Beans: 95
Ubuntu 6.06
|
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
Quote:
Code:
sudo gedit /etc/X11/xorg.conf Code:
Section "Device"
Identifier "Intel Corporation 82852/855GM Integrated Graphics Device"
Driver "i810"
BusID "PCI:0:2:0"
Option "VideoRam" "65536"
Option "CacheLines" "1980"
EndSection
Last edited by cskeide; June 20th, 2006 at 09:35 AM.. |
|
|
|
|
|
#9 |
|
Gee! These Aren't Roasted!
![]() Join Date: May 2006
Location: France
Beans: 160
|
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
Applied above change to xorg.conf. Used also two other values for the 'VideoRam' line, mentioned in the above bug #4229 link.
To no avail. Changing the screen resolution to 640 x 480 (from 1024 x 72 So Totem still doesn't work in my hands... It says it doesn't 'have the plugin' for 'this file' (a DVD)... Last edited by jackn; July 4th, 2006 at 07:10 AM.. |
|
|
|
|
#10 |
|
A Carafe of Ubuntu
![]() Join Date: Feb 2006
Location: Sydney, Australia
Beans: 95
Ubuntu 6.06
|
Re: Video players (Totem, VLC, etc.) fail with BadAlloc error
hroit: I am sorry that my solution didn't work for your setup. However, it seems like you are applying my solution to a totally different problem. The error my system gave me was:
Code:
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 86 error_code 11 request_code 140 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.)
As a possible solution to your problem, I would suggest the following: 1. Make sure you have enabled the necessary repositories (Read How to add extra repositories) 2. Open up a terminal (Applications -> Accessories -> Terminal) and install libdvdcss2: Code:
sudo apt-get update sudo apt-get install libdvdcss2 Last edited by cskeide; June 20th, 2006 at 09:14 AM.. |
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|