[Bugs] #3400 IMME: Browse:crashes while trying to modify the URL entry
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Mar 28 09:22:00 EDT 2012
#3400: Browse:crashes while trying to modify the URL entry
--------------------------+-------------------------------------------------
Reporter: manuq | Owner: manuq
Type: defect | Status: assigned
Priority: Immediate | Milestone: 0.96
Component: Browse | Version: Git as of bugdate
Severity: Blocker | Keywords: 12.1.0
Distribution: OLPC | Status_field: Assigned
--------------------------+-------------------------------------------------
Comment(by erikos):
I tried to reproduce the issue outside of Browse, like:
{{{
from gi.repository import Gtk
list_store = Gtk.ListStore(str, str)
list_store.append(['hallo', None])
}}}
But we 'only' get a warning there that 'G_TYPE_IS_VALUE (src_type) failed'
but do not crash. Looking at the trace we bubble up until displaying that
warning when Browse crashes.
In any case, we should not feed data in our liststore that we did not
create it for. There is even a method to check for valid data
http://developer.gnome.org/gtk3/3.0/GtkListStore.html#gtk-list-store-iter-
is-valid but we should not use that, it is slow.
I think we should handle the title and address as ' ' as default inside
Browse and not None. Our checks for example if we should display
'Untitled' should be changed from checking if the string is empty instead
of if the variable is None.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/3400#comment:4>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list