Nmap Development mailing list archives
Re: Zenmap 5.36TEST4 crash
From: David Fifield <david () bamsoftware com>
Date: Sun, 23 Jan 2011 01:24:10 -0800
On Sat, Jan 22, 2011 at 10:06:54AM +0100, Henri Doreau wrote:
Hello, opening an XML scan and pressing scan->print will result in a zenmap crash with the following traceback: Traceback (most recent call last): File "nmap/zenmap/zenmapGUI/MainWindow.py", line 828, in _print_cb zenmapGUI.Print.run_print_operation(self.scan_interface.inventory, entry) File "nmap/zenmap/zenmapGUI/Print.py", line 148, in run_print_operation state = PrintState(inventory, entry) File "nmap/zenmap/zenmapGUI/Print.py", line 118, in __init__ self.lines = output.splitlines() AttributeError: 'NoneType' object has no attribute 'splitlines' The menu item scan->print might stay unavailable when opening a saved scan as it is already when you start zenmap.
Thanks for finding this. I committed a kind of weak workaround, which just substitutes a blank line when there is no output to be printed. Disabling the Print menu option is another way to go, but it might be as confusing as getting a blank page to print. Sometimes printing of a loaded XML file works--when the file was created by Zenmap originally. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Zenmap 5.36TEST4 crash Henri Doreau (Jan 22)
- Re: Zenmap 5.36TEST4 crash David Fifield (Jan 23)