Creating new blank project freezes at 80%

Hello. I am running Windows 7 64-bit.

When I try to create a new project (I choose the C++ tab → Basic Code with Desktop / Console, Maximum Quality and With Starter Content), a progress bar shows up which says “Creating project…”, it gets to 80% pretty fast but then it just stays there. I tried waiting for about 10 minutes and it doesn’t move.

When I use Process Monitor to monitor the “UE4Editor.exe” process all it shows that the editor does is send and receive a UDP packet once every 2 seconds or so and an occasional “Thread Create” and “Thread Exit”.

Also, it seems that the “New project” window along with the progress bar window are inaccessible through the Windows task bar, and I can only see them by minimizing other windows on top of them, just as if they are frozen.

Another thing worth mentioning is that it created the project directory but that directory has mostly empty folders and some folders with a very small amount of files in them.

I tried closing and opening the editor and creating a new project again. The problem still happened, but this time when I looked in the project folder more files were there than the last time I tried (for example, some .cs files, a .uproject file, which weren’t there in the previous project creation attempt). This probably means that this problem doesn’t occur at the exact same project creation stage? Though the progress bar shows 80% anyway.

I also tried checking the size of the project folder when the 80% just appeared and a few minutes later, and it seems to stay constant all the time (it doesn’t increase as expected in a project creation), meaning nothing is probably happening and it’s just frozen.

This is all of the information I can provide, if anymore is needed please ask.

Hey NoDisplayName-

Are you able to create blueprint projects rather than code projects? Are you using the binary version of the engine from the launch or did you built the source code version from GitHub? If you are using source code from GitHub, which branch/release version did you download and compile?

Cheers

I am using the the binary version, Unreal Edtior 4.7.2, downloaded today (07 March, 2015) from the Epic Games Launcher.

Creating a blueprint project seems to work.

Could you try bypassing the Launcher and open the editor directly from the .exe where you installed it at? Additionally, could you check for project logs and debug logs? If the project folder is getting created before it freezes, you should find the logs in the …/[ProjectName]/Saved/Logs folder. You can use the following link to walk through how to get the debug logs. A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

When I bypass the Launcher it opens itself right after the editor is finished loading.

The project logs are not among the files created in the project directory.

To enable debug logging, I had to run the editor via the launcher. It seems that nothing is added to the log when the bug happens. More than that, the debug log is created by the launcher before I even launch the editor and nothing is added to it other than launcher stuff. (Opening the editor, trying to create the project, all have no effect on the log).

I’ll be away until the weekend so I won’t be able to debug this further, when I get back I’ll try again. Thanks for your help so far.

I’m experiencing the same problem, I can create blueprint projects without issue but when trying to create a c++ project it freezes at 80%, no error message, have to kill the UnrealBuildTool process, message after killing the process:

Failed to generate project files. Log
output: Running C:/Program Files/Epic
Games/4.7/Engine/Binaries/DotNET/UnrealBuildTool.exe
-projectfiles -project=“C:/Users/Janek/Documents/Unreal
Projects/MyProject3/MyProject3.uproject”
-game -rocket -progress Discovering modules, targets and source code for
game…

Saved folder and uproject file weren’t generated.

May also be relevant: I had a small problem building new projects before, like in this question: link (The answer worked).

This seems to be an editor bug. I had it and found a workaround: when the editor stops on 80%, kill the Editor process in task manager, then kill UnrealBuildTool (in this order, if you kill build tool first uproject file will be deleted). Go to project folder, right click uproject file and choose “Generate Project Files”.

After generating project files, solution can be opened in Visual Studio and compiled from there.

Hey Zulushaka-

We’re currently looking into what could be causing the editor to stop loading a new project, however I’m glad to hear you were able to find a workaround. After opening and compiling the project in VS are there any problems when trying to open that project in the future?

Hey NoDisplayName-

Were you able try the workaround Zulushaka mentioned? Let us know if you’re still having any problems creating a project.

Cheers

The project opens fine, but attempting to compile it from editor or adding new code to project results in a similar freeze (UnrealBuildTool running forever, using 0% CPU and seemingly doing nothing). UnrealBuildTool has to be killed from task manager in that case, which sometimes makes the project impossible to open in editor or compile in VS until I generate project files once again.

Hey NoDisplayName and zulushaka-

Now that 4.7.3 has been released I encourage everyone to update their engine version and attempt to create a C++ project again. If anyone is still having problems creating projects please let us know what operating system you are using, if you are using the binary version or source code version of the engine, and any other information that may be useful such as error messages.

Cheers

Same problem at 4.7.6, binary version at Windows 7 x64

Hey def2010-

Can you post the log files and calstack from your crash so we have the extra information?

Try checking your PATH system variable, in my case it turned out the problem was caused by having an entry with quotation marks in it.

Thank you so much. I’ve had this problem since version 4.3 as I stopped playing with Unreal. What makes a quotation mark break the build… Something like SQL inject screwing up a path?

This problem is because the vcvars.bat file fails if your path env variable has any path segments with double quotes in it.

so if your PATH variable looks like this:

PATH="c:\program files (x86)\Microsoft Visual Studio 12.0\Common7\IDE"

the build will fail

just take the double quotes out (they aren’t needed):

PATH=c:\program files (x86)\Microsoft Visual Studio 12.0\Common7\IDE