4.7.6 to 4.8 conversion fail

Hey,

I am trying to convert a project from 4.7.6 to 4.8 full release version. When I try the convert in place, I get the error:

d started 6/15/2015 6:15:33 PM.

 1>Project "C:\Users\Tony Vaught\Documents\Unreal Projects\Backups\Torinth_v0_03\Torinth_v0_03\Intermediate\ProjectFiles\Torinth_v0_03.vcxproj" on node 2 (Rebuild target(s)).
 1>Rebuild:
     "C:\UE4\Epic Games\4.8\Engine\Build\BatchFiles\Rebuild.bat" Torinth_v0_03Editor Win64 Development "C:\Users\Tony Vaught\Documents\Unreal Projects\Backups\Torinth_v0_03\Torinth_v0_03\Torinth_v0_03.uproject" -rocket
     Cleaning Torinth_v0_03Editor Binaries...
     Parsing headers for Torinth_v0_03Editor
     C:/Users/Tony Vaught/Documents/Unreal Projects/Backups/Torinth_v0_03/Torinth_v0_03/Source/Torinth_v0_03/Torinth_v0_03Character.h(8) : LogWindows:Error: Windows GetLastError: The operation completed successfully. (0)
 1>Error : Failed to generate code for Torinth_v0_03Editor - error code: CrashOrAssert (3)
     UnrealHeaderTool failed for target 'Torinth_v0_03Editor' (platform: Win64, module info: C:\Users\Tony Vaught\Documents\Unreal Projects\Backups\Torinth_v0_03\Torinth_v0_03\Intermediate\Build\Win64\Torinth_v0_03Editor\Development\UnrealHeaderTool.manifest).
 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command ""..\UE4\Epic Games\4.8\Engine\Build\BatchFiles\Rebuild.bat" Torinth_v0_03Editor Win64 Development "\..\Unreal Projects\Backups\Torinth_v0_03\Torinth_v0_03\Torinth_v0_03.uproject" -rocket" exited with code 3.
 1>Done Building Project "C:\..\Unreal \..\Torinth_v0_03\Intermediate\ProjectFiles\Torinth_v0_03.vcxproj" (Rebuild target(s)) -- FAILED.

When i check it in VS, I get :

------ Rebuild All started: Project: Torinth_v0_03, Configuration: Development_Editor x64 ------
1>  Cleaning Torinth_v0_03Editor Binaries...
1>  Parsing headers for Torinth_v0_03Editor
1>  C:/../Unreal Projects/Backups/Torinth_v0_03/Torinth_v0_03/Source/Torinth_v0_03/Torinth_v0_03Character.h(8) : LogWindows:Error: Windows GetLastError: The operation completed successfully. (0)
1>Error : Failed to generate code for Torinth_v0_03Editor - error code: CrashOrAssert (3)
1>  UnrealHeaderTool failed for target 'Torinth_v0_03Editor' (platform: Win64, module info: C:\..\Torinth_v0_03\Intermediate\Build\Win64\Torinth_v0_03Editor\Development\UnrealHeaderTool.manifest).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(43,5): error MSB3073: The command ""C:\UE4\Epic Games\4.8\Engine\Build\BatchFiles\Rebuild.bat" Torinth_v0_03Editor Win64 Development "C:\..\Torinth_v0_03\Torinth_v0_03.uproject" -rocket" exited with code 3.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

The project will not complete the build and will not load in 4.8.

Hi RAVaught,

I attempted to reproduce this issue by performing a convert in place upgrade of a 4.7.6 project to 4.8.0, but the conversion completed successfully for me. Are you using the Binary version of the Engine installed through the Launcher, or did you build the Engine from source code?

Engine installed from the launcher.

I just ran some more tests with upgrading 4.7 projects to 4.8, using a few different projects, without any luck reproducing the issue that you described. I have a few more questions for you.

  • Are you able to create and build a brand new project in 4.8, or do you receive the same results when you do that?
  • Would it be possible to take a look at your project to see if I can determine what happened?
  • Do you have any other 4.7 projects that you have attempted to upgrade to 4.8, and did those projects give you the same results?
  • Was your project initially created as a code project, or was it a Blueprint project that you had added code to?

I am able to create new projects in 4.8 with no issues. If you give me an email address or means of private contact I will provide you with a link to the project repo.

I have not attempted to convert other 4.7 projects to 4.8.

It was originally created as a 3rd Person w/C++, and has remained so throughout the project.

Regards,
Tony

Hi Tony,

Sorry for the delayed response. Are you still having trouble with this? If you need to contact me privately to provide a project link, you can [send me a private message][1] on the forums.

Have you tried creating a copy of the project when upgrading instead of converting in place?

Ok, I sent you a link. Yes, I did try creating a copy. It didn’t work. As a heads up, this was started as a 3rd Person w/C++

Hi Tony,

Thank you for providing your project for me to look at. I saw the same issue that you described when upgrading the project to 4.8, and I believe I have found the culprit. I was stumped for a bit until I noticed that you had two copies of the Character and GameMode classes, as well as the project’s .h and .cpp files. One set of each of these files was in the Source/Project folder, and the other set was in the Public and Private folders that were inside the Source/Project folder. If I deleted one set of the duplicate files, the project built fine in 4.8. I am not sure how UHT was able to parse those files for you in 4.7, but somehow it worked there. In 4.8, the duplicate classes were resulting in UHT crashing.

On a side note, you may want to reconsider your file naming scheme. Including your project’s current version number in the name of your classes and source files may seem like a good idea, and it isn’t really too bad with a project the size of the one you provided for me to look at. However, as your project grows and the number of classes and source files grows into the dozens or hundreds, changing project version numbers becomes a significant headache.

I have no idea how there are duplicates there, but I suspect it was hangups from a version control cockup. Thank you so much for taking a look.