[Geany] Geany segfaults when enabling project plugin
Harold Aling
geany at xxxxx
Wed Jan 21 14:32:49 UTC 2009
On Thu, 15 Jan 2009 13:17:37 +0200, "Yura Siamashka" <yurand2 at gmail.com>
wrote:
> Hi
>
> 2009/1/15, Harold Aling <geany at sait.nl>:
>> Dear Geany devs,
>>
>> I've updated my local Geany install to the latest svn version and
>> recompiled the geanyprj plugin. Since I build Geany in a 'odd' target
>> (/usr/local/stow/geany-r3468) I have to re-enable all plugins after an
>> update.
>>
>> Enabling 'project' and closing the dialog immediately crashed Geany...
>>
>> I'm not sure how to create a meaningful backtrace...
>
> Confirmed.
>
> Segmentation fault happend because geanyprj can't create private
> project properties properly. And probably geanyprj should not do it.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x08072ae2 in get_default_indent_prefs () at editor.c:830
> 830 iprefs = app->project ?
> *app->project->priv->indentation : *editor_prefs.indentation;
>
> I don't know how to fix this crash without deleting build capabilities
> from geanyprj.
>
> to geany devs:
>
> What about introducing some kind of hook api for main menu items:
>
> something like:
> /*
> param: button - ID of item in main menu
> param: hook_type - type of hook function
>
> HOOK_TYPE_REPLACE - replace default handler with callback function
> HOOK_TYPE_PUSH_BACK - call callback function after default handler
> HOOK_TYPE_PUSH_FRONT - call callback handler before default handler
>
> param: callback - callback function to call on menu item active
> return: id of hook for using in delete_hook function
> */
> gint register_hook(int button, int hook_type, void
> (callback*)(GtkWidget*, gpointer));
> gint delete_hook(int hook_id);
>
> Best regards,
> Yura Siamashka
Any news on resolving this issue?
-H-
More information about the Users
mailing list