Debugging E-RootX11ErrorHandler: BadWindow messages


I’m having, in my GUI, instances where I get this infamous message :

E-RootX11ErrorHandler: BadWindow (invalid Window parameter) (XID: 6291897, XREQ: 25)

and generally a few seconds later my GUI freezes completely. I suspect I’m doing something wrong in the deletion of some TG* object somewhere, but would like to know if there’s a clever way to narrow down the search (some gDebug variable to put somewhere ?)



XREQ: 25 is related to SendEvent request. It could be that the concerned object is deleted. You can try to run your code with valgrind.

Cheers, Ilka