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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

UMaterialInstance causes freeze on splash screen on Android, works on iOS

Hi Epic Games,

I'm writing in to report a bug that was driving me crazy after I updated from UE 4.13.2 to UE 4.17.2. I consider this bug extra nasty because the exact same source code works without any assertions or crashes on Windows and iOS, but freezes on Android.

Inside the constructor of my game mode, I'm using

 ConstructorHelpers::FClassFinder<AMeshActor> Type

to get a pointer to the class of a data only blueprint which the game mode will spawn later on. I'm initializing the TSubclassOf inside the constructor to set a default value which I can then override in the level editor.

When executing the FClassFinder, it will also execute the constructor of the base type from which the data only blueprint is derived. Inside that constructor, I use an

 ConstructorHelpers::FObjectFinderOptional<UMaterialInstance> MaterialActive;

for getting a material instance which I then store in a property:

 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly)
 class UMaterialInstance* MaterialDefault;


 MaterialDefault = ConstructorStatics.MaterialActive.Get();

and that causes my game to freeze at the splash screen on android.

The exact same source code compiles and works just fine on Windows and iOS, so this bug seems to be specific to Android. Also, it appears that the same source code worked with 4.13.2 on Android.

Cheers, Hajo

Product Version: UE 4.17
more ▼

asked Oct 01 '17 at 05:18 PM in Bug Reports

avatar image

96 3 9

avatar image fxtentacle Oct 02 '17 at 07:48 AM

As a workaround, I moved from ConstructorHelpers::FClassFinder to creating a derived blueprint class in the editor and populating the list in there. That works everywhere.

So this bug seems to be related to how classes are loaded by ConstructorHelpers::FClassFinder, as opposed to being referenced by a blueprint.

avatar image SimonWeber Nov 10 '17 at 11:19 AM

We encounter the same issue. UE 4.17.2, Android 7.0 Nougat.

The UGameplayStatic::LoadClass call also seems to cause the same issue. As a workaround, we also used a blueprint.

Do you know whether UE4.18 fixed this problem?

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

0 answers: sort voted first
Be the first one to answer this question
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