Re: libchamplain on Maemo/N900 for Map Buddy



On Fri, May 21, 2010 at 18:52, Alban Crequy
<alban crequy collabora co uk> wrote:
> Hi,
>
> Map Buddy on Maemo is using libchamplain 0.4.4 and I get a crash at
> startup sometimes. I wonder if it is a known problem because the code
> has changed in newer unstable versions.
>
> #0  view_load_visible_tiles (view=0xbe030) at champlain-view.c:2280
> #1  0x400ac7f0 in update_viewport (view=0xbe030, x=
> #2  0x400acf2c in viewport_pos_changed_cb (gobject=<value optimized
>    out>, arg1=<value optimized out>, view=0xbe030) at
>    champlain-view.c:1537
> #3  0x40f4d27c in g_cclosure_marshal_VOID__PARAM ()
>    from /usr/lib/libgobject-2.0.so.0
> #4  0x40f3f848 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
> #5  0x40f56500 in ?? () from /usr/lib/libgobject-2.0.so.0
> #6 0x40f56500 in ?? () from /usr/lib/libgobject-2.0.so.0
>
> priv->map is NULL:
> (gdb) p *priv
> $3 = {stage = 0xc0070, factory = 0xb6978, map_source = 0x111f08,
> scroll_mode = CHAMPLAIN_SCROLL_MODE_KINETIC, zoom_level = 0,
> min_zoom_level = 0, max_zoom_level = 18, longitude = -5.625, latitude =
> 50.736454010009766, anchor = {x = 0, y = 0, z = 0}, anchor_zoom_level =
> 0, map = 0x0, finger_scroll = 0xc3018, viewport = 0xc1030, map_layer =
> 0xc01b0, viewport_size = {x = -145, y = 0, width = 800, height = 354},
> user_layers = 0xc02f0, keep_center_on_resize = 1, zoom_on_double_click
> = 1, show_license = 1, license_actor = 0xcd628, license_text = 0x0,
> scale_actor = 0xc0570, show_scale = 1, scale_unit = CHAMPLAIN_UNIT_KM,
> max_scale_width = 100, state = CHAMPLAIN_STATE_DONE, goto_context =
> 0x0, polygon_redraw_id = 0, polygons = 0x0, polygon_layer = 0xc0430}
>
> Is there a patch to backport in the 0.4 series?
>

Hi Alban,

thanks for reporting this. Even though I can't reproduce the bug, from
your backtrace it looks it happens here:

level = priv->map->current_level

and I think it's because during initialization the priv->map member
isn't created yet. I've added a check for the existence of priv->map
and it should be fixed in the 0.4 branch in git. This fix will be a
part of the 0.4.6 release.

The trunk shouldn't be affected by the bug since priv->map has been removed.

Jiri

> Cheers
> Alban
> _______________________________________________
> libchamplain-list mailing list
> libchamplain-list gnome org
> http://mail.gnome.org/mailman/listinfo/libchamplain-list
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]