# UE5 stucks on 9% or 35% Compiling global shader / Processing global shaders

**URL:** <https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120>\
**Category:** Getting Started & Setup\
**Tags:** stuck, unreal-engine, UE5, question\
**Created:** [April 27, 2023, 11:37am UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120 "2023-04-27T11:37:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalbug/32/690424_2.png) [@digitalbug](https://forums.unrealengine.com/u/digitalbug)\
**Post date:** [April 27, 2023, 11:37am UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/1 "2023-04-27T11:37:53Z")

</div>

Hey!  
UE5.1.1 + Oculus VR

 ![000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/f/74f9904cfecef6abdbd3b274eead0ab9be415541.jpeg)

Sometimes UE5 project stucks on editor launch. Editor stucks on 9% or 35% Compiling global shader / Processing global shaders.  
Killing the editor process and restarting doesn’t help.  
Sometimes windows restart helps.

UE5 prosses is using 0% of CPU.  
Simply nothing happens even after 3-4h.  
 ![001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/7/937a59a90ff1f9b2ccc3e55edadfa6811e542990.jpeg)

---

<div class="post-metadata">

**Author:** ![digitalbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalbug/32/690424_2.png) [@digitalbug](https://forums.unrealengine.com/u/digitalbug)\
**Post date:** [April 27, 2023, 12:16pm UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/2 "2023-04-27T12:16:31Z")

</div>

upd:  
I added to DefaultEngine.ini

```auto
[core.log]
LogDerivedDataCache=All

```

I received next last lines of log

```auto
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/GlobalShaderMap.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyNiagaraScriptDerivedData.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyNavCollision.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyDIST.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyChaosGeometryData.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/FShaderJobCacheShaders.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/StaticMesh.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyMESHDATAKEY.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyCARD.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Content.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacySTREAMEDAUDIO.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyTEXTURE.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyNIAGARASM.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyAudio.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/MaterialShaderMap.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyAnimSeq.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacyGeometryCollection.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/LegacySKELETALMESH.
LogDerivedDataCache: VeryVerbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished scanning C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache/Buckets/BulkDataList.
LogDerivedDataCache: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished in +00:00:21.033 and deleted 0 files with total size 0 MiB. Scanned 14135 files in 7951 folders with total size 6213 MiB.
LogDerivedDataCache: Verbose: C:/Users/Usr/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance is paused until the next scan at 2023.04.27-15.40.45.

```

---

<div class="post-metadata">

**Author:** ![526088](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@526088](https://forums.unrealengine.com/u/526088)\
**Post date:** [April 27, 2023, 1:48pm UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/3 "2023-04-27T13:48:45Z")

</div>

I have the same on my old laptop even with UE4. This might happen if you set incorrect settings of your project. to fix it, go to C:\Users\YourUsername\Documents\Unreal Projects\YourProjectFolder\Config. Try to delete DefaultEngine.ini. This will reset all rendering settings of your project to engine’s default and engine or your pc will be able to compile those shaders.

---

<div class="post-metadata">

**Author:** ![digitalbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalbug/32/690424_2.png) [@digitalbug](https://forums.unrealengine.com/u/digitalbug)\
**Post date:** [April 27, 2023, 2:59pm UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/4 "2023-04-27T14:59:04Z")

</div>

Nope. It did not help. After deleting the configs, the same freezes

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [April 27, 2023, 3:12pm UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/5 "2023-04-27T15:12:19Z")

</div>

Hi @digitalbug had similar problems with lack of virtual memory in Windows Pagefile.sys which I wrote in other posts  
[Building Light Causes Unreal Editor to Crash, Freezes At Exporting Light Data 100%](https://forums.unrealengine.com/t/building-light-causes-unreal-editor-to-crash-freezes-at-exporting-light-data-100/497274/1)  
and here to create bigger pagefile.sys which you will need to reboot PC  
and here  
[“Checking global shaders for platform Windows” stuck forever](https://forums.unrealengine.com/t/checking-global-shaders-for-platform-windows-stuck-forever/233326/7)

---

<div class="post-metadata">

**Author:** ![digitalbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalbug/32/690424_2.png) [@digitalbug](https://forums.unrealengine.com/u/digitalbug)\
**Post date:** [April 27, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/6 "2023-04-27T15:53:14Z")

</div>

Thank you! But nope.  
I set the virtual memory size to 32 GB and restarted the computer.  
After several restarts of the editor - 9% freeze

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [April 27, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/7 "2023-04-27T16:01:48Z")

</div>

Hi @digitalbug,  
I need to defragement by drives very often as I build new UE version which need to build compile Shaders  
try this from the command line  
REM you need to run tnis in Win Administrator shell  
C:\> defrag D: /H /M 16  
This will run in the background  
My system disk is an NVRAM SSD where I do all my build, so I need to use  
the DEFRAG option Optimise to “Trim” my SSD

---

<div class="post-metadata">

**Author:** ![digitalbug](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/digitalbug/32/690424_2.png) [@digitalbug](https://forums.unrealengine.com/u/digitalbug)\
**Post date:** [April 28, 2023, 11:12am UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/8 "2023-04-28T11:12:16Z")

</div>

I found one dependency.  
If I kill the **OVRServer\_x64.exe** process, then the hung editor starts loading.  
May be something conflict with oculus.

 ![66](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/2/e02f9a0756877c7c3b13ff8492befaa93f7838fb.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 22, 2023, 12:29pm UTC](https://forums.unrealengine.com/t/ue5-stucks-on-9-or-35-compiling-global-shader-processing-global-shaders/1146120/9 "2023-06-22T12:29:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
