Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  libOni.dll Access Violation
#1
Hi,

we've been using ObiCloth for about 2 months now and we've been running into a lot of editor crashes.
We are overall really happy with the performance and flexibility of this plugin, so if this were resolved we would be fully satisfied.
I can't tell you what exactly is causing the crashes, they occur randomly and seem to get periodically more frequent and then less frequent again.

We're currently using Obi 5.0, but we've had the same issue on the previous version.

This is the beginning of the error.log, I'm unable to attach the whole file for some reason.
Code:
Unity Editor by Unity Technologies [version: Unity 2019.2.11f1_5f859a4cfee5]

libOni.dll caused an Access Violation (0xc0000005)
 in module libOni.dll at 0033:1400b9be.

Error occurred at 2019-12-09_155152.
C:\Program Files\Unity\Hub\Editor\2019.2.11f1\Editor\Unity.exe, run by [USER].

60% physical memory in use.
16264 MB physical memory [6360 MB free].
2128 MB process peak paging file [1951 MB used].
1215 MB process peak working set [1019 MB used].
System Commit Total/Limit/Peak: 15712MB/25480MB/17522MB
System Physical Total/Available: 16264MB/6360MB
System Process Count: 246
System Thread Count: 2859
System Handle Count: 114392
Disk space data for 'C:\Users\[USER]\AppData\Local\Temp\Unity\Editor\Crashes\Crash_2019-12-09_145147467\': 249329713152 bytes free of 511432454144 total.

Read from location 000001F4D8E432E0 caused an access violation.

Context:
RDI:    0x000001f7bd3fa050  RSI: 0x0000007a8e6edc00  RAX:   0xffffffff3b36c1a0
RBX:    0x0000000000000000  RCX: 0xffffffffbe6795e0  RDX:   0x000001f7ec092c60
RIP:    0x00007ffd1400b9be  RBP: 0x0000000041986c17  SegCs: 0x000001f700000033
EFlags: 0x0000000000010282  RSP: 0x0000007a8e6edbc0  SegSs: 0x000001f70000002b
R8:     0x0000000000000010  R9:  0x0000000000000000  R10:   0x000001f7be64fa60
R11:    0x0000000000000246  R12: 0x0000000000000000  R13:   0x00000100000001b3
R14:    0x000001f7b0abd5c0  R15: 0x0000000000000000
Reply
#2
(09-12-2019, 04:41 PM)JanikH Wrote: Hi,

we've been using ObiCloth for about 2 months now and we've been running into a lot of editor crashes.
We are overall really happy with the performance and flexibility of this plugin, so if this were resolved we would be fully satisfied.
I can't tell you what exactly is causing the crashes, they occur randomly and seem to get periodically more frequent and then less frequent again.

We're currently using Obi 5.0, but we've had the same issue on the previous version.

This is the beginning of the error.log, I'm unable to attach the whole file for some reason.
Code:
Unity Editor by Unity Technologies [version: Unity 2019.2.11f1_5f859a4cfee5]

libOni.dll caused an Access Violation (0xc0000005)
 in module libOni.dll at 0033:1400b9be.

Error occurred at 2019-12-09_155152.
C:\Program Files\Unity\Hub\Editor\2019.2.11f1\Editor\Unity.exe, run by [USER].

60% physical memory in use.
16264 MB physical memory [6360 MB free].
2128 MB process peak paging file [1951 MB used].
1215 MB process peak working set [1019 MB used].
System Commit Total/Limit/Peak: 15712MB/25480MB/17522MB
System Physical Total/Available: 16264MB/6360MB
System Process Count: 246
System Thread Count: 2859
System Handle Count: 114392
Disk space data for 'C:\Users\[USER]\AppData\Local\Temp\Unity\Editor\Crashes\Crash_2019-12-09_145147467\': 249329713152 bytes free of 511432454144 total.

Read from location 000001F4D8E432E0 caused an access violation.

Context:
RDI:    0x000001f7bd3fa050  RSI: 0x0000007a8e6edc00  RAX:   0xffffffff3b36c1a0
RBX:    0x0000000000000000  RCX: 0xffffffffbe6795e0  RDX:   0x000001f7ec092c60
RIP:    0x00007ffd1400b9be  RBP: 0x0000000041986c17  SegCs: 0x000001f700000033
EFlags: 0x0000000000010282  RSP: 0x0000007a8e6edbc0  SegSs: 0x000001f70000002b
R8:     0x0000000000000010  R9:  0x0000000000000000  R10:   0x000001f7be64fa60
R11:    0x0000000000000246  R12: 0x0000000000000000  R13:   0x00000100000001b3
R14:    0x000001f7b0abd5c0  R15: 0x0000000000000000

Hi there!

You can send the entire crash log to support(at)virtualmethodstudio.com.

An access violation is a very generic error that could be caused pretty much by anything.
Can you provide a bit of context?:

- Does it happen while you're in editor, or during play mode?
- What kind of cloth are you using in your scenes? regular cloth, skinned cloth or tearable cloth?
- Do you have multiple scenes loaded when this happens?

Anything else that can help us narrow down possible causes is welcome!
Reply
#3
(09-12-2019, 04:45 PM)josemendez Wrote: Hi there!

You can send the entire crash log to support(at)virtualmethodstudio.com.

An access violation is a very generic error that could be caused pretty much by anything.
Can you provide a bit of context?:

- Does it happen while you're in editor, or during play mode?
- What kind of cloth are you using in your scenes? regular cloth, skinned cloth or tearable cloth?
- Do you have multiple scenes loaded when this happens?

Anything else that can help us narrow down possible causes is welcome!

- It happens exclusively during play mode.
- We are using the basic cloth.
- Yes, there are multiple scenes loaded, but only one contains any Obi components.

Otherwise our setup is as follows:
  • 1 Solver (Constraints: Particle Collision, Collision, Particle Friction, Friction, Distance, Bending, Volume)
  • 1 FixedUpdater that gets enabled once all scenes have finished loading; no substeps
  • Up to 8 cloth objects with 50 particles each
  • 1 basic box collider
  • 1 mesh collider with a distance field containing 6529 nodes
All collision checks happen inside the collision event callback:
We iterate of all contacts and active actors to calculate a layer mask for the colliders the actor touches.
We cache this in a dictionary so other parts of the code can retrieve the collision layer mask for any given actor.

I'm not sure if this is relevant, but we use this asset for async/await support: https://assetstore.unity.com/packages/to...ort-101056
Reply