Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Plugin extrimely unstable with Cloth Simulation. Unity crashes all time
#1
Exclamación 
I've got multiple crashes during simulation of hight poly cloth or after level unloading with ObiCloth after simulation. 
This looks like an internal crash produced by corrupted memory.
Unity also may throw a C# exception regarding some parts in code that never crash before (like a crash in transforms deep inside Unity) or crash with "pure virtual function call"  exception or just crash with a different stack trace (way more often).

Example of most common crash stack trace:
Code:
========== OUTPUTING STACK TRACE ==================

0x00007FFBE9C39BC4 (libOni) SetDiffuseParticleNeighbourCounts
0x00007FFBE9C3A5C8 (libOni) SetDiffuseParticleNeighbourCounts
0x00007FFBE9C6183D (libOni) GetPointCloudAnisotropy
0x00007FFBE9C64FE1 (libOni) GetPointCloudAnisotropy
0x00007FFBE9C669D1 (libOni) GetPointCloudAnisotropy
0x00007FFBE9C64AE9 (libOni) GetPointCloudAnisotropy
0x00007FFBE9C8C389 (libOni) GetPointCloudAnisotropy
0x00007FFC04EF3034 (KERNEL32) BaseThreadInitThunk
0x00007FFC052B1431 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

I use the high poly cloth plane (~ 3500 polygons) with Max Particles 10000 set up in solver. Settings for Cloth was taken from examples from Obi plugin. This cloth is colliding with hight poly surfaces up to ~12000 polygons with Obi Colliders on it and Mesh Collider.

I was spawning Solver and connect them to a simulated object in real-time. I also reuse solver for each simulated objects. It works ok in most cases but when I unload the scene after simulation it crashes with 90% crash rate. But only if simulation was performed.
When I do a simulation with Hight Poly Mesh Collider in 10-20% probability I got a crash. In most cases cloth just droping from top to the collider with gravity. So this happens during an actual collision. Not immediate but after 100-200 milliseconds.

This is impossible to use this plugin with such instability. I need to have lots of cloth in the scene and do lots of simulations. 
Could you fix this crashes or recommend a workaround on how to solve this problem?
This is a show stopper for me. 
My system is Windows 10 64bit. Unity 2017.4.5f1 LTS. Plugin version 3.5.


Update:
I am going to make a test project and deliver it to you. In this case roughly how long will it take to fix this bug?
Reply


Messages In This Thread
Plugin extrimely unstable with Cloth Simulation. Unity crashes all time - by mmortall - 17-08-2018, 02:34 PM