Error while cooking with custom editor plugin enabled

Hello,

I’m working on a custom editor plugin. Little unexpected problem is that when i try to cook even a blank empty project i get errors. Disabling my plugin is fixing it. Also I figured out that this line in my plugin is the cause of problem:

FLevelEditorModule& LevelEditorModule = FModuleManager::LoadModuleChecked<FLevelEditorModule>("LevelEditor");

I have no idea what is the connection between Level Editor Module and cooking, but loading Level Editor module in a plugin causes this problem. I can upload my whole plugin, but this is basically BlankPlugin with the line above added in ::StartupModule()

The error i get in output log while cooking:

Assertion failed: IsValid() [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.7\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h] [Line: 647] 

Attachments does not work, so i need to paste Cook.txt here:

Log file open, 06/10/15 13:03:40
LogInit:Display: Running engine for game: HtmlTest
LogInit: Version: 4.7.6-2513093+++depot+UE4-Releases+4.7
LogInit: API Version: 2455222
LogInit: Compiled (64-bit): Apr 15 2015 12:09:54
LogInit: Compiled with Visual C++: 18.00.21005.01
LogInit: Build Configuration: DebugGame
LogInit: Branch Name: ++depot+UE4-Releases+4.7
LogInit: Command line: F:\UnrealEngine\HtmlTest\HtmlTest.uproject -run=Cook -MapIniSection=AllMaps  -I18NPreset=  -TargetPlatform=WindowsNoEditor -buildmachine -Unversioned -fileopenlog -debug -abslog="C:\Users\wojtek\AppData\Roaming\Unreal Engine\AutomationTool\\C+Program+Files+Epic+Games+4.7\Cook.txt" -stdout -FORCELOGFLUSH -CrashForUAT -unattended -AllowStdOutLogVerbosity 
LogInit: Base directory: C:/Program Files/Epic Games/4.7/Engine/Binaries/Win64/
LogInit: Rocket: 1
[2015.06.10-11.03.40:730][  0]LogTaskGraph: Started task graph with 3 named threads and 6 total threads.
[2015.06.10-11.03.40:786][  0]LogOnline:Warning: No default platform service specified for OnlineSubsystem
[2015.06.10-11.03.40:801][  0]LogInit: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
[2015.06.10-11.03.40:811][  0]LogInit: Object subsystem initialized
[2015.06.10-11.03.40:813][  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'TranslucentSortAxis = (X=0.000000,Y=-1.000000,Z=0.000000)'
[2015.06.10-11.03.40:813][  0]LogConsoleResponse:Warning:   Found in ini file 'F:/UnrealEngine/HtmlTest/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
[2015.06.10-11.03.40:813][  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'UIScaleRule = ShortestSide'
[2015.06.10-11.03.40:813][  0]LogConsoleResponse:Warning:   Found in ini file 'F:/UnrealEngine/HtmlTest/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
[2015.06.10-11.03.40:813][  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'UIScaleCurve = (EditorCurveData=(Keys=),ExternalCurve=None)'
[2015.06.10-11.03.40:813][  0]LogConsoleResponse:Warning:   Found in ini file 'F:/UnrealEngine/HtmlTest/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
[2015.06.10-11.03.40:814][  0]LogInit: Selected Device Profile: [Windows]
[2015.06.10-11.03.40:814][  0]LogInit: Applying CVar settings loaded from the selected device profile: [Windows]
[2015.06.10-11.03.40:821][  0]LogInit: Computer: WOJTEK-RDS
[2015.06.10-11.03.40:821][  0]LogInit: : wojtek
[2015.06.10-11.03.40:821][  0]LogInit: CPU Page size=4096, Cores=4
[2015.06.10-11.03.40:821][  0]LogInit: High frequency timer resolution =3.215356 MHz
[2015.06.10-11.03.40:821][  0]LogMemory: Memory total: Physical=7.9GB (8GB approx) Virtual=131072.0GB
[2015.06.10-11.03.40:821][  0]LogMemory: Platform Memory Stats for Windows
[2015.06.10-11.03.40:821][  0]LogMemory: Process Physical Memory: 46.20 MB used, 46.20 MB peak
[2015.06.10-11.03.40:821][  0]LogMemory: Process Virtual Memory: 22.46 MB used, 22.46 MB peak
[2015.06.10-11.03.40:821][  0]LogMemory: Physical Memory: 4660.82 MB used, 8131.39 MB total
[2015.06.10-11.03.40:821][  0]LogMemory: Virtual Memory: 285.56 MB used, 134217728.00 MB total
[2015.06.10-11.03.40:900][  0]LogTextLocalizationManager: The requested culture ('pl_PL') has no localization data; falling back to 'en' for localization and internationalization data.
[2015.06.10-11.03.40:980][  0]LogTextLocalizationManager:Warning: Loading localization resources contain conflicting entries for (Namespace:UICommands, Key:Save_ToolTip):
Resource: (C:/Program Files/Epic Games/4.7/Engine/Content/Localization/Editor/en/Editor.locres) Hash: (-29098895) String: (Saves the current level to disk)
Resource: (C:/Program Files/Epic Games/4.7/Engine/Content/Localization/Engine/en/Engine.locres) Hash: (-1280300587) String: (Save selected data to vlog file)
[2015.06.10-11.03.40:980][  0]LogTextLocalizationManager:Warning: Loading localization resources contain conflicting entries for (Namespace:ContentBrowser, Key:ImportAssetToolTip):
Resource: (C:/Program Files/Epic Games/4.7/Engine/Content/Localization/Editor/en/Editor.locres) Hash: (-630476809) String: (Import to {0}...)
Resource: (C:/Program Files/Epic Games/4.7/Engine/Content/Localization/Editor/en/Editor.locres) Hash: (1271782899) String: (Imports an asset from file to this folder.)
[2015.06.10-11.03.43:071][  0]LogTargetPlatformManager:Display: Building Assets For WindowsNoEditor
[2015.06.10-11.03.43:570][  0]LogTargetPlatformManager:Display: Building Assets For WindowsNoEditor
[2015.06.10-11.03.43:627][  0]LogDerivedDataCache:Display:  Cache Size: 512 MB
[2015.06.10-11.03.43:664][  0]LogDerivedDataCache: Loaded boot cache 0.04s 45MB C:/Users/wojtek/AppData/Local/UnrealEngine/4.7/DerivedDataCache/Boot.ddc.
[2015.06.10-11.03.43:664][  0]LogDerivedDataCache:Display: Loaded Boot cache: C:/Users/wojtek/AppData/Local/UnrealEngine/4.7/DerivedDataCache/Boot.ddc
[2015.06.10-11.03.43:664][  0]LogDerivedDataCache: FDerivedDataBackendGraph:  Pak pak cache file F:/UnrealEngine/HtmlTest/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
[2015.06.10-11.03.43:664][  0]LogDerivedDataCache: Unable to find inner node Pak for hierarchical cache Hierarchy.
[2015.06.10-11.03.43:775][  0]LogDerivedDataCache:Display: Pak cache opened for reading ../../../Engine/DerivedDataCache/Compressed.ddp.
[2015.06.10-11.03.43:787][  0]LogDerivedDataCache: Using Local data cache path C:/Users/wojtek/AppData/Local/UnrealEngine/Common/DerivedDataCache: Writable
[2015.06.10-11.03.44:116][  0]LogMeshUtilities: No automatic mesh reduction module available
[2015.06.10-11.03.44:116][  0]LogMeshUtilities: No automatic mesh merging module available
[2015.06.10-11.03.44:250][  0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
[2015.06.10-11.03.44:311][  0]LogSlate:Warning: Failed to load font data from '../../../Engine/Content/Slate/Fonts/Roboto-Italic.ttf'
[2015.06.10-11.03.44:668][  0]SourceControl: Info Source control is disabled
[2015.06.10-11.03.44:668][  0]SourceControl: Info Source control is disabled
[2015.06.10-11.03.44:669][  0]SourceControl: Info Source control is disabled
[2015.06.10-11.03.44:669][  0]LogSourceControl: RunCommandInternalRaw: 'git version'
[2015.06.10-11.03.44:669][  0]LogSourceControl: RunCommandInternalRaw: ExecProcess ReturnCode=2 OutResults=''
[2015.06.10-11.03.44:678][  0]SourceControl: Info Source control is disabled
[2015.06.10-11.03.44:852][  0]LogWindows:Error: Windows GetLastError: Operacja ukończona pomyślnie. (0)
[2015.06.10-11.03.47:138][  0]LogWindows: === Critical error: ===
Assertion failed: IsValid() [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.7\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h] [Line: 647] 



KERNELBASE.dll!UnknownFunction (0x00007ffa2ce08b9c) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!FOutputDeviceWindowsError::Serialize() (0x00007ffa17ed8074) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor-Core.dll!FOutputDevice::Logf__VA() (0x00007ffa17d57878) + 159 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\misc\outputdevice.cpp:144]
UE4Editor-Core.dll!FDebug::AssertFailed() (0x00007ffa17d38b17) + 62 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\misc\outputdevice.cpp:224]
UE4Editor-Slate.dll!TCommands::Get() (0x00007ffa1609d51f) + 75 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slate\public\framework\commands\commands.h:60]
UE4Editor-MainFrame.dll!FMainFrameCommands::RegisterCommands() (0x00007ffa082b910f) + 149 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\mainframe\private\frame\mainframeactions.cpp:103]
UE4Editor-MainFrame.dll!TCommands::Register() (0x00007ffa082b8026) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\slate\public\framework\commands\commands.h:52]
UE4Editor-MainFrame.dll!FMainFrameModule::StartupModule() (0x00007ffa082bcd07) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\mainframe\private\mainframemodule.cpp:617]
UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() (0x00007ffa17de32fa) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\modules\modulemanager.cpp:371]
UE4Editor-Core.dll!FModuleManager::LoadModule() (0x00007ffa17de2808) + 50 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\modules\modulemanager.cpp:238]
UE4Editor-LevelEditor.dll!FModuleManager::LoadModuleChecked() (0x00007ffa0796f8c0) + 39 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\public\modules\modulemanager.h:278]
UE4Editor-LevelEditor.dll!FLevelEditorModule::StartupModule() (0x00007ffa07a40ebd) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\leveleditor\private\leveleditor.cpp:185]
UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() (0x00007ffa17de32fa) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\modules\modulemanager.cpp:371]
UE4Editor-Core.dll!FModuleManager::LoadModule() (0x00007ffa17de2808) + 50 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\modules\modulemanager.cpp:238]
UE4Editor-TestPlugin-Win64-DebugGame.dll!FModuleManager::LoadModuleChecked() (0x00007ffa07d42669) + 47 bytes [c:\program files\epic games\4.7\engine\source\runtime\core\public\modules\modulemanager.h:278]
UE4Editor-TestPlugin-Win64-DebugGame.dll!FTestPlugin::StartupModule() (0x00007ffa07d42b5f) + 65 bytes [f:\unrealengine\htmltest\plugins\testplugin\source\testplugin\private\testplugin.cpp:19]
UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() (0x00007ffa17de32fa) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\modules\modulemanager.cpp:371]
UE4Editor-Projects.dll!FModuleDescriptor::LoadModulesForPhase() (0x00007ffa1c0aac40) + 50 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\projects\private\moduledescriptor.cpp:350]
UE4Editor-Projects.dll!FPluginManager::LoadModulesForEnabledPlugins() (0x00007ffa1c0aa191) + 0 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\projects\private\pluginmanager.cpp:424]
UE4Editor-Cmd.exe!FEngineLoop::LoadStartupModules() (0x00007ff71909758a) + 43 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launchengineloop.cpp:1863]
UE4Editor-Cmd.exe!FEngineLoop::PreInit() (0x00007ff71909b255) + 8 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launchengineloop.cpp:1400]
UE4Editor-Cmd.exe!GuardedMain() (0x00007ff7190921fb) + 15 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launch.cpp:110]
UE4Editor-Cmd.exe!GuardedMainWrapper() (0x00007ff7190926ea) + 5 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor-Cmd.exe!WinMain() (0x00007ff7190a2219) + 17 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor-Cmd.exe!__tmainCRTStartup() (0x00007ff7190a2d05) + 21 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
KERNEL32.DLL!UnknownFunction (0x00007ffa2ee813d2) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffa2fa95444) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x00007ffa2fa95444) + 0 bytes [UnknownFile:0]


[2015.06.10-11.03.47:139][  0]LogExit: Executing StaticShutdownAfterError
[2015.06.10-11.03.47:141][  0]LogWindows: FPlatformMisc::RequestExit(1)
[2015.06.10-11.03.47:141][  0]Log file closed, 06/10/15 13:03:47
1 Like

Hey RDS-Wojtek,

With custom plugins, we actually do not provide support for them. Since you’re the creator of this plugin and you’re not sure why this issue is occurring, I would suggest posting a question up on the forums rather than here on AnswerHub since it may receive more traction on the forums. However, I’m providing you a bit of documentation that may be of assistance for you with your plugin issue, especially since you’ve narrowed it down:

  • [Wiki - Plugins][1]
  • [Introduction to UE4 Plugins][2]
  • [UE4 Documentation - Plugins][3]
  • [Plugin AnswerHub][4]

Thank you, have a great day!

A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums
[2]: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums
[3]: Plugins in Unreal Engine | Unreal Engine 5.1 Documentation
[4]: https://answers.unrealengine.com/questions/25609/customizing-the-editors-toolbar-buttons-menu-via-c.html

Hey,

I have got the same issue.

Any update?

I solved this for myself by using:

“Type” : “EditorNoCommandlet”

in Plugin Settings.

1 Like

Thanks a lot!

Thank you very much!

Great found. Do you know where can this be specified for a module (not plugin)?

Actually we figured out it is possible to change this setting for the modules, in the uproject file