Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Command Line/Batchmode Compile Crash on 2019.1.4f1 (All Platforms)

Discussion in 'Scripting' started by kickstep, Jun 5, 2019.

  1. kickstep

    kickstep

    Joined:
    Jan 29, 2013
    Posts:
    13
    We're evaluating upgrading our 2018.3 project to 2019.1.

    A major obstacle is that all builds are failing from a headless/command line build automation in Jenkins.

    The same crash occurs every time.

    Code (CSharp):
    1. UnityEditor.GameObjectInspector:DoRenderPreview() (at C:\buildslave\unity\build\Editor\Mono\Inspector\GameObjectInspector.cs:767)
    2. UnityEditor.GameObjectInspector:RenderStaticPreview(String, Object[], Int32, Int32) (at C:\buildslave\unity\build\Editor\Mono\Inspector\GameObjectInspector.cs:780)
    3. UnityEditor.AssetPreviewUpdater:CreatePreviewForAsset(Object, Object[], String) (at C:\buildslave\unity\build\Editor\Mono\AssetPreviewUpdater.cs:33)
    4.  
    5. [C:\buildslave\unity\build\Runtime/Graphics/ScriptableRenderLoop/ScriptableBatchRenderer.cpp line 608]
    6. (Filename: Library/PackageCache/com.unity.render-pipelines.lightweight@5.16.1/Runtime/LightweightRenderPipeline.cs Line: 185)
    7.  
    8. Crash!!!
    9. SymInit: Symbol-SearchPath: 'C:/Program Files/Unity/Hub/Editor/2019.1.4f1/Editor/Data/Mono;.;C:\Program Files (x86)\Jenkins\workspace\Android APK 2019\SpinRhythm;C:\Program Files\Unity\Hub\Editor\2019.1.4f1\Editor;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 534, UserName: 'Developer'
    10. OS-Version: 10.0.0
    11. C:\Program Files\Unity\Hub\Editor\2019.1.4f1\Editor\Unity.exe:Unity.exe (00007FF7A7920000), size: 123764736 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2019.1.4.41895
    12. C:\Windows\SYSTEM32\ntdll.dll:ntdll.dll (00007FF962160000), size: 2019328 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17763.475
    13. C:\Windows\System32\KERNEL32.DLL:KERNEL32.DLL (00007FF9619B0000), size: 733184 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17763.475
    14. C:\Windows\System32\KERNELBASE.dll:KERNELBASE.dll (00007FF95F070000), size: 2699264 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17763.475
    15. C:\Windows\System32\CRYPT32.dll:CRYPT32.dll (00007FF95EA80000), size: 1945600 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17763.1

    I think this editor compile crash is related to packages not being compiled or symbols generated.

    The error is fixed by opening the project up in the visual editor (GUI). This is required on both Windows and Mac, and affects all targets test (Windows, MacOS, Android, iOS, and more). As best as I can tell some import process is only occurring in the visual editor, and not in batchmode. It must generate some cache that the editor in batchmode is not.

    The crash occurs around LWRP code, and while fixed by opening it in the editor, if the manifest.json version for the package is changed the error occurs again.
     
  2. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    751
    Did you use the bug reporter to send this to Unity?