UHT CrashOrAssert if UCLASS exists twice
If two C++ UClasses exist with the same name then the unreal header tool crashes with a "CrashOrAssert", coming from an assert in file HeaderParser.cpp, in void FHeaderParser::CompileClassDeclaration(FClasses& AllClasses):
... // Verify class variables haven't been filled in check(Class->Children == NULL); ...
Now obviously having two classes with the same name is surely something you should not do. However it can happen accidently:
This leaves the developer with no clue as to why UHT is failing. A simple "UCLASS with same name 'XXXX' already exists" can really save some time here.
Steps to reproduce:
Actual Result (Visual Studio Output):
========== Erstellen: 0 erfolgreich, 1 fehlerhaft, 3 aktuell, 0 übersprungen ==========
Expected Result (Visual Studio Output): ... Error: UClass "DoiObjectSocket_Dto" already exists. ...
asked Sep 01 '16 at 10:05 PM in Bug Reports
We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.
answered Sep 12 '16 at 02:11 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here