Search Issue Tracker

Fixed

Fixed in 6000.5.0a8

Votes

0

Found in

6000.5.0a7

Issue ID

UUM-135369

Regression

No

Error “System.ArgumentException: Actual value False does not equal expected value True.“ is present when no collider contacts exist

Unity Physics (Core)

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/Platformer.unity” Scene
3. Enter the Play Mode
4. Press “Z“ key

Expected result: Error “System.ArgumentException: Actual value False does not equal expected value True.“ does not exist
Actual result: Error “System.ArgumentException: Actual value False does not equal expected value True.“ is present

Reproducible with: 6.5.0 (6000.5.0a7)
Could not test with: 1.4.5 (6000.5.0a4) (Library\PackageCache\com.unity.physics@0dfa150f2a43\Unity.Physics\ECS\Base\Aspects\ColliderAspect.cs(14,53): error CS0246: The type or namespace name 'IAspect' could not be found)

Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested

Notes:
- Also reproducible when moving outside the boundary of the tower and platform box
- Any system scheduling a non-parallel IContactsJob via .Schedule() will trigger the error — this includes DisableCharacterDynamicContactsSystem from the Character Controller package and DisplayContactsSystem from physics debug visualization

  1. Resolution Note:

    As mentioned, this is a temporary issue that was introduced during 6000.5.0 alpha development that has already been fixed internally. The fix will be made available with the next 6000.5.0 alpha release.

    Workaround: either disable safety checks, or embed the Unity Physics package in your project and then comment out the safety checks in IContactsJobs.cs (line 406, in constructor ContactsJobIterator(NativeStream.Reader reader, int forEachIndexBegin, int forEachIndexEnd)) and IJacobiansJobs (line 392, in constructor JacobiansJobIterator(NativeStream.Reader reader, int forEachIndexBegin, int forEachIndexEnd)).

  2. Resolution Note (fix version 6000.5.0a8):

    As mentioned, this is a temporary issue that was introduced during 6000.5.0 alpha development that has already been fixed internally. The fix will be made available with the next 6000.5.0 alpha release.

    Workaround: either disable safety checks, or embed the Unity Physics package in your project and then comment out the safety checks in IContactsJobs.cs (line 406, in constructor ContactsJobIterator(NativeStream.Reader reader, int forEachIndexBegin, int forEachIndexEnd)) and IJacobiansJobs (line 392, in constructor JacobiansJobIterator(NativeStream.Reader reader, int forEachIndexBegin, int forEachIndexEnd)).

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.