Hi Antoine,
Julian forwarded these things to me and I must say it looks very strange. What version of windows are you on? I can see that the code in uba potentially is wrong but I don’t know how to reproduce this. Do you have special command line options when building BlankProgram?
For more details… this is what is weird in your log file. It calls CreateFileW on BlankProgram.exe with “read”.. and succeeds.. and then it closes it and opens it again with “read”. This is what cause the “ALREADYEXISTS” weird error.. which I will look into how that can happen.
D CreateFileW ..\Binaries\Win64\BlankProgram.exe RPC_MESSAGE CreateFile T NtCreateFile 300004 (C:\dne\monorepo-preview\UE\Engine\Binaries\Win64\BlankProgram.exe) -> Success D GetFileInformationByHandle (file) 300004 (#) -> Success (size: 16588800) D NtClose 300004 (#) -> Success D CreateFileW ..\Binaries\Win64\BlankProgram.exe D NtCreateFile ALREADYEXISTS (C:\dne\monorepo-preview\UE\Engine\Binaries\Win64\BlankProgram.exe) -> Error
But also, the question is why it opens it for read multiple times in your log but not in mine… in my build (same sdk and everything) it opens the file for write straight away.. here’s the same place in the log on my machine
D CreateFileW ..\Binaries\Win64\BlankProgram.exe T NtClose 512 (UNKNOWN) -> Success D NtCreateFile (MEMORY) WRITE 300003 (E:\dev\fn\Engine\Binaries\Win64\BlankProgram.exe) () -> Success D CreateFileMappingW (MEMORYFILE) File 300003 Protect 4 Size 2097152 (E:\dev\fn\Engine\Binaries\Win64\BlankProgram.exe) -> 300004 D MapViewOfFileEx 300004 Size 2097152 (E:\dev\fn\Engine\Binaries\Win64\BlankProgram.exe) -> 0x20b55df0000 T NtClose 300004 (E:\dev\fn\Engine\Binaries\Win64\BlankProgram.exe) -> Success
I will see if I can repro the bug on my machine with a unit test and come back to you here.