x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Calling a class constructor in an automation test prevents me from opening my project

I've been trying to open my project, and it consistently crashes at 79%.

This is the most relevant part of the log file that I have:

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: === Critical error: ===

[2018.05.12-12.38.57:524][ 0]LogWindows: Error:

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: Fatal error: [File:D:\Build\++UE4+Release-4.19+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 2499]

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: ObjectProperty is not being constructed with either NewObject, NewNamedObject or ConstructObject.

[2018.05.12-12.38.57:524][ 0]LogWindows: Error:

[2018.05.12-12.38.57:524][ 0]LogWindows: Error:

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000FD91A06D KERNELBASE.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000DBAA7884 UE4Editor-ApplicationCore.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000D4E16D9B UE4Editor-Core.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000D4D51949 UE4Editor-Core.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000D74E21E4 UE4Editor-CoreUObject.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000CA078CEE UE4Editor-Engine.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000B9C519F0 UE4Editor-TacticsGame.dll!AGrid::AGrid() [d:\workspaceunreal\tacticsgame\source\tacticsgame\grid.cpp:6]

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000B9C55C6C UE4Editor-TacticsGame.dll!FConstructionTest::RunTest() [d:\workspaceunreal\tacticsgame\source\tacticsgame\test\gridtest.cpp:9]

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000D4D6836A UE4Editor-Core.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000D4D77496 UE4Editor-Core.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x00000000D4D744F5 UE4Editor-Core.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x000000003FAFFA27 UE4Editor.exe!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x000000003FAF69FA UE4Editor.exe!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x000000003FAF6C4A UE4Editor.exe!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x000000003FB04177 UE4Editor.exe!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x000000003FB05B87 UE4Editor.exe!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x0000000077A159CD kernel32.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x0000000077B4A561 ntdll.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error: [Callstack] 0x0000000077B4A561 ntdll.dll!UnknownFunction []

[2018.05.12-12.38.57:524][ 0]LogWindows: Error:

[2018.05.12-12.38.57:537][ 0]LogExit: Executing StaticShutdownAfterError

[2018.05.12-12.38.57:696][ 0]LogWindows: FPlatformMisc::RequestExit(1)

[2018.05.12-12.38.57:770][ 0]Log file closed, 05/13/18 00:38:57

I've already tried deleting my Saved and Intermediate folders, restarting my computer, ,regenerating visual studio project files, and rebuilding the project from inside visual studio. None of those have worked. I also can't revert to a previous version using source control, since I only back up the Source folder. However, I do have a previous version of the Source folder that contains code that didn't make the project crash.

EDIT: I now know that the problem is this automation test, which simply calls the constructor of my Grid class

 #include "Grid.h"
 #include "AutomationTest.h"
 
 IMPLEMENT_SIMPLE_AUTOMATION_TEST(FConstructionTest, "GridTest.Grid.Constructor Test", EAutomationTestFlags::EditorContext | EAutomationTestFlags::SmokeFilter)
 bool FConstructionTest::RunTest(const FString& Parameters)
 {
 
     //Construct a AGrid object. When this line is uncommented, my project fails to open
     //AGrid TestGrid;
 
     //TODO: Stuff
 
     return true;
 }

The source code of the AGrid class can be seen here. This class is a superclass that is used to create square grids and hex grids. Also, the same problem of calling the constructor applies to any class that inherits from AGrid:

https://pastebin.com/VwHC8JS5

Commenting out the line which calls the constructor of AGrid allows me to open my project again, but it also means I can't run tests on my classes. Is there something I'm missing in my code?

Product Version: UE 4.19
Tags:
more ▼

asked May 06 '18 at 09:46 AM in Using UE4

avatar image

Stormbreath
1 1 1 2

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

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question