Re: gnome-build hanging (fwd)



Hi Dave,

So Gustavo has looked at the problems i had with the new gnome-build
glue-based backend and he came up with the following (he's the man :)

Jeroen

---------- Forwarded message ----------
Date: 21 Aug 2002 23:09:42 -0300
From: "Gustavo [ISO-8859-1] Giráldez" <gustavo giraldez gmx net>
To: Jeroen Zwartepoorte <jeroen xs4all nl>
Subject: Re: gnome-build hanging

Hi Jeroen,

Well, I found out why we are getting these weird errors.  The problem
arises when the plugin is unloaded.  The g_module_* reference section
says you should never unload a module if the module registers static
data with the rest of the application.  This happens in many places
apparently (though I can only identify the quark registration).

I tried making the module permanent (with g_module_make_permanent), but
then the glue code fails to register the type the second time you ask
for a project object.  I'm not very familiar with the glue code, so
right now I can't tell why.  I'll investigate further tomorrow morning.
In the meantime, if you know how to solve this, I would like to know it
too :-)  Maybe you could mail Dave, as he'll probably know the answer
offhand.

Regards,
Gustavo


On Wed, 2002-08-21 at 14:39, jeroen wrote:
> Hi Gustavo,
>
> This is with the new glue code. I had no such trouble with the "old"
> bonobo backend. If you're trying to apply the patches to gnome-build, you
> also need to get glue-factory.[ch] & glue-plugin.[ch] from
> anjuta2/src/libanjuta in order to get it build.
>
> Here's a backtrace of the "invalid file descriptor" warningo:
>
> #0  0x406cf486 in g_log () from /usr/lib/libglib-2.0.so.0
> #1  0x406bff6e in g_io_channel_error_from_errno ()
>    from /usr/lib/libglib-2.0.so.0
> #2  0x406e87a9 in g_io_unix_close () from /usr/lib/libglib-2.0.so.0
> #3  0x406bfa50 in g_io_channel_shutdown () from /usr/lib/libglib-2.0.so.0
> #4  0x40f8d40f in shutdown_spawn (data=0x82b58c0) at gbf-am-project.c:897
> #5  0x40f8dbfc in spawn_script (argv=0xbfffe1f0, timeout=30, input=0x0,
>     input_size=0, input_cb=0x40f8d698 <write_child>,
>     output_cb=0x40f8d79c <read_output>, error_cb=0x40f8d8fc <read_error>)
>     at gbf-am-project.c:1246
> #6  0x40f8dd08 in get_project (prj=0x8291340,
>     dir=0x406ed265 "Invalid file descriptor.\n") at gbf-am-project.c:1268
> #7  0x40f8e6c2 in impl_load (project=0x8291340,
>     path=0x82b2698 "/home/jeroen/Projects/anjuta2", error=0xbfffe288)
>     at gbf-am-project.c:1667
> #8  0x40e82815 in set_build (proj_tool=0x822dea8,
>     path=0x82b2698 "/home/jeroen/Projects/anjuta2") at project-tool.c:142
> #9  0x406706d0 in g_cclosure_marshal_VOID__STRING ()
>    from /usr/lib/libgobject-2.0.so.0
> #10 0x4065b0c0 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
> #11 0x4066f8b4 in signal_emit_unlocked_R () from
> /usr/lib/libgobject-2.0.so.0
> #12 0x4066e888 in g_signal_emit_valist () from
> /usr/lib/libgobject-2.0.so.0
> #13 0x4066eaf4 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
> #14 0x40032780 in gdl_recent_menu_cb (uic=0x822dee0, data=0x1,
>     cname=0x80df278 "uri-5") at gdl-recent.c:299
> #15 0x40141518 in marshal_VOID__USER_DATA_STRING ()
>    from /usr/lib/libbonoboui-2.so.0
> #16 0x4065b0c0 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
> #17 0x401b66da in bonobo_closure_invoke_va_list ()
>    from /usr/lib/libbonobo-2.so.0
> #18 0x401b6977 in bonobo_closure_invoke () from /usr/lib/libbonobo-2.so.0
> #19 0x401413af in impl_Bonobo_UIComponent_execVerb ()
>    from /usr/lib/libbonoboui-2.so.0
> #20 0x401bb04d in Bonobo_UIComponent_execVerb () from
> /usr/lib/libbonobo-2.so.0#21 0x40148757 in real_exec_verb () from
> /usr/lib/libbonoboui-2.so.0
> #22 0x4014896b in impl_emit_verb_on () from /usr/lib/libbonoboui-2.so.0
> #23 0x40670940 in g_cclosure_marshal_VOID__POINTER ()
>    from /usr/lib/libgobject-2.0.so.0
> #24 0x4065b467 in g_type_class_meta_marshal ()
>    from /usr/lib/libgobject-2.0.so.0
> #25 0x4065b0c0 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
> #26 0x4066f369 in signal_emit_unlocked_R () from
> /usr/lib/libgobject-2.0.so.0
> #27 0x4066e888 in g_signal_emit_valist () from
> /usr/lib/libgobject-2.0.so.0
> #28 0x4066eaf4 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
> #29 0x4014b325 in bonobo_ui_engine_emit_verb_on_w ()
>    from /usr/lib/libbonoboui-2.so.0
>
> Etc. The rest is not important.
>
> Hmm, i'm looking at the backtrace myself and i don't understand something.
> On #7, get_project is called with the "path" variable, where the variable
> is "/home/jeroen/Projects/anjuta2". But in #6 the "dir" variable is
> suddenly "Invalid file descriptor.\n". Am i reading this incorrect, or is
> something strange going on?
>
> Jeroen
>






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