Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnParticleCollision Udon graph program crashes in 3.4.0-beta.1 #148

Open
KyrowoVRC opened this issue Sep 28, 2023 · 0 comments
Open

OnParticleCollision Udon graph program crashes in 3.4.0-beta.1 #148

KyrowoVRC opened this issue Sep 28, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@KyrowoVRC
Copy link

Describe the bug in detail:
The "OnParticleCollision" event doesn't work in the 3.4.0-beta.1 anymore.

Provide steps/code to reproduce the bug:

  1. Create a new Udon project.
  2. Create a new cube and add a Udon Graph to it.
  3. Add OnParticleCollision event and connect anything after it. example: OnParticleCollision -> Debug.log
  4. Create a particle system with collision enabled and send collision message. It should face the cube
  5. Go into playmode, test or uploaded build.
  6. Unity throws an error and udon behaviour script crashes, when the particle system collides with the box collider of the cube.

Expected behavior:
Udon Behaviour script should not crash. This only happens in the latest VRChat SDK - Worlds v3.4.0-beta.1 . v3.3.0 works fine.

Additional Information:
Error log:

Destroying GameObjects immediately is not permitted during physics trigger/contact, animation event callbacks or OnValidate. You must use Destroy instead.
UnityEngine.Object:DestroyImmediate (UnityEngine.Object)
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:IdentifyDontDestroyOnLoadHandle ()
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:IsBlacklistedGameObject (UnityEngine.GameObject)
VRC.Udon.Security.UnityEngineObjectSecurityBlacklist:FilterBlacklisted (object&)
VRC.Udon.Wrapper.Modules.ExternUnityEngineDebug:__Log__SystemObject__SystemVoid (VRC.Udon.Common.Interfaces.IUdonHeap,System.Span1<uint>) VRC.Udon.VM.UdonVM:Interpret () VRC.Udon.UdonBehaviour:RunProgram (uint) (at Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:1029) VRC.Udon.UdonBehaviour:RunEvent<UnityEngine.GameObject> (string,System.ValueTuple2<string, UnityEngine.GameObject>) (at Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:1273)
VRC.Udon.UdonBehaviour:OnParticleCollision (UnityEngine.GameObject) (at Packages/com.vrchat.worlds/Runtime/Udon/UdonBehaviour.cs:765)

@KyrowoVRC KyrowoVRC added the bug Something isn't working label Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant