Obi Official Forum
Bug / Crash Memory Leak - AccumulateTransmissionURP.shader - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Bug / Crash Memory Leak - AccumulateTransmissionURP.shader (/thread-4613.html)



Memory Leak - AccumulateTransmissionURP.shader - Egate - 20-04-2026

Im seeing millions of un-destroyed instances of materials when playtesting called "Hidden/AccumulateTransmissionURP" around 1.9kb each - possibly related to the AccumulateTransmissionURP.shader. 

Frame debugger shows nothing using this shader. 

Memory profiler shows: 
Shortest Path To Root shows "ROOT: Material "Hidden/AccumulatedTransmissionURP"
Referenced by: empty
References TO: Shader "Hidden/AccumulatedTransmissionURP"


Oddly this bug is only apparent when testing on PC. If i test a build on android this leak does not happen. 

Im unsure of how to continue diagnosing this. Anyone have any advice?

Thanks and Thank you for the great physics package!


RE: Memory Leak - AccumulateTransmissionURP.shader - josemendez - 22-04-2026

Hi!

We fixed a very similar issue in 7.0.5, specifically, we were not checking if the fluid transmission accumulation material was null before creating it - leading to the creation of a new instance every frame. Line 103 in ObiFluidRendererFeature.cs should be:

Code:
if (m_TransmissionMaterial == null) m_TransmissionMaterial = CreateMaterial(Shader.Find("Hidden/AccumulateTransmissionURP"));

Let me know if I can be of further help,

kind regards


RE: Memory Leak - AccumulateTransmissionURP.shader - josemendez - 22-04-2026

Just checked and the version on the store (7.1) doesn't include this fix for some reason, despite it being part of our production branch for more than a year. Another user reported an error that should already be fixed but isn't included in the latest version, I'm going to reupload it just in case.

kind regards,


RE: Memory Leak - AccumulateTransmissionURP.shader - Qriva0 - 22-04-2026

(22-04-2026, 08:28 AM)josemendez Wrote: Just checked and the version on the store (7.1) doesn't include this fix for some reason, despite it being part of our production branch for more than a year. Another user reported an error that should already be fixed but isn't included in the latest version, I'm going to reupload it just in case.

kind regards,

Would it be possible to update other obi modules to 7.1.1 so they include other missing changes?


RE: Memory Leak - AccumulateTransmissionURP.shader - josemendez - 22-04-2026

(22-04-2026, 02:19 PM)Qriva0 Wrote: Would it be possible to update other obi modules to 7.1.1 so they include other missing changes?

I've uploaded fluid and the full suite a couple hours ago, will upload the remaining 3 (rope, cloth and softbody) tomorrow morning.

cheers!


RE: Memory Leak - AccumulateTransmissionURP.shader - Qriva0 - 22-04-2026

(22-04-2026, 02:30 PM)josemendez Wrote: I've uploaded fluid and the full suite a couple hours ago, will upload the remaining 3 (rope, cloth and softbody) tomorrow morning.

cheers!

Great, thank you!


RE: Memory Leak - AccumulateTransmissionURP.shader - Egate - 23-04-2026

(22-04-2026, 02:30 PM)josemendez Wrote: I've uploaded fluid and the full suite a couple hours ago, will upload the remaining 3 (rope, cloth and softbody) tomorrow morning.

cheers!


Thanks so much!!