Re: Problem with instantiating thru bonobo_activation_query.
Aditya Pandey <[email protected]> Fri, 1 Apr 2005 15:25:27 +0530
| Newsgroups | gmane.comp.gnome.components |
|---|---|
| Message-ID | <[email protected]> |
--===============1126910204==
Content-Type: multipart/alternative;
boundary="----=_Part_165_7579137.1112349327309"
------=_Part_165_7579137.1112349327309
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
This error has come back in my app, and I am wondering (beating my
head against wall ;)) what to do for it. Seeking suggestions/advice on how=
=20
to fix this for good. test-speech works well in similar case.
When I get the error:
The logged in user holding the X window (whose bonobo-activation-server is=
=20
already running) does not face any problem
in running my app. But another user, when he starts the application, he get=
s=20
following error, and my app does not start
gnome-speech(bonobo server I want to activate) :-
---file bonobo-activation-activate.c: line 260
(bonobo_activation_query): assertion `ac !=3D NULL' failed---
Would anybody be having the idea why this happens?
Relevant Code
#define OBJ_ID=20
CORBA_Environment ev;
int num_arg =3D0;
/*initialise bonobo*/
CORBA_exception_init (&ev);
if (!bonobo_is_initialized())
if (!bonobo_init (NULL, NULL))
{
fprintf (stderr, "Could not setup Bonobo environment for speech
synthesis.\n");
IsAvailable =3D false;
return false;
}
if (BONOBO_EX (&ev)) {
fprintf (stderr, "Could not setup Bonobo environment for speech
synthesis. Related Exception %s\n", bonobo_exception_get_text (&ev));
IsAvailable =3D false;
return false;
}
if (!bonobo_activation_is_initialized())
bonobo_activation_init (num_arg, CORBA_OBJECT_NIL);
if (BONOBO_EX (&ev)) {
fprintf (stderr, "Could not setup Bonobo activation for speech
synthesis. Related Exception %s\n", bonobo_exception_get_text (&ev));
IsAvailable =3D false;
return false;
}
/*[FAILS HERE] Query for speech servers */
servers =3D bonobo_activation_query (OBJ_ID,NULL, &ev);
if (BONOBO_EX (&ev) || servers =3D=3D CORBA_OBJECT_NIL) {
fprintf (stderr, "Fetching Speech servers information failed.
Related Exception %s.\n", bonobo_exception_get_text (&ev));
return false;
}
CORBA_exception_free (&ev);
What I did to get this information on running it in terminal.
export BONOBO2_DEBUG=3Dall
export BONOBO_ACTIVATION_DEBUG=3D1
export BONOBO_ACTIVATION_DEBUG_OUTPUT=3D1
When running my application
** (acroread:7012): CRITICAL **: file bonobo-activation-activate.c:
line 260 (bonobo_activation_query): assertion `ac !=3D NULL' failed
Fetching Speech servers information failed. Related Exception Error
checking error; no exception.
Failed Fetching Speech servers information.
** (process:7038): WARNING **: Update registry (nil)
** (process:7038): WARNING **: Compare old_mtime on
'/usr/lib/bonobo/servers' with 0 =3D=3D? 1110381203
** (process:7038): WARNING **: Re-load 1 0
iid OAFIID:BrokenNoType:20000808 has a NULL type
invalid character '#' in iid
'OAFIID:This#!!%$iid%^$%_|~!OAFIID_ContainsBadChars'
** (process:7038): WARNING **: Server register.
'OAFIID:Bonobo_CosNaming_NamingContext' : 0x8079320
When running test-speech [which also calls bonobo_activation_query]
There is absolutely no error/warning message. I have made code of=20
test-speech similar to my code and also have made all compilation, linking=
=20
options similar but still this fails. Any ideas, when ac!=3D NULL assertion=
=20
strikes ? Basically, I am wondering where to look?
------=_Part_165_7579137.1112349327309
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<p align=3D"left">This error has come back in my app, and I am wondering (b=
eating my<br>head against wall ;)) what to do for it. Seeking suggestions/a=
dvice on how to fix this for good. test-speech works well in similar case.<=
br><br>When I get the error:<br>The logged in user holding the X window (wh=
ose bonobo-activation-server is already running) does not face any problem<=
br>in running my app. But another user, when he starts the application, he =
gets following error, and my app does not start<br>gnome-speech(bonobo serv=
er I want to activate) :-<br>---file bonobo-activation-activate.c: line 260=
<br>(bonobo_activation_query): assertion `ac !=3D NULL' failed---<br>Would =
anybody be having the idea why this happens?<br><br>Relevant Code<br>#defin=
e OBJ_ID <br>CORBA_Environment ev;<br>int num_arg =3D0;<br><br>/*initialise=
bonobo*/<br>CORBA_exception_init (&ev);<br>if (!bonobo_is_initialized(=
))<br>if (!bonobo_init (NULL, NULL))<br>{<br>fprintf (stderr, "Could n=
ot setup Bonobo environment for speech<br>synthesis.\n");<br>IsAvailab=
le =3D false;<br>return false;<br>}<br>if (BONOBO_EX (&ev)) {<br>fprint=
f (stderr, "Could not setup Bonobo environment for speech<br>synthesis=
. Related Exception %s\n", bonobo_exception_get_text (&ev));<br>Is=
Available =3D false;<br>return false;<br>}<br><br>if (!bonobo_activation_is=
_initialized())<br>bonobo_activation_init (num_arg, CORBA_OBJECT_NIL);<br>i=
f (BONOBO_EX (&ev)) {<br>fprintf (stderr, "Could not setup Bonobo =
activation for speech<br>synthesis. Related Exception %s\n", bonobo_ex=
ception_get_text (&ev));<br>IsAvailable =3D false;<br>return false;<br>=
}<br><br>/*[FAILS HERE] Query for speech servers */<br>servers =
=3D bonobo_activation_query (OBJ_ID,NULL, &ev);<br>if (BONOBO_EX (&=
ev) || servers =3D=3D CORBA_OBJECT_NIL) {<br>fprintf (stderr, &q=
uot;Fetching Speech servers information failed.<br>Related Exception %s.\n&=
quot;, bonobo_exception_get_text (&ev));<br>return false;<br>}<br><br><=
br>CORBA_exception_free (&ev);<br><br><br><br>What I did to get this in=
formation on running it in terminal.<br><br><br>export BONOBO2_DEBUG=3Dall<=
br>export BONOBO_ACTIVATION_DEBUG=3D1<br>export BONOBO_ACTIVATION_DEBUG_OUT=
PUT=3D1<br><br>When running my application<br><br><br><br><br>** (acroread:=
7012): CRITICAL **: file bonobo-activation-activate.c:<br>line 260 (bonobo_=
activation_query): assertion `ac !=3D NULL' failed<br>Fetching Speech serve=
rs information failed. Related Exception Error<br>checking error; no except=
ion.<br>Failed Fetching Speech servers information.<br><br>** (process:7038=
): WARNING **: Update registry (nil)<br><br>** (process:7038): WARNING **: =
Compare old_mtime on<br>'/usr/lib/bonobo/servers' with 0 =3D=3D? 1110381203=
<br><br>** (process:7038): WARNING **: Re-load 1 0<br>iid OAFIID:BrokenNoTy=
pe:20000808 has a NULL type<br>invalid character '#' in iid<br>'OAFIID:This=
#!!%$iid%^$%_|~!OAFIID_ContainsBadChars'<br><br>** (process:7038): WARNING =
**: Server register.<br>'OAFIID:Bonobo_CosNaming_NamingContext' : 0x8079320=
<br><br><br>When running test-speech [which also calls bonobo_activation_qu=
ery]<br>There is absolutely no error/warning message. I have made code of t=
est-speech similar to my code and also have made all compilation, linking o=
ptions similar but still this fails. Any ideas, when ac!=3D NULL assertion =
strikes ? Basically, I am wondering where to look?<br><br></p>
------=_Part_165_7579137.1112349327309--
--===============1126910204==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
gnome-components-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-components-list
--===============1126910204==--