Re: Bug: SEGV on loading "graphical" plugins @ startup


Subject: Re: Bug: SEGV on loading "graphical" plugins @ startup
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Wed Nov 07 2001 - 19:31:13 CST


On Wed, 7 Nov 2001, Dom Lachowicz wrote:

> Howto: put the GDict or AikSaurus plugin in ./AbiSuite/plugins
>
> run abiword
>
> Segv because of the new menu-handling code. Basically we're trying to
> add a menu item into a non-existant menu (no frames yet). But we can't
> delay plugin loading until we have a frame (importers/exporters might be
> needed for --to, for example). Basically the labels vector in
> ev_searchMenuLabel is null (i put an assert there for easy tracking).
>
> Martin or anyone else - could you look into this for me please? We
> probably just need to load the menus into memory at some earlier point
> or do something intelligent with a callback/listener to have a specific
> plugins fully initialize on a 'Frame Load' event.
>

Hi Dom,
        I'll look into this. I can see the problem. We can load the
menu's into memory very early. I think the issue is attempting to
rebuild the menu's with no defined a frames. It might solved with a
simple "if frame exists" test in the plugin loader. It should not be too
hard to find a solution.

Cheers

Martin



This archive was generated by hypermail 2b25 : Wed Nov 07 2001 - 19:31:21 CST