[Bugs] #4020 Terminal UNSP: Terminal-41 starts incompletely, bug related to previous saved session (was: Terminal-41 starts incompletely on XO-4, but works on XO-1.75, 13.1.0 build 5)

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Oct 10 08:34:32 EDT 2012


#4020: Terminal-41 starts incompletely, bug related to previous saved session
------------------------------------------+---------------------------------
    Reporter:  garycmartin                |          Owner:  RafaelOrtiz
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98       
   Component:  Terminal                   |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:  13.1.0     
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------

Old description:

> Terminal-41 starts incompletely on XO-4, but fine on XO-1.75, 13.1.0
> build 5. Perhaps some difference with the VT on this new hardware?
>
> {{{
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/sugar3/activity/activity.py",
> line 538, in __canvas_map_cb
>     self.read_file(self._jobject.file_path)
>   File "/home/olpc/Activities/Terminal.activity/terminal.py", line 401,
> in read_file
>     self._create_tab(tab_state)
>   File "/home/olpc/Activities/Terminal.activity/terminal.py", line 342,
> in _create_tab
>     vt.feed(l + '\r\n')
>   File "/usr/lib/python2.7/site-packages/gi/types.py", line 47, in
> function
>     return info.invoke(*args, **kwargs)
> TypeError: Item 0: Must be number or single byte string, not unicode
> }}}

New description:

 Terminal-41 starts fine from a new session, but fails when resumed with
 previous saved state. New activity state is not being saved.

 Here's a trace back after a resume from a Terminal-40 saved state:

 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/sugar3/activity/activity.py",
 line 538, in __canvas_map_cb
     self.read_file(self._jobject.file_path)
   File "/home/olpc/Activities/Terminal.activity/terminal.py", line 401, in
 read_file
     self._create_tab(tab_state)
   File "/home/olpc/Activities/Terminal.activity/terminal.py", line 342, in
 _create_tab
     vt.feed(l + '\r\n')
   File "/usr/lib/python2.7/site-packages/gi/types.py", line 47, in
 function
     return info.invoke(*args, **kwargs)
 TypeError: Item 0: Must be number or single byte string, not unicode
 }}}

--

Comment(by garycmartin):

 OK looks like a bug with resume saved state, and state saving, nothing to
 do with XO-4 hardware.

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


More information about the Bugs mailing list