Ticket #373 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Umit Crash - 'GtkTreeModel.get_iter requires a tree path as its argument'

Reported by: wa_dd_ey@… Owned by: boltrix
Priority: medium Milestone: Umit 1.0RC
Component: CrashReport Version: current svn
Keywords: user crash Cc: ignotus

Description (last modified by luis) (diff)

Crash Report
==========

sys.platform win32
os.name nt
Gtk version 2.16.4
Umit version 1.0RC

Description


Versions:
---
GTK: 2.16.4
PyGTK: 2.14.2
HIGWidgets: 1.0RC
Python: 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
Nmap: Nmap version 5.00 ( http://nmap.org )
Operating System: XP 5.1.2600 SP2 Multiprocessor Free
Umit: 1.0RC
UmitCore: 1.0RC
UmitGUI: 1.0RC
---
<type 'exceptions.TypeError'>
Python 2.6.2: C:\Program Files\Umit\umit.exe
Thu Jan 14 15:41:01 2010

A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.

 C:\Program Files\Umit\umit\gui\radialnet\Toolbar.pyo in __hosts_viewer_callback(self=<ToolsMenu object at 0x1e62bc0 (GtkMenu at 0x1a419e0)>, widget=<gtk.ImageMenuItem object at 0x1e62c10 (GtkImageMenuItem at 0x1a61718)>)


 C:\Program Files\Umit\umit\gui\radialnet\HostsViewer.pyo in __init__(self=<HostsViewer object at 0x214c800 (GtkWindow at 0x1a7dc48)>, nodes=[])


 C:\Program Files\Umit\umit\gui\radialnet\HostsViewer.pyo in __create_widgets(self=<HostsViewer object at 0x214c800 (GtkWindow at 0x1a7dc48)>)


 C:\Program Files\Umit\umit\gui\radialnet\HostsViewer.pyo in __init__(self=<HostsList object at 0x210bcd8 (GtkScrolledWindow at 0x2a2c1e8)>, parent=<HostsViewer object at 0x214c800 (GtkWindow at 0x1a7dc48)>, nodes=[])


 C:\Program Files\Umit\umit\gui\radialnet\HostsViewer.pyo in __create_widgets(self=<HostsList object at 0x210bcd8 (GtkScrolledWindow at 0x2a2c1e8)>)


 C:\Program Files\Umit\umit\gui\radialnet\HostsViewer.pyo in __cursor_callback(self=<HostsList object at 0x210bcd8 (GtkScrolledWindow at 0x2a2c1e8)>, widget=<gtk.TreeView object at 0x210b0a8 (GtkTreeView at 0x1a5dce8)>)

<type 'exceptions.TypeError'>: GtkTreeModel.get_iter requires a tree path as its argument
    __class__ = <type 'exceptions.TypeError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.TypeError object at 0x02169148>
    __dict__ = {}
    __doc__ = 'Inappropriate argument type.'
    __format__ = <built-in method __format__ of exceptions.TypeError object at 0x02169148>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.TypeError object at 0x02169148>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.TypeError object at 0x02169148>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.TypeError object at 0x02169148>
    __hash__ = <method-wrapper '__hash__' of exceptions.TypeError object at 0x02169148>
    __init__ = <method-wrapper '__init__' of exceptions.TypeError object at 0x02169148>
    __new__ = <built-in method __new__ of type object at 0x1E1D2748>
    __reduce__ = <built-in method __reduce__ of exceptions.TypeError object at 0x02169148>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.TypeError object at 0x02169148>
    __repr__ = <method-wrapper '__repr__' of exceptions.TypeError object at 0x02169148>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.TypeError object at 0x02169148>
    __setstate__ = <built-in method __setstate__ of exceptions.TypeError object at 0x02169148>
    __sizeof__ = <built-in method __sizeof__ of exceptions.TypeError object at 0x02169148>
    __str__ = <method-wrapper '__str__' of exceptions.TypeError object at 0x02169148>
    __subclasshook__ = <built-in method __subclasshook__ of type object at 0x1E1D2748>
    __unicode__ = <built-in method __unicode__ of exceptions.TypeError object at 0x02169148>
    args = ('GtkTreeModel.get_iter requires a tree path as its argument',)
    message = 'GtkTreeModel.get_iter requires a tree path as its argument'

The above is a description of an error in a Python program.  Here is
the original traceback:

Traceback (most recent call last):
  File "umit\gui\radialnet\Toolbar.pyo", line 77, in __hosts_viewer_callback
  File "umit\gui\radialnet\HostsViewer.pyo", line 54, in __init__
  File "umit\gui\radialnet\HostsViewer.pyo", line 63, in __create_widgets
  File "umit\gui\radialnet\HostsViewer.pyo", line 99, in __init__
  File "umit\gui\radialnet\HostsViewer.pyo", line 160, in __create_widgets
  File "umit\gui\radialnet\HostsViewer.pyo", line 167, in __cursor_callback
TypeError: GtkTreeModel.get_iter requires a tree path as its argument


Attachments

patch-373.diff (1.0 kB) - added by ignotus 3 years ago.
Try to fix #373

Change History

  Changed 3 years ago by luis

  • cc ignotus added
  • description modified (diff)

Changed 3 years ago by ignotus

Try to fix #373

  Changed 3 years ago by ignotus

The problem happens when the user is able to open hostview when there is no scan info. For example, try the scan "nmap -V" and then go to Topology and open hostview. The patch-373.diff claim to fix the problem.

follow-up: ↓ 4   Changed 3 years ago by luis

Yeap. Other way to test it is try scan a non existence IP address or something. It hasn't scan info.

I tried the patch with: - No info Scan - With info Scan - Loading external file

It seems work fine!

in reply to: ↑ 3   Changed 3 years ago by luis

Yeap. Other way to test it is try scan a non existence IP address or something. It hasn't scan info. I tried the patch with:

- No info Scan

- With info Scan

- Loading external file

It seems work fine!

Replying to luis:

Yeap. Other way to test it is try scan a non existence IP address or something. It hasn't scan info. I tried the patch with: - No info Scan - With info Scan - Loading external file It seems work fine!

follow-up: ↓ 6   Changed 3 years ago by ignotus

I'm agree Luis. May you apply the patch?

in reply to: ↑ 5   Changed 3 years ago by luis

Replying to ignotus:

I'm agree Luis. May you apply the patch?

You made the patch, you should apply. Is it ok for you?

  Changed 3 years ago by ignotus

  • status changed from new to closed
  • resolution set to fixed

Fixed in r5522.

Note: See TracTickets for help on using tickets.