Bug 106478
Summary: | Editing TUI created printer in GUI causes crash | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Adam H. Pendleton <fmonkey> | ||||||
Component: | redhat-config-printer | Assignee: | Tim Waugh <twaugh> | ||||||
Status: | CLOSED ERRATA | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | rawhide | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 0.6.78-1 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2003-10-09 10:48:03 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Adam H. Pendleton
2003-10-07 16:07:04 UTC
Please attach the output of 'printconf-tui --Xexport', taking care to censor any passwords it contains. Created attachment 94990 [details]
Output from printconf-tui
I can't reproduce this problem here. Hmmm. Still happens to me, even after reebot. I assume you're trying to edit a SMB printer, so it's probably not related to that. Could it be related to Bug #106395 (my other redhat-config-printer bug)? Is there any other information I can provide to help (e.g. strace, etc.)? Could you try editing /usr/share/printconf/util/queueTree.py and adding this line at 558: ... self.use_foomatic () print iter if self.editQueue.editQueueDialog (iter): ... Then run 'printconf-gui' from the command line and let me know what it says before the traceback. The result from redhat-config-printer now looks like: <GtkTreeIter at 0x848ed90> Traceback (most recent call last): File "/usr/share/printconf/util/queueTree.py", line 559, in edit_button_clicked if self.editQueue.editQueueDialog (iter): File "/usr/share/printconf/util/editQueue.py", line 425, in editQueueDialog self.select_printer_iter (iter) File "/usr/share/printconf/util/editQueue.py", line 498, in select_printer_iter self.printer_view.get_selection ().select_iter (iter) TypeError: iter should be a GtkTreeIter If I add "print iter" calls on editQueue.py lines 498 and 425, before the calls in the above traceback, I get: <GtkTreeIter at 0x8490d18> None None Traceback (most recent call last): File "/usr/share/printconf/util/queueTree.py", line 559, in edit_button_clicked if self.editQueue.editQueueDialog (iter): File "/usr/share/printconf/util/editQueue.py", line 426, in editQueueDialog self.select_printer_iter (iter) File "/usr/share/printconf/util/editQueue.py", line 500, in select_printer_iter self.printer_view.get_selection ().select_iter (iter) TypeError: iter should be a GtkTreeIter Line 421 of editQueue.py is: iter = self.parent.populate_model_store (self.printer_store, self.queue, id_dict = self.id_to_iter, window = self.window.window) It would appear that functions is returning a NULL value. Created attachment 95018 [details]
printconf_tui.py
Please put this file in /usr/share/printconf/util/printconf_tui.py. Then run
printconf-tui, and exit, then printconf-gui. I think this is the fix.
That fixed it! An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-071.html |