GPU Hang on OSX 10.9.5 when rendering to render texture [Mac Standalone, Unity 2017.3 / 5.6]

Hi, so, on Windows, I have been building a Mac Standalone game using the OpenGLCore backend (Metal also seems to not work). I have tested this by building in 5.6 and 2017.3.

My set-up is a camera renders to a render texture which is displayed as a Raw Image, so I can get forced downscaling for visual style.

  • When a camera renders to a render texture, and that camera is capturing a directional light hitting any scene geometry, then the game softlocks on OSX 10.9.5 (late 2013 macbook pro retina). This problem does not occur on OSX 10.12 (even though the Mac hardware, late 2012 macbook pro retina a year older.)

-The game softlocks even if there is no UI Raw Image displaying the render texture

  • If I remove scene geometry but leave the light on, then the render texture stuff is fine.

  • If I remove the render texture stuff and have the camera display normally, then the geometry and shader stuff seems fine.

When it hangs on 2017.3, I get the following shader bugs in Player.log :

WARNING: Shader Unsupported: ‘Hidden/BlitToDepth’ - Pass ‘’ has no vertex shader
WARNING: Shader Unsupported: ‘Hidden/BlitToDepth’ - Setting to default shader.
WARNING: Shader Unsupported: ‘Hidden/BlitToDepth_MSAA’ - Pass ‘’ has no vertex shader
WARNING: Shader Unsupported: ‘Hidden/BlitToDepth_MSAA’ - Setting to default shader.

any ideas? Do I just have to say no support for my game unless you have at least OSX 10.12?

I should also mention that in a test scene (two default cubes, some fog, directional light, default camera, no render texture), I was able to get a similar freeze when turning the light on, using 2017.3. I haven’t been able to consistently figure out that case, though

Here’s the render texture info. Maybe changing something here will help?

3361645--263302--jiodfjsdiofj.PNG

Well, I am going to submit a bug report. Here’s something you should be able to reproduce with if opening in Windows 5.6.1f1 as well as 64-bit 2017.3.0f3. steps to reproduce. This also works by building with 2017.2 on Mac OSX 10.12, in either x86 or x86_64 mode

  • open project on Windows 7 in 5.6.1f1
  • Open the “title” scene
  • verify project works fine (go into play mode - L toggles a light, C toggles the plane, F toggles fog)
  • build to mac OSX standalone player (no settings changed)
  • copy build to mac with 10.9.5 OS
  • open game. Game will lock up when you press L to toggle the light.

I’m wondering if it’s something weird with how the render texture camera can maybe “see” the raw image of the screenspace-camera UI.

3361808–263317–rendertexturecrashOn5_6_1.zip (13.7 KB)