Ticket #42 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

error on gaphor exit

Reported by: wrobe..@pld-linux.org Assigned to: arj..@yirdis.nl
Priority: minor Milestone: Gaphor 0.12.0
Component: Gaphor Version:
Keywords: Cc:

Description

create few diagrams and exit gaphor. errors wil appear

./gaphor/ui/mainwindow.py:288: Warning: IAg_object_weak_unref: couldn't find weak ref 0x113aff0(0x97912a0)

action.connect_proxy(button)

./gaphor/ui/mainwindow.py:288: Warning: IAg_object_weak_unref: couldn't find weak ref 0x113aff0(0x9791300)

action.connect_proxy(button)

Attachments

Change History

09/06/07 05:31:06 changed by arj..@yirdis.nl

  • status changed from new to assigned.
  • milestone set to Gaphor 0.12.0.

Currently the problem is limited to errors in the namespace model.

This may be solved by unregistering the handlers properly on destruction.

Traceback (most recent call last):
  File ".\gaphor\action.py", line 152, in _action_activate
    method()
  File ".\gaphor\services\filemanager.py", line 139, in new
    element_factory.flush()
  File ".\gaphor\UML\elementfactory.py", line 143, in flush
    value.unlink()
  File "C:\workspace\python\gaphor\gaphor\UML\element.py", line 81, in unlink
    prop.unlink(self)
  File ".\gaphor\UML\properties.py", line 388, in unlink
    value.unlink()
  File "C:\workspace\python\gaphor\gaphor\UML\element.py", line 78, in unlink
    component.handle(ElementDeleteEvent(self._factory, self))
  File "c:\documents and settings\arjan\home\py-site-packages\zope.component-3.4
dev_r72749-py2.4.egg\zope\component\_api.py", line 135, in handle
    for ignored in sitemanager.subscribers(objects, None):
  File "c:\documents and settings\arjan\home\py-site-packages\zope.component-3.4
dev_r72749-py2.4.egg\zope\component\registry.py", line 290, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "c:\documents and settings\arjan\home\py-site-packages\zope.interface-3.4
.0-py2.4-win32.egg\zope\interface\adapter.py", line 535, in subscribers
    subscription(*objects)
  File ".\gaphor\ui\namespace.py", line 183, in _on_element_delete
    path = self.path_from_element(element)
  File ".\gaphor\ui\namespace.py", line 76, in path_from_element
    n = self._nodes[ns]
KeyError: <gaphor.UML.uml2.Class object at 0x01BA6450>

09/06/07 05:34:43 changed by arj..@yirdis.nl

  • status changed from assigned to closed.
  • resolution set to fixed.

Last issue was already reported in #65.


Add/Change #42 (error on gaphor exit)




Action