Results 1 to 3 of 3

Thread: BadWindow error

  1. #1
    Join Date
    Aug 2008
    Location
    Mexico and Sweden
    Posts
    1,323

    Default BadWindow error

    openSUSE 13.1 64bit KDE

    My home directory shows .xsession-errors as a zero byte file. But there is a .xsession-errors-:0 file that repeatedly reports...

    Code:
    X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x2e00015
    Why is this error not being written to the .xsession-errors file, and is it something I should be concerned about?

    Thanks.

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,794
    Blog Entries
    3

    Default Re: BadWindow error

    Quote Originally Posted by ionmich View Post
    Why is this error not being written to the .xsession-errors file, ...
    Because it is being written to the ".xsession-errors-:0" file instead.

    I'm not sure if this is a choice of the desktop, or comes from the script that starts the desktop.

    And no, there's no reason for concern.

    A note on how it works. Some process (probably a script), early in the startup of your session redirects "stderr" to a file. Then everything else in your desktop just inherits that "stderr" file descriptor. The usual assumption is that nobody actually reads that unless they are investigating a particular problem.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. #3

    Default Re: BadWindow error

    Quote Originally Posted by nrickert View Post
    Because it is being written to the ".xsession-errors-:0" file instead.

    I'm not sure if this is a choice of the desktop, or comes from the script that starts the desktop.
    Actually this is set in KDM's configuration file, /usr/share/kde4/config/kdm/kdmrc:
    Code:
    # The file (relative to $HOME) to redirect the session output to. The
    # following character pairs are replaced:
    # - %d -> current display
    # - %u -> current user
    # - %r -> empty at first. See below.
    # - %% -> a single %
    # When the constructed filename cannot be used safely and the specification
    # contains %<stuff>r, other names will be tried - this time expanding %<stuff>r
    # to <stuff> followed by a random number.
    # Default is ".xsession-errors"
    ClientLogFile=.xsession-errors-%d
    As you can see here, the number behind the '-' (e.g. :0) depicts the current display, so if you would login as a second user in a separate X session, the messages would go to ~/.xsession-errors-:1 instead.

    And stdout gets redirected to that file as well.
    Last edited by wolfi323; 18-Oct-2014 at 11:06.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •