Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Virtual Reality VR in Unity VR Setup HTC Vive Setup

PxCloth::setExternalAcceleration() not allowed

When I hit play in Unity, Unity freezes and I get the following error (2x) in the console:

[Physics.PhysX] Call to PxCloth::setExternalAcceleration() not allowed while simulation is running.

I'm running this on an HTC Vive which runs games successfully. Odd behavior: it consistently happens on a cold start (~4x fails) - when I open SteamVR and then hit play it fails every time. However, when I already had SteamVR open and try, it worked (1x success).

I'm using Unity version 5.6.0f3 Personal - I found a thread suggesting there's a problem with 5.6:

https://forum.unity3d.com/threads/unity-5-cloth-crash-all-time.455395/

I'll see if I can't use 5.5.

3 Answers

Downgrading from version 5.6 to 5.5 of Unity seems to have done it.

Alec Justice
Alec Justice
14,089 Points

Running into the same issue even after Unity's recent patch that was supposed to fix it. Installing 5.5 this afternoon to try it out.