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.