Creating asset package crashes Unreal Engine (v0.9.9)

I am able to successfully import a custom 3D model for use as a prop following this documentation. But when I try to export the package following this documentation Unreal Engine crashes and only an empty ZIP file is created.

The package containing my custom prop is named “KSSamplePackage”. I am running this command to create the standalone package…

make package ARGS="--packages=KSSamplePackage"

After running that command, an Unreal Engine crash window eventually appears with the following summary:

Crash Summary

Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp] [Line: 445] LongPackageNameToFilename failed to convert ‘PropsMap/PropsMap’. Path does not map to any roots.

UE4Editor_CoreUObject
UE4Editor_Carla!UPrepareAssetsForCookingCommandlet::SavePackage() [c:\users\administrator\git\carla\unreal\carlaue4\plugins\carla\source\carla\commandlet\prepareassetsforcookingcommandlet.cpp:341]
UE4Editor_Carla!UPrepareAssetsForCookingCommandlet::SaveWorld() [c:\users\administrator\git\carla\unreal\carlaue4\plugins\carla\source\carla\commandlet\prepareassetsforcookingcommandlet.cpp:247]
UE4Editor_Carla!UPrepareAssetsForCookingCommandlet::PreparePropsForCooking() [c:\users\administrator\git\carla\unreal\carlaue4\plugins\carla\source\carla\commandlet\prepareassetsforcookingcommandlet.cpp:448]
UE4Editor_Carla!UPrepareAssetsForCookingCommandlet::Main() [c:\users\administrator\git\carla\unreal\carlaue4\plugins\carla\source\carla\commandlet\prepareassetsforcookingcommandlet.cpp:471]
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll

The following files are generated in the “carla/Build” folder:

  • CARLA_0.9.9-53-g2d58a69f.zip - A completely empty ZIP file
  • KSSamplePackage_0.9.9-53-g2d58a69f.zip - A ZIP file with no content but containing the directory structure: “CarlaUE4/Content/Carla/Config”
  • A folder called KSSamplePackage_0.9.9-53-g2d58a69f with the same empty folder structure described above.

I am using CARLA 0.9.9 source and Unreal Engine 4.24 on Windows.

Any ideas on how to fix this or even to troubleshoot it?

Here is the full console output. Note that there are numerous messages about missing paths/files…

Console Output
C:\Users\Administrator\Documents\carla>make package ARGS="--packages=KSSamplePackage"
-[Setup]: [Batch params]: --boost-toolset msvc-14.1
-[Setup]: Asynchronous jobs:  8
-[Setup]: Boost toolset:      msvc-14.1
-[Setup]: Install directory:  "C:\Users\Administrator\Documents\carla\Build\"
-[Setup]: Installing zlib...
    -[install_zlib]: [Batch params]: --build-dir "C:\Users\Administrator\Documents\carla\Build\"
    -[install_zlib]: A zlib installation already exists.
    -[install_zlib]: Delete "C:\Users\Administrator\Documents\carla\Build\zlib-install" if you want to force a rebuild.
    -[install_zlib]: Exiting...
-[Setup]: Installing libpng...
    -[install_libpng]: [Batch params]: --build-dir "C:\Users\Administrator\Documents\carla\Build\" --zlib-install-dir "C:\Users\Administrator\Documents\carla\Build\\zlib-install"
    -[install_libpng]: A libpng installation already exists.
    -[install_libpng]: Delete "C:\Users\Administrator\Documents\carla\Build\libpng-1.2.37-install" if you want to force a rebuild.
    -[install_libpng]: Exiting...
-[Setup]: Installing rpclib...
    -[install_rpclib]: [Batch params]: --build-dir "C:\Users\Administrator\Documents\carla\Build\"
    -[install_rpclib]: A rpclib installation already exists.
    -[install_rpclib]: Delete "C:\Users\Administrator\Documents\carla\Build\rpclib-install\" if you want to force a rebuild.
    -[install_rpclib]: Exiting...
-[Setup]: Installing Google Test...
    -[install_gtest]: [Batch params]: --build-dir "C:\Users\Administrator\Documents\carla\Build\"
    -[install_gtest]: A Google Test installation already exists.
    -[install_gtest]: Delete "C:\Users\Administrator\Documents\carla\Build\gtest-install\" if you want to force a rebuild.
    -[install_gtest]: Exiting...
-[Setup]: Installing "Recast & Detour"...
    -[install_recast]: [Batch params]: --build-dir "C:\Users\Administrator\Documents\carla\Build\"
    -[install_recast]: A "Recast & Detour" installation already exists.
    -[install_recast]: Delete "C:\Users\Administrator\Documents\carla\Build\recast-cdce4e-install\" if you want to force a rebuild.
    -[install_recast]: Exiting...
-[Setup]: Installing Boost...
    -[install_boost]: [Batch params]: --build-dir "C:\Users\Administrator\Documents\carla\Build\" --toolset msvc-14.1 --version 1.72.0 -j 8
    -[install_boost]: A Boost installation already exists.
    -[install_boost]: Delete "C:\Users\Administrator\Documents\carla\Build\boost-1.72.0-install" if you want to force a rebuild.
    -[install_boost]: Exiting...
        1 file(s) copied.
        1 file(s) copied.
-[Setup]: Creating "CMakeLists.txt.in"...
-[Setup]:
   ###########
   # SUCCESS #
   ###########

   IMPORTANT!

   All the CARLA library dependences should be installed now.
   (You can remove all "*-src" folders in C:\Users\Administrator\Documents\carla\Build\ directory)

   You only need the ASSET PACK with all the meshes and textures.

   This script provides the assets for CARLA 0.9.9
   You can download the assets from here:

       http://carla-assets.s3.amazonaws.com/20200422_ea5179a.tar.gz

   Unzip it in the "C:/Users/Administrator/Documents/carla/Unreal\CarlaUE4\Content\Carla" folder.
   If you want another version, search it in C:/Users/Administrator/Documents/carla/Util\ContentVersions.txt.

-[BuildLibCarla]: [Batch params]: --server --client
CMake Error: The current CMakeCache.txt directory C:/Users/Administrator/Documents/carla/Build/libcarla-visualstudio/CMakeCache.txt is different than the directory c:/Users/Administrator/Git/carla/Build/libcarla-visualstudio where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "C:/Users/Administrator/Documents/carla/CMakeLists.txt" does not match the source "C:/Users/Administrator/Git/carla/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
CMake Error: The current CMakeCache.txt directory C:/Users/Administrator/Documents/carla/Build/libcarla-visualstudio/CMakeCache.txt is different than the directory c:/Users/Administrator/Git/carla/Build/libcarla-visualstudio where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The current CMakeCache.txt directory C:/Users/Administrator/Documents/carla/Build/libcarla-visualstudio/CMakeCache.txt is different than the directory c:/Users/Administrator/Git/carla/Build/libcarla-visualstudio where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source directory "C:/Users/Administrator/Git/carla" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
CMake Configure step failed.  Build files cannot be regenerated correctly.
CMake is re-running because C:/Users/Administrator/Git/carla/Build/libcarla-visualstudio/CMakeFiles/generate.stamp dependency file is missing.
CMake Error: The current CMakeCache.txt directory C:/Users/Administrator/Documents/carla/Build/libcarla-visualstudio/CMakeCache.txt is different than the directory c:/Users/Administrator/Git/carla/Build/libcarla-visualstudio where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "C:/Users/Administrator/Documents/carla/CMakeLists.txt" does not match the source "C:/Users/Administrator/Git/carla/CMakeLists.txt" used to generate cache.  Re-run cmake with a different source directory.
CMake Error: The current CMakeCache.txt directory C:/Users/Administrator/Documents/carla/Build/libcarla-visualstudio/CMakeCache.txt is different than the directory c:/Users/Administrator/Git/carla/Build/libcarla-visualstudio where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The current CMakeCache.txt directory C:/Users/Administrator/Documents/carla/Build/libcarla-visualstudio/CMakeCache.txt is different than the directory c:/Users/Administrator/Git/carla/Build/libcarla-visualstudio where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source directory "C:/Users/Administrator/Git/carla" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
CMake Configure step failed.  Build files cannot be regenerated correctly.
CMake is re-running because C:/Users/Administrator/Git/carla/Build/libcarla-visualstudio/CMakeFiles/generate.stamp dependency file is missing.
-[BuildLibCarla]: LibCarla server has been successfully installed in "C:/Users/Administrator/Documents/carla/Unreal\CarlaUE4\Plugins\Carla\CarlaDependencies"!
-[BuildLibCarla]: LibCarla client has been successfully installed in "C:/Users/Administrator/Documents/carla/PythonAPI\carla\dependencies"!
-[BuildPythonAPI]: [Batch params]: --py3
Building Python API for Python 3.
compiling:
  - source/libcarla/libcarla.cpp
  - dependencies/include/carla\Buffer.cpp
  - dependencies/include/carla\Exception.cpp
  - dependencies/include/carla\FileSystem.cpp
  - dependencies/include/carla\StringUtil.cpp
  - dependencies/include/carla\client\Actor.cpp
  - dependencies/include/carla\client\ActorAttribute.cpp
  - dependencies/include/carla\client\ActorBlueprint.cpp
  - dependencies/include/carla\client\ActorList.cpp
  - dependencies/include/carla\client\BlueprintLibrary.cpp
  - dependencies/include/carla\client\DebugHelper.cpp
  - dependencies/include/carla\client\Junction.cpp
  - dependencies/include/carla\client\LaneInvasionSensor.cpp
  - dependencies/include/carla\client\Light.cpp
  - dependencies/include/carla\client\LightManager.cpp
  - dependencies/include/carla\client\Map.cpp
  - dependencies/include/carla\client\ServerSideSensor.cpp
  - dependencies/include/carla\client\TimeoutException.cpp
  - dependencies/include/carla\client\TrafficLight.cpp
  - dependencies/include/carla\client\TrafficSign.cpp
  - dependencies/include/carla\client\Vehicle.cpp
  - dependencies/include/carla\client\Walker.cpp
  - dependencies/include/carla\client\WalkerAIController.cpp
  - dependencies/include/carla\client\Waypoint.cpp
  - dependencies/include/carla\client\World.cpp
  - dependencies/include/carla\client\detail\ActorFactory.cpp
  - dependencies/include/carla\client\detail\ActorState.cpp
  - dependencies/include/carla\client\detail\ActorVariant.cpp
  - dependencies/include/carla\client\detail\Client.cpp
  - dependencies/include/carla\client\detail\Episode.cpp
  - dependencies/include/carla\client\detail\EpisodeProxy.cpp
  - dependencies/include/carla\client\detail\EpisodeState.cpp
  - dependencies/include/carla\client\detail\Simulator.cpp
  - dependencies/include/carla\client\detail\WalkerNavigation.cpp
  - dependencies/include/carla\geom\GeoLocation.cpp
  - dependencies/include/carla\geom\Math.cpp
  - dependencies/include/carla\geom\Mesh.cpp
  - dependencies/include/carla\geom\MeshFactory.cpp
  - dependencies/include/carla\nav\Navigation.cpp
  - dependencies/include/carla\nav\WalkerEvent.cpp
  - dependencies/include/carla\nav\WalkerManager.cpp
  - dependencies/include/carla\opendrive\OpenDriveParser.cpp
  - dependencies/include/carla\opendrive\parser\ControllerParser.cpp
  - dependencies/include/carla\opendrive\parser\GeometryParser.cpp
  - dependencies/include/carla\opendrive\parser\GeoReferenceParser.cpp
  - dependencies/include/carla\opendrive\parser\JunctionParser.cpp
  - dependencies/include/carla\opendrive\parser\LaneParser.cpp
  - dependencies/include/carla\opendrive\parser\ObjectParser.cpp
  - dependencies/include/carla\opendrive\parser\ProfilesParser.cpp
  - dependencies/include/carla\opendrive\parser\RoadParser.cpp
  - dependencies/include/carla\opendrive\parser\SignalParser.cpp
  - dependencies/include/carla\opendrive\parser\TrafficGroupParser.cpp
  - dependencies/include/carla\pointcloud\PointCloudIO.cpp
  - dependencies/include/carla\road\Lane.cpp
  - dependencies/include/carla\road\LaneSection.cpp
  - dependencies/include/carla\road\Map.cpp
  - dependencies/include/carla\road\MapBuilder.cpp
  - dependencies/include/carla\road\MapData.cpp
  - dependencies/include/carla\road\Road.cpp
  - dependencies/include/carla\road\SignalType.cpp
  - dependencies/include/carla\road\element\Geometry.cpp
  - dependencies/include/carla\road\element\LaneCrossingCalculator.cpp
  - dependencies/include/carla\road\element\LaneMarking.cpp
  - dependencies/include/carla\road\element\Waypoint.cpp
  - dependencies/include/carla\rpc\WeatherParameters.cpp
  - dependencies/include/carla\sensor\Deserializer.cpp
  - dependencies/include/carla\sensor\data\LaneInvasionEvent.cpp
  - dependencies/include/carla\sensor\s11n\CollisionEventSerializer.cpp
  - dependencies/include/carla\sensor\s11n\DVSEventArraySerializer.cpp
  - dependencies/include/carla\sensor\s11n\EpisodeStateSerializer.cpp
  - dependencies/include/carla\sensor\s11n\GnssSerializer.cpp
  - dependencies/include/carla\sensor\s11n\ImageSerializer.cpp
  - dependencies/include/carla\sensor\s11n\IMUSerializer.cpp
  - dependencies/include/carla\sensor\s11n\LidarSerializer.cpp
  - dependencies/include/carla\sensor\s11n\NoopSerializer.cpp
  - dependencies/include/carla\sensor\s11n\ObstacleDetectionEventSerializer.cpp
  - dependencies/include/carla\sensor\s11n\RadarSerializer.cpp
  - dependencies/include/carla\sensor\s11n\SensorHeaderSerializer.cpp
  - dependencies/include/carla\streaming\detail\Dispatcher.cpp
  - dependencies/include/carla\streaming\detail\StreamStateBase.cpp
  - dependencies/include/carla\streaming\detail\Token.cpp
  - dependencies/include/carla\streaming\detail\tcp\Client.cpp
  - dependencies/include/carla\streaming\detail\tcp\Server.cpp
  - dependencies/include/carla\streaming\detail\tcp\ServerSession.cpp
  - dependencies/include/carla\trafficmanager\BatchControlStage.cpp
  - dependencies/include/carla\trafficmanager\CollisionStage.cpp
  - dependencies/include/carla\trafficmanager\InMemoryMap.cpp
  - dependencies/include/carla\trafficmanager\LocalizationStage.cpp
  - dependencies/include/carla\trafficmanager\LocalizationUtils.cpp
  - dependencies/include/carla\trafficmanager\MotionPlannerStage.cpp
  - dependencies/include/carla\trafficmanager\Parameters.cpp
  - dependencies/include/carla\trafficmanager\PerformanceDiagnostics.cpp
  - dependencies/include/carla\trafficmanager\PIDController.cpp
  - dependencies/include/carla\trafficmanager\PipelineStage.cpp
  - dependencies/include/carla\trafficmanager\SimpleWaypoint.cpp
  - dependencies/include/carla\trafficmanager\TrafficLightStage.cpp
  - dependencies/include/carla\trafficmanager\TrafficManager.cpp
  - dependencies/include/carla\trafficmanager\TrafficManagerLocal.cpp
  - dependencies/include/carla\trafficmanager\TrafficManagerRemote.cpp
running bdist_egg
running egg_info
writing source\carla.egg-info\PKG-INFO
writing dependency_links to source\carla.egg-info\dependency_links.txt
writing top-level names to source\carla.egg-info\top_level.txt
reading manifest file 'source\carla.egg-info\SOURCES.txt'
writing manifest file 'source\carla.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\carla
copying build\lib.win-amd64-3.8\carla\command.py -> build\bdist.win-amd64\egg\carla
copying build\lib.win-amd64-3.8\carla\libcarla.cp38-win_amd64.pyd -> build\bdist.win-amd64\egg\carla
copying build\lib.win-amd64-3.8\carla\__init__.py -> build\bdist.win-amd64\egg\carla
byte-compiling build\bdist.win-amd64\egg\carla\command.py to command.cpython-38.pyc
byte-compiling build\bdist.win-amd64\egg\carla\__init__.py to __init__.cpython-38.pyc
creating stub loader for carla\libcarla.cp38-win_amd64.pyd
byte-compiling build\bdist.win-amd64\egg\carla\libcarla.py to libcarla.cpython-38.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying source\carla.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying source\carla.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying source\carla.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying source\carla.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
zip_safe flag not set; analyzing archive contents...
carla.__pycache__.libcarla.cpython-38: module references __file__
creating 'dist\carla-0.9.9-py3.8-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)

-[BuildPythonAPI]: Carla lib for python has been successfully installed in "C:\Users\Administrator\Documents\carla\PythonAPI\carla\dist"!
-[Package]: [Batch params]: --ue-version 4.24 --packages=KSSamplePackage
-[Package]: Building package...

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive:

WARNING: The system cannot find the path specified.
C:\Users\Administrator\Documents\carla\Build\UE4Carla\0.9.9-53-g2d58a69f-dirty\WindowsNoEditor

0 files, 0 bytes

Creating archive: C:\Users\Administrator\Documents\carla\Build\UE4Carla\CARLA_0.9.9-53-g2d58a69f-dirty.zip

Add new data to archive: 0 files, 0 bytes


Files read from disk: 0
Archive size: 22 bytes (1 KiB)

Scan WARNINGS for files and folders:

C:\Users\Administrator\Documents\carla\Build\UE4Carla\0.9.9-53-g2d58a69f-dirty\WindowsNoEditor : The system cannot find the path specified.
----------------
Scan WARNINGS: 1
Preparing environment for cooking 'KSSamplePackage'.
Cooking package 'KSSamplePackage'...
The system cannot find the file specified.
The system cannot find the file specified.
Copying files to 'KSSamplePackage'...
/=\TARGET:/=\*
The filename, directory name, or volume label syntax is incorrect.
        0 file(s) copied.
The system cannot find the file specified.
Packaging 'KSSamplePackage'...

7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21

Scanning the drive:
4 folders, 0 files, 0 bytes

Creating archive: C:\Users\Administrator\Documents\carla\Build\UE4Carla\KSSamplePackage_0.9.9-53-g2d58a69f-dirty.zip

Add new data to archive: 4 folders, 0 files, 0 bytes


Files read from disk: 0
Archive size: 628 bytes (1 KiB)
Everything is Ok
ZIP created at C:\Users\Administrator\Documents\carla\Build\UE4Carla\KSSamplePackage_0.9.9-53-g2d58a69f-dirty.zip

-[Package]: Compress carla project exported to "C:/Users/Administrator/Documents/carla/Build/UE4Carla/KSSamplePackage_0.9.9-53-g2d58a69f-dirty.zip"