Hi,
Need help in finding the solution to the following problem :
I am trying to evoke a glade application on Solaris 10 ( gnome 2.0 ), and facing the following error:
Error :
The program '' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadLength (poly request too large or internal Xlib length erro'.
(Details: serial 12 error_code 16 request_code 155 minor_code 4)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Also I tried running this application using the dbx debugger and stopped at the _XError to get the following backtrace:
(dbx) stop in main
(dbx) stop in _XError
dbx: warning: '_XError' has no debugger info -- will trigger on first instruction
dbx: stop in _XError
(dbx) stop in gnome_init
dbx: "gnome_init" is not defined as a function or procedure in the scope `tablist`main.C`main`
dbx: see `help scope' for details
(dbx) run $RUN
Running: tablist -featureClass PTWPRO
t 1 (l 1) stopped in main at 0x000d36e8
0x000d36e8: main : save %sp, -1256, %sp
(dbx) cont
t 1 (l 1) stopped in _XError at 0xfd4bdc8c
0xfd4bdc8c: _XError : save %sp, -192, %sp
(dbx) where
FYI, the piece of code which is calling the function gnome_init is:
int main(int argc, char *argv[]) {
GladeXML *xml;
poptContext ctx;
char *args[2] = {"",""};
int i;
wellID wellid;
char *wellName[2];
long ier;
LsdDialog *well_select;
char *configfile = NULL;
char *wellfile = NULL;
char *lsdtype = NULL;
int daemon_mode = 0;
int keepalive = 0;
int pid = 0;
char *fullpath;
char command[1024];
GdkWindow *Gwin;
Window win;
GtkWidget *gwid;
Display *xdis;
Display *xdis2;
TabOW *Tabow = new TabOW(&argc, argv);
gnome_init("tabui", "0.0.1",1,args);
glade_gnome_init();
glade_init_subtree_widgets();
fullpath = ptw_get_file_path("gtk.rc");
Kindly suggest what can be the possible reason for this error and how to proceed further to solve it.
Thanks in advance.
Neha