X error of failed request badwindow invalid window parameter

This technote identifies a defect where attempts to use the IBM® Rational ClearCase 7.0 xclearcase GUI on Solaris 10 results in the error "X Error of failed request: BadWindow (invalid Window parameter)".

Problem

This technote identifies a defect where attempts to use the IBM® Rational ClearCase 7.0 xclearcase GUI on Solaris 10 results in the error «X Error of failed request: BadWindow (invalid Window parameter)».

Symptom

Attempts to run xclearcase on some Solaris 10 hosts results in the following error:


X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 20 X_GetProperty
Minor opcode of failed request: 0
Resource id in failed request: 0
Serial number of failed request: 242
Next serial number to be used: 243

Note: This error occurs on Solaris 10 running ClearCase 7.0, 7.0 iFix01 & iFix02 and 7.0.0.1 (Fix Pack 1), but does not on all Solaris 10 hosts.

Cause

Defect PK39214 was opened to investigate this issue which was determined to be caused by Solaris patch: 120410.

The library xiiimp.so.2 located in /usr/openwin/lib/locale/common does not work well with xclearcase.

The xiiimp.so.2 library is one of the files modified by the Sun® operating system (OS) patch 120410.

True cause of the problem has been linked to the update of the xiiimp.so.2 library by this patch.

Resolving The Problem

The application of SunOS patch 120410-23 is required to resolve this issue.

Note: The minimum prerequisite for this patch 119059-24.

WORKAROUND:

Set the language environment variable LC_CTYPE or LC_ALL to C.

This setting can be verified by administering the locale command:


% locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=C

[{«Product»:{«code»:»SSSH27″,»label»:»Rational ClearCase»},»Business Unit»:{«code»:»BU053″,»label»:»Cloud & Data Platform»},»Component»:»GUI: xclearcase»,»Platform»:[{«code»:»PF027″,»label»:»Solaris»}],»Version»:»7.0;7.0.0.1″,»Edition»:»»,»Line of Business»:{«code»:»LOB45″,»label»:»Automation»}}]

evolves

Level 2
Level 2
Posts: 10
Joined: Fri May 12, 2017 4:30 am

X Error of failed request: BadWindow (invalid Window parame

Hi,
after an system update I can not start my starcraft 2 anymore, worked problemless before.

I can start the Battlenet Client, but it doesnt continue, sometimes it tears the screen, sometimes nothing happen, but just the error below.

Code: Select all

$ X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  40 (X_TranslateCoords)
  Resource id in failed request:  0x400266
  Serial number of failed request:  456
  Current serial number in output stream:  456
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  10 (X_UnmapWindow)
  Resource id in failed request:  0x1a00001
  Serial number of failed request:  204
  Current serial number in output stream:  207

I have no idea, need your help. I tried wine staging with version 2.x too

User avatar

Bob Wya

Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: X Error of failed request: BadWindow (invalid Window pa

Post

by Bob Wya » Mon Jan 22, 2018 7:14 am

evolves wrote:i have reinstalled everything already,
what can I test exactly?

@evolves

You could test with:

Code: Select all

export WINEDEBUG=+x11drv
wine 'Battle.net Launcher.exe'

and post the terminal output here.

You would want to test with Wine Staging 2.21 — since Wine 3.0 doesn’t currently support the Battle.net client fully.

Bob

User avatar

Bob Wya

Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: X Error of failed request: BadWindow (invalid Window pa

Post

by Bob Wya » Mon Jan 29, 2018 7:44 am

@evolves,

Nothing is leaping out at me in that log file…

Have you tested using a Wine Virtual Desktop?

Have you tested launching Starcraft II directly with (32-bit WINEPREFIX):

Code: Select all

cd "${WINEPREFIX}/drive_c/Program Files/StarCraft II"
wine start 'SupportSC2Switcher.exe'

? Without starting the problematic Battle.net client at all…

Bob

evolves

Level 2
Level 2
Posts: 10
Joined: Fri May 12, 2017 4:30 am

Re: X Error of failed request: BadWindow (invalid Window pa

Post

by evolves » Fri Feb 02, 2018 1:04 am

Bob Wya wrote:@evolves,

Nothing is leaping out at me in that log file…

Have you tested using a Wine Virtual Desktop?

Have you tested launching Starcraft II directly with (32-bit WINEPREFIX):

Code: Select all

cd "${WINEPREFIX}/drive_c/Program Files/StarCraft II"
wine start 'SupportSC2Switcher.exe'

? Without starting the problematic Battle.net client at all…

Bob

U are a genius, it works now!

Thanks a lot. This damn bclient, it sucks alot. The error message was even strange that I couldnt start the game, didnt expect it could be coming from the client.

evolves

Level 2
Level 2
Posts: 10
Joined: Fri May 12, 2017 4:30 am

Re: X Error of failed request: BadWindow (invalid Window pa

Post

by evolves » Wed Feb 07, 2018 4:10 am

After a recent update in my nvidia driver I cannot start the game anymore at all:

Code: Select all

fixme:wevtapi:EvtSubscribe ((nil) (nil) L"System" L"*[System[(EventID=4101)]]" (nil) (nil) 0x11b9e40 1) stub
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  167
  Current serial number in output stream:  168
fixme:ver:GetCurrentPackageId (0x33fd9c (nil)): stub

do you have a way to avoid that? I am still starting the game directly that worked before.

➜ ~ steam -tcp &
[1] 3200
➜ ~ Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
unlinked 0 orphaned pipes
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
[1220/144015:WARNING:proxy_service.cc(646)] PAC support disabled because there is no system implementation
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
GLError: 1282
Generating new string page texture 6: 128×256, total string texture memory is 131.07 KB
Generating new string page texture 7: 48×256, total string texture memory is 180.22 KB
Generating new string page texture 8: 256×256, total string texture memory is 442.37 KB
Generating new string page texture 9: 64×256, total string texture memory is 507.90 KB
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Generating new string page texture 11: 512×256, total string texture memory is 1.03 MB
Generating new string page texture 12: 384×256, total string texture memory is 1.43 MB
Generating new string page texture 13: 24×256, total string texture memory is 1.45 MB
Generating new string page texture 14: 16×256, total string texture memory is 1.47 MB
Generating new string page texture 15: 32×256, total string texture memory is 1.50 MB
Installing breakpad exception handler for appid(steam)/version(1355957371_client)
Generating new string page texture 20: 8×256, total string texture memory is 1.51 MB
SteamUpdateUI: An X Error occurred
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 40 (X_TranslateCoords)
Resource id in failed request: 0xbaa7a0
Serial number of failed request: 24230
➜ ~ Installing breakpad exception handler for appid(steam)/version(1355957371_client)

➜ ~ uname -a
Linux bigb0x 3.2.0-34-generic #53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

I am using Windows Subsystem for Linux (WSL), and I have just installed xcrysden on it with no apparent problem, however when I try to run it, I repeatedly get the Following error:

X Error of failed request: BadWindow (invalid Window parameter)
  Major opcode of failed request: 3
  ResourceID in failed request: 0xffffffff
  Serial number of failed request: 761

Now running graphical interfaces in WSL is a bit annoying. To do it, I use the Xming X server for Windows. I set the DISPLAY variable via export DISPLAY=localhost:0.0, and that does the trick for me. I can run for example gnuplot with no problem this way.

Why does xcrysden fail to launch in this situation?

Here is the full STDERR Stream that I get:

Running on platform : unix
Operating system : Linux Package ImageMagick's convert: /usr/bin/convert
Package ImageMagick's import: /usr/bin/import
Package Ppmtompeg: /usr/bin/ppmtompeg
Package Babel: /usr/bin/babel
Executing: /usr/lib/xcrysden/ftnunit
X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 3
    ResourceID in failed request: 0xffffffff
    Serial number of failed request: 759
X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 3
    ResourceID in failed request: 0xffffffff
    Serial number of failed request: 761
Error in startup script: Togl: couldn't get visual
    while executing
"togl .mesa -width 400 -height 400 -ident
.mesa -rgba true -redsize 1 -greensize 1 -blu..."
    (procedure "PlaceGlobWin" line 105)
    invoked from within
"PlaceGlobWin 0 [expr round(650 * $fac1)] [expr round(650 * $fac1)]"
    (procedure "ViewMol" line 25)
    invoked from within
"ViewMol ."
    invoked from within
"if [file exists $filedir] {
                # pop-up Viewer
                ViewMol .
                openExtStruct 3 crystal external  [list sh $system(TOPDIR)/scripts/pwi2xsf.sh]  pwi2xsf..."
    (procedure "parseComLinArg" line 89)
    invoked from within
"parseComLinArg [lrange $argv 2 end]"
invoked from within
"if { [llength $argv] > 2 } {
    parseComLinArg [lrange $argv 2 end]
} else {
    ViewMol .
}"
    (file "/usr/share/xcrysden/Tcl/xcInit.tcl" line 609)
X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 12
    ResourceID in failed request: 0xffffffff
    Serial number of failed request: 764  

The following piece of JNA using JNA 4.2.2 crashes — JVM exit with following if you run it whilst minimizing and maximizing windows. Happens on Ubuntu 16.04, but more often on Redhat 6u2.

X error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 20 (X_GetProperty)
...

I’m guessing the Window IDs are valid when they are returned from XQueryTree but become invalid before call to XGetWMName. The problem is this causes JVM exit, not just an Exception which I could handle nicely. How do I avoid this issue?

public class X11WindowFinder {

    private X11 x11;

    public X11WindowFinder() {
        x11 = X11.INSTANCE;
    }

    public List<Window> find(Pattern title) {
        Display display = x11.XOpenDisplay(null);
        Window root = x11.XDefaultRootWindow(display);
        List<Window> windows = recurse(x11, display, root, title);
        x11.XCloseDisplay(display);
        return windows;
    }

    private synchronized List<Window> recurse(X11 x11, Display display, Window root, Pattern pattern) {
        List<Window> windows = new ArrayList<>(1);
        X11.WindowByReference windowRef = new X11.WindowByReference();
        X11.WindowByReference parentRef = new X11.WindowByReference();
        PointerByReference childrenRef = new PointerByReference();
        IntByReference childCountRef = new IntByReference();

        x11.XQueryTree(display, root, windowRef, parentRef, childrenRef, childCountRef);
        if (childrenRef.getValue() == null) {
            return Collections.emptyList();
        }


        long[] ids = {};

        if (Native.LONG_SIZE == Long.BYTES) {
            ids = childrenRef.getValue().getLongArray(0, childCountRef.getValue());
        } else if (Native.LONG_SIZE == Integer.BYTES) {
            int[] intIds = childrenRef.getValue().getIntArray(0, childCountRef.getValue());
            ids = new long[intIds.length];
            for (int i = 0; i < intIds.length; i++) {
                ids[i] = intIds[i];
            }
        }

        for (long id : ids) {
            Window child = new Window(id);
            X11.XTextProperty name = new X11.XTextProperty();
            x11.XGetWMName(display, child, name);
            String value = name.value;
            if (value != null) {
                System.out.println(String.format("Found window %s free %s", value, name));
            }
            if (value != null && pattern.matcher(value).matches()) {
                windows.add(child);
            }
            windows.addAll(recurse(x11, display, child, pattern));
        }
        return windows;
    }

    public static void main(String[] args) {
        X11WindowFinder finder = new X11WindowFinder();
        while (true) {
            finder.find(Pattern.compile(".*Firefox.*"));
        }
    }
}

Looks like no one’s replied in a while. To start the conversation again, simply

ask a new question.

Hi everyone!

Here is the issue:

Im using X11 to access and SGI (Silicon Graphics) IRIX system. I had it working once, then I rebooted both machines and never again has it worked. When I run the command

Xnest :1 -query 192.168.X.X

the IRIX login window appears and I can log in and then all the desktop elements show up as they should except windows. When ever I try to get a window open from a tool bar or console window I get this on the sgi’s console and nothing happens:

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

Major opcode of failed request: 128 (XINERAMA)

Minor opcode of failed request: 1 (XINERAMAGetState)

Resource id in failed request: 0x570000000

Serial number of failed request: 668

Current serial number in output stream: 668

I hope that someone can figure this out 😟

Thanks!!!

also as a note I may have run the 10.4.10 update before i disconnected everything, but I don’t remember.

Intel iMac,

Mac OS X (10.4.10)

Posted on Aug 26, 2007 9:09 AM

Hi,

Xnest :1 -query 192.168.X.X

In the first post of this thread you write «Xnest» gives XINERAMA errors, but in the second post you write «Xnest» has
its own issue (toolbar drawing problem).

So I assume that in the first post you actually mean «X :1 -query» gives the XINERAMA errors. If this is the case, then try


X :1 -xinerama -query sgihost

Posted on Aug 27, 2007 9:52 PM

X11 BadWindow (invalid Window parameter)

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [SOLVED] BadWindow errors following updates

  1. BadWindow errors following updates

    Until some point in the last week, I have been quite happily running Neverwinter Nights and GNU Backgammon. However, both now refuse to run.

    I haven’t been tinkering with my system and I haven’t installed any new software apart from routine updates — which makes me suspect my problems are related to the updates (hence my posting here, rather than in the Games Forum).

    Neverwinter Nights gives me the following messages when run from a terminal:

    Code:

      X Error of failed request:  BadWindow (invalid Window parameter)
      Major opcode of failed request:  137 (NV-GLX)
      Minor opcode of failed request:  4 ()
      Resource id in failed request:  0x440000f
      Serial number of failed request:  32
      Current serial number in output stream:  32

    and running gnubg in a terminal gives:

    Code:

    GNU Backgammon 0.9.0
    
    Copyright, 1999-2004 by Gary Wong, 2004-2008 GNU Backgammon is the legal
    property of its authors.
    
    GNU Backgammon is free software, covered by the GNU General Public License
    version 3 or later, 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 GNU Backgammon. Type 
    "show warranty" for details.
    
    Python supported.
    SQLite database supported.
    Window system supported.
    External players supported.
    XML match equity files supported.
    Long RNG seeds supported.
    3d Boards supported.
    External commands supported.
    ESD sound system supported.
    
    (gnubg:3616): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
    
    (gnubg:3616): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
    
    (gnubg:3616): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
    
    ***WARNING***
    
    Note that gnubg does not use the gnubg.bd file.
    You should obtain the file gnubg_ts0.bd or generate
    it yourself using the program 'makebearoff'.
    You can generate the file with the command:
    makebearoff -t 6x6 -f gnubg_ts0.bd
    You can also generate other bearoff databases; see
    README for more details
    
    set gui showids on
    (No game) (No game) The program 'gnubg' received an X Window System error.
    This probably reflects a bug in the program.
    The error was 'BadWindow (invalid Window parameter)'.
      (Details: serial 665 error_code 3 request_code 137 minor_code 4)
      (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’m guessing this is something to do with the X Window settings, but I’d appreciate any help.

    I’m running Ubuntu 10.04, AMD 64 bit Desktop with an NVidia 8500GT graphics card, using version 260.19.29 of the NVidia proprietory drivers.

    TIA,

    Ian


  2. Smile Re: BadWindow errors following updates

    Try to reinstall lastest video drivers. It works for me.

    (I installed lastest wine thinking this is a wine problem and nothing)


  3. Re: BadWindow errors following updates

    Thanks for the suggestion — I’ll give it a go.

    Getting the NVidia drivers working originally was a bit of a nightmare, so I can’t say I’m looking forward to it!


  4. Re: BadWindow errors following updates

    Thanks godbhaal — reinstalling the drivers seems to have fixed things.

    And the reinstallation went a lot smoother than the original one, as well!

    Thanks again!


Bookmarks

Bookmarks


Posting Permissions

Forum rules
Before you make a thread asking for help, read this.

milon

Party member
Posts: 423
Joined: Thu Jan 18, 2018 9:14 pm

[SOLVED] BadWindow error on Linux Mint 19 XFCE

Solved! Turns out the culprit was a newer version of Mesa, which broken OpenGL 2 compatibility with Intel 3rd Gen GPU’s. Solution is here: viewtopic.php?f=4&t=85719&p=223077#p223077

====

I have an old Intel Atom PC system that I play around with. Until recently, I had Linux Mint 18 Cinnamon installed on it, and Love worked great with it — I just had to install the PPA and then find Love in the Software Manager. Easy!

However, Linux Mint 19 just recently came out and I decided to try XFCE (because old hardware is old, lol). I did a fresh install (including wiping the HDD) and did a typical XFCE install of LM19. Everything works great so far — except Love. :( I’m getting a vague BadWindow error when I try to do anything involving the Love executable: double-click a .love file, use the «love» command, call a .love file using «love», etc. I have no idea what to try next. I’m still newish to Linux, so I don’t know how to look into driver issues, etc. Any help would be greatly appreciated. Here’s a copy/paste of some terminal stuff to show the current state:

Code: Select all

[email protected]:~$ love
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x4600014
  Serial number of failed request:  299
  Current serial number in output stream:  304

[email protected]:~$ love --version
LOVE 11.1 (Mysterious Mysteries)

[email protected]:~$ sudo apt-get install libgl1-mesa-dev
[sudo] password for cooper: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgl1-mesa-dev is already the newest version (18.0.5-0ubuntu0~18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

[email protected]:~$ sudo apt-get install libgl1-mesa-glx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgl1-mesa-glx is already the newest version (18.0.5-0ubuntu0~18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

[email protected]:~$ sudo apt-get install libsdl2-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libsdl2-dev is already the newest version (2.0.8+dfsg1-1ubuntu1.18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

[email protected]:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 19 Tara
Release:	19
Codename:	tara

Last edited by milon on Thu Sep 13, 2018 6:12 pm, edited 1 time in total.

User avatar

pgimeno

Party member
Posts: 3343
Joined: Sun Oct 18, 2015 2:58 pm

Re: BadWindow error on Linux Mint 19 XFCE

Post

by pgimeno » Mon Sep 10, 2018 7:39 pm

Could you paste the output of this? (glxinfo is in package mesa-utils, so install that first if you don’t have it)

Also, what’s your graphics card (if not obvious from the above output)?

User avatar

pgimeno

Party member
Posts: 3343
Joined: Sun Oct 18, 2015 2:58 pm

Re: BadWindow error on Linux Mint 19 XFCE

Post

by pgimeno » Mon Sep 10, 2018 10:25 pm

Hm, I’m not very familiar with drivers and requirements. That reads to me as supporting OpenGL 1.4, which is old, but also OpenGLES 2.0, which I think is OK but I’m not sure. Funnily, I can’t find LÖVE’s OpenGL requirements in the places I consider more obvious: the front page, the Wiki front page, the Wiki Getting Started page, and the 11.0 release notes. I think there was an environment setting to force it to use OpenGL ES, but I can’t recall which.

But does «Mesa DRI» mean it’s using/requiring DRI drivers instead of GLX? Do you have libgl1-mesa-dri installed?

— If not, try to install it and perhaps uninstall libgl1-mesa-glx.
— If you do, try uninstalling it to see if that forces it to use GLX.

These are basically shots in the dark because I have no idea whether libgl1-mesa-dri is capable on itself of rendering accelerated OpenGL, or whether GLX is required for LÖVE. At worst, you just revert everything and you’d be like you’re now.

Edit: Also see here: https://bugs.launchpad.net/ubuntu/+sour … bug/696190 for how to enable OpenGL 2.0 for that card, which I don’t know if it will help.

milon

Party member
Posts: 423
Joined: Thu Jan 18, 2018 9:14 pm

Re: BadWindow error on Linux Mint 19 XFCE

Post

by milon » Wed Sep 12, 2018 3:50 pm

I’ll try what you suggested when I have time, but for now this is really confusing. I followed the link you gave, and installed driconf. Here’s what I get:

Code: Select all

[email protected]:~$ driconf
Screen "0" is not direct rendering capable.
Driver "vmwgfx" is not installed or does not support configuration.
Driver "vmwgfx" is not installed or does not support configuration.
Driver "radeonsi" is not installed or does not support configuration.
Driver "radeonsi" is not installed or does not support configuration.
Driver "radeonsi" is not installed or does not support configuration.
Driver "vmwgfx" is not installed or does not support configuration.
Driver "radeonsi" is not installed or does not support configuration.
Driver "vmwgfx" is not installed or does not support configuration.
Driver "radeonsi" is not installed or does not support configuration.
Driver "vmwgfx" is not installed or does not support configuration.

[email protected]:~$ glxinfo | grep render
direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel(R) Pineview 
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap, 

Yes, the glxinfo output ends with a comma. I tried twice to make sure. The glxinfo command says it *is* direct render capable. Driconf thinks otherwise, and I couldn’t seem to add/edit any of the settings as a result. Head scratching intensifies.

grump

Party member
Posts: 947
Joined: Sat Jul 22, 2017 7:43 pm

Re: BadWindow error on Linux Mint 19 XFCE

Post

by grump » Wed Sep 12, 2018 4:11 pm

milon wrote: ↑Wed Sep 12, 2018 3:50 pm
Driver «vmwgfx» is not installed or does not support configuration.

Are you trying this in a VMWare VM? Try installing open-vm-tools or VMWare tools.

milon

Party member
Posts: 423
Joined: Thu Jan 18, 2018 9:14 pm

Re: BadWindow error on Linux Mint 19 XFCE

Post

by milon » Wed Sep 12, 2018 6:29 pm

No, I’m not using VMWare. Not sure why that was listed in driconf.

I tried installing libgl1-mesa-dri, but it reported as being already installed. So I tried uninstalling it, and it said that would remove 110 packages and free up over 300MB of space. I thought it was strange, but proceeded anyway. ‘Cause I’m smart that way! ;)

I’m posting this from my phone, as it seems to have removed my entire GUI, and now only boots to CLI and gives occasional vague error messages like «switch case 0x5e not processed». :shock:

Oops! Good thing this is just my screwing around system (mostly). When I have more time, I think I’ll just reinstall Linux and go with Cinnamon again. It didn’t give me any trouble like this before.

User avatar

pgimeno

Party member
Posts: 3343
Joined: Sun Oct 18, 2015 2:58 pm

Re: BadWindow error on Linux Mint 19 XFCE

Post

by pgimeno » Wed Sep 12, 2018 11:01 pm

Sorry :(

Yeah, if removing something means to remove a big bunch of packages with it, don’t accept, at least not without being positive you want all of these packages removed.

I’ve now checked that in my system, the xorg package depends on libgl1-mesa-dri, and I wouldn’t be surprised if your display manager depends on xorg (I don’t use a display manager so I can’t tell).

You probably have the list of packages it uninstalled in the apt log /var/log/apt/term.log file, so you could install them again, but it’s going to be a bit tedious. I imagine there must be some easier way to reinstall a desktop; maybe tasksel.

milon

Party member
Posts: 423
Joined: Thu Jan 18, 2018 9:14 pm

Re: BadWindow error on Linux Mint 19 XFCE

Post

by milon » Thu Sep 13, 2018 11:02 am

No worries, really. I caused the problem and it’s not the first time I’ve b0rked it. It’s a big part of how I’ve been learning Linux — break it, learn why it broke, fix it, carry on. That’s what makes it my screwing around system! :)

And I’ll have to look into tasksel. Thanks for the tip.

milon

Party member
Posts: 423
Joined: Thu Jan 18, 2018 9:14 pm

[SOLVED] Re: BadWindow error on Linux Mint 19 XFCE

Post

by milon » Thu Sep 13, 2018 6:10 pm

LOL, so removing libgl1-mesa-dri didn’t just break the display manager, but it also somehow prevented apt-get from being able to acquire a lock, which meant no (easy) updates. I didn’t already have taskel, so I couldn’t install it easily. So, yeah, I wiped the drive and started fresh with Linux 19 Cinnamon. I keep everything of value backed up, and I have good notes about how to setup & configure everything I use, so it’s not that much of a pain.

Then I installed Love and gave it a go:

Code: Select all

[email protected]:~$ love
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x5400014
  Serial number of failed request:  299
  Current serial number in output stream:  304

So I was back to the original problem, and it appeared to be a Linux Mint 19 issue, rather than an XFCE one. I did a bunch more googling, and solved it!

This link explains the issue, but the summary is that a newer version of Mesa (presumably bundled with Mint 19) breaks support for OpenGL 2.1 on 3rd generation Intel GPU’s. This can be gotten around with driconf, except driconf wasn’t working for me (I still have no idea why). But that same page, and a link from it, explained how to manually edit the dri file to add an application-specific exception. For me, this meant editing /etc/drirc (as root) and after the initial <device>, I added the following:

Code: Select all

        <application name="love">
            <option name="stub_occlusion_query" value="true" />
            <option name="fragment_shader" value="true" />
        </application>

Worked like magic, and didn’t even have to restart! :D

Понравилась статья? Поделить с друзьями:

Читайте также:

  • X plane 11 ошибка steam api init
  • X error of failed request badmatch invalid parameter attributes wine
  • X plane 11 fatal error steam must be running to play this game
  • X owa error system web httpunhandledexception
  • X owa error microsoft exchange data storage userhasnomailboxexception

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии