Search Unity

Assertion failed on expression: 'effector->GetUseColliderMask ()'

Discussion in '2D' started by enhawk, Apr 28, 2017.

  1. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    I have a Platform effector, when setting it to use collider mask, I get the following console warning when it collides (also has rigidbody)

    Code (csharp):
    1. Assertion failed on expression: 'effector->GetUseColliderMask ()'
    Is there a way to suppress this from the console?

    Unity 5.5.0f3
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    There's a bug report for this, it's being looked at.
     
  3. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    thanks for the reply @MelvMay
    We can't upgrade from 5.5.0f3 so is there a way to suppress this warning?
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    If you cannot use a 5.5 patch release then I cannot get a bug fix to you. It's currently being processed for 2017.1b, 5.6 & 5.5 patches.

    The only alternative is to not use the effector collider mask which is where the assert is coming from.
     
  5. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    it's a 2D platformer so not using the effector would be a big step.

    I guess we'll just live with the warning for now if there's no way to use ignores (like
    Code (csharp):
    1. #pragma warning disable 0168
    for example

    I'll have to see if the next patch is compatible... target is multiplatform.
     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    It was released to 5.5.3 patch 4 due for release on 17th May.
     
  7. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    I'd need to check but an alternate is to not use the effector collider mask but instead use the collision layer matrix. I'd need to check though whether that code-path avoids the assert.
     
  8. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    Hi was this patched to 5.6.1f1?

    I just updated and the alert is still present.

    effector collider mask usage is very handy, I can figure a way to use collision layer matrix but it may take some time.
     
  9. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    Yes, this was fixed in all versions. I cannot duplicate the issue here on 5.5.3p4 or 5.6.1p4.

    If you're seeing it, can you quick submit a bug report and post me the number? Alternately give me a link to a project so I can test it here?