Project upgrade from 4.10.4 to 4.12.5 problem

After upgrading my project I can’t properly package it.

Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Cook failed. ---> AutomationTool.AutomationException: BUILD FAILED: Failed while running Cook for ...; see log ...
в AutomationTool.CommandUtils.RunCommandlet(FileReference ProjectName, String UE4Exe, String Commandlet, String Parameters)
в Project.Cook(ProjectParams Params)
--- Конец трассировки внутреннего стека исключений ---
в Project.Cook(ProjectParams Params)
в BuildCookRun.DoBuildCookRun(ProjectParams Params)
в AutomationTool.BuildCommand.Execute()
в AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
в AutomationTool.Automation.Process(String[] CommandLine)
в AutomationTool.Program.MainProc(Object Param)
в AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
в AutomationTool.Program.Main()
Program.Main: AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
Domain_ProcessExit
copying UAT log files...
BUILD FAILED

There are 2 errors appearing 26 times:

LogPhysics:Error: PHYSX: (..\..\PhysX\src\NpMaterial.cpp 124) eINVALID_PARAMETER : NpMaterial::setRestitution: Invalid value -10.000000 was clamped to [0,1]!
LogPhysics:Error: PHYSX: (..\..\PhysX\src\NpMaterial.cpp 124) eINVALID_PARAMETER : NpMaterial::setRestitution: Invalid value -20.000000 was clamped to [0,1]!

What did go wrong?

I have same error too after my project upgrade from 4.11.2 to 4.12.5 .

Hey Horokey,

The error seems to be related to a material you have named NpMaterial which is using a physical material with a restitution value that is not being accepted?

Try opening the material and fixing those values to be a non-negative number. Then re-save and and do a full rebuild to see if your project packages as expected.

Let me know if you have further questions or need additional assistance.

Cheers,

I just find out my physical material and physical assets ,and delete it .Fix the bu. it may be the parameter value beyond its default.

Yeah, I looked over all phys materials I had and found out, that some of them just had wrong restitution values.
Somehow, previous version of UE clamped it succesfully.

Had this issue after upgrading from 4.11 to 4.12.

One of my Physical Material assets had a Restitution value of 1.1 when it should only allow values 0-1.