Search Issue Tracker


Fixed in 2020.3.44f1, 2021.3.14f1, 2022.2.0b15, 2023.1.0a17



Found in



Issue ID




[iOS][macOS] Assertion failed errors appear when using Bit shift operations



How to reproduce:
1. Download and open the attached project
2 Open the "SampleScene" scene
3. Enter "Play" mode
4. Observe the Console window

Expected result: No errors appear
Actual result: "Assertion failed on expression: 'm_ActiveSubShader >= 0 && m_ActiveSubShader < (int)m_SubShaders.size()'" errors appear

Reproduced with: 2020.3.40f1, 2021.2.19f1, 2021.3.11f1 (macOS Monterey 12.6)
Reproduced with: iPhone 12 Pro (14.2.1), iPhone 13 Pro (iOS 15.6.1)
Could not test with: 2022.1, 2022.2, 2023.1 (Project breaks, console errors)

  1. Resolution Note (fix version 2023.1.0a17):

    Verified with: 2023.1.0a17.git.4628735
    Revision: trunk 46a0ffde8d17
    Built: Tue, 25 Oct 2022 10:17:46 GMT

  2. Resolution Note (fix version 2022.2.0b15):

    Verified with 2022.2.0b15.112.5516
    Revision: 2022.2/staging 00bcab1fcc0f
    Built: Fri, 04 Nov 2022 20:44:31 GMT

  3. Resolution Note (fix version 2021.3.14f1):

    Verified with 2021.3.16f1.git.768746 Personal
    Revision: 2021.3/staging 0bbaea860775
    Built: Mon, 05 Dec 2022 18:41:34 GMT

  4. Resolution Note (fix version 2020.3.44f1):

    Verified with Version: 2020.3.44f1.git.6706589 Personal
    Revision: 2020.3/staging 66559dce7da3
    Built: Wed, 21 Dec 2022 18:28:58 GMT

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.