public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Basin Ilya <basinilya@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Starting VirtualBox 5 GUI creates two windows, but only with Cygwin/X
Date: Wed, 30 Mar 2016 19:39:00 -0000	[thread overview]
Message-ID: <56FC2B5D.1000101@gmail.com> (raw)
In-Reply-To: <56FBD212.80208@dronecode.org.uk>

[-- Attachment #1: Type: text/plain, Size: 2638 bytes --]

Hi.

With recent Cygwin the problem became harder to reproduce: it only works
once. On subsequent launches of VirtualBox the extra window appears in
the taskbar for about a second and then closes. You have to restart X
server to see the bug again.

In the meantime I installed xwininfo. Beside "xwinclip" it shows 3 or 2
children of the root window.

    xwininfo: Window id: 0x61 (the root window) (has no name)

      Root window id: 0x61 (the root window) (has no name)
      Parent window id: 0x0 (none)
         4 children:
         0x80000b "Oracle VM VirtualBox Manager": ("VirtualBox"
"VirtualBox")  770x550+8+30  +8+30
         0x800002 "VirtualBox": ("VirtualBox" "VirtualBox")
1366x768+0+0  +0+0
         0x800004 (has no name): ()  1x1+0+0  +0+0
         0x600001 "xwinclip": ()  500x500+1+1  +1+1

Closing the window with right click on taskbar does not change the
number of windows, just changes Map State of "VirtualBox" from
IsViewable to IsUnMapped.

On second run there's no "VirtualBox" at all. I think it's the one that
disappears quickly.

Could it be some signed/unsigned thing with window id counter in the X
server?



30.03.2016 16:18, Jon Turney пишет:
> On 27/03/2016 19:34, Basin Ilya wrote:
>> I often use X11 forwarding to run Linux programs with GUI. Recently
>> I upgraded from vbox 4 to version 
>> VirtualBox-5.0-5.0.16_105871_el6-1.x86_64. (My Linux host is 
>> headless Rhel 6.7 Server with xorg-x11-xauth package installed)
>> 
>> I noticed that when I type "VirtualBox" in shell and then close
>> its window the process remains running. Then I noticed that there's
>>  another hidden window in taskbar. I have to press Ctrl-C or close
>>  the second window to end the process.
>> 
>> This only happens when I connect from Windows and use cygwin xwin 
>> server (but not xming or Linux client)
>> 
>> The visible window is captioned "Oracle VM VirtualBox 
>> Manager@hostname" and the hidden one is captioned 
>> "VirtualBox@hostname"
>> 
>> It's not really hidden. There's a white pixel at the top-left edge
>>  of my second monitor
> 
> Thanks for reporting this.
> 
> I tried to reproduce this issue with that VirtualBox RPM on a Centos
>  6.7 VM, without success.
> 
> It's not unusual for X clients to create 1x1 pixel windows which
> only exist to receive events, but such windows are usually hidden by
>  making them InputOnly.
> 
> You could possibly explore this a bit using xwininfo, to determine
> if this is a bug with VirtualBox (where the window isn't being
> correctly marked as hidden) or XWin (where the window is being show,
> desipte the fact it should be hidden)
> 

[-- Attachment #2: first-run-after-close.txt --]
[-- Type: text/plain, Size: 2682 bytes --]


xwininfo: Window id: 0x61 (the root window) (has no name)

  Root window id: 0x61 (the root window) (has no name)
  Parent window id: 0x0 (none)
     4 children:
     0x800002 "VirtualBox": ("VirtualBox" "VirtualBox")  1366x768+0+0  +0+0
     0x80000b "Oracle VM VirtualBox Manager": ("VirtualBox" "VirtualBox")  770x550+8+30  +8+30
     0x800004 (has no name): ()  1x1+0+0  +0+0
     0x600001 "xwinclip": ()  500x500+1+1  +1+1


xwininfo: Window id: 0x600001 "xwinclip"

  Absolute upper-left X:  1
  Absolute upper-left Y:  1
  Relative upper-left X:  1
  Relative upper-left Y:  1
  Width: 500
  Height: 500
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnMapped
  Override Redirect State: no
  Corners:  +1+1  -865+1  -865-267  +1-267
  -geometry 500x500+1+1


xwininfo: Window id: 0x800002 "VirtualBox"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1366
  Height: 768
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnMapped
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-0  +0-0
  -geometry 1366x768+0+0


xwininfo: Window id: 0x800004 (has no name)

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1
  Height: 1
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnMapped
  Override Redirect State: no
  Corners:  +0+0  -1365+0  -1365-767  +0-767
  -geometry 1x1+0+0


xwininfo: Window id: 0x80000b "Oracle VM VirtualBox Manager"

  Absolute upper-left X:  8
  Absolute upper-left Y:  30
  Relative upper-left X:  8
  Relative upper-left Y:  30
  Width: 770
  Height: 550
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +8+30  -588+30  -588-188  +8-188
  -geometry 770x550+8+30


[-- Attachment #3: first-run-before-close.txt --]
[-- Type: text/plain, Size: 2682 bytes --]


xwininfo: Window id: 0x61 (the root window) (has no name)

  Root window id: 0x61 (the root window) (has no name)
  Parent window id: 0x0 (none)
     4 children:
     0x80000b "Oracle VM VirtualBox Manager": ("VirtualBox" "VirtualBox")  770x550+8+30  +8+30
     0x800002 "VirtualBox": ("VirtualBox" "VirtualBox")  1366x768+0+0  +0+0
     0x800004 (has no name): ()  1x1+0+0  +0+0
     0x600001 "xwinclip": ()  500x500+1+1  +1+1


xwininfo: Window id: 0x600001 "xwinclip"

  Absolute upper-left X:  1
  Absolute upper-left Y:  1
  Relative upper-left X:  1
  Relative upper-left Y:  1
  Width: 500
  Height: 500
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnMapped
  Override Redirect State: no
  Corners:  +1+1  -865+1  -865-267  +1-267
  -geometry 500x500+1+1


xwininfo: Window id: 0x800002 "VirtualBox"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1366
  Height: 768
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-0  +0-0
  -geometry 1366x768+0+0


xwininfo: Window id: 0x800004 (has no name)

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1
  Height: 1
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnMapped
  Override Redirect State: no
  Corners:  +0+0  -1365+0  -1365-767  +0-767
  -geometry 1x1+0+0


xwininfo: Window id: 0x80000b "Oracle VM VirtualBox Manager"

  Absolute upper-left X:  8
  Absolute upper-left Y:  30
  Relative upper-left X:  8
  Relative upper-left Y:  30
  Width: 770
  Height: 550
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +8+30  -588+30  -588-188  +8-188
  -geometry 770x550+8+30


[-- Attachment #4: second-run.txt --]
[-- Type: text/plain, Size: 2050 bytes --]


xwininfo: Window id: 0x61 (the root window) (has no name)

  Root window id: 0x61 (the root window) (has no name)
  Parent window id: 0x0 (none)
     3 children:
     0x80000b "Oracle VM VirtualBox Manager": ("VirtualBox" "VirtualBox")  770x550+8+30  +8+30
     0x800004 (has no name): ()  1x1+0+0  +0+0
     0x600001 "xwinclip": ()  500x500+1+1  +1+1


xwininfo: Window id: 0x600001 "xwinclip"

  Absolute upper-left X:  1
  Absolute upper-left Y:  1
  Relative upper-left X:  1
  Relative upper-left Y:  1
  Width: 500
  Height: 500
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnMapped
  Override Redirect State: no
  Corners:  +1+1  -865+1  -865-267  +1-267
  -geometry 500x500+1+1


xwininfo: Window id: 0x800004 (has no name)

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1
  Height: 1
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsUnMapped
  Override Redirect State: no
  Corners:  +0+0  -1365+0  -1365-767  +0-767
  -geometry 1x1+0+0


xwininfo: Window id: 0x80000b "Oracle VM VirtualBox Manager"

  Absolute upper-left X:  8
  Absolute upper-left Y:  30
  Relative upper-left X:  8
  Relative upper-left Y:  30
  Width: 770
  Height: 550
  Depth: 24
  Visual: 0x21
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x20 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +8+30  -588+30  -588-188  +8-188
  -geometry 770x550+8+30


[-- Attachment #5: Type: text/plain, Size: 218 bytes --]

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

      reply	other threads:[~2016-03-30 19:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-27 18:34 Basin Ilya
2016-03-30 13:18 ` Jon Turney
2016-03-30 19:39   ` Basin Ilya [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56FC2B5D.1000101@gmail.com \
    --to=basinilya@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).