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"

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. 

[Closed] 4.13.2 - ResavePackagesCommandlet Null Material Function Inputs and Outputs

I have been trying to resolve null exception crash occurring when baking a level via the ResavePackagesCommandlet. I am executing the commandlet with the -map and -buildlighting params.

The exception occurs in UMaterialExpressionMaterialFunctionCall::Compile() Line 7314. I seeing all multiple Function Inputs and Outputs, however they are all null.

The flow as I see it is that the baking process hits a material that doesnt match the given shader in DDC decides to recompile a shader map. During compilation a material function is encountered. For some reason the Material functions Inputs and Outputs have the correct number of entries for the given material function, but they are all null. So far I have verified that the material in question is setup correctly with previews added to its inputs. It produces no errors on save. If I delete the material, it will crash on the next material function encountered.

  • We are running UE4 14.13.1

  • I have cleared the DDC.

  • I have cleared all redirectors.

  • I have enabled the following console varaibles in ConsoleVariables.ini, with no additional output seen other than the ShaderDebugInfo folder which just contains the Oculus and PixelShaderDeclaraion folders.

  •   r.ShaderDevelopmentMode=1
    
  •   r.DumpShaderDebugInfo=1
    
    

Can you think of any reason that this would occur?

Thanks, -Cort

Product Version: Not Selected
Tags:
more ▼

asked Jan 03 '17 at 09:47 PM in Bug Reports

avatar image

Answers.Archive STAFF
1.9k 206 313 684

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

The question has been closed Jan 03 '17 at 09:47 PM by AndrewHurley for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Hi Cort,

Would it be possible for you to try reproducing this in a new project with minimal assets and then privately sharing that with us? If you can pass us a reproduction case it should be much quicker to look in to as it definitely sounds like there's a bug there. We did recently fix a few material function issues for 4.14 so it could be related, but it's difficult to offer suggestions without getting the assert up in front of me.

Thanks, Chris

more ▼

answered Jan 03 '17 at 09:47 PM

avatar image

Answers.Archive STAFF
1.9k 206 313 684

avatar image Answers.Archive STAFF Jan 03 '17 at 09:47 PM

Sounds good. We are currently wrapping up our 4.14 integration now. I should be able to isolate it down to a minimal project soon.

avatar image Answers.Archive STAFF Jan 03 '17 at 09:47 PM

Thanks Cort. I'm hoping it's one of the crashes we've already resolved in the 4.14 release but if not I might be able to get a fix into the .1 or .2 revision release depending on how severe the code changes need to be.

avatar image Answers.Archive STAFF Jan 03 '17 at 09:47 PM

This issue is now fixed in 4.14.1. Thanks Chris for the response.

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

Follow this question

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

Answers to this question