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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Assertion on line assert(surface->systemColorBuffer != 0 && surface->systemDepthBuffer != 0);

Discussion in 'Editor & General Support' started by AndreyMesheryakov, Feb 17, 2020.

  1. AndreyMesheryakov

    AndreyMesheryakov

    Joined:
    Nov 25, 2016
    Posts:
    8
    Hello!

    IOS build of my game crash in file GlesHelper.mm on line assert(surface->systemColorBuffer != 0 && surface->systemDepthBuffer != 0);

    Game work on iphones5 and 6, but crash on Ipad 3.

    I use Unity 2019.2.8f1. How I can fix this crash?

    Thanks!
     
  2. Estellise-Yukihime

    Estellise-Yukihime

    Joined:
    Aug 9, 2018
    Posts:
    9
  3. AndreyMesheryakov

    AndreyMesheryakov

    Joined:
    Nov 25, 2016
    Posts:
    8
    For me helps move all init code from Start to Awake
     
  4. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,847
    I'm running into this now. Surely that can't be the solution... I use Awake and Start very deliberately; it would break game logic to just move everything to Awake.

    Anybody have another idea what causes this, and how to fix it?