[Sugar-devel] Activity updater crash

Daniel Narvaez dwnarvaez at gmail.com
Tue May 7 16:20:00 EDT 2013


Hi Walter,

the updater crash seems to be a bug in your code

It looks like you should use get_data to get a python array from GBytes.
(unref_to_array shouldn't really be exposed in python)

diff --git a/extensions/cpsection/updater/backends/aslo.py
b/extensions/cpsectio
index e244af0..7c41ae6 100644
--- a/extensions/cpsection/updater/backends/aslo.py
+++ b/extensions/cpsection/updater/backends/aslo.py
@@ -116,7 +116,7 @@ class _UpdateFetcher(object):
             self._process_result()
             return
         else:
-            xml_data = data.unref_to_array()
+            xml_data = data.get_data()
             self._xml_data += str(xml_data)

         stream.read_bytes_async(self._CHUNK_SIZE, GLib.PRIORITY_DEFAULT,
None,



-- 
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130507/81e55a94/attachment.html>


More information about the Sugar-devel mailing list