x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

"GetMipData failed" - Black Textures after sharing the project with others

We have recently started sharing a UE4 project with multiple members of a team via perforce. However, textures submitted to the depot sometimes give the following error when opened by other people:

"LogTexture: Error: Failed to build texture", in combination with "LogTexture: Warning: GetMipData failed" followed by the path of the texture in the content folder.

This occurs during the launch of the project in the editor, and leaves the launch hanging at 60%

The result is that the texture is black in the content browser. When the asset is saved, it seems to refresh and the texture returns. This does not fix the error, because this needs to be done on each computer.

Everyone is on the same version of Unreal (custom version of 4.18)

 void UTexture2D::GetMipData(int32 FirstMipToLoad, void** OutMipData)
 {
     if (PlatformData->TryLoadMips(FirstMipToLoad, OutMipData) == false)
     {
         // Unable to load mips from the cache. Rebuild the texture and try again.
         UE_LOG(LogTexture,Warning,TEXT("GetMipData failed for %s (%s)"),
             *GetPathName(), GPixelFormats[GetPixelFormat()].Name);
 #if WITH_EDITOR
         if (!GetOutermost()->bIsCookedForEditor)
         {
             ForceRebuildPlatformData();
             if (PlatformData->TryLoadMips(FirstMipToLoad, OutMipData) == false)
             {
                 UE_LOG(LogTexture, Error, TEXT("Failed to build texture %s."), *GetPathName());
             }
         }
 #endif // #if WITH_EDITOR
     }
 }

It seems like it might have to do something with the derrived data cache, but removing the DDC, saved and intermediate folder does fix the issue.

Product Version: UE 4.18
Tags:
more ▼

asked Apr 16 '18 at 03:29 PM in Installation & Setup

avatar image

ThomasKole
11 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Though it's not a fix, it turns out that this issue was being caused by the custom UE4 version we were using. It was breaking the DDC in specific scenarios.

more ▼

answered Apr 17 '18 at 12:15 PM

avatar image

ThomasKole
11 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question