[Bugs] #4166 sugar-toolkit-gtk3 URGE: Long press timeout 'feels' longer than 0.5 seconds

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Nov 30 12:00:49 EST 2012


#4166: Long press timeout 'feels' longer than 0.5 seconds
-----------------------------------+----------------------------------------
    Reporter:  erikos              |          Owner:  erikos  
        Type:  defect              |         Status:  new     
    Priority:  Urgent              |      Milestone:  0.98    
   Component:  sugar-toolkit-gtk3  |        Version:  0.97.x  
    Severity:  Major               |       Keywords:          
Distribution:  OLPC                |   Status_field:  Assigned
-----------------------------------+----------------------------------------

Comment(by humitos):

 Trying to reproduce this bug I found this traceback:
 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-
 packages/sugar3/graphics/palettewindow.py", line 1444, in
 __long_pressed_event_cb
     self.notify_right_click()
   File "/usr/lib/python2.7/site-
 packages/sugar3/graphics/palettewindow.py", line 967, in
 notify_right_click
     self._ensure_palette_exists()
   File "/usr/lib/python2.7/site-
 packages/sugar3/graphics/palettewindow.py", line 955, in
 _ensure_palette_exists
     palette = self.parent.create_palette()
   File "/usr/lib/python2.7/site-packages/jarabe/journal/listview.py", line
 646, in create_palette
     metadata = tree_model.get_metadata(self.props.palette_invoker.path)
   File "/usr/lib/python2.7/site-packages/jarabe/journal/listmodel.py",
 line 103, in get_metadata
     return model.get(self[path][ListModel.COLUMN_UID])
   File "/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py", line 782,
 in __getitem__
     aiter = self._getiter(key)
   File "/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py", line 776,
 in _getiter
     aiter = self.get_iter(key)
   File "/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py", line 798,
 in get_iter
     path = TreePath(path)
   File "/usr/lib/python2.7/site-packages/gi/overrides/Gtk.py", line 1209,
 in __new__
     if len(path) == 0:
 TypeError: object of type 'NoneType' has no len()
 }}}

 I not sure why I'm getting this error or how to reproduce it. It happens
 mainly at startup and not even over the same Journal entry the second
 time.

  * file: src/sugar3/graphics/palettewindow.py
    * CellRendererInvoker
      * Adding some log to the {{{__long_pressed_event_cb}}} I found it's
 called 7 times when you longpress over the icon and the third time it
 enters on the if ({{{self.point_in_cell_renderer}}} returns True)
    * CursorInvoker
      * Adding some log to the {{{__long_pressed_event_cb}}} I found it's
 called just once when you longpress over the icon

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4166#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list