[Master] Crash on loading default material
I'm on master branch and am experiencing a blocker with loading default materials. It crashes.
The log says:
[2015.10.31-03.56.07:659][ 0]LogLinker:Warning: Asset '../../../Engine/Content/EngineMaterials/Widget3DPassThrough.uasset' has been saved with engine version newer than current and therefore can't be loaded. CurrEngineVersion: 4.11.0-2633501+UE4 AssetEngineVersion: 4.11.0-2713022+++depot+UE4 [2015.10.31-03.56.07:661][ 0]LogLinker:Warning: Asset '../../../Engine/Content/EngineMaterials/WorldGridMaterial.uasset' has been saved with engine version newer than current and therefore can't be loaded. CurrEngineVersion: 4.11.0-2633501+UE4 AssetEngineVersion: 4.11.0-2713022+++depot+UE4 [2015.10.31-03.56.07:661][ 0]LogUObjectGlobals:Warning: Failed to find object 'Material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial' ... [2015.10.31-03.56.10:850][ 0]LogWindows:Error: === Critical error: === Assertion failed: GDefaultMaterials[Domain] != NULL [File:C:\GitHub\UnrealEngine\master\Engine\Source\Runtime\Engine\Private\Materials\Material.cpp] [Line: 351] Cannot load default material 'engine-ini:/Script/Engine.Engine.DefaultMaterialName'
This is going on for a few weeks now. As a workaround I have to jump back to commit 2fe3e256043b66f0566bff3f1f62e7b446603eae ...so the problem seems to have been introduced between then and now. :)
Thanks in advance!
I think the problem is that the code compiled into 4.10 is newer than (at least some) of the code in the GitHub Master branch. This is because we are currently changing our internal branching structure at Epic, and GitHub Master has not been updated in a while (you may have noticed the lack of check-ins lately).
Last month, we started to use separate branches internally for all of our teams. Previously, almost everyone used to check into Master directly. We are still in the process of stabilizing the Master branch before we will take updates from the teams again. This change will likely not be complete until 4.11. That being said, we have been spot merging some fixes from other branches into 4.10, and that might explain the discrepancy.
Although it doesn't seem to have been stated on the official channels, my personal recommendation would be to not rely on code in GitHub Master if you also intend to use 4.10 content right now.
answered Nov 15 '15 at 04:05 PM
You have to resave your assets to ensure they are saved with your current engine version. You should never use the master branch for active development. Use the release branch or the dedicated branches for each stable version.
To execute a resave you can just run the following commandlet:
The commandlet has some arguments that you can use to control the min and max version numbers among others:
For all other switches just check the current engine source, there might be more to see ^^
I think I found a workaround...
remembering that most stuff is backwards compatible I took the EngineMaterials folder from the VXGI branch I still have lying around and used them to replace the supposed too new stuff - et voila :)
though it still could not resave the others...
answered Nov 02 '15 at 12:49 PM
i got the same error if i try to launch project, i found that in my case i can reproduce it :
answered Mar 25 '16 at 05:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here