#6289 HIGH Never A: audio file from record not resuming in browser properly

Zarro Boogs per Child bugtracker at laptop.org
Fri Feb 1 10:38:34 EST 2008


#6289: audio file from record not resuming in browser properly
------------------------------+---------------------------------------------
  Reporter:  walter           |       Owner:  erikos        
      Type:  defect           |      Status:  new           
  Priority:  high             |   Milestone:  Never Assigned
 Component:  browse-activity  |     Version:                
Resolution:                   |    Keywords:                
  Verified:  0                |    Blocking:                
 Blockedby:                   |  
------------------------------+---------------------------------------------

Comment(by walter):

 I just repeated my tests:
 (0) I had a browse session running and then opened record too.
 (1) record a movie
 (2) record some audio
 (3) quit record
 (4) resume the movie in the browser from the journal--it plays fine
 (5) quit the browser
 (6) resume the audio in the browser from the journal--browse never
 completes its launch.
 (7) quit the original browse that was running in parallel
 (8) resume the audio in the browser from the journal--it plays fine.

 Here are the logs from the failed session:

 groupadd: group 10001 exists
 useradd: user 10001 exists

 (sugar-activity:1720): libgnomevfs-WARNING **: Unable to create ~/.gnome2
 directory: Permission denied

 (sugar-activity:1720): libgnomevfs-WARNING **: gnome_vfs_init(): .gnome
 does not exist
 ---------------------------------------------------------------------------
 <class 'dbus.exceptions.DBusException'>   Traceback (most recent call
 last)

 /usr/bin/sugar-activity in <module>()
     137     else:
     138         single_process = bus.get_object(service_name,
 service_path)
 --> 139         single_process.create(handle.get_dict())
         global single_process.create = <dbus.proxies._ProxyMethod instance
 at 0x89599cc>
         global handle.get_dict = <bound method ActivityHandle.get_dict of
 <sugar.activity.activityhandle.ActivityHandle object at 0x83d30cc>>
     140
     141         print 'Created %s in a single process.' % service_name

 /usr/lib/python2.5/site-packages/dbus/proxies.py in
 __call__(self=<dbus.proxies._DeferredMethod instance at 0x84075cc>,
 *args=({'activity_id': 'a7493ea7c5c70926b2204639945c26269ed130b5',
 'object_id': '775eaa32-a4f2-4f82-a138-b998678f6609'},), **keywords={})
      62             # we're being synchronous, so block
      63             self._block()
 ---> 64             return self._proxy_method(*args, **keywords)
         self._proxy_method = <dbus.proxies._ProxyMethod instance at
 0x84075ac>
         args = ({'activity_id':
 'a7493ea7c5c70926b2204639945c26269ed130b5', 'object_id':
 '775eaa32-a4f2-4f82-a138-b998678f6609'},)
         keywords = {}
      65
      66     def call_async(self, *args, **keywords):

 /usr/lib/python2.5/site-packages/dbus/proxies.py in
 __call__(self=<dbus.proxies._ProxyMethod instance at 0x84075ac>,
 *args=({'activity_id': 'a7493ea7c5c70926b2204639945c26269ed130b5',
 'object_id': '775eaa32-a4f2-4f82-a138-b998678f6609'},), **keywords={})
     134                                                   introspect_sig,
     135                                                   args,
 --> 136                                                   **keywords)
         keywords = {}
     137
     138     def call_async(self, *args, **keywords):

 /usr/lib/python2.5/site-packages/dbus/connection.py in
 call_blocking(self=<dbus._dbus.SessionBus (session) at 0x841414c>,
 bus_name=dbus.UTF8String(':1.38'), object_path='/org/laptop/WebActivity',
 dbus_interface=None, method='create', signature=None,
 args=({'activity_id': 'a7493ea7c5c70926b2204639945c26269ed130b5',
 'object_id': '775eaa32-a4f2-4f82-a138-b998678f6609'},), timeout=-1.0,
 utf8_strings=False, byte_arrays=False)
     605         # make a blocking call
     606         reply_message = self.send_message_with_reply_and_block(
 --> 607             message, timeout)
         message = <dbus.lowlevel.MethodCallMessage object at 0x848b670>
         timeout = -1.0
     608         args_list = reply_message.get_args_list(**get_args_opts)
     609         if len(args_list) == 0:

 <class 'dbus.exceptions.DBusException'>:
 org.freedesktop.DBus.Python.KeyError: Traceback (most recent call last):
   File "/usr/lib/python2.5/site-packages/dbus/service.py", line 692, in
 _message_cb
     retval = candidate_method(self, *args, **keywords)
   File "/usr/bin/sugar-activity", line 68, in create
     create_activity_instance(self.constructor, handle)
   File "/usr/bin/sugar-activity", line 44, in create_activity_instance
     activity = constructor(handle)
   File "/usr/share/activities/Web.activity/webactivity.py", line 90, in
 __init__
     activity.Activity.__init__(self, handle)
   File "/usr/lib/python2.5/site-packages/sugar/activity/activity.py", line
 433, in __init__
     self._bus = ActivityService(self)
   File "/usr/lib/python2.5/site-
 packages/sugar/activity/activityservice.py", line 54, in __init__
     dbus.service.Object.__init__(self, bus_name, object_path)
   File "/usr/lib/python2.5/site-packages/dbus/service.py", line 473, in
 __init__
     self.add_to_connection(conn, object_path)
   File "/usr/lib/python2.5/site-packages/dbus/service.py", line 564, in
 add_to_connection
     self._fallback)
 KeyError: "Can't register the object-path handler for
 '/org/laptop/Activity/a7493ea7c5c70926b2204639945c26269ed130b5': there is
 already a handler"



 and the successful session:

 groupadd: group 10001 exists
 useradd: user 10001 exists

 (sugar-activity:2081): libgnomevfs-WARNING **: Unable to create ~/.gnome2
 directory: Permission denied

 (sugar-activity:2081): libgnomevfs-WARNING **: gnome_vfs_init(): .gnome
 does not exist
 ** Message: NP_Initialize
 ** Message: NP_Initialize succeeded
 ** Message: totemPlugin ctor [0x8ae77b0]
 ** Message: Init mimetype 'application/ogg' mode 2
 ** Message: Base URI is
 'file:///home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg'
 ** Message: Real mimetype for 'application/ogg' is 'application/ogg'
 ** Message: mSrc:
 file:///home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg
 ** Message: mCache: 0
 ** Message: mControllerHidden: 0
 ** Message: mShowStatusbar: 0
 ** Message: mHidden: 0
 ** Message: mAudioOnly: 0
 ** Message: mAutostart: 1, mRepeat: 0
 ** Message: Launching: /usr/libexec/totem-plugin-viewer --plugin-type
 basic --user-agent Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9b3pre)
 Gecko OLPC/Update.1 (XO) --mimetype application/ogg
 ** Message: Viewer spawned, PID 2122
 ** Message: GetValue variable 14 (e)
 ** Message: Initial window set, XID 12000c5 size 1200x780
 ** Message: No viewer proxy yet, deferring SetWindow
 ** Message: NewStream mimetype 'application/ogg' URL
 'file:///home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg'
 ** Message: Not expecting a new stream; aborting stream

 (totem-plugin-viewer:2123): libgnomevfs-WARNING **: Unable to create
 ~/.gnome2 directory: Permission denied

 (totem-plugin-viewer:2123): libgnomevfs-WARNING **: gnome_vfs_init():
 .gnome does not exist
 ** Message: Viewer DBus interface name is
 'org.gnome.totem.PluginViewer_2122'

 (totem-plugin-viewer:2122): libgnomevfs-WARNING **: Unable to create
 ~/.gnome2 directory: Permission denied

 (totem-plugin-viewer:2122): libgnomevfs-WARNING **: gnome_vfs_init():
 .gnome does not exist

 (totem-plugin-viewer:2122): libgnomevfs-WARNING **: Unable to create
 ~/.gnome2 directory: Permission denied

 (totem-plugin-viewer:2122): libgnomevfs-WARNING **: gnome_vfs_init():
 .gnome does not exist
 ** Message: NameOwnerChanged old-owner '' new-owner ':1.64'
 ** Message: Viewer now connected to the bus
 ** Message: ViewerSetup
 ** Message: Calling SetWindow
 Viewer: SetWindow XID 18874565 size 1200:780
 ** Message: Viewer state: STOPPED
 ** Message: SetWindow reply
 ** Message: ViewerReady
 ** Message: IsSchemeSupported scheme 'file': yes
 ** Message: totem_embedded_open_internal 'fd://0' is-browser-stream 1
 ** Message: BEFORE _open
 ** Message: AFTER _open (ret: 1)
 ** Message: Viewer state: PLAYING

 ** (totem-plugin-viewer:2122): WARNING **: Mimetype 'application/ogg'
 doesn't have a handler
 ** Message: OpenStream reply
 ** Message: NewStream mimetype 'application/ogg' URL
 'file:///home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg'
 ** Message: StreamAsFile filename
 '/home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg'
 ** Message: Setting the current path to
 /home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg
 ** Message: totem_embedded_open_internal
 'file:///home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg'
 is-browser-stream 0
 ** Message: BEFORE _open
 ** Message: AFTER _open (ret: 1)

 ** (totem-plugin-viewer:2122): WARNING **: Mimetype 'application/ogg'
 doesn't have a handler
 ** Message: DestroyStream reason 0
 ** Message: URLNotify URL
 'file:///home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg'
 reason 0
 ** Message: totemPlugin dtor [0x8ae77b0]
 ** Message: NP_Shutdown
 argv[0] type application/ogg
 argv[1] src
 file:///home/olpc/isolation/1/uid_to_instance_dir/10001/775eaa32-a4f2-4f82-a138-b998678f6609.ogg
 argv[2] name plugin
 argv[3] width 100%
 argv[4] height 100%

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



More information about the Bugs mailing list