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"

UMG Texture randomly gets white

Hello there!

First off I have to say that I digged trough houndreds of pages and found nothing (except of a fact, that it might be UE4 bug that is not resolved - yet no workaround can be found).

Game works without ANY problems in editor and both - debug/development versions. Issue occurs only with Shipping version.

We are using around 20 textures of scanned files (only one displayed at a time). Unreal randomly turns some of them into white blanks. Every time different textures are displayed correctly, so they are packed in a build. What is worse, when we save the game and load it - for a while all images are working correctly. After a while, when more textures are available, random "blanking" starts again.

From our debug appears that these specific textures are becoming nulls for UMG, while on 3D mesh in front of our player we can see texture very clearly working...

Just to prove that it's not related to our game mechanic we made simple test. We put all 20 textures into canvas (no mechanic related, simple drag and drop images from content browser). Played for a few minutes, turned hud on and bang - random images got white. Every time we restart the game different images are blanked.

Any idea? We are close to remove this feature from our game, will appreciate any help :)

Regards, Artur

PS- was testing with texture compression/streaming/import settings for a week

Product Version: UE 4.16
more ▼

asked Nov 03 '17 at 02:16 PM in Using UE4

avatar image

Artur G.
38 2 6

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

1 answer: sort voted first

Hi, I've had this too a while ago, at least if I understand it right. An array of textures was loaded and after a minute they all dissapeared. Apparently the Garbage collector thinks it is time to clean up after a minute and 'bamm' all of them are gone. It was fixed by adding them to the root in the constructor (c++).

 // prevent GC
 UTexture2D* pTexture = NULL;
 pTexture = UMyToolsActorComponent::LoadTexture(textureFilePath);

more ▼

answered Nov 30 '17 at 02:44 PM

avatar image

38 4 7

avatar image Artur G. Nov 30 '17 at 02:49 PM

And that is the correct answer, thanks! What really bothers me is how UE handles all of that in memory. If GC removed texture, but it was well visible in 3D space - are they duplicated in memory for both UMG and 3d space? Anyway we decided to ditch UMG and focus on fully 3D UI - no surprises ;)

avatar image vlecadJA Nov 30 '17 at 02:52 PM

are they duplicated in memory for both UMG and 3d space?

-->I can't answer that one. I'm not into ue long enough. I have a problem a little similar to this one, you might have an idea? https://answers.unrealengine.com/questions/730872/no-images-on-widget-in-shipping-version.html
(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