LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Reviews Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2020, 07:53 AM   #1
Amarok19
LQ Newbie
 
Registered: Jan 2020
Posts: 3

Rep: Reputation: Disabled
`X Error: BadWindow` in an app I'm trying to package


I'm helping package an app to a snap. I'm currently stuck on an issue regarding display / graphics / window management. The snap has built correctly, but when I try to run it, I get this:

Code:
X Error:  BadWindow
  Request Major code 20 ()
  ResourceID 0x0
  Error Serial #18
  Current Serial #18
The problem is I have no idea which component spits this out. Should I look in Wayland docs, should I search gnome-shell documentation?

The display stack is as follows:
Code:
[setlakk@setlakk ~]$ inxi -Gxx
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Dell 
  driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0416 
  Device-2: AMD Mars XTX [Radeon HD 8790M] vendor: Dell driver: radeon 
  v: kernel bus ID: 01:00.0 chip ID: 1002:6606 
  Display: wayland server: Fedora Project X.org 1.20.6 driver: radeon 
  compositor: gnome-shell resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 19.2.8 
  compat-v: 3.0 direct render: Yes
 
Old 01-21-2020, 10:47 AM   #2
CyDFect
LQ Newbie
 
Registered: May 2019
Posts: 11

Rep: Reputation: Disabled
A BadWindow error is a runtime error for a C program that uses Xlib. Typically it occurs when a window ID is invalid. What program are you packaging? Without knowing more it is hard to tell exactly what the problem is.
 
Old 01-21-2020, 11:12 AM   #3
Amarok19
LQ Newbie
 
Registered: Jan 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
It's WhatPulse (https://whatpulse.org/).

The first sentence of your post is actually the core of what I wanted to learn here - I didn't know in which component the error occurs, so I didn't know where to start.
I'm afraid at this point I have to set up some debugging environment. WhatPulse uses Qt 5 for all GUI-related stuff, I think there is no easy way to learn at which point the error occurs. The program uses only one window and never spawns additional ones. This single window initially displays correctly and after a split-second this error is thrown. As I said - it looks like an issue requiring debugging up close
 
Old 01-21-2020, 11:15 AM   #4
CyDFect
LQ Newbie
 
Registered: May 2019
Posts: 11

Rep: Reputation: Disabled
I don't know much about QT, but if only one window is ever created then it sounds like the window ID is somehow changing after being mapped. Remember that everything is a window in X, menus, tooltips, etc.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I fix "Error: BadWindow (invalid window parameter)" ShellyCat Linux - Desktop 1 08-17-2007 10:42 AM
getting "X Error: BadWindow (invalid Window parameter)" dipk_23 Programming 1 05-01-2007 12:43 PM
fbsetbg error - X Error: BadWindow geeman2.0 Linux - Software 2 12-19-2005 10:12 AM
Nvidia problems with Xorg: X Error of failed request: BadWindow (invalid Window para s1l3ntbob Debian 2 11-05-2005 06:36 PM
X Error: BadWindow invalid Window parameter 1702fp Slackware 7 10-27-2005 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration