GTG

Crash when d'n'd task to make it a subtask

Bug #587244 reported by Tomasz Melcer
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Unassigned

Bug Description

1- Take the default task set.
2- DnD "learn how to use plugins" on "learn how to use subtasks". No crash
3- DnD "learn how to use the workview" on "reporting bugs". Crash.

****************

Traceback (most recent call last):
  File "/home/liori/Studia/Projekty/gtg/gtg/GTG/taskbrowser/tasktree.py", line 370, in _celldatafunction
    value = model.get_value(iter, COL_TAGS)
  File "/usr/lib/python2.5/warnings.py", line 62, in warn
    globals)
  File "/usr/lib/python2.5/warnings.py", line 83, in warn_explicit
    for item in filters:
TypeError: unknown type (null)

I tried to move a single task which didn't have any parent to become a subtask of another task. Only the task list window was opened at the time.

Tags: regression
Revision history for this message
Tomasz Melcer (liori) wrote :

It seems that it happens only when the target task is already a subtask (in other words: the dragged task will have a grandparent).

Also, after restarting GTG the change is done.

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Not sure if it's a regression, but it probably is, so I'm marking it

tags: added: regression
Changed in gtg:
status: New → Confirmed
importance: Undecided → Medium
importance: Medium → High
milestone: none → 0.3
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Cannot reproduce it in trunk. Is this fixed ?

Revision history for this message
Tomasz Melcer (liori) wrote :

Well, I cannot tell. Trunk does not start properly for me now, so I cannot even test this problem.

Revision history for this message
Tomasz Melcer (liori) wrote :

Actually I can: `gtg` throws it currently during startup three times. I attached the output in https://bugs.edge.launchpad.net/gtg/+bug/589371.

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

Still cannot reproduce that. Luca, have you a usecase ?

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

I do.
1- Take the default task set.
2- DnD "learn how to use plugins" on "learn how to use subtasks". No crash
3- DnD "learn how to use the workview" on "reporting bugs". Crash.

Trace:

/home/luca/Projects/gtg/TRUNK/GTG/viewmanager/manager.py:207: GtkWarning: /build/buildd/gtk+2.0-2.20.1/gtk/gtktreeview.c:6015 (validate_visible_area): assertion `has_child' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel. This generally means that the model has changed
without letting the view know. Any display from now on is likely to
be incorrect.

  gtk.main()
/home/luca/Projects/gtg/TRUNK/GTG/viewmanager/manager.py:207: GtkWarning: gtk_tree_model_sort_get_value: assertion `VALID_ITER (iter, tree_model_sort)' failed
  gtk.main()
/home/luca/Projects/gtg/TRUNK/GTG/viewmanager/manager.py:207: Warning: g_object_set_property: assertion `G_IS_VALUE (value)' failed
  gtk.main()
/home/luca/Projects/gtg/TRUNK/GTG/viewmanager/manager.py:207: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed
  gtk.main()
/home/luca/Projects/gtg/TRUNK/GTG/taskbrowser/tasktree.py:377: GtkWarning: gtk_tree_model_sort_get_value: assertion `VALID_ITER (iter, tree_model_sort)' failed
  value = model.get_value(iter, COL_TAGS)
Traceback (most recent call last):
  File "/home/luca/Projects/gtg/TRUNK/GTG/taskbrowser/tasktree.py", line 377, in _celldatafunction
    value = model.get_value(iter, COL_TAGS)
TypeError: unknown type (null)

/home/luca/Projects/gtg/TRUNK/GTG/tools/gtkcrashhandler.py:231: GtkWarning: /build/buildd/gtk+2.0-2.20.1/gtk/gtktreeview.c:6015 (validate_visible_area): assertion `has_child' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel. This generally means that the model has changed
without letting the view know. Any display from now on is likely to
be incorrect.

  res = dialog.run()
/home/luca/Projects/gtg/TRUNK/GTG/tools/gtkcrashhandler.py:231: GtkWarning: /build/buildd/gtk+2.0-2.20.1/gtk/gtktreeview.c:4957 (gtk_tree_view_bin_expose): assertion `has_child' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel. This generally means that the model has changed
without letting the view know. Any display from now on is likely to
be incorrect.

  res = dialog.run()
/home/luca/Projects/gtg/TRUNK/GTG/tools/gtkcrashhandler.py:231: GtkWarning: gtk_tree_model_sort_get_value: assertion `VALID_ITER (iter, tree_model_sort)' failed
  res = dialog.run()
/home/luca/Projects/gtg/TRUNK/GTG/tools/gtkcrashhandler.py:231: Warning: g_object_set_property: assertion `G_IS_VALUE (value)' failed
  res = dialog.run()
/home/luca/Projects/gtg/TRUNK/GTG/tools/gtkcrashhandler.py:231: Warning: g_value_unset: assertion `G_IS_VALUE (value)' failed
  res = dialog.run()
Traceback (most recent call last):
  File "/home/luca/Projects/gtg/TRUNK/GTG/taskbrowser/tasktree.py", line 377, in _celldatafunction
    value = model.get_value(iter, COL_TAGS)
TypeError: unknown type (null)

description: updated
Changed in gtg:
status: Confirmed → Triaged
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

This is driving me crazy. I don't understand at all what's the root cause of the bug nor what is so special about the way to reproduce it.

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

This was introduced with rev. 763

Changed in gtg:
assignee: nobody → Lionel Dricot (ploum)
status: Triaged → In Progress
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Finally fixed in rev. 792. Please test.

Changed in gtg:
status: In Progress → Fix Committed
Revision history for this message
Tomasz Melcer (liori) wrote :

Seems to work. Thank you!

Changed in gtg:
milestone: 0.3 → 0.2.9
Izidor Matušov (izidor)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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