Assertion failed issue

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:smile:isplayDeathWindow(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

Anyone? Is this a unity bug?

Unless someone comes who actually uses Photon: try Photon support.

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?

All the files you screenshoted here are Photon files. I have no idea, I do not use Photon.

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.

Can anyone help me? This error isn’t giving me any clue as to what is wrong.

You missed to tell us that you override InputSystem/Packages/com.unity.inputsystem/InputSystem/Plugins/OnScreen/OnScreenControl.cs at 41b8f70977f5f19210776dbda46b60fbd0a89af6 · Unity-Technologies/InputSystem · GitHub
And re - enable this script/gameObject maybe could cause this assert.

Debug.Assert(m_Control == null);
Debug.Assert(m_NextControlOnDevice == null);
Debug.Assert(!m_InputEventPtr.valid);

line - 76 -78.
Try to reproduce this in an empty project to make sure and write a bug report.