GTG

Crash when closing a task after copying its content

Bug #493218 reported by Lionel Dricot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Critical
Unassigned

Bug Description

Happens from time to time when I close a task :

/home/ploum/clipboard/GTG/taskbrowser/browser.py:1133: GtkWarning: gtk_tree_view_expand_row: assertion `tree_view->priv->model != NULL' failed
  self.task_tv.expand_row(path, False)
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 908, in tag_sort_func
    order = self.tags_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 908, in tag_sort_func
    order = self.tags_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 908, in tag_sort_func
    order = self.tags_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'
Traceback (most recent call last):
  File "/home/ploum/clipboard/GTG/taskbrowser/browser.py", line 873, in dleft_sort_func
    order = self.task_tv.get_model().get_sort_column_id()[1]
AttributeError: 'NoneType' object has no attribute 'get_sort_column_id'

Changed in gtg:
importance: Undecided → Critical
milestone: none → 0.2
Revision history for this message
Bertrand Rousseau (bertrand-rousseau) wrote :

I clicked on many task, and closed them in revno 441, and I can't seem to reproduce this. Is there any more specific criterions about what kind of task cause crashes? (tasks with children, child tasks, ...)?

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

Not something special but my computer was really really slow and I cannot reproduce it anymore. I thought that you might understand based on the trace.

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

ok, I found how to reproduce it :

1) open a task
2) select some text in the task and copy it
3) close the task

summary: - Random crash when closing a task
+ Random crash when closing a task after copying its content
summary: - Random crash when closing a task after copying its content
+ Crash when closing a task after copying its content
Revision history for this message
Lionel Dricot (ploum-deactivatedaccount) wrote :

Ok, don't ask me, this is a very odd GTK behaviour.

It crashes if you close the window after setting the GTK.Clipboard but not storing it. Adding one line (clip.store() , rev. 450), fixed that crash.

Don't ask me what it means nor how I discovered that. I'm really afraid that after a too long GTK exposure, you start to think weirdly.

Changed in gtg:
assignee: nobody → Lionel Dricot (ploum)
status: New → Fix Committed
Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Lol.You finally *realized* it..
(Sorry, I couldn't hold myself :-D)

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.