Description

Attempting to package a runtime plugin (does not occur with a Development plugin) in a Blueprint project fails in 4.21 Preview 2. This also causes some Editor files to be deleted, including the Modules file. This results in the editor crashing on launch.

This only occurs in Binary builds of the editor

Verifying the installation of the editor fixes this issue.

Regression?: Yes
This did not occur in 4.21 Preview 1

This has not been currently tested on Main, I'm currently in the process of retrieving a Main binary to test with.

Steps to Reproduce
  1. Download the attached project (Blank blueprint project with a blank runtime plugin)
  2. Open the project in a Binary build of the editor, when prompted to build the plugin, select Yes
  3. In the Plugins window, select the TestPlugin from the bottom of the list and select Package
    Result: The packaging fails and this deletes the Modules file from the Editor's Binaries directory, as well as some other files (not sure of all that is deleted). Attempting to open the editor again results in a crash
    Expected: The packaging attempt succeeds.
Callstack
Fatal error: [File:D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Modules\ModuleManager.cpp] [Line: 999] Unable to read module manifest from '../../../Engine/Binaries/Win64/UE4Editor.modules'. Module manifests are generated at build time, and must be present to locate modules at runtime.

UE4Editor_Core!FDebug::AssertFailed() [d:\build\++ue4\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:422]
UE4Editor_Core!FModuleManager::FindModulePathsInDirectory() [d:\build\++ue4\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:1002]
UE4Editor_Core!FModuleManager::FindModulePaths() [d:\build\++ue4\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:974]
UE4Editor_Core!FModuleManager::FindModulePaths() [d:\build\++ue4\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:936]
UE4Editor_Core!FModuleManager::FindModules() [d:\build\++ue4\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:129]
UE4Editor_Core!FModuleManager::ModuleExists() [d:\build\++ue4\sync\engine\source\runtime\core\private\modules\modulemanager.cpp:150]
UE4Editor_Core!FPlatformFileManager::GetPlatformFile() [d:\build\++ue4\sync\engine\source\runtime\core\private\hal\platformfilemanager.cpp:96]
UE4Editor!LaunchCheckForFileOverride() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launchengineloop.cpp:677]
UE4Editor!FEngineLoop::PreInit() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launchengineloop.cpp:1144]
UE4Editor!GuardedMain() [d:\build\++ue4\sync\engine\source\runtime\launch\private\launch.cpp:135]
UE4Editor!GuardedMainWrapper() [d:\build\++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:145]
UE4Editor!WinMain() [d:\build\++ue4\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:276]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:283]
kernel32
ntdll

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-65595 in the post.

3
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools
Affects Versions4.21
Target Fix4.21
Fix Commit4480793
Main Commit4502288
CreatedOct 22, 2018
ResolvedOct 22, 2018
UpdatedOct 24, 2018
View Jira Issue