[sugar] [PATCH] Merge the journal activity into the shell

Marco Pesenti Gritti mpgritti at gmail.com
Thu Sep 11 03:53:41 EDT 2008


On Thu, Sep 11, 2008 at 9:26 AM, Tomeu Vizoso <tomeu at tomeuvizoso.net> wrote:
>> http://buildbot.sugarlabs.org/builders/fedora9-x86_64-quick/builds/177/steps/ui-check/logs/stdio
>
> Looks to be a 64 bit problem.
>
>  File "/home/buildbot/slave/fedora9-x86_64-quick/build/install/lib/python2.5/site-packages/olpc/datastore/xapianindex.py",
> line 471, in search
>    checkatleast=sys.maxint)
>  File "/home/buildbot/slave/fedora9-x86_64-quick/build/install/lib/python2.5/site-packages/secore/searchconnection.py",
> line 610, in search
>    mset = enq.get_mset(startrank, maxitems, checkatleast)
> OverflowError: in method 'Enquire_get_mset', argument 4 of type
> 'Xapian::doccount'
>
> sys.maxint is too big for Xapian. Any better idea than hardcoding 2**31-1 ?

Nope, we had something like that in gproperties and we had to hardcode :(

Actually I didn't even spot that one. I was talking about this, which
happens also on x86:

Traceback (most recent call last):
  File "/home/marco/sugar-jhbuild/install/share/sugar/shell/view/Shell.py",
line 93, in __launch_started_cb
    if home_activity.is_journal():
  File "/home/marco/sugar-jhbuild/install/share/sugar/shell/model/homeactivity.py",
line 176, in is_journal
    return self.get_type() == 'org.laptop.JournalActivity'
  File "/home/marco/sugar-jhbuild/install/share/sugar/shell/model/homeactivity.py",
line 172, in get_type
    return wm.get_bundle_id(self._window)
  File "/home/marco/sugar-jhbuild/install/lib/python2.5/site-packages/sugar/wm.py",
line 29, in get_bundle_id
    window = gtk.gdk.window_foreign_new(wnck_window.get_xid())
AttributeError: 'NoneType' object has no attribute 'get_xid'

Marco


More information about the Sugar mailing list