#8206 NORM Not Tri: can't open control panel

Zarro Boogs per Child bugtracker at laptop.org
Thu Aug 28 13:52:52 EDT 2008


#8206: can't open control panel
-----------------------+----------------------------------------------------
 Reporter:  dsd        |         Owner:  marco        
     Type:  defect     |        Status:  new          
 Priority:  normal     |     Milestone:  Not Triaged  
Component:  sugar      |       Version:  not specified
 Keywords:  8.2-757:-  |   Next_action:  never set    
 Verified:  0          |     Blockedby:               
 Blocking:             |  
-----------------------+----------------------------------------------------
 Frances encountered a condition where the control panel can't be opened.

 {{{
 OSError                                   Traceback (most recent call
 last)

 /usr/share/sugar/shell/view/home/favoritesview.py in
 __controlpanel_activate_cb(self=<_MyIcon object at 0xc0daa54 (CanvasIcon
 at 0xbc66ee8)>, menuitem=<MenuItem object at 0xc1346e4 (GtkImageMenuItem
 at 0xc14b8d8)>)
     445
     446     def __controlpanel_activate_cb(self, menuitem):
 --> 447         panel = ControlPanel()
         panel = undefined
         global ControlPanel = <class 'controlpanel.gui.ControlPanel'>
     448         panel.set_transient_for(self.get_toplevel())
     449         panel.show()

 /usr/share/sugar/shell/controlpanel/gui.py in __init__(self=<ControlPanel
 object at 0xc1347d4 (SugarControlPanel at 0xbe9c6e0)>)
      73         self.connect("realize", self.__realize_cb)
      74
 ---> 75         self._options = self._get_options()
         self._options = undefined
         self._get_options = <bound method ControlPanel._get_options of
 <ControlPanel object at 0xc1347d4 (SugarControlPanel at 0xbe9c6e0)>>
      76         self._current_option = None
      77         self._setup_main()

 /usr/share/sugar/shell/controlpanel/gui.py in
 _get_options(self=<ControlPanel object at 0xc1347d4 (SugarControlPanel at
 0xbe9c6e0)>)
     244                 if tmp in options:
     245                     mod = __import__('.'.join(subpath) + '.' +
 tmp,
 --> 246                                      globals(), locals(), [tmp])
         global globals = undefined
         global locals = undefined
         tmp = 'language'
     247                     keywords = getattr(mod, 'KEYWORDS', [])
     248                     keywords.append(options[tmp]['title'].lower())

 /usr/share/sugar/shell/controlpanel/model/language.py in <module>()
     122
     123 # inilialize the docstrings for the language
 --> 124 _initialize()
         global _initialize = None
     125
     126

 /usr/share/sugar/shell/controlpanel/model/language.py in _initialize()
      48
      49 def _initialize():
 ---> 50     languages = read_all_languages()
         languages = undefined
         global read_all_languages = None
      51     set_language.__doc__ += '\n'
      52     for lang in languages:

 /usr/share/sugar/shell/controlpanel/model/language.py in
 read_all_languages()
      29
      30 def read_all_languages():
 ---> 31     fdp = subprocess.Popen(['locale', '-av'],
 stdout=subprocess.PIPE)
         fdp = undefined
         global subprocess.Popen = undefined
         global stdout = undefined
         global subprocess.PIPE = undefined
      32     lines = fdp.stdout.read().split('\n')
      33     locales = []

 /usr/lib/python2.5/subprocess.py in __init__(self=<subprocess.Popen object
 at 0xc135eac>, args=['locale', '-av'], bufsize=0, executable=None,
 stdin=None, stdout=-1, stderr=None, preexec_fn=None, close_fds=False,
 shell=False, cwd=None, env=None, universal_newlines=False,
 startupinfo=None, creationflags=0)
     591                             p2cread, p2cwrite,
     592                             c2pread, c2pwrite,
 --> 593                             errread, errwrite)
         errread = None
         errwrite = None
     594
     595         # On Windows, you cannot just redirect one or two handles:
 You

 /usr/lib/python2.5/subprocess.py in _execute_child(self=<subprocess.Popen
 object at 0xc135eac>, args=['locale', '-av'], executable='locale',
 preexec_fn=None, close_fds=False, cwd=None, env=None,
 universal_newlines=False, startupinfo=None, creationflags=0, shell=False,
 p2cread=None, p2cwrite=None, c2pread=61, c2pwrite=62, errread=None,
 errwrite=None)
    1003             self._set_cloexec_flag(errpipe_write)
    1004
 -> 1005             self.pid = os.fork()
         self.pid = None
         global os.fork = <built-in function fork>
    1006             self._child_created = True
    1007             if self.pid == 0:

 OSError: [Errno 12] Cannot allocate memory
 }}}

 top reports 4mb free and 32mb cached. after dropping caches that become
 14mb free / 22mb cached and it still failed to launch.

 After restarting sugar, it opened fine.

-- 
Ticket URL: <http://dev.laptop.org/ticket/8206>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list