Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

world crash relating to photon dust

Open Redd56 opened this issue 9 months ago • 9 comments

Describe the bug?

when messing with the reso battleknights gun i managed to crash my instance, after further testing i narrowed it down to the grenade launcher, when being deleted, when a grenade is out. it fully crashes the session, host and all the logs state it has to do with collections and photon dust. tho im not too certain exactly what is causing it

To Reproduce

shoot a few grenades out of the resoware grenade launcher, resrec:///U-1Nh9kA3NfsG/R-d1c87903-0cce-4c0d-bd9e-8328f6855016 delete it with a few grenades out, watch as you, the host, and everyone in the session all get world crashed, (yes even the headless host will crash)

Expected behavior

to not be able to crash a session simply by deleting an object

Screenshots

No response

Resonite Version Number

Beta 2025.2.26.174

What Platforms does this occur on?

Windows, Linux

What headset if any do you use?

No response

Log Files

DESKTOP-N0VAL1H - 2025.2.26.174 - 2025-03-02 20_57_11.log

Additional Context

No response

Reporters

redd56

Redd56 avatar Mar 03 '25 05:03 Redd56

I cannot seem to spawn your replication object, @Redd56. Is it public?

From your log file however, it sounds like it is a PhotonDust issue.

8:59:21 PM.481 (102 FPS)	Unhandled Exception when updating world: Redd World. State Running, Refresh Stage: ParticleSystems, Init State: Finished, SyncTick 825, StateVersion: 1650
System.InvalidOperationException: Cannot Setup Visuals on a destroyed particle renderer
  at FrooxEngine.PhotonDust.ParticleRenderer`1[D].SetupVisuals (FrooxEngine.PhotonDust.ParticleSystemBindingManager manager) [0x00008] in <339a8f04c0a54d509eeb91597dbe6ebf>:0 
  at FrooxEngine.PhotonDust.ParticleSystemBindingManager.ValidateRenderModules () [0x00072] in <339a8f04c0a54d509eeb91597dbe6ebf>:0 
  at FrooxEngine.PhotonDust.ParticleSystemBindingManager.Sync () [0x0001c] in <339a8f04c0a54d509eeb91597dbe6ebf>:0 
  at FrooxEngine.PhotonDust.ParticleSystem.ScheduleUpdate () [0x001b2] in <339a8f04c0a54d509eeb91597dbe6ebf>:0 
  at FrooxEngine.PhotonDust.ParticleSystemManager.Update () [0x00026] in <339a8f04c0a54d509eeb91597dbe6ebf>:0 
  at FrooxEngine.World.RefreshStep () [0x0048c] in <339a8f04c0a54d509eeb91597dbe6ebf>:0 
  at FrooxEngine.World.Refresh () [0x00073] in <339a8f04c0a54d509eeb91597dbe6ebf>:0 
  at FrooxEngine.WorldManager.UpdateStep () [0x004a3] in <339a8f04c0a54d509eeb91597dbe6ebf>:0 

LexiBasilisk avatar Mar 03 '25 19:03 LexiBasilisk

It should be public let me go republic it

Redd56 avatar Mar 03 '25 19:03 Redd56

resrec:///U-1Nh9kA3NfsG/R-d30d6406-3cf5-4269-b6b4-cdb8b0f6cfaa i just threw it in my debug folder as always if it still isnt spawning there might be a bigger issue than it just not being public. cause thats in a public folder

Redd56 avatar Mar 03 '25 19:03 Redd56

How are you deleting it, @Redd56? Just with the context menu? Or are you destroying it in an inspector? I can't seem to be able to replicate it immediately? Is there more to the replication steps I'm missing? Could you record / post some footage of the issue occurring?

LexiBasilisk avatar Mar 03 '25 21:03 LexiBasilisk

Nevermind- figured it out. If the projectile collides with the ground the issue doesn't occur- you need to delete the gun with the context menu while the projectile is still airborn.

LexiBasilisk avatar Mar 03 '25 21:03 LexiBasilisk

Thats the link i didnt connect yet! thank you for figuring out what the missing link as to the inconsistency was, im gonna get on in a bit and rip it apart so that we get the minimal. viable reproduction item

Redd56 avatar Mar 03 '25 23:03 Redd56

Thank you. It would be helpful if you could. I tried to take a peek into what all that gun is doing- but it was rather complicated and I have a lot of other issues I need to triage.

LexiBasilisk avatar Mar 03 '25 23:03 LexiBasilisk

yeah its a shitload, i need to understand the gun at a fundimental level as a whole for resoware anyway so being able to rip it apart for the mvrp will come with it

Redd56 avatar Mar 04 '25 00:03 Redd56

Update: the dawn bow causes the crash as well 🥀

Redd56 avatar Nov 18 '25 18:11 Redd56