Ticket #48 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Umit Crash - 'local variable 'page' referenced before assignment'

Reported by: luis.kop@… Owned by: zero
Priority: high Milestone: Umit 1.0beta1
Component: CrashReport Version: current svn
Keywords: user crash Cc: zero

Description (last modified by luis) (diff)

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

sys.platform linux2
os.name posix
Gtk version 2.12.9
Umit version 0.9.5

Description


Versions:
---
GTK: 2.12.9
PyGTK: 2.14.1
HIGWidgets: 0.9.5
Python: 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
Nmap: Nmap version 4.53 ( http://insecure.org )
Operating System: Linux bastiao-desktop 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686
Umit: 0.9.5
UmitCore: 0.9.5
UmitGUI: 0.9.5
---
<type 'exceptions.UnboundLocalError'>
Python 2.5.2: /usr/bin/python
Tue Aug 12 13:36:08 2008

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

 /usr/share/umit/umitGUI/ProfileEditor.py in on_cancel(self=<ProfileEditor object at 0x8aed2d4 (GtkWindow at 0x86a2d80)>, widget=<HIGButton object at 0x8af0cac (GtkButton at 0x8d48530)>)
  324     def on_cancel(self, widget=None):
  325         self.destroy()
  326         self.update_profile_entry()
  327 
  328     def update_profile_entry(self):
self = <ProfileEditor object at 0x8aed2d4 (GtkWindow at 0x86a2d80)>
self.update_profile_entry = <bound method ProfileEditor.update_profile_entry...or object at 0x8aed2d4 (GtkWindow at 0x86a2d80)>>

 /usr/share/umit/umitGUI/ProfileEditor.py in update_profile_entry(self=<ProfileEditor object at 0x8aed2d4 (GtkWindow at 0x86a2d80)>)
  340                 page.toolbar.profile_entry.child.set_text("")
  341 
  342         page.toolbar.profile_entry.update()
  343 
  344         #page.toolbar.scan_profile.profile_entry.child.\
page undefined
<type 'exceptions.UnboundLocalError'>: local variable 'page' referenced before assignment
    __class__ = <type 'exceptions.UnboundLocalError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.UnboundLocalError object at 0x92ad44c>
    __dict__ = {}
    __doc__ = 'Local name referenced but not bound to a value.'
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.UnboundLocalError object at 0x92ad44c>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.UnboundLocalError object at 0x92ad44c>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.UnboundLocalError object at 0x92ad44c>
    __hash__ = <method-wrapper '__hash__' of exceptions.UnboundLocalError object at 0x92ad44c>
    __init__ = <method-wrapper '__init__' of exceptions.UnboundLocalError object at 0x92ad44c>
    __new__ = <built-in method __new__ of type object at 0x81421c0>
    __reduce__ = <built-in method __reduce__ of exceptions.UnboundLocalError object at 0x92ad44c>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.UnboundLocalError object at 0x92ad44c>
    __repr__ = <method-wrapper '__repr__' of exceptions.UnboundLocalError object at 0x92ad44c>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.UnboundLocalError object at 0x92ad44c>
    __setstate__ = <built-in method __setstate__ of exceptions.UnboundLocalError object at 0x92ad44c>
    __str__ = <method-wrapper '__str__' of exceptions.UnboundLocalError object at 0x92ad44c>
    args = ("local variable 'page' referenced before assignment",)
    message = "local variable 'page' referenced before assignment"

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

Traceback (most recent call last):
  File "/usr/share/umit/umitGUI/ProfileEditor.py", line 326, in on_cancel
    self.update_profile_entry()
  File "/usr/share/umit/umitGUI/ProfileEditor.py", line 342, in update_profile_entry
    page.toolbar.profile_entry.update()
UnboundLocalError: local variable 'page' referenced before assignment


Attachments

CreateProfile_48.patch (0.8 kB) - added by zero 5 years ago.
Patch to ticket #48 (profile creation issue)

Change History

Changed 5 years ago by luis

  • owner changed from boltrix to zero
  • description modified (diff)

Changed 5 years ago by luis

  • cc zero added

Changed 5 years ago by luis

Steps to reproduce this bug:

1 - Open Umit 2 - Close current tab 3 - Try create a new Profile

Changed 5 years ago by zero

Patch to ticket #48 (profile creation issue)

Changed 5 years ago by luis

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.