Obi Official Forum
Bug / Crash Crash with Obi Cloth 4.0.1 - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Bug / Crash Crash with Obi Cloth 4.0.1 (/thread-851.html)



Crash with Obi Cloth 4.0.1 - Leverpastej - 30-01-2019

Unity crashes right away when it loads in the libOni.dll when I open any of the sample scenes. It worked fine in the 4.0.0 version but now it just crashes. I'm using Unity 2018.3.3f1 (64-bit) on Windows 7 and importing Obi Cloth (4.0.1) into an empty project.

Here is the output for the crash.
Code:
Opening scene 'Assets/Obi/Sample Scenes/ClothSoftbody.unity'
Load scene 'Assets/Obi/Sample Scenes/ClothSoftbody.unity' time: 0.013938 ms
LightmapEditorSettings: switching bake backend from 1 to 0.
Unloading 16 Unused Serialized files (Serialized files now loaded: 0)
Refreshing native plugins compatible for Editor in 6.51 ms, found 4 plugins.
'Unity.exe' (Win32): Loaded 'D:\Repos\ObTEst\Assets\Obi\Plugins\x86_64\libOni.dll'. Cannot find or open the PDB file.
Exception thrown at 0x000007FEE18D11FD (libOni.dll) in Unity.exe: 0xC000001D: Illegal Instruction.
Microsoft Visual Studio C Runtime Library has detected a fatal error in Unity.exe.

Checking the assembly its seems to crash here:
000007FEE18D11FD  vmovss      xmm0,dword ptr [7FEE19873D8h] 
And looking it up vmovss seems to be a avx512 instruction which my cpu does not support. So that might be why it crashed? I don't know much about this stuff but it might be something on my end that caused it.


RE: Crash with Obi Cloth 4.0.1 - josemendez - 30-01-2019

(30-01-2019, 03:05 PM)Leverpastej Wrote: Unity crashes right away when it loads in the libOni.dll when I open any of the sample scenes. It worked fine in the 4.0.0 version but now it just crashes. I'm using Unity 2018.3.3f1 (64-bit) on Windows 7 and importing Obi Cloth (4.0.1) into an empty project.

Here is the output for the crash.
Code:
Opening scene 'Assets/Obi/Sample Scenes/ClothSoftbody.unity'
Load scene 'Assets/Obi/Sample Scenes/ClothSoftbody.unity' time: 0.013938 ms
LightmapEditorSettings: switching bake backend from 1 to 0.
Unloading 16 Unused Serialized files (Serialized files now loaded: 0)
Refreshing native plugins compatible for Editor in 6.51 ms, found 4 plugins.
'Unity.exe' (Win32): Loaded 'D:\Repos\ObTEst\Assets\Obi\Plugins\x86_64\libOni.dll'. Cannot find or open the PDB file.
Exception thrown at 0x000007FEE18D11FD (libOni.dll) in Unity.exe: 0xC000001D: Illegal Instruction.
Microsoft Visual Studio C Runtime Library has detected a fatal error in Unity.exe.

Checking the assembly its seems to crash here:
000007FEE18D11FD  vmovss      xmm0,dword ptr [7FEE19873D8h] 
And looking it up vmovss seems to be a avx512 instruction which my cpu does not support. So that might be why it crashed? I don't know much about this stuff but it might be something on my end that caused it.

Hi,

Obi 4.0.1 requires AVX support to work. I might be able to compile a SSE version for you, but AVX will be a requirement in the future (pretty much all modern CPU architectures support it). Write to support(at)virtualmethodstudio.com so that I can send the custom lib to you.