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.
  2. Dismiss Notice

Assertion failed on expression: '(srcInfo.GetChannelMask() & copyChannels) == copyChannels'

Discussion in 'Editor & General Support' started by radiantboy, May 2, 2018.

  1. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,593
    Getting a lot of these in the console on unity 2018.1, any one know why?

    Assertion failed on expression: '(srcInfo.GetChannelMask() & copyChannels) == copyChannels'
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  2. eobet

    eobet

    Joined:
    May 2, 2014
    Posts:
    176
    I also get them, but only after I switched to .NET 4.x instead of the default 3.x.

    I can't double click the errors to get to a script, so anyone know how to locate the issue?
     
  3. eobet

    eobet

    Joined:
    May 2, 2014
    Posts:
    176
  4. eobet

    eobet

    Joined:
    May 2, 2014
    Posts:
    176
    Here's the "full" log:

    Code (CSharp):
    1. Assertion failed on expression: '(srcInfo.GetChannelMask() & copyChannels) == copyChannels'
    2. 0x00000001415195F8 (Unity) StackWalker::GetCurrentCallstack
    3. 0x000000014151FB36 (Unity) StackWalker::ShowCallstack
    4. 0x00000001413EFA1B (Unity) GetStacktrace
    5. 0x00000001408A1A00 (Unity) DebugStringToFile
    6. 0x000000014085F86A (Unity) VertexUtility::CopyChannels
    7. 0x000000014080C6F4 (Unity) ExtractMeshComponentArray<Vector3f>
    8. 0x000000014083A04C (Unity) CalculateNormalizedLightmapArea
    9. 0x000000014082AB19 (Unity) MeshRenderer::GetCachedNormalizedLightmapArea
    10. 0x000000014112F585 (Unity) AddInstance
    11. 0x0000000141135F98 (Unity) ExtractGIInstances
    12. 0x000000014114AF12 (Unity) GISceneManager::GetInstancesWithDuplicates
    13. 0x000000014114A9D7 (Unity) GISceneManager::GetInstances
    14. 0x000000014114FE6C (Unity) gi::UpdateMaterials
    15. 0x000000014114F50E (Unity) GISceneManager::Update
    16. 0x0000000141149635 (Unity) `GISceneManager::GISceneManager'::`2'::tickGIInEditorRegistrator::Forward
    17. 0x000000014062AC59 (Unity) CallbackArray::Invoke
    18. 0x000000014142C77E (Unity) Application::TickTimer
    19. 0x00000001415CA465 (Unity) MainMessageLoop
    20. 0x00000001415CC7E8 (Unity) WinMain
    21. 0x00000001423F8CFA (Unity) __scrt_common_main_seh
    22. 0x00007FF90C3F3034 (KERNEL32) BaseThreadInitThunk
    23. 0x00007FF90DA41551 (ntdll) RtlUserThreadStart
     
  5. eobet

    eobet

    Joined:
    May 2, 2014
    Posts:
    176
  6. Classic-Niall

    Classic-Niall

    Joined:
    Apr 16, 2013
    Posts:
    3
    I found that unchecking Lighting and Reflection Probe under static got rid of these errors.

    Essentially I went through each option to see what gave me the errors :)
     
    ice2011 and abelguima like this.
  7. rgmp

    rgmp

    Joined:
    Jul 13, 2017
    Posts:
    1
    I get the same error:

    ```
    Assertion failed on expression: '(srcInfo.GetChannelMask() & copyChannels) == copyChannels'
    ```

    In 2018.2.1f1 when I manually recompute lighting.
     
  8. Pecavigo

    Pecavigo

    Joined:
    Sep 9, 2018
    Posts:
    1
    My SOLUTION: Look for models in the scene that hasn't the Generate Lightmap UVs option enabled in the model Inspector.
    upload_2022-9-22_18-37-4.png