Search Unity

Bug Assertion failed issue

Discussion in 'Editor & General Support' started by UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396, Jun 29, 2020.

  1. UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    Joined:
    Jan 9, 2017
    Posts:
    152
    I'm having a weird Assertion failed issue. All my code seem to be correct.
    I'm on 2019.3.9f1

    Assertion failed
    UnityEngine.GameObject:SetActive(Boolean)
    UIGame:ToggleControls(Boolean) (at Assets/Scripts/Photon Networking/UIGame.cs:281)
    GameManager:DisplayDeathWindow(Boolean) (at Assets/Scripts/Photon Networking/GameManager.cs:184)
    <RespawnDelay>d__15:MoveNext() (at Assets/Scripts/Photon Networking/GameManager.cs:207)
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    Line 281

    Line 184

    Line 207
     
  2. UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    Joined:
    Jan 9, 2017
    Posts:
    152
    Anyone? Is this a unity bug?
     
  3. Unless someone comes who actually uses Photon: try Photon support.
     
  4. UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    Joined:
    Jan 9, 2017
    Posts:
    152
    But the error and code references does not link to any Photon related codes. How do you know it has something to do with Photon?
     
  5. All the files you screenshoted here are Photon files. I have no idea, I do not use Photon.
     
  6. UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    Joined:
    Jan 9, 2017
    Posts:
    152
    No, those are my folders. I named it Photon because I'm using that. But the errors are not from any actual Photon files from the plugin. If it was I already asked on the Photon forums.
     
  7. UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    UDN_5c806b49-d8a0-4f67-a296-c12c91aa7396

    Joined:
    Jan 9, 2017
    Posts:
    152
    Can anyone help me? This error isn't giving me any clue as to what is wrong.
     
  8. Daegit

    Daegit

    Joined:
    Nov 20, 2015
    Posts:
    32
    You missed to tell us that you override https://github.com/Unity-Technologi...putSystem/Plugins/OnScreen/OnScreenControl.cs
    And re - enable this script/gameObject maybe could cause this assert.

    Code (CSharp):
    1. Debug.Assert(m_Control == null);
    2. Debug.Assert(m_NextControlOnDevice == null);
    3. Debug.Assert(!m_InputEventPtr.valid);
    line - 76 -78.
    Try to reproduce this in an empty project to make sure and write a bug report.