https://bugs.winehq.org/show_bug.cgi?id=37614
Bug ID: 37614 Summary: Applications do not always start inside a configured virtual desktop Product: Wine Version: 1.7.31 Hardware: x86 OS: Linux Status: NEW Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Distribution: ---
Created attachment 50062 --> https://bugs.winehq.org/attachment.cgi?id=50062 screenshot
I noticed some strangeness with virtual desktops. Configuring one (either via winetricks or winecfg) and then starting e.g., notepad/regedit starts the application outside of the virtual desktop.
To ensure it wasn't a race, I did 'wineserver -w' (and also added a sleep of 10 seconds), but the problem remains. After a few tries (usually 2-3), the application will start inside the desktop, and from there, it seems to always work as expected.
Commandline used: $ winetricks -q vd=1024x768 ; wineserver -w ; sleep 10 ; notepad
screenshot attached.
[austin@localhost ~]$ xfwm4 --version This is xfwm4 version 4.10.1 (revision 3918e6b) for Xfce 4.10 Released under the terms of the GNU General Public License. Compiled against GTK+-2.24.24, using GTK+-2.24.25.
Build configuration and supported features: - Startup notification support: Yes - XSync support: Yes - Render support: Yes - Xrandr support: Yes - Embedded compositor: Yes - KDE systray proxy (deprecated): No [austin@localhost ~]$ wine --version wine-1.7.31-99-g5ecea72
https://bugs.winehq.org/show_bug.cgi?id=37614
zippy gohabsgo60@yahoo.ca changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gohabsgo60@yahoo.ca
--- Comment #1 from zippy gohabsgo60@yahoo.ca --- (In reply to Austin English from comment #0)
To ensure it wasn't a race, I did 'wineserver -w' (and also added a sleep of 10 seconds), but the problem remains. After a few tries (usually 2-3), the application will start inside the desktop, and from there, it seems to always work as expected.
same here but the virtual desktop gets flaky again when i run winetricks, even if i don't change any settings.
btw, i always get the expected behavior if i run notepad with e.g.,
wine explorer /desktop=MyDesktop,640x480 notepad
https://bugs.winehq.org/show_bug.cgi?id=37614
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source CC| |imwellcushtymelike@gmail.co | |m
https://bugs.winehq.org/show_bug.cgi?id=37614
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hramrach@gmail.com
--- Comment #2 from Rosanne DiMesio dimesio@earthlink.net --- *** Bug 39169 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37614
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de Target Milestone|--- |1.8.0
--- Comment #3 from Sebastian Lackner sebastian@fds-team.de --- I've tracked down the race condition and it should be easy to fix. The problem occurs when:
* Thread 1 calls GetDesktopWindow() and is responsible for setting up the desktop. * Desktop process finishes CreateWindow call. The desktop is now partially initialized, but still has size 0x0. * Thread 2 calls GetDesktopWindow() and receives a valid handle. The code assumes that the desktop is already initialized, but actually it isn't.
The relevant function is X11DRV_CreateDesktopWindow, which doesn't handle partially initialized desktops. I think its easy enough to fix this annoying bug before the 1.8 release, assigning to myself. (But other people are also welcome to help searching for the best solution of course.)
https://bugs.winehq.org/show_bug.cgi?id=37614
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=37614
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #4 from Austin English austinenglish@gmail.com --- Nice find, thanks Sebastian.
https://bugs.winehq.org/show_bug.cgi?id=37614
Anders Jonsson anders.jonsson@norsjovallen.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |anders.jonsson@norsjovallen | |.se
https://bugs.winehq.org/show_bug.cgi?id=37614
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- This is still an issue, and for me at least the rate has increased from almost never to a few times in a hundred tests.
https://bugs.winehq.org/show_bug.cgi?id=37614
Lucian Poston lucianposton@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lucianposton@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=37614
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #6 from winetest@luukku.com --- Bug 38813 dupe or related. Has a download.
https://bugs.winehq.org/show_bug.cgi?id=37614
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adrien_fernandes2@hotmail.c | |om
--- Comment #7 from Anastasius Focht focht@gmx.net --- *** Bug 42978 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37614
--- Comment #8 from Anastasius Focht focht@gmx.net --- *** Bug 42643 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37614
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=37614
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mark_k@iname.com
--- Comment #9 from Ken Sharp imwellcushtymelike@gmail.com --- *** Bug 38813 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37614
--- Comment #10 from Ken Sharp imwellcushtymelike@gmail.com --- Still occurs in Wine 4.18.
https://bugs.winehq.org/show_bug.cgi?id=37614
--- Comment #11 from Ken Sharp imwellcushtymelike@gmail.com --- I cannot recreate this using Wine 7.9 using notepad or winecfg. Can someone else try? Maybe it's been fixed?
https://bugs.winehq.org/show_bug.cgi?id=37614
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #12 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- (In reply to Ken Sharp from comment #11)
I cannot recreate this using Wine 7.9 using notepad or winecfg. Can someone else try? Maybe it's been fixed?
Hello,
I created a fresh wineprefix on wine 7.9 and ran winecfg to set a 1024x768 virtual desktop.
Then I made a 100 iterations loop of "notepad; wineserver -w" followed by a few manual run of winecfg, regedit, notepad and taskmgr. The issue didn't occur once.
Regards.
https://bugs.winehq.org/show_bug.cgi?id=37614
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED
--- Comment #13 from Austin English austinenglish@gmail.com --- (In reply to Olivier F. R. Dierick from comment #12)
(In reply to Ken Sharp from comment #11)
I cannot recreate this using Wine 7.9 using notepad or winecfg. Can someone else try? Maybe it's been fixed?
Hello,
I created a fresh wineprefix on wine 7.9 and ran winecfg to set a 1024x768 virtual desktop.
Then I made a 100 iterations loop of "notepad; wineserver -w" followed by a few manual run of winecfg, regedit, notepad and taskmgr. The issue didn't occur once.
I can't reproduce either (in 500 runs), nor have I seen anyone seen any reports of this recently elsewhere.
Unfortunately my current setup can't compile very old wine (5.0 fails to build here); would be curious to know what fixed this (I suppose there's a small chance it could've been fixed/worked around in X11 instead..).
Anyway, works here, and I don't have 1.7.31/4.18 to see if it was wine or X11.
https://bugs.winehq.org/show_bug.cgi?id=37614
--- Comment #14 from Ken Sharp imwellcushtymelike@gmail.com --- I have some pre-built versions of Wine installed back to 2.0.5 and I couldn't recreate the issue, so this may have been fixed outside of Wine.
I also tried 1.8.7 (and earlier) but it crashes out badly.
I also discovered that X11 has a window (client) limit - who knew?
https://bugs.winehq.org/show_bug.cgi?id=37614
--- Comment #15 from Ken Sharp imwellcushtymelike@gmail.com --- Actually, using schroot magic... Tested >1000 times with Wine 1.7.0 using winecfg and notepad and could not recreate this behaviour.
https://bugs.winehq.org/show_bug.cgi?id=37614
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.10.