Red Hat Bugzilla – Bug 540056
X11 error: BadAlloc (insufficient resources for operation)
Last modified: 2010-06-28 11:29:47 EDT
Description of problem:
For any application which uses X11/xv on my OLPC (Fedora 11) I get a BadAlloc error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install Fedora 11 on an XO-1. http://wiki.laptop.org/go/F11_for_XO-1 (Don't forget to add some swap space on a USB stick or such.)
2. Install a multimedia player such as mplayer or vlc.
3. Attempt to play the video using the default X11/xv driver.
BadAlloc error. Depending on which application the error is presented differently. Normally vlc will crash. Mplayer usually runs, but displays no video output. Sometimes the XO crashes completely.
The videos should play normally, with no X11 crashes/errors.
Thanks for the bug report. We have reviewed the information you have provided above, and there is some additional information we require that will be helpful in our diagnosis of this issue.
Please attach your X server config file (/etc/X11/xorg.conf, if available), output of the dmesg command, and X server log file (/var/log/Xorg.*.log) to the bug report as individual uncompressed file attachments using the bugzilla file attachment link below.
We will review this issue again once you've had a chance to attach this information.
Thanks in advance.
The xorg.conf used on XO's is located at http://dev.laptop.org/~cscott/xorg.conf . Dollar for donutes the problem is the video driver is expecting native resolutions that are multiples of 32.
Do you want the output of dmesg after a crash, or just after any random boot. Ditto for the Xorg.*.log.
(In reply to comment #2)
> Do you want the output of dmesg after a crash, or just after any random boot.
> Ditto for the Xorg.*.log.
Of course after the crash ... I would dream we could get some nice backtrace of the crash.
I don't know if it is important but the initial memory assignment has been reduced from 11MB to ~6MB from FC9 to FC11. Could this be the problem?
(In reply to comment #4)
> I don't know if it is important but the initial memory assignment has been
> reduced from 11MB to ~6MB from FC9 to FC11. Could this be the problem?
I meant OffScreen (EXA) section.
The following suggested change:
seems to be a valid workaround (not sure if the actual fix).
After adding the :
Virtual 1200 900
line to xorg.conf and restarting X the BadAlloc errors are gone. Comparing the X logs without and with this configuration option on the former no free memory is reported while in the latter there is free memory. As well the virtual screen size is detected differently.
With no Virtual statement the screen width takes the following value:
lx_driver.c:#define LX_MAX_WIDTH 1940
Could you please reply to the previous question? If you won't reply in one month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.
[Note please, that this is machine generated comment for large amount of bugs; due to some technical issues, it is possible we've missed some of the responses -- it is happens, please, just a make a comment about that; that we will see. Thank you]
I thought Raul's message shows the exact problem, and what needs to be done to fix it. What more information do you need?
(In reply to comment #7)
> Could you please reply to the previous question? If you won't reply in one
> month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.
> [Note please, that this is machine generated comment for large amount of bugs;
> due to some technical issues, it is possible we've missed some of the responses
> -- it is happens, please, just a make a comment about that; that we will see.
> Thank you]
You are right, it is.
This message is a reminder that Fedora 11 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 11. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '11'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 11's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 11 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version.
Thank you for reporting this bug and we are sorry it could not be fixed.