Opened 4 years ago

Closed 4 years ago

#2533 closed defect (fixed)

talk to computer crashes

Reported by: tonyforster Owned by: jminor
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Speak Version: Unspecified
Severity: Unspecified Keywords:
Cc: alsroot Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

speak 18 os359

Loading brain from bot/alisochka.brn... done (20201 categories in 5.82 seconds)
Traceback (most recent call last):

File "/home/olpc/Activities/Speak.activity/activity.py", line 386, in _entry_activate_cb

brain.respond(self.voices.props.value, text))

File "/home/olpc/Activities/Speak.activity/face.py", line 180, in say

self._audio.speak(self._peding or self.status, something)

File "/home/olpc/Activities/Speak.activity/espeak_cmd.py", line 40, in speak

stdout=subprocess.PIPE)

File "/usr/lib/python2.6/subprocess.py", line 444, in call

return Popen(*popenargs, kwargs).wait()

File "/usr/lib/python2.6/subprocess.py", line 595, in init

errread, errwrite)

File "/usr/lib/python2.6/subprocess.py", line 1026, in _execute_child

self.pid = os.fork()

OSError: [Errno 12] Cannot allocate memory
WARNING: maximum recursion depth exceeded (input='CATCHALL')Traceback (most recent call last):

File "/home/olpc/Activities/Speak.activity/activity.py", line 386, in _entry_activate_cb

brain.respond(self.voices.props.value, text))

File "/home/olpc/Activities/Speak.activity/face.py", line 180, in say

self._audio.speak(self._peding or self.status, something)

File "/home/olpc/Activities/Speak.activity/espeak_cmd.py", line 40, in speak

stdout=subprocess.PIPE)

File "/usr/lib/python2.6/subprocess.py", line 444, in call

return Popen(*popenargs, kwargs).wait()

File "/usr/lib/python2.6/subprocess.py", line 595, in init

errread, errwrite)

File "/usr/lib/python2.6/subprocess.py", line 1026, in _execute_child

self.pid = os.fork()

OSError: [Errno 12] Cannot allocate memory
WARNING: maximum recursion depth exceeded (input='CATCHALL')Traceback (most recent call last):

File "/home/olpc/Activities/Speak.activity/activity.py", line 386, in _entry_activate_cb

brain.respond(self.voices.props.value, text))

File "/home/olpc/Activities/Speak.activity/face.py", line 180, in say

self._audio.speak(self._peding or self.status, something)

File "/home/olpc/Activities/Speak.activity/espeak_cmd.py", line 40, in speak

stdout=subprocess.PIPE)

File "/usr/lib/python2.6/subprocess.py", line 444, in call

return Popen(*popenargs, kwargs).wait()

File "/usr/lib/python2.6/subprocess.py", line 595, in init

errread, errwrite)

File "/usr/lib/python2.6/subprocess.py", line 1026, in _execute_child

self.pid = os.fork()

OSError: [Errno 12] Cannot allocate memory
1292642311.388362 DEBUG root: ActivityService.set_active: 0.
1292642311.390567 DEBUG root: Activity.save: dbus.String(u'c19e0078-922e-49ff-a461-9adce179957a')
1292642313.483244 DEBUG root: datastore.write
1292642313.485645 DEBUG root: dbus_helpers.update: c19e0078-922e-49ff-a461-9adce179957a, /home/olpc/.sugar/default/vu.lux.olpc.Speak/instance/1292642313, {'activity_id': '49efc7064fe9955cd6b24889baecb6a9dfbd2cb7', 'title_set_by_user': '0', 'uid': dbus.String(u'c19e0078-922e-49ff-a461-9adce179957a'), 'title': 'Speak Activity', 'timestamp': 1292642313, 'activity': 'vu.lux.olpc.Speak', 'share-scope': 'private', 'keep': '0', 'icon-color': '#FF8F00,#A700FF', 'mtime': '2010-12-18T03:18:33.484740', 'preview': '<omitted>', 'mime_type': }, True
1292642313.531870 DEBUG root: Written object c19e0078-922e-49ff-a461-9adce179957a to the datastore.
1292642313.655922 DEBUG root: Activity.save_cb

Change History (3)

comment:1 Changed 4 years ago by alsroot

  • Cc alsroot added

yeah, thats the problem with PyAIML (it eats too many resources for XO-1, on not havy loaded XO it should be ok), maybe we need to reduce alisochka.brn (which is reduced db of alice) much more..

comment:2 follow-up: Changed 4 years ago by tonyforster

Maybe some sort of recovery strategy under memory stress. Audio warning that it is under memory stress, do not load the AI and keep the text to speech still functional?

comment:3 in reply to: ↑ 2 Changed 4 years ago by alsroot

  • Resolution set to fixed
  • Status changed from new to closed

Replying to tonyforster:

Maybe some sort of recovery strategy under memory stress. Audio warning that it is under memory stress, do not load the AI and keep the text to speech still functional?

At least we can't do that on activity side, doing that somewhere out of activity is a different story..

I was too optimistic for "on not havy loaded XO" :), at the end I've reduced AIML db by one third and add free memory check to not load db if there is not too much memory. These changes comes with newly released v19.

Note: See TracTickets for help on using tickets.