Description

Having wildcards in the path for AdditionalPluginDirectories causes apps on Android to crash on launch. When testing this on iOS, the app did not crash but froze at the splash screen instead. Android logs are provided but I'm currently having difficulties getting logs off the iOS device for this issue.

Note: It's possible that this crash is expected, based off the assert message. If that is the case, another bug will likely need to go in as the wildcards that are causing this are automatically added to the path when a plugin is enabled/disabled in the editor.

Regression?: No
This also occurred in 4.15.3-3450819+++UE4+Release-4.15

Branches tested:
4.15.3-3450819+++UE4+Release-4.15
4.16.1-3466753+++UE4+Release-4.16
4.17.0-3492074+++UE4+Dev-Main

Steps to Reproduce
  1. Create a project
  2. Edit the .uproject file to contain the following information:
    "AdditionalPluginDirectories": [
    		"../../../../ProjectName/Plugins"
    	]
  3. Package the project for Android
  4. Install the app and launch it
    Result: The app crashes upon launch
    Expected: The app launches successfully
Callstack
06-23 15:24:14.467: D/UE4(14626): Assertion failed: IsRootedPath(AdditionalDir) [File:D:\Build\++UE4+Release-4.15+Compile\Sync\Engine\Source\Runtime\Projects\Private\ProjectDescriptor.cpp] [Line: 266] 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!FDebug::LogAssertFailedMessage(char const*, char const*, int, wchar_t const*, ...) 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!FProjectDescriptor::AddPluginDirectory(FString const&) 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!FProjectDescriptor::Read(FJsonObject const&, FString const&, FText&) 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!FProjectDescriptor::Load(FString const&, FText&) 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!FProjectManager::LoadProjectFile(FString const&) 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!FEngineLoop::PreInit(wchar_t const*) 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!FEngineLoop::PreInit(int, wchar_t**, wchar_t const*) 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!AndroidMain(android_app*) 
06-23 15:24:14.467: D/UE4(14626): libUE4.so!android_main() 
06-23 15:24:14.467: D/UE4(14626): libUE4.so![Unknown]() 
06-23 15:24:14.467: D/UE4(14626): libc.so![Unknown]() 
06-23 15:24:14.467: D/UE4(14626): libc.so![Unknown]() 

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Platform - Mobile
Affects Versions4.154.164.17
Target Fix4.17
Fix Commit3530379
Main Commit3555226
Release Commit3530379
CreatedJun 23, 2017
ResolvedJul 11, 2017
UpdatedSep 16, 2019