Unity-Technologies / BoatAttack

Demo Project using the Universal RP from Unity3D
Other
2.56k stars 957 forks source link

A Native Collection has not been disposed, resulting in a memory leak error. #91

Open wuhuwuhu234 opened 4 years ago

wuhuwuhu234 commented 4 years ago

Hi, I got another memory leak error everytime start play mode. (compare to this #87. I also tried oahc09's solution)

图片 I follow the info to water.cs and found this: https://github.com/Verasl/BoatAttack/blob/261ba5ceee9fd5be4af5e3e48ad4480cf49df92b/Packages/com.verasl.water-system/Scripts/Water.cs#L88 Then I uncomment these two lines and don't get this error again. I am using Unity 2019.3.11f1, burst 1.2.3, com.unity.collections 0.5.1, com.unity.jobs 0.2.4, com.unity.mathematics 1.1.0

joshmarnold commented 4 years ago

This solved it for me. Thanks