X Window System error

Bug #998380 reported by ASLok
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
system-config-lvm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Crashed after launch. I think it can be after tryed to delete one partition (for swap) from this system-config-lvm tool. Before i have 3 parts - / (root), /home and SWAP and have crash after delete swap part.. But swap is deleted

aslok@3r:~$ system-config-lvm
/usr/share/system-config-lvm/cylinder_items.py:1032: GtkWarning: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
  scaled_pixbuf = self.pixbuf.scale_simple(pixmap_width, height, gtk.gdk.INTERP_BILINEAR)
Traceback (most recent call last):
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 454, in on_tree_selection_changed
    self.on_best_fit(None)
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 536, in on_best_fit
    self.display_view.draw()
  File "/usr/share/system-config-lvm/renderer.py", line 591, in draw
    self.display.draw(self.da, self.gc, (10, y_offset))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 920, in draw
    self.cyl_upper.draw(pixmap, gc, (x, y))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 305, in draw
    CylinderItem.draw(self, dc, gc, (x, y))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 120, in draw
    child.draw(dc, gc, (x, y))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 305, in draw
    CylinderItem.draw(self, dc, gc, (x, y))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 120, in draw
    child.draw(dc, gc, (x, y))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 311, in draw
    cyl_pix = self.cyl_gen.get_cyl(dc, self.get_width(), self.height)
  File "/usr/share/system-config-lvm/cylinder_items.py", line 1039, in get_cyl
    pixmap.draw_pixbuf(gc, scaled_pixbuf, 0, 0, 0, 0, -1, -1)
TypeError: Gdk.Drawable.draw_pixbuf() argument 2 must be gtk.gdk.Pixbuf, not None
The program 'system-config-lvm.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 15118 error_code 11 request_code 53 minor_code 0)
  (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.)
aslok@3r:~$

aslok@3r:~$ ls -FAlh /dev/main/
итого 0
lrwxrwxrwx 1 root root 7 Май 12 10:11 home -> ../dm-2
lrwxrwxrwx 1 root root 7 Май 12 10:11 root -> ../dm-0
aslok@3r:~$

Revision history for this message
Anders Larsen (al-alarsen) wrote :

Today exactly the same bug bit me (100% identical backtrace).

I'm sure the last operation I made using system-config-lvm was successful (although it's a long time ago and thus was probably done on 11.10 before upgrading to 12.04), and I've never deleted a logical volume, only added and resized.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in system-config-lvm (Ubuntu):
status: New → Confirmed
Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :
Download full text (44.2 KiB)

I'm expecting very same crash (reproducible). I had one disk in volume group and system-config-lvm worked. When I added second disk to the volume group using system-config-lvm, application crashed and after that it won't start anymore.

These reports are slightly similar:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488512
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568023
And they are asking these information:

sudo pvs
  PV VG Fmt Attr PSize PFree
  /dev/sda1 vg_aapo lvm2 a- 2,73t 0
  /dev/sdb1 vg_aapo lvm2 a- 931,51g 931,51g

---
sudo vgs
  VG #PV #LV #SN Attr VSize VFree
  vg_aapo 2 1 0 wz--n- 3,64t 931,51g
---
sudo lvs
  LV VG Attr LSize Origin Snap% Move Log Copy% Convert
  lv_aapo vg_aapo -wi-ao 2,73t
---
dpkg -l | grep gtk
ii adobe-flash-properties-gtk 11.2.202.280-0precise1 GTK+ control panel for Adobe Flash Player plugin version 11
rc appmenu-gtk 0.3.0-0ubuntu1 Export GTK menus over DBus
rc appmenu-gtk3 0.3.0-0ubuntu1 Export GTK menus over DBus
ii apport-gtk 2.0.1-0ubuntu17.2 GTK+ frontend for the apport crash report system
ii avidemux-plugins-gtk 1:2.5.6-1~getdeb2 Free video editor - GTK plugins
ii checkbox-gtk 0.13.9 GTK interface for checkbox
ii computer-janitor-gtk 2.1.0-0ubuntu8 Clean up a system so it's more like a freshly installed one
ii fp-units-gtk-2.4.4 2.4.4-3.1 Free Pascal - GTK+ 1.2 units
ii fp-units-gtk2 2.4.4-3.1 Free Pascal - GTK+ 2.x units metapackage
ii fp-units-gtk2-2.4.4 2.4.4-3.1 Free Pascal - GTK+ 2.x units
ii freeciv-client-gtk 2.3.1-1 Civilization turn based strategy game (GTK+ client)
ii gir1.2-dbusmenu-gtk-0.4 0.6.2-0ubuntu0.1 typelib file for libdbusmenu-gtk4
ii gir1.2-gtk-2.0 2.24.10-0ubuntu6 GTK+ graphical user interface library -- gir bindings
ii gir1.2-gtk-3.0 3.4.2-0ubuntu0.5 GTK+ graphical user interface library -- gir bindings
ii gir1.2-gtksource-3.0 3.4.2-0ubuntu1 gir files for the GTK+ syntax highlighting widget
ii gir1.2-javascriptcoregtk-1.0 1.8.3-0ubuntu0.12.04.1 GObject introspecti...

Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :
Download full text (20.5 KiB)

I booted liveCD (Ubuntu-12.04.2), enabled universe repository, installed system-config-lvm. And it is not crashing.

dpkg -l | grep gtk
ii appmenu-gtk 0.3.92-0ubuntu1.1 Export GTK menus over DBus
ii appmenu-gtk3 0.3.92-0ubuntu1.1 Export GTK menus over DBus
ii apport-gtk 2.0.1-0ubuntu17.1 GTK+ frontend for the apport crash report system
ii gir1.2-dbusmenu-gtk-0.4 0.6.2-0ubuntu0.1 typelib file for libdbusmenu-gtk4
ii gir1.2-gtk-2.0 2.24.10-0ubuntu6 GTK+ graphical user interface library -- gir bindings
ii gir1.2-gtk-3.0 3.4.2-0ubuntu0.5 GTK+ graphical user interface library -- gir bindings
ii gir1.2-gtksource-3.0 3.4.2-0ubuntu1 gir files for the GTK+ syntax highlighting widget
ii gir1.2-javascriptcoregtk-3.0 1.8.3-0ubuntu0.12.04.1 GObject introspection data for the GTK+-based JavaScriptCore library
ii gtk2-engines 1:2.20.2-1ubuntu1 theme engines for GTK+ 2.x
ii gtk2-engines-murrine 0.98.2-0ubuntu1 cairo-based gtk+-2.0 theme engine
ii gtk3-engines-unico 1.0.2-0ubuntu1 Unico Gtk+ 3 theme engine
ii ibus-gtk 1.4.1-3ubuntu1 Intelligent Input Bus - GTK+2 support
ii ibus-gtk3 1.4.1-3ubuntu1 Intelligent Input Bus - GTK+3 support
ii jockey-gtk 0.9.7-0ubuntu7.7 GNOME user interface and desktop integration for driver management
ii libavahi-ui-gtk3-0 0.6.30-5ubuntu2 Avahi GTK+ User interface library for GTK3
ii libcanberra-gtk-module 0.28-3ubuntu3 translates GTK+ widgets signals to event sounds
ii libcanberra-gtk0 0.28-3ubuntu3 GTK+ helper for playing widget event sounds with libcanberra
ii libcanberra-gtk3-0 0.28-3ubuntu3 GTK+ 3.0 helper for playing widget event sounds with libcanberra
ii libcanberra-gtk3-module 0.28-3ubuntu3 translates GTK3 widgets signals to event sounds
ii libdbusmenu-gtk3-4 0.6.2-0ubuntu0.1 library for passing menus over DBus - GTK+ version
ii libdbusmenu-gtk4 0.6.2-0ubuntu0.1 library for passing menus over DBus - GTK+ version
ii libgdu-gtk0 ...

Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :

Continue...
I made some modifications (extended logical volume to use all free space on group) with LiveCD using system-config-lvm, and then booted back to the original system. Now I can again run system-config-lvm.

After modifications:
sudo pvs
  PV VG Fmt Attr PSize PFree
  /dev/sda1 vg_aapo lvm2 a- 2,73t 0
  /dev/sdb1 vg_aapo lvm2 a- 931,51g 0

sudo vgs
  VG #PV #LV #SN Attr VSize VFree
  vg_aapo 2 1 0 wz--n- 3,64t 0

sudo lvs
  LV VG Attr LSize Origin Snap% Move Log Copy% Convert
  lv_aapo vg_aapo -wi-ao 3,64t

Revision history for this message
Aapo Rantalainen (aapo-rantalainen) wrote :

Continue...
I can reproduce this.
*attach new disk to the computer
*make it LVM2_member
*add it to the existing volume group
-> crash
And after that each startup of system-config-lvm will crash.

-> It can't show volume_group (in cylinder view) if there are one PV with PSize=PFree.
I have no idea why it works under LiveCD.

Revision history for this message
autra (autra) wrote :

Still there on Ubuntu 14.04 (fresh install).
I can reproduce every time I try to maximize the window.

I can also reproduce every time I click on a physical partition.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Affected also me but the situation is little bit different.
I have CentOS 6.5 on VirtualBox which is on Ubuntu 14.04.
When i started X session from Ubuntu terminal via ssh and call system-config-lvm...It runs well but when i want to view partition:

[root@linuxsrv45 ~]# system-config-lvm
Unable to show VG because it contains features that are not supported in current version of system-config-lvm
/usr/share/system-config-lvm/cylinder_items.py:1032: GtkWarning: IA__gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
  scaled_pixbuf = self.pixbuf.scale_simple(pixmap_width, height, gtk.gdk.INTERP_BILINEAR)
Traceback (most recent call last):
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 486, in on_tree_selection_changed
    self.on_best_fit(None)
  File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 553, in on_best_fit
    self.display_view.draw()
  File "/usr/share/system-config-lvm/renderer.py", line 604, in draw
    self.display.draw(self.da, self.gc, (10, y_offset))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 513, in draw
    self.cyl.draw(pixmap, gc, (x, y))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 305, in draw
    CylinderItem.draw(self, dc, gc, (x, y))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 120, in draw
    child.draw(dc, gc, (x, y))
  File "/usr/share/system-config-lvm/cylinder_items.py", line 311, in draw
    cyl_pix = self.cyl_gen.get_cyl(dc, self.get_width(), self.height)
  File "/usr/share/system-config-lvm/cylinder_items.py", line 1039, in get_cyl
    pixmap.draw_pixbuf(gc, scaled_pixbuf, 0, 0, 0, 0, -1, -1)
TypeError: Gdk.Drawable.draw_pixbuf() argument 2 must be gtk.gdk.Pixbuf, not None

Gdk-ERROR **: The program 'system-config-lvm' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 6564 error_code 11 request_code 53 minor_code 0)
  (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.)
aborting...
Aborted (core dumped)
You have new mail in /var/spool/mail/root

But on CentOS it executes well no such error.

Revision history for this message
Dan Kasak (d-j-kasak-dk) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.