# Packaged project, unwarranted log spam from physics engine with procedural components

**URL:** <https://forums.unrealengine.com/t/packaged-project-unwarranted-log-spam-from-physics-engine-with-procedural-components/350282>\
**Category:** World Creation\
**Tags:** packaging-and-cookin, unreal-engine, bug-report, packaging-projects, procedural, question, CPP\
**Created:** [March 11, 2016, 4:55pm UTC](https://forums.unrealengine.com/t/packaged-project-unwarranted-log-spam-from-physics-engine-with-procedural-components/350282 "2016-03-11T16:55:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [March 11, 2016, 4:55pm UTC](https://forums.unrealengine.com/t/packaged-project-unwarranted-log-spam-from-physics-engine-with-procedural-components/350282/1 "2016-03-11T16:55:09Z")

</div>

Any project using WITH\_RUNTIME\_PHYSICS\_COOKING and creating collision for a component will cause physics log spam in packaged builds when creating the collision due to the following section in BodySetup.cpp:

(This also applies to the built in procedural mesh component and its Blueprint library)

```
#if WITH_PHYSX
	if (!bContainedData)
	{
		if (FPlatformProperties::RequiresCookedData())
		{
			UE_LOG(LogPhysics, Error, TEXT("Attempt to build physics data for %s when we are unable to. This platform requires cooked packages."), *GetPathName());
		}

		if (AggGeom.ConvexElems.Num() == 0 && (CDP == NULL || CDP->ContainsPhysicsTriMeshData(bMeshCollideAll) == false))
		{
			return NULL;
		}

#if WITH_RUNTIME_PHYSICS_COOKING || WITH_EDITOR

```

This shouldn’t be the correct behavior, FPlatformProperties::RequiresCookedData() returns True for ALL platforms when its not an editor build, even ones that support WITH\_RUNTIME\_PHYSICS\_COOKING. So platforms that allow runtime cooking will throw the error into the log and then go forward and still cook the collision anyway. For every procedural mesh update the log will show another entry with this error message but will do what the error is saying can’t be done anyway without issue.

_Note_ This doesn’t show up in WITH\_EDITOR builds as for windows it declares:

```
static FORCEINLINE bool RequiresCookedData()
{
	return !HAS_EDITOR_DATA;
}

```

I was unsure about the reasoning here for the message and why it is coupled to FPlatformProperties so I did not make this a pull request.

Either the error shouldn’t be shown when WITH\_RUNTIME\_PHYSICS\_COOKING is declared, the error message should be removed entirely, or RequiresCookedData() is being declared/used incorrectly.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [March 11, 2016, 6:29pm UTC](https://forums.unrealengine.com/t/packaged-project-unwarranted-log-spam-from-physics-engine-with-procedural-components/350282/2 "2016-03-11T18:29:16Z")

</div>

Hello mordentral,

Thank you for reporting this issue. As this seems to require a bit of project setup to get a reproduction of the problem, could you either provide steps for setting up the project or provide an example project that I could package and get the problem?

---

<div class="post-metadata">

**Author:** ![mordentral](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mordentral](https://forums.unrealengine.com/u/mordentral)\
**Post date:** [March 11, 2016, 6:52pm UTC](https://forums.unrealengine.com/t/packaged-project-unwarranted-log-spam-from-physics-engine-with-procedural-components/350282/3 "2016-03-11T18:52:59Z")

</div>

Wasn’t sure how you wanted the example, just uploaded to google drive:

> **[Meet Google Drive – One place for all your files](https://accounts.google.com/ServiceLogin?service=wise&passive=1209600&continue=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0B5cM3oP2O4-UWkFqX1RHZzJJVzA%2Fview?usp%3Dsharing&followup=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0B5cM3oP2O4-UWkFqX1RHZzJJVzA%2Fview?usp%3Dsharing)**
>
> Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.

The test just spawns a procedural mesh component for every press of “T”.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [March 11, 2016, 9:51pm UTC](https://forums.unrealengine.com/t/packaged-project-unwarranted-log-spam-from-physics-engine-with-procedural-components/350282/4 "2016-03-11T21:51:56Z")

</div>

Thank you for the project. I see the problem and I’ve placed a bug report in for the issue. For reference, the bug number is UE-28331. I’ll let you know when any updates are made to the report.

Have a nice day!
