I have several users reporting random Crashes on Windows Standalone and Android Builds.
I got a crash dump, and I think I was able to identify the problem. I’m sending the Crash Dump and pdb file attached on the bug report.
I was able to get this call stack of the crash :
Unhandled exception at 0x01B1D839 (Secrets of Magic 2 - Witches and Wizards.exe) in crash (2).dmp: 0xC0000005: Access violation writing location 0x00000000.
Secrets of Magic 2 - Witches and Wizards.exe!__VEC_memcpy() Unknown Non-user code. Symbols loaded.
> Secrets of Magic 2 - Witches and Wizards.exe!BoxCollider::ScaleChanged(void) Unknown Non-user code. Symbols loaded.
Secrets of Magic 2 - Witches and Wizards.exe!Collider::Raycast(class Ray const &,float,struct RaycastHit &) Unknown Non-user code. Symbols loaded.
Secrets of Magic 2 - Witches and Wizards.exe!GameObject::SendMessageAny(class MessageIdentifier const &,struct MessageData &) Unknown Non-user code. Symbols loaded.
Secrets of Magic 2 - Witches and Wizards.exe!InitializeRectTransformAnimationBindingInterface(void) Unknown Non-user code. Symbols loaded.
Secrets of Magic 2 - Witches and Wizards.exe!Transform::SetLocalScale(class Vector3f const &) Unknown Non-user code. Symbols loaded.
Secrets of Magic 2 - Witches and Wizards.exe!Transform_CUSTOM_INTERNAL_set_localScale(struct MonoObject *,class Vector3f const &) Unknown Non-user code. Symbols loaded.
It seems to happen on several projects. And someway it seems related to using @Demigiant DoTween DOScale function, but I’m not sure of this.
I have two bug reports for this (sorry, I was not able to edit the first one and I forgot to add the pdb file on it).
https://fogbugz.unity3d.com/default.asp?952538_teie2b7dr4qk01bo
https://fogbugz.unity3d.com/default.asp?953145_sqoj5qgl4ufmqaug
These crashes are really bugging me, and they seem to happens since some unity versions back (Now I’m using 2017.1.1p2)