Hello,
With the Mono scripting backend I can access these properties (Process.StartTime, Process.TotalProcessorTime, Process.UserProcessorTime, etc.) just fine, but with IL2CPP referencing them crashes the application during an icall.
Is accessing these properties not supported by IL2CPP or is this broken?
Here’s the trace from error.log:
0x00007FFB5D8D3280 (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2019.3.10f1\Editor\Data\il2cpp\libil2cpp\icalls\mscorlib\System.IO\MonoIO.cpp:483] il2cpp::icalls::mscorlib::System::Reflection::AssemblyName::get_public_token
0x00007FFB5DD2883E (GameAssembly) [C:\Users\VirtUser\Sandbox\Temp\StagingArea\Data\il2cppOutput\System.cpp:12796] NativeMethods_GetProcessTimes_mCAB6B28520672C332F9250F565B1178788F8BF64
0x00007FFB5DD29D2E (GameAssembly) [C:\Users\VirtUser\Sandbox\Temp\StagingArea\Data\il2cppOutput\System.cpp:15808] Process_GetProcessTimes_mAEE0C477ECD21E85F86EA92ED23C46A1007C5705
0x00007FFB5DD2ABEF (GameAssembly) [C:\Users\VirtUser\Sandbox\Temp\StagingArea\Data\il2cppOutput\System.cpp:15921] Process_get_TotalProcessorTime_mE9B83B34CBD1CA8217CE045CA1457D327BC5833A
0x00007FFB5D88A41C (GameAssembly) [C:\Users\VirtUser\Sandbox\Temp\StagingArea\Data\il2cppOutput\Il2CppInvokerTable.cpp:14680] RuntimeInvoker_TrueVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017
0x00007FFB5D8FD200 (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2019.3.10f1\Editor\Data\il2cpp\libil2cpp\vm\Runtime.cpp:509] il2cpp::vm::Runtime::Invoke
0x00007FFB53C38340 (UnityPlayer) UnityMain
0x00007FFB53C494E3 (UnityPlayer) UnityMain
0x00007FFB53C53688 (UnityPlayer) UnityMain
0x00007FFB53C5371E (UnityPlayer) UnityMain
0x00007FFB53C52779 (UnityPlayer) UnityMain
0x00007FFB539D805D (UnityPlayer) UnityMain
0x00007FFB53B1CCB7 (UnityPlayer) UnityMain
0x00007FFB53B1CD53 (UnityPlayer) UnityMain
0x00007FFB53B1F14B (UnityPlayer) UnityMain
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFB538DA03E)
0x00007FFB538DA03E (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFB538D8D9A)
0x00007FFB538D8D9A (UnityPlayer) (function-name not available)
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFB538DCE38)
0x00007FFB538DCE38 (UnityPlayer) (function-name not available)
0x00007FFB538E093B (UnityPlayer) UnityMain
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF6073111F2)
0x00007FF6073111F2 (Sandbox) (function-name not available)
0x00007FFB87B27BD4 (KERNEL32) BaseThreadInitThunk
0x00007FFB88CECE51 (ntdll) RtlUserThreadStart
Thanks in advance!