public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Starting VirtualBox 5 GUI creates two windows, but only with Cygwin/X
@ 2016-03-27 18:34 Basin Ilya
  2016-03-30 13:18 ` Jon Turney
  0 siblings, 1 reply; 3+ messages in thread
From: Basin Ilya @ 2016-03-27 18:34 UTC (permalink / raw)
  To: cygwin

Hi list.

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

I upgraded my Cygwin installation today, but the problem did't go away.
Before the upgrade I had some messages appear in XWin.0.log, but now
they're gone:

    [656077.648] winMultiWindowXMsgProcErrorHandler - ERROR: BadWindow
(invalid Window parameter)
    [656077.664] winMultiWindowXMsgProcErrorHandler - ERROR: BadWindow
(invalid Window parameter)
    [656077.664] winMultiWindowXMsgProcErrorHandler - ERROR: BadWindow
(invalid Window parameter)

I start the server from shell using an alias:

	alias runx='run xwin -multiwindow -noprimary'

I have this at the end of my ~/.ssh/config:

Host *
    ForwardX11Trusted yes
    ForwardX11 yes


--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Starting VirtualBox 5 GUI creates two windows, but only with Cygwin/X
  2016-03-27 18:34 Starting VirtualBox 5 GUI creates two windows, but only with Cygwin/X Basin Ilya
@ 2016-03-30 13:18 ` Jon Turney
  2016-03-30 19:39   ` Basin Ilya
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Turney @ 2016-03-30 13:18 UTC (permalink / raw)
  To: cygwin; +Cc: Basin Ilya

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)

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Starting VirtualBox 5 GUI creates two windows, but only with Cygwin/X
  2016-03-30 13:18 ` Jon Turney
@ 2016-03-30 19:39   ` Basin Ilya
  0 siblings, 0 replies; 3+ messages in thread
From: Basin Ilya @ 2016-03-30 19:39 UTC (permalink / raw)
  To: cygwin

[-- 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-30 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-27 18:34 Starting VirtualBox 5 GUI creates two windows, but only with Cygwin/X Basin Ilya
2016-03-30 13:18 ` Jon Turney
2016-03-30 19:39   ` Basin Ilya

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).