Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question IL2CPP: Crash getting time properties from Process

Discussion in 'Editor & General Support' started by adrolter, Jun 9, 2020.

  1. adrolter

    adrolter

    Joined:
    Jan 10, 2019
    Posts:
    5
    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!
     

    Attached Files:

  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Can you submit a bug report with a project that causes this issue? We would like to investigate it more.
     
  3. adrolter

    adrolter

    Joined:
    Jan 10, 2019
    Posts:
    5
    #1255009 on FogBugz
     
    JoshPeterson likes this.