Mac os Mojave Unity weird bug

hi,
i’m working on a unity extension and i’m facing a weird issue on Mac os Mojave, the issue happens when i open a unity window editor and work simultaneously in scene view , unity often randomly freezes for a couple of seconds and then it starts showing null ref exceptions which corrupt my plugin ,when i investigated i found that some transform references in a list got nulled and some didn’t which is so weird, yet the game objects that holds the transforms that got nulled still exist in the scene hierarchy.
i tried the exact same project on windows and none of that happens, everything works really smoothly on windows,
i started to really ask questions about unity and mac, it does not seam to work smoothly as with windows
here is an image showing the interface of unity during this hiccup, it does not look right

Unity got some performance fixes in 2017.4.12 and 2018.2.9 specific for running on Mojave, maybe in over versions as well, but that’s just what my googlefu turned up in 2 minutes of my time. Unity 5.x is out of its support cycle so isn’t getting any performance fixes for current OS version changes.

I don’t use a Mac, and don’t know what this Metal API Validation checkbox is, but you might look into it.

@Joe-Censored thanx a lot for the reply , me too i’m kind of new to this mac unity experience, but this Metal API Validation checkbox is in player settings under rendering section and it’s checked
after hours of experiments i think i found a way to avoid this issue , the solution is by docking the window with the other unity windows , if it’s floating around then it will trigger the issue, i’m sure this issue has nothing to do with my plugin after this little discovery , it’s unity issue , hope this helps if anyone is facing the same issue , just dock your window and you will be fine

1 Like

Well, from a reading of those release notes, I’d try unchecking the box :stuck_out_tongue:

1 Like