I've just encountered this error message - BadAlloc (insufficient
resources for operation) - in my own application. I can shed some light
on what it might mean. In my case, I had a Gtk3 TreeView with some text
cell renderers inside, showing some text. In the case where the text was
a very long string with no spaces ( and I had the cell renderer set to
NOT allow text wrapping ), this caused my code which automatically set
the column's size to request a very big width. This in turn made the
parent GtkWindow to be particularly large. I believe that this would
have been OK if I was using a traditional non-composited environment,
but I was using Enlightenment-0.19 with OpenGL compositing. Now ( we're
getting there ... honest ) there is a limitation for Intel graphics
chipsets that a pixmap bound to an OpenGL surface ( or something - I'm
getting out out of my comfort area with OpenGL ) can only be quite small
- a little bigger than the maximium screen size, from memory. So if the
GtkWindow requests a size outside this hardware limit ... you'll get:

BadAlloc (insufficient resources for operation)

This doesn't necessarily mean that this is what is happening in all
cases where this error message is encountered. But it's worth someone
looking into the possibility that something is triggering similar
behaviour - expanding the window's size beyond a hardware limit of the
graphics card - possibly because of very long text that isn't allowed to
wrap.

Hopefully this helps someone. It certainly made me freak out when I
encountered it in my own app.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/998380

Title:
  X Window System error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-config-lvm/+bug/998380/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to