Search Unity

Windows stanalone compiled with IL2CPP, .net 2.0, crashes

Discussion in 'Entity Component System' started by Ofreyre, Jan 28, 2020.

  1. Ofreyre

    Ofreyre

    Joined:
    Jul 17, 2013
    Posts:
    28
    Hi,

    I have test an empty project, one empty scene, with no scripts, with only the default packages and it compile and runs with no issues. Unity 2019.3.0f5

    After adding to the project the Entities preview.17 - 0..5.0, compiling to windows platform, and running with no other modification, the project compiles but executable crashes immediately after start running.

    When compiling after including Entities package, I got this warning in the console:
    Unable to find player assembly: D:\Public\Unity2019\DOTScompilationTest\Temp\StagingArea\Data\Managed\UnityEngine.TestRunner.dll
    UnityEngine.Debug:LogWarning(Object)
    Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLsImpl(BuildReport) (at Library/PackageCache/com.unity.burst@1.2.0-preview.11/Editor/BurstAotCompiler.cs:212)
    Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLs(BuildReport) (at Library/PackageCache/com.unity.burst@1.2.0-preview.11/Editor/BurstAotCompiler.cs:90)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

    Then updated Burst to version 1.2.1, got the same error.


    On another, more complex project, I have the same issue, it compiles but the executable crashes immediately after start.

    Compilation gives this warning in the console:

    og (UnityEngine.LogType,object)
    0x00000252448A771D (Mono JIT Code) UnityEngine.Debug:LogWarning (object)
    0x00000252448A2423 (Mono JIT Code) [BurstAotCompiler.cs:212] Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport)
    0x000002524489BCFB (Mono JIT Code) [BurstAotCompiler.cs:90] Unity.Burst.Editor.BurstAotCompiler:OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport)
    0x000002524489B563 (Mono JIT Code) UnityEditor.Build.BuildPipelineInterfaces:OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport)
    0x00000252423ED3EB (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object (object,intptr,intptr,intptr)
    0x00007FFB70F4CBB0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    0x00007FFB70ED2122 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007FFB70EDB11F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007FF7778BD94E (Unity) scripting_method_invoke
    0x00007FF7778B762D (Unity) ScriptingInvocation::Invoke
    0x00007FF7778B1605 (Unity) ScriptingInvocation::Invoke<void>
    0x00007FF774C9F9C5 (Unity) Scripting::UnityEditor::Build::BuildPipelineInterfacesProxy::OnPostBuildPlayerScriptDLLs
    0x00007FF7758F3F9E (Unity) BuildPlayerScriptDLLs
    0x00007FF7758EF92C (Unity) BuildPlayerData
    0x00007FF7758FE0E5 (Unity) DoBuildPlayer_Build
    0x00007FF7758ED7B2 (Unity) BuildPlayer
    0x00007FF77668AC83 (Unity) BuildPipeline::BuildPlayerInternalNoCheck
    0x00007FF77668898E (Unity) BuildPipeline_CUSTOM_BuildPlayerInternalNoCheck
    0x00000252445A2053 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,UnityEditor.BuildOptions,bool)
    0x00000252445A12A3 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    0x000002524458E943 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    0x000002524458DFEB (Mono JIT Code) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
    0x000002524458D953 (Mono JIT Code) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
    0x00000252423EDBF5 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    0x00007FFB70F4CBB0 (mono-2.0-bdwgc) [mini-runtime.c:2809] mono_jit_runtime_invoke
    0x00007FFB70ED2122 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    0x00007FFB70EDB11F (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    0x00007FF7778B4146 (Unity) CallStaticMonoMethod
    0x00007FF7778B3D89 (Unity) CallStaticMonoMethod
    0x00007FF7778B3B11 (Unity) CallStaticMonoMethod
    0x00007FF7758BED9F (Unity) BuildPlayerWithLastSettings
    0x00007FF77550950C (Unity) MenuController::ExecuteMenuItem
    0x00007FF7760B35BF (Unity) ProcessMainWindowMessages
    0x00007FF7760A70E5 (Unity) ContainerWindow::ContainerWndProc
    0x00007FFBC359CA66 (USER32) DispatchMessageW
    0x00007FFBC359C582 (USER32) DispatchMessageW
    0x00007FF7760B0646 (Unity) MainMessageLoop
    0x00007FF7760BA24A (Unity) WinMain
    0x00007FF779033BE2 (Unity) __scrt_common_main_seh
    0x00007FFBC30A81F4 (KERNEL32) BaseThreadInitThunk
    0x00007FFBC5ECA251 (ntdll) RtlUserThreadStart

    Both projects compile and run with mono, .net 2.0 with no issues, although I get the same compilation warnings.

    Thanks
     
    Last edited: Jan 28, 2020