Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Video players (Totem, VLC, etc.) fail with BadAlloc error

  1. #1
    Join Date
    Jun 2006
    Beans
    7
    Distro
    Ubuntu 6.06

    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.)
    For vlc:
    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
    It's clearly a problem with the actual displaying of video, because vlc does not crash until a video file is loaded (it will play mp3's, ogg's, etc. fine). Also, I have uninstalled and reinstalled the video players, so I know the programs themselves are not the issue.

    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. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Beans
    96
    Distro
    Ubuntu

    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. #3
    Join Date
    Jun 2006
    Beans
    7
    Distro
    Ubuntu 6.06

    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. #4
    Join Date
    Jun 2006
    Beans
    7
    Distro
    Ubuntu 6.06

    Re: Video players (Totem, VLC, etc.) fail with BadAlloc error

    Well, as always, Linux has made me feel like an idiot . On a whim, I decided to install Automatix and have it reinstall the nvidia drivers for me. Somehow or another, everything's fine now. I don't even know exactly what the problem was or what fixed it, which is the worst part.

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Beans
    96
    Distro
    Ubuntu

    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"
    Related to bug #4229
    Last edited by cskeide; June 15th, 2006 at 04:55 PM.

  6. #6
    Join Date
    May 2006
    Location
    Israel
    Beans
    228

    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
    Haim Roitgrund

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Beans
    96
    Distro
    Ubuntu

    Re: Video players (Totem, VLC, etc.) fail with BadAlloc error

    Quote Originally Posted by hroit
    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
    You have to use sudo in order to edit the file:
    Code:
    sudo gedit /etc/X11/xorg.conf
    Add the lines to Section "Device"... Mine looks like this:
    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
    EDIT: To avoid further misunderstandings; this solution is hardware specific! It works on my system, which has an Intel Integrated Graphics Device with 64Mb of shared memory and using the i810 driver.
    Last edited by cskeide; June 20th, 2006 at 02:35 PM.

  8. #8
    Join Date
    May 2006
    Location
    Israel
    Beans
    228

    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 728) was of no help either.

    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 12:10 PM.
    Haim Roitgrund

  9. #9
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Beans
    96
    Distro
    Ubuntu

    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.)
    Now, a missing plugin for DVD playback, as you say is your problem, has nothing in common with the original issue in this thread.

    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
    Hope this helps
    Last edited by cskeide; June 20th, 2006 at 02:14 PM.

  10. #10
    Join Date
    May 2006
    Location
    Israel
    Beans
    228

    Re: Video players (Totem, VLC, etc.) fail with BadAlloc error

    Quote Originally Posted by cskeide
    However, it seems like you are applying my solution to a totally different problem. The error my system gave me was:
    Code:
    The error was 'BadAlloc (insufficient resources for operation)'.
    Now, a missing plugin for DVD playback, as you say is your problem, has nothing in common with the original issue in this thread.
    Have followed both of the above suggestions, the library and 'apt-get update'. The library had already been installed, and the update only fetched negligible stuff.

    I still get an error message. Still working on it...
    Last edited by jackn; July 4th, 2006 at 12:11 PM.
    Haim Roitgrund

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •