← Back to team overview

gtg team mailing list archive

[Bug 411420] Re: get_active_tasks_list sometimes return a wrong number of tasks

 

I get a traceback when launching GTG:

Traceback (most recent call last):
  File "/home/kevin/temporary/gtg/trunk/GTG/taskbrowser/browser.py", line 1373, in on_task_added
    self.task_tree_model.add_task(tid)
  File "/home/kevin/temporary/gtg/trunk/GTG/taskbrowser/tasktree.py", line 253, in add_task
    self._add_all_subtasks(node, task)
  File "/home/kevin/temporary/gtg/trunk/GTG/taskbrowser/tasktree.py", line 79, in _add_all_subtasks
    self._add_all_subtasks(c_node, c_task)
  File "/home/kevin/temporary/gtg/trunk/GTG/taskbrowser/tasktree.py", line 79, in _add_all_subtasks
    self._add_all_subtasks(c_node, c_task)
  File "/home/kevin/temporary/gtg/trunk/GTG/taskbrowser/tasktree.py", line 77, in _add_all_subtasks
    c_node_iter = self.get_iter(c_node_path)
ValueError: invalid tree path


It then runs anyway, but acts really weird:
   * When I select a tag, it occasionally displays tasks that are not tagged with that tag
   * Some tasks are listed multiple times

-- 
get_active_tasks_list sometimes return a wrong number of tasks
https://bugs.launchpad.net/bugs/411420
You received this bug notification because you are a member of Gtg
developers, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: Confirmed

Bug description:
Sometimes the get_active_tasks_list returns the wrong number of tasks.

The tag view counts less one (in my case it's less one, it maybe change from case to case) task. For example if the total of active tasks is 20 the tag view will display a total of 19 tasks instead of 20. 

To replicate it I had to open and close GTG several times for it to occur again.

It only occurs when threading is enabled.



References