Search Issue Tracker

Fixed in 2020.2

Fix In Review for 2019.4, 2020.1

Votes

16

Found in

2019.3.0a11

2019.3.0b12

2020.1.0a1

Issue ID

1200588

Regression

No

Crash after "[Physics.PhysX] Foundation: Invalid registration detected" errors show up when using Physics.BakeMesh

Physics

-

Steps to repro:
1. Open the project attached by the user
2. Enter Play mode
3. Wait a few seconds until "[Physics.PhysX] Foundation: Invalid registration detected" is shown
4. Close Unity Editor

Expected results: Unity Editor is closed
Actual result: "Fatal Error! GetManagerFromContext: pointer to object of manager 'PhysicsManager' is NULL (table index 9)" window is shown and after pressing Quit button, Unity crashes

Reproducible with: 2019.3.0a11, 2019.3.0f3, 2020.1.0a1, 2020.1.0a16
Couldn't test with: 2019.3.0a10 and older Unity versions due to new Mesh API being unavailable on them

Note:
- Physics.BakeMesh is used in multiple background threads

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0a16

Comments (7)

  1. 64997828c7bb6a64e0f8a050a5963125?d=mm

    iamarugin

    Jun 10, 2020 08:16

    ?

  2. 0edacf4766a04fe3b7c6f040f59c168e?d=mm

    Micha-Stettler

    May 30, 2020 21:53

    Bug is still there in 2020.2.0a12

  3. 6b34686bb145e237cc1812c0748c9da6?d=mm

    Amandin-E

    May 11, 2020 12:30

    I reproduce it with 2020.2.0a10.

    For me, the message "[Physics.PhysX] Foundation: Invalid registration detected" first shows up after I QUIT play mode (I think Physics.BakeMesh doesn't like to be interrupted).

    Once it has happened, the message will show up tons of times as soon as play mode is active.

    The only way to get back to normal is to close Unity, which causes the crash described in this bug report.

    So there are actually 3 issues:
    1) the message should just never show up, even when we exit play mode
    2) if for any reason it shows up, it should be safely restored to a working state so we don't need to close Unity
    3) when we close Unity, it should not crash

    Hope this can help!

  4. C2883b3d9fb6d00917592980a1baeb49?d=mm

    TheJavierD

    Apr 24, 2020 14:35

    happens still in 2019.3.10

  5. B1939e78262f95081706eb6bd6f27811?d=mm

    coidevoid

    Apr 16, 2020 22:37

    2019.3.10f1 didn't fixed it for me.

  6. 9c2381ec5cbfa0cb0c262e8a4ad4441b?d=mm

    Kamyker

    Apr 16, 2020 21:04

    started happening to me after some unity inet communication errors

  7. C2883b3d9fb6d00917592980a1baeb49?d=mm

    TheJavierD

    Apr 01, 2020 17:29

    this does happen, the unity editor got into this error once, it went away after restarting.

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.