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: 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:
    1,282
    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:
    6,444
    karl_jones likes this.
  3. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,282
    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:
    1,282
    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:
    1,282
    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,772
    I'm getting the same... but I want half res fallback. :(
     
  7. _creatio_

    _creatio_

    Joined:
    Mar 21, 2013
    Posts:
    43
    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:
    1,866
    Has anyone filed a bug report about this?
     
  9. cultzone

    cultzone

    Joined:
    Oct 20, 2019
    Posts:
    39
    compression method build :)