Re: Porting to gtk 1.3.5



Havoc Pennington <hp redhat com> writes:

> monkeyiq <monkeyiq dingoblue net au> writes:
> >   I know that gtk2 is not a stable API at current. Though it
> > would be better to wait, I don't know that I will have the
> > time to code when gtk2 is out, so I am doing it now in the hopes
> > that the API doesn't change that much between now and then.
> > 
> > I have gevas almost ported to 1.3.5, I suspect that I fluffed
> > a few small things up along the way and now I get
> > 
> > Gdk-ERROR **: BadMatch (invalid parameter attributes)
> >   serial 118 error_code 8 request_code 1 minor_code 0
> > 
> > When I run my test app. Any ideas on what this error means
> > and where I can find out what errors mean from the above 
> > output in case I get them again.
> > 
> 
> To debug these, run your app in gdb with the --sync option:
> 
> $ gdb ./myapp
> (gdb) run --sync
> 
> Then get a backtrace when it crashes.
> 
> Havoc
> 

All I get is:
$ libtool gdb ./demo/testgevas 
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) r --sync

GRuntime-CRITICAL **: file gparamspecs.c: line 1465 (g_param_spec_enum): assertion `g_enum_get_value (enum_class, default_value) != NULL' failed

GRuntime-CRITICAL **: file gobject.c: line 297 (g_object_class_install_property): assertion `G_IS_PARAM_SPEC (pspec)' failed

GRuntime-WARNING **: gobject.c:903:g_object_set_valist(): object class `GtkgEvas' has no property named `GtkgEvas::render_mode'

Gdk-ERROR **: BadMatch (invalid parameter attributes)
  serial 224 error_code 8 request_code 1 minor_code 0

aborting...

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 1024 (LWP 9223)]
0x407c9801 in __kill () from /lib/i686/libc.so.6
(gdb) bt
#0  0x407c9801 in __kill () from /lib/i686/libc.so.6
#1  0x4067a61b in raise (sig=5) at signals.c:65
(gdb) info threads
* 1 Thread 1024 (LWP 9223)  0x407c9801 in __kill () from /lib/i686/libc.so.6
(gdb) 


So I dont know what to do. I know from printf() debug that this
happens on the line:
gtk_widget_show_all(window);

The GRuntimes are caused in the line:
ev = gtk_type_new(gevas_get_type()); // this line errs.

but I can't tell the diffs of my gevas_get_type() and the 
get_type function in some of the code from 1.3.5. so
I will find that one a little later on.

-- 
---------------------------------------------------
It's the question, http://witme.sourceforge.net
If you think education is expensive, try ignorance.
		-- Derek Bok, president of Harvard





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