Jump to content
Welcome to our new Citrix community!
  • 4

Continued problems with black screen at session start with Windows 10


Kevin Miller

Question

Hello all. Looking for some advice. 

 

We have a problem when a user launches a XenDesktop (7.17) and Windows 10 (1607) session the Windows shell does not load and presents a black screen. You can interact with Explorer via the task manager. There doesn't appear to be anything in the UPM or Windows logs that indicate an issue.

 

Adding AppData\Local\Microsoft\Windows\Caches to the UPM Directories to synchronize policy does not solve the problem. (https://docs.citrix.com/en-us/xenapp-and-xendesktop/current-release/whats-new/fixed-issues.html) #LC9215

 

I would appreciate any help you may have. So far Citrix support doesn't have an answer.

 

Below are the exclusions/synchronizations I have set.

 

Directories to syncronize:

 AppData\Local\Microsoft\Windows\Caches

 

Exclusion files:

*thumb*.db, *icon*.db

 

Exclusion Directories:

$Recycle.Bin
OneDrive
Dropbox
ShareFile
AppData\Local\Assembly\dl3
AppData\Local\ATT Connect
AppData\Local\Comms
AppData\Local\Downloaded Installations
AppData\Local\Dropbox
AppData\Local\Google\Chrome\User Data\Default\Cache
AppData\Local\Microsoft\CLR-v4.0_32
AppData\Local\Microsoft\GameDVR
AppData\Local\Microsoft\Group Policy
AppData\Local\Microsoft\Internet Explorer\Recovery
AppData\Local\Microsoft\Internet Explorer\DOMStore
AppData\Local\Microsoft\Media Player
AppData\Local\Microsoft\Messenger
AppData\Local\Microsoft\OneDrive
AppData\Local\Microsoft\OneNote
AppData\Local\Microsoft\Office\15.0\OfficeFileCache
AppData\Local\Microsoft\PlayReady
AppData\Local\Microsoft\Terminal Server Client
AppData\Local\Microsoft\Windows Mail
AppData\Local\Microsoft\Windows\Burn
AppData\Local\Microsoft\Windows Live
AppData\Local\Microsoft\Windows Live Contacts
AppData\Local\Microsoft\Windows\Temporary Internet Files
AppData\Local\Microsoft\Windows\Themes
AppData\Local\Microsoft\Windows\INetCache
AppData\Local\Microsoft\Windows\WER
AppData\Local\Microsoft\Windows\WebCache.old
AppData\Local\Microsoft\Windows\PriCache
AppData\Local\Microsoft\Windows\Application Shortcuts
AppData\Local\Microsoft\Windows\1033
AppData\Local\Microsoft\Windows\Explorer
AppData\Local\Microsoft\Windows\GameExplorer
AppData\Local\Microsoft\Windows\Notifications
AppData\Local\Microsoft\Windows\Ringtones
AppData\Local\Microsoft\Windows\RoamingTiles
AppData\Local\Packages
AppData\Local\Skype
AppData\Local\Sun
AppData\Local\Temp
AppData\LocalLow
AppData\Roaming\Citrix\PNAgent\AppCache
AppData\Roaming\Citrix\PNAgent\Icon Cache
AppData\Roaming\Citrix\PNAgent\ResourceCache
AppData\Roaming\com.adobe.formscentral.FormsCentralForAcrobat
AppData\Roaming\Dropbox
AppData\Roaming\ICAClient\Cache
AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys
AppData\Roaming\Macromedia\Flash Player\#SharedObjects
AppData\Roaming\Microsoft\Excel
AppData\Roaming\Microsoft\Internet Explorer\UserData
AppData\Roaming\Sharefile\Outlook
AppData\Roaming\Microsoft\Powerpoint
AppData\Roaming\Microsoft\Templates\LiveContent
AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Dropbox
AppData\Roaming\Microsoft\Word
AppData\Roaming\Sun\Java\Deployment\cache
AppData\Roaming\Sun\Java\Deployment\log
AppData\Roaming\Sun\Java\Deployment\tmp
AppData\Roaming\Sun\Java\Deployment

Link to comment
  • Answers 77
  • Created
  • Last Reply

Recommended Posts

Discovered an issue in our environment after upgrading to CU2. (Black screen was from 20-40sec)

Once we revert to 7.15LTSR thigs were a bit better but still get black screen for ~8-10sec.  Now we have fast logon ~ 15sec and no black sc.

 

Let me provide what was done:

 Key=HKLM\SOFTWARE\Citrix\Citrix Virtual Desktop Agent

Value=DisableLogonUISuppression (DWORD) = 0

Key=HKLM\SOFTWARE\Wow6432Node\Citrix\Logon

Value=DisableStatus (DWORD) = 1

Key=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Serialize

Value=StartupDelayInMSec (DWORD) = 0

Key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer

Value=FolderRedirectionWait (DWORD) = 0

Delete=HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\{2C7339CF-2B09-4501-B3F3-F3508C9228ED}

 

Ctx DevAnalysis team regarding the traces, their recommendations are as follows:

(Please refer the article CTX226605 for more information).

Disable the Group policies that modify the values under :

[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\CtxHook\AppInit_Dlls

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\CtxHook\AppInit_Dlls

Key=HKLM\SYSTEM\CurrentControlSet\Services\CtxUvi

Value=UviEnabled (DWORD) = 1

+ we Set the "Telemetry Service" to "Disabled".

 

This is a bit confusing now if reset Cache is 0 should help will solving the black screen issue?

Key=HKCU\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\StateStore

Value=ResetCache (DWORD) = 0

If the key is 1 this will fix the Blank Start Menu Icons?

Key=HKCU\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\StateStore

Value=ResetCache (DWORD) = 1

 

Based on analysis the logonui exist before the explorer started with 30 second timeout. To address this we set DelayedDesktopSwitchTimeout to 60 at this moment.

To solve the black screen, you could set the following machine policy which will increase the default timeout for desktop switch.

Key = HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\

Value =  DelayedDesktopSwitchTimeout (DWORD) = 60

 

Reason why we set this was:

from explorer side most of the time, explorer is doing CAppResolver::RefreshCache

6:35:21.2128752 PM Explorer.EXE 9448 436 RegQueryValue HKU\S-1-5-21-3353469110-2964313667-871065595-215341\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\StateStore\ResetCache SUCCESS 0.0000269 Type: REG_DWORD, Length: 4, Data: 1 6:35:21.2129021 PM

6:37:54.6933859 PM Explorer.EXE 9448 436 RegCloseKey HKCR\CLSID\{00021401-0000-0000-C000-000000000046} SUCCESS 0.0000054  6:37:54.6933913 PM

 

And Explorer doing the refresh icon cache is due to the GPO set the value.

6:34:24.3673983 PM svchost.exe 2132 7616 RegSetValue HKU\S-1-5-21-3353469110-2964313667-871065595-215341\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\StateStore\ResetCache SUCCESS 0.0000310 Type: REG_DWORD, Length: 4, Data: 1 6:34:24.3674293 PM  This is the policy applied: Reset the value to 0

 

I'm sure that you have tried almost everything but didnt try tweek bellow:

To solve the black screen, you could set the following machine policy which will increase the default timeout for desktop switch.

Key = HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\

Value =  DelayedDesktopSwitchTimeout (DWORD) = 60

Link to comment
On 4/11/2018 at 9:59 PM, Kevin Miller said:

Hello all. Looking for some advice. 

 

We have a problem when a user launches a XenDesktop (7.17) and Windows 10 (1607) session the Windows shell does not load and presents a black screen. You can interact with Explorer via the task manager. There doesn't appear to be anything in the UPM or Windows logs that indicate an issue.

 

Adding AppData\Local\Microsoft\Windows\Caches to the UPM Directories to synchronize policy does not solve the problem. (https://docs.citrix.com/en-us/xenapp-and-xendesktop/current-release/whats-new/fixed-issues.html) #LC9215

 

I would appreciate any help you may have. So far Citrix support doesn't have an answer.

 

Below are the exclusions/synchronizations I have set.

 

Directories to syncronize:

 AppData\Local\Microsoft\Windows\Caches

 

Exclusion files:

*thumb*.db, *icon*.db

 

Exclusion Directories:

$Recycle.Bin
OneDrive
Dropbox
ShareFile
AppData\Local\Assembly\dl3
AppData\Local\ATT Connect
AppData\Local\Comms
AppData\Local\Downloaded Installations
AppData\Local\Dropbox
AppData\Local\Google\Chrome\User Data\Default\Cache
AppData\Local\Microsoft\CLR-v4.0_32
AppData\Local\Microsoft\GameDVR
AppData\Local\Microsoft\Group Policy
AppData\Local\Microsoft\Internet Explorer\Recovery
AppData\Local\Microsoft\Internet Explorer\DOMStore
AppData\Local\Microsoft\Media Player
AppData\Local\Microsoft\Messenger
AppData\Local\Microsoft\OneDrive
AppData\Local\Microsoft\OneNote
AppData\Local\Microsoft\Office\15.0\OfficeFileCache
AppData\Local\Microsoft\PlayReady
AppData\Local\Microsoft\Terminal Server Client
AppData\Local\Microsoft\Windows Mail
AppData\Local\Microsoft\Windows\Burn
AppData\Local\Microsoft\Windows Live
AppData\Local\Microsoft\Windows Live Contacts
AppData\Local\Microsoft\Windows\Temporary Internet Files
AppData\Local\Microsoft\Windows\Themes
AppData\Local\Microsoft\Windows\INetCache
AppData\Local\Microsoft\Windows\WER
AppData\Local\Microsoft\Windows\WebCache.old
AppData\Local\Microsoft\Windows\PriCache
AppData\Local\Microsoft\Windows\Application Shortcuts
AppData\Local\Microsoft\Windows\1033
AppData\Local\Microsoft\Windows\Explorer
AppData\Local\Microsoft\Windows\GameExplorer
AppData\Local\Microsoft\Windows\Notifications
AppData\Local\Microsoft\Windows\Ringtones
AppData\Local\Microsoft\Windows\RoamingTiles
AppData\Local\Packages
AppData\Local\Skype
AppData\Local\Sun
AppData\Local\Temp
AppData\LocalLow
AppData\Roaming\Citrix\PNAgent\AppCache
AppData\Roaming\Citrix\PNAgent\Icon Cache
AppData\Roaming\Citrix\PNAgent\ResourceCache
AppData\Roaming\com.adobe.formscentral.FormsCentralForAcrobat
AppData\Roaming\Dropbox
AppData\Roaming\ICAClient\Cache
AppData\Roaming\Macromedia\Flash Player\macromedia.com\support\flashplayer\sys
AppData\Roaming\Macromedia\Flash Player\#SharedObjects
AppData\Roaming\Microsoft\Excel
AppData\Roaming\Microsoft\Internet Explorer\UserData
AppData\Roaming\Sharefile\Outlook
AppData\Roaming\Microsoft\Powerpoint
AppData\Roaming\Microsoft\Templates\LiveContent
AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Dropbox
AppData\Roaming\Microsoft\Word
AppData\Roaming\Sun\Java\Deployment\cache
AppData\Roaming\Sun\Java\Deployment\log
AppData\Roaming\Sun\Java\Deployment\tmp
AppData\Roaming\Sun\Java\Deployment

You could set the following machine policy which will increase the default timeout for desktop switch.

Key = HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\

Value =  DelayedDesktopSwitchTimeout (DWORD) = 60

 

Quote

 

Edit

Quote this 

Link to comment

Built a new WinSrv2016 XA with 7.15 CU2 VDA. Black screen issue / missing registry keys happened within an hour of the server go live.

 

Trying 7.15 CU1 VDA as posted above to see if that avoids the black screen issue.

 

Currently have a script running every five minutes to check 7.17 VDAs for missing reg keys. When missing reg keys are detected, scripts put servers in maintenance mode, replaces the reg keys from a previous working export,  messages the users with active sessions, and reboots the server 10 minutes later.

 

Link to comment

We have been struggling with the black screen on 7.17 VDA with WinSrv2016 XA (Published desktop) as well. 

 

We also noticed that HKLM\software\microsoft\windows\currentversion\AppReadiness key goes missing and that is when the black screens start. We exported that key from a working backup of the server and imported it into a broken server. Rebooted the server and the issue was fixed for awhile until the key gets deleted again. 

 

 

Link to comment

So after applying hotfix, users now experience a wait at "preparing windows" that lasts for 15-30 seconds that then transitions to a black screen that lasts 15 to 40 seconds, and are then finally presented with a desktop.

So it's improvement, in that eventually they are logged on, but the actual logon time is significantly longer than pre-hotfix and certainly pre-update to CU2/MS updates.

Link to comment

I gave up on this after having the blank screen issue on both 2012 R2 & 2016 VDA 1903. Smooth sailing after reverting back to version 5.8. 

 

1. Uninstalled UPM completely https://support.citrix.com/article/CTX235100?recommended&_ga=2.29336309.850684847.1555522146-2145097236.1554854512 

2. Installed Profile Management 5.8 https://www.citrix.com/downloads/citrix-virtual-apps-and-desktops/product-software/xenapp-and-xendesktop-714.html

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...