Disabling Gear VR plugin crashes packaged project

Reproduction steps:

  • Create new empty blueprint project
  • Disable plugin: Virtual Reality - Gear VR
  • Package project for Windows (type of build does not seem to matter)
  • Run executable

If packaged for Development, the error is:

Fatal error: [File:D:\Build\++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp] [Line: 6409] 
LoadPackageAsync failed to begin to load a package because the supplied package name was neither a valid long package name nor a filename of a map within a content folder: ''

KERNELBASE.dll!0x00000000FD84A06D
UE4Game.exe!0x000000003FCB2E8A
UE4Game.exe!0x000000003FD5F11F
UE4Game.exe!0x000000003FBE8BD8
UE4Game.exe!0x00000000401C352E
UE4Game.exe!0x000000004014AB41
UE4Game.exe!0x000000004015F967
UE4Game.exe!0x00000000401695C1
UE4Game.exe!0x0000000040169AB8
UE4Game.exe!0x0000000040168B79
UE4Game.exe!0x0000000043145B16
UE4Game.exe!0x000000003FFE55DE
UE4Game.exe!0x000000004016BC5B
UE4Game.exe!0x0000000040150F65
UE4Game.exe!0x000000003FBCEE65
UE4Game.exe!0x000000003FBC6EDA
UE4Game.exe!0x000000003FBC714A
UE4Game.exe!0x000000003FBD7F98
UE4Game.exe!0x00000000438D0676
kernel32.dll!0x00000000776859CD
ntdll.dll!0x00000000777BA561
ntdll.dll!0x00000000777BA561

If packaged for Shipping, the error is:

LowLevelFatalError [File:D:\Build\++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\Serialization\AsyncLoading.cpp] [Line: 6409] 
LoadPackageAsync failed to begin to load a package because the supplied package name was neither a valid long package name nor a filename of a map within a content folder: ''

KERNELBASE.dll!0x00000000FD84A06D
UE4Game-Win64-Shipping.exe!0x000000003FC3752F
UE4Game-Win64-Shipping.exe!0x000000003FB9C048
UE4Game-Win64-Shipping.exe!0x000000003FDD6EAF
UE4Game-Win64-Shipping.exe!0x000000003FDAE264
UE4Game-Win64-Shipping.exe!0x000000003FDB2979
UE4Game-Win64-Shipping.exe!0x000000003FDB63FC
UE4Game-Win64-Shipping.exe!0x000000003FDB684A
UE4Game-Win64-Shipping.exe!0x000000003FDB5C1A
UE4Game-Win64-Shipping.exe!0x000000004164F746
UE4Game-Win64-Shipping.exe!0x000000003FCCA3A3
UE4Game-Win64-Shipping.exe!0x000000003FDB78A6
UE4Game-Win64-Shipping.exe!0x000000003FDAFF00
UE4Game-Win64-Shipping.exe!0x000000003FB92CB5
UE4Game-Win64-Shipping.exe!0x000000003FB8E53A
UE4Game-Win64-Shipping.exe!0x000000003FB8E73A
UE4Game-Win64-Shipping.exe!0x000000003FB958A0
UE4Game-Win64-Shipping.exe!0x00000000418FD12E
kernel32.dll!0x00000000776859CD
ntdll.dll!0x00000000777BA561
ntdll.dll!0x00000000777BA561

Note: the displayed path does not exist locally.

Hello laserbeams,

Thank you for reporting this issue. I’ve entered a bug report for this and you can track its progress here: UE-45526