Search Unity

Hybrid Renderer lead to Unity Editor Crash?

Discussion in 'Graphics for ECS' started by hayatea, Feb 7, 2022.

  1. hayatea

    hayatea

    Joined:
    Oct 23, 2017
    Posts:
    1
    Hey There,
    We are using ECS with Hybrid Renderer to render a game scene in our new game.
    This works well until some shader changes.
    The Issue is that my Unity Editor crashed when I enter my scene, and get some error logs like:

    =========================================
    A Hybrid Renderer V2 batch is using a pass from the shader "TreeLeave", which is not SRP batcher compatible. Only SRP batcher compatible passes are supported with the Hybrid Renderer.

    Crash!!!
    SymInit: Symbol-SearchPath: 'I:/unity/Editor/x64/Release/Data/Mono;.;I:\PNW_TRUNK\client_hdrp;I:\PNW_TRUNK\client_hdrp\Library\BurstCache\JIT;I:\unity\Editor\x64\Release;C:\windows;C:\windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 534, UserName: 'lixin6'
    OS-Version: 10.0.0
    I:\PNW_TRUNK\unity\Editor\x64\Release\Unity.exe:Unity.exe (00007FF68B5B0000), size: 253210624 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2021.2.5.29534
    C:\windows\SYSTEM32\ntdll.dll:ntdll.dll (00007FFE5A1E0000), size: 2019328 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17763.475
    C:\windows\System32\KERNEL32.DLL:KERNEL32.DLL (00007FFE58340000), size: 733184 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17763.475
    C:\windows\System32\KERNELBASE.dll:KERNELBASE.dll (00007FFE56E90000), size: 2699264 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17763.475
    C:\windows\System32\CRYPT32.dll:CRYPT32.dll (00007FFE56430000), size: 1945600 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.17763.1
    ============================================

    I made some test. Disable Hybrid Render System at first, then load the whole scene. At this time, Unity Editor not crashed. When I enable Hybrid Render System in Entity Debugger, the unity editor crashed immediately.

    It is dangerous when error resource is uploaded. Please Help. Crash File is uploaded.

    By the way, we have a lot of objects using the "TreeLeave" shader in the scene. Does this matter?

    Unity Editor: 2021.2
    Hybrid Renderer:0.11.0-preview.42
    Entities:0.17.0-preview.41
     

    Attached Files:

  2. joelv

    joelv

    Unity Technologies

    Joined:
    Mar 20, 2015
    Posts:
    203
    So if I understand this correct your repro is to change a shader and then unity crashes?

    If so could you report a bug on this? The callstack attached does not have enough information so I think it would be best for us to have a repro case.