Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] Added member to C++ base class, editor can't start anymore.


I added a member to a C++ class which is a base class for some already existing blueprint classes. It compiles in visual studio but when I try to start the editor it stops working. In the C++ class which derives ACharacter, the following code was added:

 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Test)
 TSubobjectPtr<ADecalActor> TestDecal;

I find the following message in the debugger output: "Cast of BaseUnit /Script/RTSGame.Default__BaseUnit to Level failed", where BaseUnit is the name of my class. How can I fix this so that the editor starts again? Can't you make changes to your base classes or is this some sort of a bug?

Call stack:

 UE4Editor-Core.dll!FMsg::Logf__VA(const char * File, int Line, const FName & Category, ELogVerbosity::Type Verbosity, const wchar_t * Fmt, ...)
      UE4Editor-CoreUObject.dll!CastLogError(const wchar_t * FromType, const wchar_t * ToType)
      UE4Editor-Engine.dll!CastChecked<ULevel>(UObject * Src, ECastCheckedType::Type CheckType)
      UE4Editor-Engine.dll!UWorld::InitializeNewWorld(const UWorld::InitializationValues IVS)
      UE4Editor-Engine.dll!UWorld::CreateWorld(const EWorldType::Type InWorldType, bool bInformEngineOfWorld, FName WorldName, UPackage * InWorldPackage, bool bAddToRoot)
      UE4Editor-Engine.dll!UEngine::Init(IEngineLoop * InEngineLoop)
      UE4Editor-UnrealEd.dll!UEditorEngine::InitEditor(IEngineLoop * InEngineLoop)
      UE4Editor-UnrealEd.dll!UEditorEngine::Init(IEngineLoop * InEngineLoop)    
      UE4Editor-UnrealEd.dll!UUnrealEdEngine::Init(IEngineLoop * InEngineLoop)
      UE4Editor-UnrealEd.dll!EditorInit(IEngineLoop & EngineLoop)    
      UE4Editor.exe!GuardedMain(const wchar_t * CmdLine, HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, int nCmdShow)
      UE4Editor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow)

Product Version: Not Selected
more ▼

asked Jun 19 '14 at 02:55 PM in Bug Reports

avatar image

838 123 111 138

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Jun 19 '14 at 03:11 PM by undercover for the following reason:

Answered in comment section.

1 answer: sort voted first

Which configuration did you build in Visual Studio? Development Editor?

more ▼

answered Jun 19 '14 at 02:57 PM

avatar image

Jamie Dale STAFF
7.4k 176 66 304

avatar image undercover Jun 19 '14 at 03:10 PM

I used an ADecalActor instead of an UDecalComponent. That seems to be the problem or at least now it starts again even though I don't see anything. But that may be the current configuration.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question