Re: Abiword 2.8.1 crashiness

From: J.M. Maurer <uwog_at_uwog.net>
Date: Wed Nov 18 2009 - 22:09:40 CET

On Wed, 2009-11-18 at 17:51 +0100, Morten Juhl-Johansen Zölde-Fejér
wrote:
> On Mon, 9 Nov 2009 10:40:11 +0100
> Morten Juhl-Johansen Zölde-Fejér <mjjzf@syntaktisk.dk> wrote:
>
> > ---- 8< ---- Martin Sevior ---- 8< ----
> > > Hi Morten,
> > > I get no crashes with "insert Symbol" in my build on
> > > Fedora 11. Can you do a --enable-debug in the configure line, then
> > > redo your build, run it in gdb and type "bt" in gdb when it
> > > crashes? This will help isolate the problem. You might have a buggy
> > > version of pango. We push pango very hard in ways many other
> > > applications don't. Thanks!
> > > Martin
> > ---- 8< ---- Martin Sevior ---- 8< ----
> >
> > Excellent. I will give it a spin when I come from work.
>
> More specific:
> It seems the program crashes when I double-click a symbol. When I click
> once on the symbol and press Insert, there are no problems.

Ah, that was the hint I needed: gucharmap has changed its API... *yet
again*. The "activate" callback used to look like this (from 2.22.0):

static void
insert_character_in_text_to_copy (GucharmapTable *chartable,
                                  gunichar wc,
                                  GucharmapWindow *guw)

The "activate" callback these days looks like (from 2.26.1):

insert_character_in_text_to_copy (GucharmapChartable *chartable,
                                  GucharmapWindow *guw)

Notice the missing "gunichar" argument. Looking through the history of
gucharmap, I see it was dropped in 2.24.0.

Two ways to solve this:

1. make gucharmap version specific DEFINEs to deal with the API breakage
2. don't support gucharmap < 2.24, and fallback to our builtin dialog.
3. drop gucharmap support alltogether and fallback to our builtin
dialog. They've broken the API before, and they will likely break it
again in the future (API stability is not their concern last time I
checked).

Comments on which to choose? I'm leaning toward 2).
  Marc
Received on Wed Nov 18 22:10:04 2009

This archive was generated by hypermail 2.1.8 : Wed Nov 18 2009 - 22:10:04 CET