Description of problem:
Logic volume management gui can not be opened in some of the operation systems .
Run "# system-config-lvm" and get this 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 14835 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.)
and sometimes also with this error:
Traceback (most recent call last):
File "/usr/sbin/system-config-lvm", line 170, in ?
File "/usr/sbin/system-config-lvm", line 155, in runFullGUI
blvm = baselvm(glade_xml, app)
File "/usr/sbin/system-config-lvm", line 105, in __init__
self.volume_tab_view = Volume_Tab_View(glade_xml, self.lvmm, self.main_win)
File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 136, in __init__
File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 226, in prepare_tree
File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 593, in initiate
File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 602, in crank
File "/usr/share/system-config-lvm/execute.py", line 134, in fork
OSError: [Errno 32] Broken pipe
it seems that when call a system-config-lvm command in the operation system , a value which is pixels/width is a little big , and the gtk can not draw the Cylinder of all the LVs . Then the issue occurs .
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I have made a patch for this issue , please review that , thanks .
.../system-config-lvm/Volume_Tab_View.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/system-config-lvm/Volume_Tab_View.py b/system-config-lvm/Volume_Tab_View.py
index cc09abc..1c38760 100644
@@ -543,6 +543,8 @@ class Volume_Tab_View:
def on_best_fit(self, obj):
if (self.try_not_best_fit == True):
+ if self.display_view.display != None:
This patch also works on the following -
Manually added the two patch lines.
I didn't see these two lines in system-config-lvm-1.1.12-15.el6.src.rpm, I am curious that did you add them in?
(In reply to caochuangxiang from comment #4)
> I didn't see these two lines in system-config-lvm-1.1.12-15.el6.src.rpm, I
> am curious that did you add them in?
Sorry I was imprecise, I added them to the .py on my system.
Correct GIT commit is:
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
OK, thank you for the update.