"Assertion failed UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)" when entering prefabs?

Would anyone know the cause of this?

I get it every time I enter any prefabs…? Everything was fine a day ago.
Thanks in advance.

i am having the same issue

it may be an install issue local to our machines. I haven’t found the problem yet but reverting to any previous commits in my github repo yields the same problem- even ones that were fine previously.

still haven’t solved it. I also get these error msg’s
"
Assertion failed
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Internal: JobTempAlloc has allocations that are more than the maximum lifespan of 4 frames old - this is not allowed and likely a leak

To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations."

only happens when i go into prefabs

It was an issue with having the SkyBox toggle on when entering prefabs. I don’t know what caused it originally, but as long as you leave the toggle off the bugs do not appear.

even with the skybox disabled i still get the same error when i open a prefab

Disable the Opaque Texture in the Render asset. If that doesn’t work try rolling back to DX11 (we were all on DX12) as my teammate claims that fixed the issue.

9080266--1256854--image.png

thank you

Thank you so much for your suggestion, I’ve had this problem for months and even wrote on a forum post (which got lost because unity forums… and the lack of replies… omg…) I wasn’t able to use the editor as soon as I tried to do a hierarchy search and needed to look at the scene view.
With your post I knew I should toggle those switches and it finally works again. Reinstalling the editor did nothing btw

For anyone searching this issue, here were my errors:
unity ArgumentNullException: Value cannot be null.Parameter name: valueUnityEngine.MaterialPropertyBlock.SetTexture (System.Int32 nameID, UnityEngine.Texture value) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Shaders/MaterialPropertyBlock.cs:113)

and

Assertion failed
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:190)

Thanks again

my pleasure. i knew it might be a relief to someone. :slight_smile:

Hey thanks! I worked for me.
In my case just disabling the post process from the sky box toggle drop down menu did the job.

worked for me!

Yeah, that’s not annoying is it. Turn off skybox solved for me. Unity 2022 LTS.

For me this happened when selecting a gameobject (a prefab instance) in the hierarchy.

For those who are still struggling, right click the problematic prefab and select reimport!

I also have this issue but only when I’m open the specific scene and it run in update even I’m not entering playmode. However, I could enter playmode without any issue, but if I don’t fix this, it probably will annoy me more in the future.