Unknown Cook Failure / LogPhysics:Error

Hi!

I am not able to make a game package.
Whatever i do this line shows up in the end of Output debug list:

PackagingResults:Error: Error Unknown Cook Failure

and only this line is displayed :

LogPhysics:Error: PHYSX: (D:\Build++UE4+Release-4.15+PhysX_Compile\Sync\Engine\Source\ThirdParty\PhysX\PhysX_3.4\Source\PhysX\src\NpMaterial.cpp 143) eINVALID_PARAMETER : PxMaterial::setRestitution: Invalid value 3.546328 was clamped to [0,1]!

So I focused on it by googling this problem and what I already did is:

  1. In physic properties I have toggled “Disable CCD”
  2. Cleaned project: deleted all unused assets, maps etc
  3. I looked for the NPMaterial “…src\NpMaterial.cpp 143…” and tried to locate the invalid value, but I can not find such physical material.

Nothing changed, besides it may not be the main reason of crash.
Also I tried but failed to reproduce the problem.

First attachment “Log 1” contain whole Output log.
Second “Log 2” is fulfilled with only yellow/ lines.
( I have no idea is there any better way to provide log)

Log 1: https://ufile.io/43glu
Log 2: https://ufile.io/oam1t

I am still fighting with this problem. Does anyone have some ideas?
I can provide you with whole project if necessary.

Hello Kamilus,

NpMaterial is the name of a source code file that this error message came from. The issue itself would be in one of your physical materials. Apparently the “Restitution” value is being set higher than 1 in one of your physical materials, which is an invalid value. Can you check your physical materials to ensure that this value isn’t being set to an invalid amount?

First of all I am sorry for long absent, I’ve been offline for a little break :slight_smile:

Second of all, thank you! I looked through all physics materials and found imported one which had this “restitution” set to higher value as you mansion.

Have a nice day :slight_smile: