Freeze on Generating code projects

Hello, i’m working on my first UE4 project.

I am following this tutorial:
https://wiki.unrealengine.com/First_Person_Shooter_C%2B%2B_Tutorial#Creating_a_GameMode

I make it to setting up the game modes, specifically step 4. When the editor displays the message “Generating code projects…” it never finishes (1 hour waited).

I have visual studio 2013 ultimate installed and verified its c++ compiler is working.

While the editor was in a frozen state I captured the complete contents of the project. I see the game mode cpp and header file was created, so something is happening after that which is causing the editor to freeze.

D:\Users\Bryce\UnrealProjects\MyProject4>dir
/s /b
D:\Users\Bryce\UnrealProjects\MyProject4\Config
D:\Users\Bryce\UnrealProjects\MyProject4\Content
D:\Users\Bryce\UnrealProjects\MyProject4\Intermediate
D:\Users\Bryce\UnrealProjects\MyProject4\MyProject4.uproject
D:\Users\Bryce\UnrealProjects\MyProject4\Saved
D:\Users\Bryce\UnrealProjects\MyProject4\Source
D:\Users\Bryce\UnrealProjects\MyProject4\Config\DefaultEngine.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Config\DefaultGame.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Content\Crash.umap
D:\Users\Bryce\UnrealProjects\MyProject4\Intermediate\CachedAssetRegistry.bin
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Autosaves
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Logs
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Autosaves\PackageRestoreData.json
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\blackjack_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\blueprint_icon_b.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\collision_icon_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\damageue4_icon_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\elemental_icon.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\interpto_icon_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\newsfeed.json
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\particles_icon_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\pbr_icon_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\roadmap_icon_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\scifi_icon_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\stylized_40x40.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\ue4release_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\ue4transition_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\ut_icon_sm.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Cloud\vehicle_40x40.png
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\Compat.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\DeviceProfiles.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\Editor.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\EditorGameAgnostic.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\EditorKeyBindings.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\EditorUserSettings.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\Engine.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\Game.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\GameUserSettings.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\Input.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\Lightmass.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\Scalability.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\SourceControlSettings.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\CleanSourceConfigs\TemplateDefs.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\Compat.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\DeviceProfiles.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\Editor.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\EditorKeyBindings.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\EditorUserSettings.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\Engine.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\Game.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\GameUserSettings.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\Input.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\Lightmass.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\Scalability.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\SourceControlSettings.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Config\Windows\TemplateDefs.ini
D:\Users\Bryce\UnrealProjects\MyProject4\Saved\Logs\MyProject4.log
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4.Target.cs
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4Editor.Target.cs
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\MyProject4.Build.cs
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\MyProject4.cpp
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\MyProject4.h
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\Resources
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\TestGameMode.cpp
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\TestGameMode.h
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\Resources\Windows
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\Resources\Windows\MyProject4.ico
D:\Users\Bryce\UnrealProjects\MyProject4\Source\MyProject4\Resources\Windows\MyProject4.rc

Here is the log output in case that is helpful

  Log file open, 07/07/14 21:14:07
     LogInit:Display: Running engine for game: MyProject4
     LogInit: Version: 4.2.1-2101290+++depot+UE4-Releases+4.2
     LogInit: Compiled (64-bit): Jun 10 2014 22:21:56
     LogInit: Build Configuration: Development
     LogInit: Branch Name: ++depot+UE4-Releases+4.2
     LogInit: Command line: 
     LogInit: Base directory: C:/Program Files/Unreal
 Engine/4.2/Engine/Binaries/Win64/
     LogInit: Rocket: 1
     [2014.07.08-02.14.07:140][  0]LogTaskGraph: Started task graph
 with 3 named threads and 4 total
 threads.
     [2014.07.08-02.14.07:166][  0]LogOnline:Warning: No default
 platform service specified for
 OnlineSubsystem
     [2014.07.08-02.14.07:185][  0]LogInit: Presizing for 0 objects not
 considered by GC, pre-allocating 0
 bytes.
     [2014.07.08-02.14.07:191][  0]LogInit: Object subsystem
 initialized
     [2014.07.08-02.14.07:192][  0]LogInit: Selected Device Profile:
 [Windows]
     [2014.07.08-02.14.07:192][  0]LogInit: Applying CVar settings
 loaded from the selected device
 profile: [Windows]
     [2014.07.08-02.14.07:252][  0]LogInit: Computer: BRYCE-CUSTOM
     [2014.07.08-02.14.07:252][  0]LogInit: User: Bryce
     [2014.07.08-02.14.07:252][  0]LogInit: CPU Page size=4096, Cores=4
     [2014.07.08-02.14.07:253][  0]LogInit: High frequency timer
 resolution =3.215351 MHz
     [2014.07.08-02.14.07:253][  0]LogMemory: Memory total:
 Physical=16.0GB (16GB approx)
 Virtual=8192.0GB
     [2014.07.08-02.14.07:253][  0]LogMemory: Platform Memory Stats for
 Windows
     [2014.07.08-02.14.07:253][  0]LogMemory: Process Physical Memory:
 52.76 MB used, 52.76 MB peak
     [2014.07.08-02.14.07:253][  0]LogMemory: Process Virtual Memory:
 29.74 MB used, 29.74 MB peak
     [2014.07.08-02.14.07:253][  0]LogMemory: Physical Memory: 4648.73
 MB used, 16332.89 MB total
     [2014.07.08-02.14.07:253][  0]LogMemory: Virtual Memory: 242.16 MB
 used, 8388608.00 MB total
     [2014.07.08-02.14.07:365][  0]LogD3D11RHI: Found D3D11 adapter 0:
 NVIDIA GeForce GTX 560 Ti  (Feature
 Level 11_0)
     [2014.07.08-02.14.07:365][  0]LogD3D11RHI: Adapter has 1226MB of
 dedicated video memory, 0MB of
 dedicated system memory, and 2815MB of
 shared system memory, 2 output[s]
     [2014.07.08-02.14.07:403][  0]LogD3D11RHI: Found D3D11 adapter 1:
 NVIDIA GeForce 8800 GTS (Feature Level
 10_0)
     [2014.07.08-02.14.07:403][  0]LogD3D11RHI: Adapter has 278MB of
 dedicated video memory, 0MB of
 dedicated system memory, and 3583MB of
 shared system memory, 0 output[s]
     [2014.07.08-02.14.07:410][  0]LogD3D11RHI: Found D3D11 adapter 2:
 Microsoft Basic Render Driver (Feature
 Level 11_0)
     [2014.07.08-02.14.07:410][  0]LogD3D11RHI: Adapter has 0MB of
 dedicated video memory, 0MB of
 dedicated system memory, and 256MB of
 shared system memory, 0 output[s]
     [2014.07.08-02.14.07:410][  0]LogD3D11RHI: Chosen D3D11 Adapter Id
 = 0
     [2014.07.08-02.14.07:416][  0]LogRHI: Texture pool is 858 MB (70%
 of 1226 MB)
     [2014.07.08-02.14.07:439][  0]LogD3D11RHI: Async texture creation
 enabled
     [2014.07.08-02.14.07:600][  0]LogContentStreaming: Texture pool
 size is 0.000000MB
     [2014.07.08-02.14.08:362][  0]LogTargetPlatformManager:Display:
 Building Assets For Windows
     [2014.07.08-02.14.08:509][  0]LogTargetPlatformManager:Display:
 Building Assets For Windows
     [2014.07.08-02.14.08:540][  0]LogDerivedDataCache:Display: Max
 Cache Size: 512 MB
     [2014.07.08-02.14.08:573][  0]LogDerivedDataCache: Loaded boot
 cache 0.03s 39MB
 D:/Users/Bryce/AppData/Local/UnrealEngine/4.2/DerivedDataCache/Boot.ddc.
     [2014.07.08-02.14.08:573][  0]LogDerivedDataCache:Display: Loaded
 Boot cache:
 D:/Users/Bryce/AppData/Local/UnrealEngine/4.2/DerivedDataCache/Boot.ddc
     [2014.07.08-02.14.08:573][  0]LogDerivedDataCache:
 FDerivedDataBackendGraph:  Pak pak
 cache file
 D:/Users/Bryce/UnrealProjects/MyProject4/DerivedDataCache/DDC.ddp
 not found, will not use a pak cache.
     [2014.07.08-02.14.08:573][  0]LogDerivedDataCache: Unable to find
 inner node Pak for hierarchical cache
 Hierarchy.
     [2014.07.08-02.14.08:582][  0]LogDerivedDataCache:Display: Pak
 cache opened for reading
 ../../../Engine/DerivedDataCache/DDC.ddp.
     [2014.07.08-02.14.08:619][  0]LogDerivedDataCache: Using Local
 data cache path
 D:/Users/Bryce/AppData/Local/UnrealEngine/4.2/DerivedDataCache:
 Writable
     [2014.07.08-02.14.08:758][  0]LogMeshUtilities: No automatic mesh
 reduction module available
     [2014.07.08-02.14.08:758][  0]LogMeshUtilities: No automatic mesh
 merging module available
     [2014.07.08-02.14.09:003][  0]LogInit: WinSock: version 1.1 (2.2),
 MaxSocks=32767, MaxUdp=65467
     [2014.07.08-02.14.09:334][  0]LogStreaming:Warning: Failed to read
 file
 '../../../Engine/Content/Editor/Slate/Icons/ActorIcons/GroupActor_16x.png'
 error.
     [2014.07.08-02.14.09:334][  0]LogSlate: Could not find file for
 Slate resource:
 ../../../Engine/Content/Editor/Slate/Icons/ActorIcons/GroupActor_16x.png
     [2014.07.08-02.14.09:338][  0]LogStreaming:Warning: Failed to read
 file
 '../../../Engine/Content/Editor/Slate/Icons/ActorIcons/DecalActor_16x.png'
 error.
     [2014.07.08-02.14.09:338][  0]LogSlate: Could not find file for
 Slate resource:
 ../../../Engine/Content/Editor/Slate/Icons/ActorIcons/DecalActor_16x.png
     [2014.07.08-02.14.09:640][  0]UdpMessaging: Initializing bridge on
 interface 0.0.0.0:0 to multicast group
 230.0.0.1:6666.
     [2014.07.08-02.14.09:817][  0]SourceControl: Info Source control
 is disabled
     [2014.07.08-02.14.09:817][  0]SourceControl: Info Source control
 is disabled
     [2014.07.08-02.14.09:821][  0]SourceControl: Info Source control
 is disabled
     [2014.07.08-02.14.09:935][  0]BlueprintLog: New page: Editor Load
     [2014.07.08-02.14.10:050][  0]LogObj: 19137 objects as part of
 root set at end of initial load.
     [2014.07.08-02.14.10:050][  0]LogUObjectAllocator: 3804776 out of
 0 bytes used by permanent object pool.
     [2014.07.08-02.14.10:252][  0]LogEngine: Initializing Engine...
     [2014.07.08-02.14.10:336][  0]LogInit: XAudio2 using 'Speakers (2-
 High Definition Audio Device)' : 2
 channels at 44.1 kHz using 16 bits per
 sample (channel mask 0x3)
     [2014.07.08-02.14.10:372][  0]LogInit: FAudioDevice initialized.
     [2014.07.08-02.14.10:412][  0]LogDerivedDataCache: Saved boot
 cache 0.04s 39MB
 D:/Users/Bryce/AppData/Local/UnrealEngine/4.2/DerivedDataCache/Boot.ddc.
     [2014.07.08-02.14.10:420][  0]LogInit: Texture streaming: Enabled
     [2014.07.08-02.14.10:486][  0]LogInit: Transaction tracking system
 initialized
     [2014.07.08-02.14.10:628][  0]LogAssetRegistry: FAssetRegistry
 took 0.0107 seconds to start up
     [2014.07.08-02.14.10:849][  0]LogModuleManager:Warning:
 ModuleManager: Unable to load module
 '' because the file was not found.
     [2014.07.08-02.14.10:852][  0]LogModuleManager:Warning:
 ModuleManager: Unable to load module
 '' because the file was not found.
     [2014.07.08-02.14.11:004][  0]LogConsoleResponse:Display: 
     [2014.07.08-02.14.11:250][  0]SourceControl: Info Source control
 is disabled
     [2014.07.08-02.14.11:250][  0]Cmd: MAP LOAD
 FILE="../../../Engine/Content/Maps/Templates/Template_Default.umap"
 TEMPLATE=1 SHOWPROGRESS=1
 WORLDCOMPOSITION=0
     [2014.07.08-02.14.11:250][  0]LightingResults: New page: Lighting
 Build
     [2014.07.08-02.14.11:255][  0]MapCheck: New page: Map Check
     [2014.07.08-02.14.11:255][  0]LightingResults: New page: Lighting
 Build
     [2014.07.08-02.14.11:264][  0]LogParticles: Destroying 0 GPU
 particle simulations for FXSystem
 0x000000D692350A40
     [2014.07.08-02.14.11:380][  0]LogEditorServer: Finished looking
 for orphan Actors (0.000 secs)
     [2014.07.08-02.14.11:380][  0]Cmd: MAP CHECKDEP
     [2014.07.08-02.14.11:380][  0]MapCheck: New page: Untitled_1 - Jul
 7, 2014, 4:14:11 PM
     [2014.07.08-02.14.11:406][  0]MapCheck: Info ========== Map Check:
 0 Error(s), 0 Warning(s), [26.293ms]
 ==========
     [2014.07.08-02.14.11:406][  0]LogFileHelpers: Loading map
 'Template_Default' took 0.157
     [2014.07.08-02.14.11:486][  0]LogCollectionManager: Loaded 0
 collections in 0.000759 seconds
     [2014.07.08-02.14.11:599][  0]LogCrashTracker: Crashtracker
 disabled due to settings.
     [2014.07.08-02.14.11:599][  0]Cmd: MODE PLACEMENT
     [2014.07.08-02.14.11:653][  0]LogLoad: Full Startup: 5.56 seconds
 (BP compile: 0.04 seconds)
     [2014.07.08-02.14.11:681][  0]LogAssetRegistry: Asset discovery
 search completed in 1.0639 seconds
     [2014.07.08-02.14.11:784][  0]LogRenderer:Warning: Reallocating
 scene

Hi bryceray1121,

Have you been able to add any code classes to any projects? Are you able to start a project using one of the code templates?

And just to clarify, you are not seeing any error messages or crashes, correct? The Editor just stops responding?

I am unable to create any projects using the code templates (for example c++ fps template), attempting to use one of these projects results in what appears to be the exact same issue. I’ve tried the originally mentioned tutorial 2 times and have been unsuccessful at adding the class each time.

Correct, i’ve left it running for as long as an hour. When I look in task manager it shows as not responding and I have to kill the process. There is never a crash or error message, it just stops responding.

My computer specs should be capable of handling any operations:
Windows 8, intel i5 4.0 ghz, 16gm ram, geforce 560 ti

Could you please provide your dxdiag information? Also, can you check your VS120COMNTOOLS environment variable (Control Panel\System and Security\System -> Advanced System Settings -> Environment Variables) and make sure that is pointing to where you have Visual Studio 2013 installed (in case you do not have it installed in the default location)?

VS120COMNTOOLS is pointing to a valid path

Here is my Dxdiag:
link text

I am trying to get some insight into possible causes for this issue, since it is unusual for the Editor to stop responding without any crash or error messages. I apologize for the delay.

Are there any other debugging steps I can perform in the mean time?

There are a couple log files that could possibly be helpful. Was the log that you posted in your original question the UE4 log from Engine\Saved\Logs? There is also a project-specific log located at ProjectName\Saved\Logs. If you can zip and attach those log files, that would be great.

I decided to reinstall windows fresh on my computer and took care to ensure all UE4 dependencies (visual studio, etc) were installed in the correct order. I’m not sure what the cause was of this thread, but everything appears to be working now.

I am glad to hear that everything seems to be working fine now. Re-installing Windows does often correct a lot of thorny issues, but I tend to shy away from the “nuke it all and start over” option.

Please let us know if you run into any additional issues.

this happened to me for a month I just recently restarted the computer and updated the computer and the next day I found out it was working completely then I realized the update reinstalled the SDKs that I needed. this problem has also been solved by a restart of your computer just for note, or if it needed or needs an update.