aws-samples / amazon-polly-metahumans

This Unreal Engine sample project demonstrates how to bring Epic Games' MetaHuman digital characters to life using the Amazon Polly text-to-speech service from AWS. Use this project as a starting point for creating your own Unreal Engine applications that leverage Amazon Polly to give voice to your MetaHumans.
MIT No Attribution
178 stars 67 forks source link

Start AmazonPollyMetaHuman.uproject on Mac and report an error! #4

Closed lls3018 closed 2 years ago

lls3018 commented 2 years ago

Failed to load map! /amazon-polly-metahumans-main/Content/AmazonPollyMetaHuman/Scene/MetahumanScene.umap appears to be an asset file.

kris-work commented 2 years ago

lls3018, I just tested on my MacBook Pro and was able to open and run the project following the instructions in the Quick Start section of the README. So I think we'll need a little more info from you to help troubleshoot the issue you're seeing. Can you provide any or all of the following?

  1. Which version of Unreal Engine are you trying to open the project with?
  2. Did you follow all the steps and prerequisites in the Quick Start section? Did any errors occur during those steps?
  3. Can you provide a detailed list of the steps that you're performing when you see this error?
  4. How exactly is this error message being presented to you (dialog, log file, etc.) and what is the exact wording of the message?
  5. What do you see in the Unreal Engine viewport after that error occurs? Is there any sort of map there? (For example, a mostly blank scene with a floor, some clouds, and a light?)
  6. Share the basic info about your Mac's configuration by selecting Apple Menu > About This Mac. You should see an window that looks like the image blow. Let us know the model, processor, memory, and graphics configuration you have. About This Mac
arnoldligtvoet commented 2 years ago

Got the same error: Failed to load map! [folder]/amazon-polly-metahumans-main/Content/AmazonPollyMetaHuman/Scene/MetahumanScene.umap appears to be an asset file.

In answer to your questions:

  1. UE 4.27.2

  2. Yes, no errors. It did take me some time to realize that the make download and compile needs to be in Source/AmazonPollyMetaHuman/ThirdParty/AwsSdk, as I thought I had to download the script manually (perhaps update the quick install pointing to that dir for the actual bat and script files).

  3. Followed the quick install. Double click on project file, this opens a dropdown selector asking me which UE4Edit I want to start (there is only 4.27.2), select it, asks if I want to add AmazonPollyMetaHuman (not AmazonPolly), click yes, UE4Edit starts compiling and then at 89% I get that error

  4. Dialog and exactly like that (the [folder] includes the path to my local install folder where I downloaded the project

  5. Clicking okay results in UE4Edit proceeding. The UI starts and starts to compile an additional 4500 shaders. The end result is an empty UI. See screenshot: image

  6. See screenshot image

The output log has some errors in it: LogAssetRegistry: Error: Package [folder]/amazon-polly-metahumans-main/Content/AmazonPollyMetaHuman/Ada/BP_Ada.uasset has malformed tag LogAssetRegistry: Error: Package [folder]/amazon-polly-metahumans-main/Content/AmazonPollyMetaHuman/Ada/Materials/MI_Hair2.uasset has malformed tag [continued for each asset in the folder, removed for readability]

arnoldligtvoet commented 2 years ago

Could it be some kind of file download error. When I check the files (for instance MetaHumanScene.umap) locally it shows: version https://git-lfs.github.com/spec/v1 oid sha256:c4714f3f5cc42e8d64a4426739b96a5f19e94cd48af98f30fb055d57b621d137 size 143263

and not the actual file content. Downloaded the project as zip and also per git clone from command line. Same result. When I download files manually they are larger and contain different content.

Looks like lfs is not enabled in the zip download (https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-git-lfs-objects-in-archives-of-your-repository) and my local install of 'git clone' also does not expand lfs. Cloned the repo, enabled lfs in zip and the download is somewhat larger (currently at 2.2 Gb versus 243Kb).

Can confirm that downloading the repository with all the LFS files from my cloned repo solves this issue.

kris-work commented 2 years ago

Thanks for the discover, @arnoldligtvoet! I've now updated the repository settings to include Git LFS files in the archive which should fix this issue for anyone downloading the repository as a ZIP. I'll also make sure we add detail to the README about this repository's use of Git LFS so that people clone the repo know what is required.

kris-work commented 2 years ago

@lls3018 I'm assuming you had previously downloaded this repository as a ZIP file. Can you try that again and see if the issue is now resolved for you?

cwalkere commented 2 years ago

Issue has been resolved, closing this issue.