VRChat.exe crashes by integer divide by zero
tracked
naqtn
"Op Division" of int node crashes VRChat.exe when the divisor is zero.
However, when running in Unity editor it only stops the UdonBehaviour with appropriate error message.
--- The head of crash report error.log (local testing and published world case)
VRChat by VRChat [version: Unity 2018.4.20f1_008688490035]
GameAssembly.dll caused an Integer Divide by Zero (0xc0000094)
in module GameAssembly.dll at 0033:2102cb7d.
-- The message appears in Unity editor console (running in Unity editor case)
[UdonBehaviour] An exception occurred during Udon execution, this UdonBehaviour will be halted.
VRC.Udon.VM.UdonVMException: The VM encountered an error!
Exception Message:
An exception occurred during EXTERN to 'SystemInt32.__op_Division__SystemInt32_SystemInt32__SystemInt32'.
Parameter Addresses: 0x00000001, 0x00000002, 0x00000000
Attempted to divide by zero.
Log In
This post was marked as
tracked
mkc1370
IL2CPP does not check the division of zero by default.
That may be why it's crashing like this time.
Unity - Manual: Compiler options