Ticket #1331 (closed bug: fixed)

Opened 11 months ago

Last modified 11 months ago

Canvas: error WidgetManager and SignalManager

Reported by: ales Owned by: ales
Milestone: Component: new-canvas
Severity: major Keywords:
Cc: Blocking:
Blocked By:

Description

When loading a new scheme these errors sometimes occur

--------------------------------------------------------------------------------
AttributeError                                Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/scheme/widgetsscheme.py", line 297, in eventFilter
    if receiver is self.__scheme and event.type() == QEvent.Close:
AttributeError: 'WidgetManager' object has no attribute '_WidgetManager__scheme'
--------------------------------------------------------------------------------
AttributeError                                Traceback (most recent call last):
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/scheme/widgetsscheme.py", line 712, in eventFilter
    if self.runtime_state() == SignalManager.Processing:
  File "/Applications/Orange.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Orange/OrangeCanvas/scheme/signalmanager.py", line 168, in runtime_state
    return self.__runtime_state
AttributeError: 'WidgetsSignalManager' object has no attribute '_SignalManager__runtime_state'

Change History

comment:1 Changed 11 months ago by ales

These are from the scheme/mangers being replaced/deleted when a new scheme is loaded. They seem to be deleted (directly and not by DeferredDelete event) by python's garbage collection after the old scheme goes out of scope.

comment:2 Changed 11 months ago by Ales Erjavec <ales.erjavec@…>

  • Status changed from new to closed
  • Resolution set to fixed

In [bb3212606f80ed3c268ad4bfbf0e555b83f81409/orange]:

Fixed errors in Scheme/SignalManager shutdown/delete process.

(fixes #1331)

Note: See TracTickets for help on using tickets.