GTG

plugins crashe when disabled after closing a task

Bug #476313 reported by Lionel Dricot
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Critical
Unassigned

Bug Description

1) Open GTG with the debug.sh

2) Open the plugin window and enable any plugin (let the plugin window open)

3) Open a task and close it

4) Try to disable the enabled plugin

5) GTG crashes

/home/ploum/gtg.local/GTG/core/plugins/manager.py:131: GtkWarning: gtk_tree_model_get_iter: assertion `GTK_IS_TREE_MODEL (tree_model)' failed
  model[path][0] = not model[path][0]
Traceback (most recent call last):
  File "/home/ploum/gtg.local/GTG/core/plugins/manager.py", line 131, in colToggledClicked
    model[path][0] = not model[path][0]
IndexError: could not find tree path
Traceback (most recent call last):
  File "/home/ploum/gtg.local/GTG/core/plugins/manager.py", line 154, in pluginExtraInfo
    self.lblPluginName.set_label("<b>" + plgin['name'] + "</b>")
AttributeError: PluginManager instance has no attribute 'lblPluginName'
Traceback (most recent call last):
  File "/home/ploum/gtg.local/GTG/core/plugins/manager.py", line 131, in colToggledClicked
    model[path][0] = not model[path][0]
IndexError: could not find tree path
Traceback (most recent call last):
  File "/home/ploum/gtg.local/GTG/core/plugins/manager.py", line 154, in pluginExtraInfo
    self.lblPluginName.set_label("<b>" + plgin['name'] + "</b>")
AttributeError: PluginManager instance has no attribute 'lblPluginName'
Traceback (most recent call last):
  File "/home/ploum/gtg.local/GTG/core/plugins/manager.py", line 122, in close
    self.pengine.recheckPlugins(self.plugins, self.plugin_api)
AttributeError: PluginManager instance has no attribute 'pengine'
Traceback (most recent call last):
  File "/home/ploum/gtg.local/GTG/core/plugins/manager.py", line 122, in close
    self.pengine.recheckPlugins(self.plugins, self.plugin_api)
AttributeError: PluginManager instance has no attribute 'pengine'

Changed in gtg:
importance: Undecided → Critical
milestone: none → 0.2
status: New → Confirmed
Revision history for this message
Luca Invernizzi (invernizzi) wrote :

if you close the plugin manager (alt+F4 or the big red X), then close the task and reopen the plugin manager it starts working again.

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

It's really strange. It looks like plugin manager is purgin all its variables when you close a task. So far, I've been unable to understand how and why. There doesn't seem to be any inadvertently caught signal. The destroy method is definitely not called.

How the hell can you empty an object like that?????

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

I add that it should not be possible to open multiple plugin manager.

Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

fixed in rev. 362

Changed in gtg:
assignee: nobody → Lionel Dricot (ploum)
status: Confirmed → Fix Committed
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.