Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Assertion failed: Assertion failed on expression: '(destWidth >= srcWidth && destHeight >= srcHeight

Discussion in 'Editor & General Support' started by CDF, Jan 11, 2018.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    853
    Using Unity 2017.3. I'm getting this error:

    "Assertion failed: Assertion failed on expression: '(destWidth >= srcWidth && destHeight >= srcHeight) || (downscale && (destWidth * 2 == srcWidth) && (destHeight * 2 == srcHeight))'"

    which seems to have no consequence? every time:

    I build
    I open a scene
    I build asset bundles

    No idea where it's coming from. Any ideas what this is?
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    4,785
    karl_jones likes this.
  3. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    853
    Thanks, I'll check it out. Hasn't happened in a while, but I'll report back what I find.
     
  4. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    853
    Ok, I'm finally back into my project again. Here's the output I've got:

    Looks like its an ETC2 texture thing. Now to find which texture is causing this :(
     
  5. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    853
    Well I think I've found the issue:

    In build settings "ETC2 Fallback" = 32bit, half resolution was causing the errors.
    I've changed to "ETC2 Fallback" = 32bit and now no errors... yet
     
  6. Antony-Blackett

    Antony-Blackett

    Joined:
    Feb 15, 2011
    Posts:
    1,541
    I'm getting the same... but I want half res fallback. :(
     
  7. _creatio_

    _creatio_

    Joined:
    Mar 21, 2013
    Posts:
    37
    I'm having similar issue for the non-rectangular texture (2048x1024) with ETC2 and fallback: "32 bit half res" on Unity 2017.4.11f1
    Seems like there's no other issues about it.
     
  8. atomicjoe

    atomicjoe

    Joined:
    Apr 10, 2013
    Posts:
    791
    Has anyone filed a bug report about this?
     
  9. cultzone

    cultzone

    Joined:
    Oct 20, 2019
    Posts:
    15
    compression method build :)
     
unityunity