Hello Guest

X Error of failed request: BadWindow (invalid Window parameter)

  • 2 Replies
  • 3439 Views
Hey guys,

I am not sure if this is related to GLFW or LWJGL and if it is a bug or not. But every time I close my game window, this message pops up in my terminal:

Code: [Select]
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  3 (X_GetWindowAttributes)
  Resource id in failed request:  0x0
  Serial number of failed request:  2270
  Current serial number in output stream:  2271

I am not entirely sure what it means and why it shows up. Also, it does not affect anything as far as I know. It only happens when I close my game window inside the main loop. If I press the close button in the title bar, it works fine. I am working on Ubuntu 14.04 LTS 64 bits. Please let me know if you need any code or something.

Thanks in advance!
-TBJ

*

Offline Cornix

  • *****
  • 488
Re: X Error of failed request: BadWindow (invalid Window parameter)
« Reply #1 on: September 05, 2015, 17:10:17 »
Perhaps you are trying to close the window twice, look over your code and check.

Re: X Error of failed request: BadWindow (invalid Window parameter)
« Reply #2 on: September 05, 2015, 17:43:19 »
Yes, that was indeed the case. Thank you!