Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46293 - gaim closes with a BadWindow (invalid Window parameter) error randomly when changing focus to IM window.
Summary: gaim closes with a BadWindow (invalid Window parameter) error randomly when c...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gaim Bugs Crew
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-30 14:02 UTC by Jerry Kilpatrick
Modified: 2004-05-27 12:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Kilpatrick 2004-03-30 14:02:50 UTC
I will run gaim and it will work for a while.  Normally when my message window loses focus because I'm on the web and I click back to my message window all gaim windows disappear.  When I run it from the command line I get messages like this:

The program 'gaim' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 27021 error_code 3 request_code 10 minor_code 0)
  (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.)

I have tried to run it through gdb after recompiling it and having it not stripped.  It won't let me break on gdk_x_error, and when it dies, I try to get a backtrace and it says that there is no stack.

This seemed to happen some time around gtk+2.4.0, though I have NO idea if that was the cause.  I'm also running the latest gnome which I removed from the packages.mask though my problem existed before this upgrade.


Reproducible: Always
Steps to Reproduce:
1. Run gaim (presently gaim-0.75-r11)
2. Keep clicking on contacts, and opening new message windows and closing them.  Sometimes clicking on a 3rd party software like gnome-terminal.
3. Repeate #2 for less than a minute and gaim goes away.

Actual Results:  
If gaim was run from the command line, all of the gaim windows disappear and the
output of gaim is generally like this:

The program 'gaim' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 27021 error_code 3 request_code 10 minor_code 0)
  (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.)


Expected Results:  
Gaim should have kept running.

I'm not really sure if there's more information I can give until it's requested.

It could very well be a supporting library that I need to up/downdgrade?

I'll wait to see what ideas you guys can throw at me.
Comment 1 Don Seiler (RETIRED) gentoo-dev 2004-03-30 14:45:29 UTC
I'd like to see you try to duplicate this on a lower version of gnome/glib/gtk+ or even a different WM if you don't want to downgrade gnome.

gnome/glib/gtk+ upgrades have been the cause of many problems with many packages lately.
Comment 2 Jerry Kilpatrick 2004-03-30 16:33:07 UTC
I am on a fairly slow machine so I would prefer not to be doing any large compiles to go back versions.  However, if it helps anyone else that may run into this problem, it seems to be isolated to the mouse gestures plugin.  It also exists back into -r8.  

I turned off that plugin and I can no longer cause the bug to occure.

I'm willing to live with this until what I'm running is considered stable.  I'll miss my mouse gestures, but at least it's stable again.  

That is unless this sheds new light onto the problem and you want to see if we can fix it the way it is.  As I said, this machine is too slow to be doing much upgrading and downgrading when I don't have to.

Thanks,
Comment 3 Don Seiler (RETIRED) gentoo-dev 2004-03-31 11:27:01 UTC
The gaim devs tell me that it might be upstream since they don't have much faith in the mouse gestures plugin to begin with.

Do you think your bug might be related to this:

http://sourceforge.net/tracker/?group_id=235&atid=100235&func=detail&aid=735859
Comment 4 Don Seiler (RETIRED) gentoo-dev 2004-03-31 11:29:18 UTC
I'm waiting to chat with the dev who wrote the Mouse Gestures plugin.  I'll let you know afterwards.  We may be sending this upstream.
Comment 5 Jerry Kilpatrick 2004-04-01 10:12:35 UTC
Apparently I had a mail problem and my last response didn't get to here.

The forementioned bug you pointed me to doesn't appear to be the same problem, at least not directly.  Gaim does not crash when actually using Mouse Gestures, it just crashes when it's loaded.  But I'm not actually attempting to do any mouse gestures.

So what does that mean that you may be sending me upstream?
Comment 6 Don Seiler (RETIRED) gentoo-dev 2004-04-02 06:33:46 UTC
Can you see if this happens with gaim-0.76 as well?
Comment 7 Jerry Kilpatrick 2004-04-02 10:29:38 UTC
Yep, it still happens in 0.76
Comment 8 Peter Ruskin 2004-04-29 16:26:13 UTC
I have a similar problem with gkrellm over ssh:

$ ssh <host> gkrellm2
Xlib:  extension "RENDER" missing on display "localhost:12.0".
The program 'gkrellm2' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 2556 error_code 3 request_code 38 minor_code 0)
  (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.)

I fixed it by adding the following to /etc/portage/package.mask:
>=dev-libs/glib-2.4.0
>=x11-libs/gtk+-2.4.0
>=x11-libs/pango-1.4.0
>=net-misc/openssh-3.8_p1
Comment 9 Peter Ruskin 2004-05-03 13:30:54 UTC
The problem is with the new openssh-3.8_p1 - the fix is to use the -Y switch, new  with openssh-3.8.  The alternative is to add the following line to /etc/ssh/ssh_config:
   ForwardX11Trusted yes

I suggest that the ebuild for openssh-3.8_p1 be changed to add that line to /etc/ssh/ssh_config, even if commented, so that users know about it.
Comment 10 Jerry Kilpatrick 2004-05-03 13:44:25 UTC
On a completely separate note, thank you very much about that ssh information.  I believe you may have just fixed a separate problem I had with my encrypted x2x setup I have and openssh 3.8!
Comment 11 Don Seiler (RETIRED) gentoo-dev 2004-05-03 17:20:21 UTC
Jerry were you running gaim via ssh X11 forwarding?  I don't see how the openssh issue is of consequence to this bug otherwise.
Comment 12 Jerry Kilpatrick 2004-05-03 17:25:51 UTC
No, I'm really sorry, my other openssh problem had absolutely nothing to do with my gaim problem.  I was just glad to have fixed my other problem. 
Comment 13 Don Seiler (RETIRED) gentoo-dev 2004-05-11 18:26:49 UTC
20:25 < grim> rizzo: it's probably something to do with gdk_drawables.. have 
              you user enable the plugin, but turn off the visual drawing or 
              whatever the pref is named..

Can you try it and disable visuable gesture display?

Be sure to upgrade to gaim-0.77
Comment 14 Jerry Kilpatrick 2004-05-12 10:17:14 UTC
I am running gaim-0.77.  

I turned on mouse gestures again to verify it would fail like normal.  It did. 

I went into the settings, removed the visual gestures check and I've been trying to crash it but so far I have been unable to.  It 'appears' to have fixed the problem.  If you would like for me to hammer it a bit more before we are sure that it is the problem I'll gladly give a report a little later in the day.
Comment 15 Jerry Kilpatrick 2004-05-14 12:42:54 UTC
It's gone on two days or so, and no crash with mouse gestures turned on, but visual gestures turned off.  I'd say that's definitely the problem.
Comment 16 Alex V. Koval 2004-05-20 22:26:56 UTC
Many thanks, guys!

1. turning off 'visual' mode solved gaim problem for me.
2. adding -Y solved the openSSH problem (with same error code)

All the best!

Alex
Comment 17 Don Seiler (RETIRED) gentoo-dev 2004-05-27 08:36:08 UTC
Jerry can you get a backtrace from gaim-0.77-r2 with this crash.  I can't duplicate it any more for some reason.
Comment 18 Don Seiler (RETIRED) gentoo-dev 2004-05-27 08:38:19 UTC
and be sure you build gaim with USE="debug"
Comment 19 Don Seiler (RETIRED) gentoo-dev 2004-05-27 08:53:24 UTC
Also upgrade to gtk+-2.4.1 if you haven't already.
Comment 20 Jerry Kilpatrick 2004-05-27 10:56:10 UTC
I still get no backtrace when this crashes like this.

If I file gaim.
/usr/bin/gaim: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.4.1, dynamically linked (uses shared libs), not stripped

Then I gdb gaim
(gdb) run
Starting program: /usr/bin/gaim
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Detaching after fork from child process 8996.
Detaching after fork from child process 8997.
Detaching after fork from child process 8998.
The program 'gaim' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 21325 error_code 3 request_code 10 minor_code 0)
  (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.)
 
Program exited with code 01.
(gdb) bt
No stack.

I am running gaim-0.77-r2 (+debug) and gtk+-2.4.1
Comment 21 Don Seiler (RETIRED) gentoo-dev 2004-05-27 11:57:13 UTC
13:11 #gaim: < ChipX86> rizzo: that's a known bug, but I've never been able to 
                        find the cause of it
13:52 < ChipX86> rizzo: I've never been able to figure that out :/
13:52 < ChipX86> may just disable that


So I'm marking this upstream.  I wouldn't file a bug with them as Chip is probably just going to remove the visualization anyway.
Comment 22 Jerry Kilpatrick 2004-05-27 12:00:28 UTC
Thanks guys, as long as I have mouse gestures, I don't care if I can see them or not.