Re: debugging gtk+ apps



Havoc Pennington wrote:

josh <uzs33d uni-bonn de> writes:
Gdk-ERROR **: BadMatch (invalid parameter attributes)
  serial 1961 error_code 8 request_code 62 minor_code 0

How can I find out what this error message means?


This typically means you are using pixmaps, graphics contexts, or
images with mismatched visuals.

Run your app in a debugger with the --sync option, and when it crashes
with the error the backtrace will accurately reflect the function that
caused the error.

You are right that I am using pixmaps....what is a mismatched visual?

The problem is that the program doesn't crash with an exception or a
signal, just exits because gdk aborts from code. Gdb will trace your
stack only if your programs is killed by
Linux giving a core. Here's what gdb had to say: 

$ gdb glunarclock 
GNU gdb 19991004 
Copyright 1998 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) run --sync 
Starting program: /home/leandro/install/glunarclock-0.11/src/glunarclock
--sync 
Gdk-ERROR **: BadMatch (invalid parameter attributes) 
  serial 1961 error_code 8 request_code 62 minor_code 0 

Program exited with code 01. 
(gdb) bt 
No stack. 
(gdb) 

-josh

-- 
"I'll rob that rich person and give his gold to some poor undeserving
slob.  That will *prove* I'm Robin Hood."
        -- Daffy Duck, "Robin Hood Daffy", [1958, Chuck Jones]




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