UE4 hangs randomly - DerivedDataCache & adb.exe

Hi

After some “random” time, even if I leave the unreal engine idle it hangs. It does so without any OS hang or crash messages. It only uses 100% of one core (25% cpu usage in my quad core case).

What I found out is that the UE4Editor-Cmd looks into C:/programData/Epic/Engine/DerivedDataCache folders.

To “fix” this, or rather unlocking the engine from this nasty loop, I only had to rename DerivedDataCache to something else. Of course I recommend renaming it back after it.

Edit:
Don’t know if this is related, sometimes it still hangs similarly and it gets stuck with adb :confused:
One solution there, is to restart adb so that the daemon reactivates, then UE4 will resume from hang.

/Edit

[Win7-64 SP1] [UE4.0.1][nvidia 332.21 - physx 09.13.0725] [adt-bundle-windows-x86_64-20131030]

Here are some log text from process monitor from sysinternals:

16:23:21.0074588 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\4\1\	NAME NOT FOUND	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
16:23:21.0075762 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\4\1\	NAME NOT FOUND	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
16:23:21.0076943 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\9\3\9\	NAME NOT FOUND	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
16:23:21.0078046 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\9\3\9\	NAME NOT FOUND	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
16:23:21.0081074 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:23:21.0081521 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\*	SUCCESS	Filter: *, 1: .
16:23:21.0081876 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	0: .., 1: MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd, 2: PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd, 3: PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_E030F40248FAE9E77FECC6AC5D70DD0C__1_0_13057_0.udd, 4: PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_E8552D544E7FBCA644E47482F31A09F0__1_0_13057_0.udd
16:23:21.0082415 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	NO MORE FILES	
16:23:21.0082603 PM	UE4Editor-Cmd.exe	4076	CloseFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0082825 PM	UE4Editor-Cmd.exe	4076	IRP_MJ_CLOSE	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0085757 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:23:21.0086109 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\*	SUCCESS	Filter: *, 1: .
16:23:21.0086436 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	0: .., 1: MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd, 2: PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd, 3: PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_E030F40248FAE9E77FECC6AC5D70DD0C__1_0_13057_0.udd, 4: PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_E8552D544E7FBCA644E47482F31A09F0__1_0_13057_0.udd
16:23:21.0086754 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	NO MORE FILES	
16:23:21.0086945 PM	UE4Editor-Cmd.exe	4076	CloseFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0087133 PM	UE4Editor-Cmd.exe	4076	IRP_MJ_CLOSE	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0088218 PM	UE4Editor-Cmd.exe	4076	QueryOpen	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	FAST IO DISALLOWED	
16:23:21.0089034 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:23:21.0090161 PM	UE4Editor-Cmd.exe	4076	QueryBasicInformationFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	CreationTime: 2014-03-21 11:57:32 AM, LastAccessTime: 2014-03-21 11:57:32 AM, LastWriteTime: 2014-03-21 11:57:32 AM, ChangeTime: 2014-03-21 11:57:32 AM, FileAttributes: ANCI
16:23:21.0090352 PM	UE4Editor-Cmd.exe	4076	CloseFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	
16:23:21.0090598 PM	UE4Editor-Cmd.exe	4076	IRP_MJ_CLOSE	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	
16:23:21.0094523 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:23:21.0095162 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	Filter: MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd, 1: MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd
16:23:21.0095688 PM	UE4Editor-Cmd.exe	4076	RegOpenKey	HKLM\Software\Microsoft\Windows NT\CurrentVersion\Time Zones\W. Europe Standard Time\Dynamic DST	NAME NOT FOUND	Desired Access: Read, Maximum Allowed
16:23:21.0096087 PM	UE4Editor-Cmd.exe	4076	RegOpenKey	HKLM\Software\Microsoft\Windows NT\CurrentVersion\Time Zones\W. Europe Standard Time\Dynamic DST	NAME NOT FOUND	Desired Access: Read, Maximum Allowed
16:23:21.0096357 PM	UE4Editor-Cmd.exe	4076	RegOpenKey	HKLM\Software\Microsoft\Windows NT\CurrentVersion\Time Zones\W. Europe Standard Time\Dynamic DST	NAME NOT FOUND	Desired Access: Read, Maximum Allowed
16:23:21.0096582 PM	UE4Editor-Cmd.exe	4076	CloseFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0096910 PM	UE4Editor-Cmd.exe	4076	IRP_MJ_CLOSE	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0098125 PM	UE4Editor-Cmd.exe	4076	QueryOpen	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	FAST IO DISALLOWED	
16:23:21.0098927 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:23:21.0099374 PM	UE4Editor-Cmd.exe	4076	QueryBasicInformationFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	CreationTime: 2014-03-21 11:57:32 AM, LastAccessTime: 2014-03-21 11:57:32 AM, LastWriteTime: 2014-03-21 11:57:32 AM, ChangeTime: 2014-03-21 11:57:32 AM, FileAttributes: ANCI
16:23:21.0099552 PM	UE4Editor-Cmd.exe	4076	CloseFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	
16:23:21.0099794 PM	UE4Editor-Cmd.exe	4076	IRP_MJ_CLOSE	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	
16:23:21.0103751 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:23:21.0104225 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd	SUCCESS	Filter: MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd, 1: MATSM_9B5EBB87518144F08D55CE1C2D2096B6_PCD3D_SM5_0__BC5N_BMSIN_DEV_SL_NODBUF8A__DC64CE93E2DDCE5ED30AC7BAB3918E4CF529998D.udd
16:23:21.0104580 PM	UE4Editor-Cmd.exe	4076	CloseFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0104782 PM	UE4Editor-Cmd.exe	4076	IRP_MJ_CLOSE	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0603154 PM	UE4Editor-Cmd.exe	4076	QueryOpen	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd	FAST IO DISALLOWED	
16:23:21.0603991 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd	SUCCESS	Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:23:21.0604469 PM	UE4Editor-Cmd.exe	4076	QueryBasicInformationFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd	SUCCESS	CreationTime: 2014-03-21 16:15:41 PM, LastAccessTime: 2014-03-21 16:15:41 PM, LastWriteTime: 2014-03-21 16:15:41 PM, ChangeTime: 2014-03-21 16:15:41 PM, FileAttributes: ANCI
16:23:21.0604646 PM	UE4Editor-Cmd.exe	4076	CloseFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd	SUCCESS	
16:23:21.0604923 PM	UE4Editor-Cmd.exe	4076	IRP_MJ_CLOSE	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd	SUCCESS	
16:23:21.0608094 PM	UE4Editor-Cmd.exe	4076	CreateFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
16:23:21.0608490 PM	UE4Editor-Cmd.exe	4076	QueryDirectory	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd	SUCCESS	Filter: PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd, 1: PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd
16:23:21.0608848 PM	UE4Editor-Cmd.exe	4076	CloseFile	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0609029 PM	UE4Editor-Cmd.exe	4076	IRP_MJ_CLOSE	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6	SUCCESS	
16:23:21.0610009 PM	UE4Editor-Cmd.exe	4076	QueryOpen	C:\ProgramData\Epic\Engine\DerivedDataCache\1\5\6\PHYSX_$7B1F0627AE$2DABEB$2D4206$2D8D78$2DE16BEB5DDC7E$7D_PHYSXPC_DCAD73394F05EECC2644A1811B785460__1_0_13057_0.udd	FAST IO DISALLOWED

Hi AED,

Thank you for your report. Could you please port your project’s log files and system specs? Your log files can be located in your [Project Name]/Saved/Logs folder. That will help us further investigate the issue.

Thanks,

Alexander

link text

Another solution to unlock this hang bug is to run this adb command from command line.

adb kill-server

I tried to kill the adb server, but as soon as I kill it, a new adb process is initiated.
My work around for this problem was to rename the adb.exe file to something like adb2.exe…