SDK 3.4.0 Internal error in IsBlacklisted: "Destroying GameObjects immediately is not permitted during..."
complete
aurycat
After upgrading to World SDK 3.4.0, when I entered play mode in ClientSim, I got the error "Destroying GameObjects immediately is not permitted during physics trigger/contact, animation event callbacks, rendering callbacks or OnValidate. You must use Destroy instead."
The errors comes from internal SDK code, the IsBlacklisted function. Stack trace is linked in an image.
I narrowed it down to a scene with two game objects:
- One or both objects have an UdonBehaviour (can be an empty script)
- Both objects have a collider (Box Collider in my case)
- One or both of the colliders need to be set to Trigger
- One or both objects need to have a Rigidbody
- The error occurs the first time the colliders intersect.
The error shows up in the real game too, not just ClientSim. I was able to reproduce the error in a brand-new 3.4.0 project.
As far as I can tell this error is not causing any problems, but it is annoying. Given it's related to IsBlacklist, I'm worried there might be a security concern here too.
Log In
Dexvoid
complete
This issue is believed to have been fixed some time ago, so I'm marking this as complete. Please let us know if you're still encountering this problem on the latest SDK.
ShingenPizza
i just encountered this issue myself using SDK 3.4.1.
i can confirm that the above description/steps-to-reproduce is 100% accurate as far as i've tested it myself.
the bug is easily and consistently reproducible, so it should be relatively easy to fix.