Game view goes dark grey in 5.4.0f3

Is anyone else constantly getting this error in Unity 5.4.0f3?:

RenderTexture warning: Destroying active render texture. Switching to main context.

When this happens, the editor game view goes completely black until you switch to/from fullscreen. It happens around 3-4 times per minute, which is annoying to the point of making me consider go back to 5.3.
Happens in all of my six projects.

I read in the 5.4 beta forums of a very similar issue that made it to RC2, could it be that it has slipped trough?

I have the same problem, on OS X El Capitan

OS X El Capitan here too. IĀ“m considering sending a bug report now that this doesnĀ“t sound like itā€™s just me.

Also, if you resize the game view window while itā€™s black, do you get random garbage? Seems like the render texture used by Unity as the final rendering target is getting destroyed for no reason.

It looks as if the resize window. So far, it is necessary to establish unity 5.3 so it is impossible to work.

Yes, this is exactly what is happening to me. I will report it and revert back to 5.3 in the meantime, since the editor is unusable in this state.

This is happening to me as well (also El Capitan) I have to close the Game Window and open a new one and it comes back alive. It has me worried (again), is this going to crash my devices?

Havenā€™t deployed anything with 5.4 on El Capitan, but chances are standalone builds will also have this problem. I assume the rendering path is the same for both the editor and standalone, so if the editor is affected builds will too.

I could be wrong tho, so just try it. Also, will probably only happen to people playing your game on El Capitan.

Yep, happens to me as well on OS X 10.11.6: game view goes ā€œblackā€ (well, not completely black, but filled with its background color #282828). But I still canā€™t find a 100% way to reproduce this.

Yes, I suppose that color comes from some place in the graphics card video memory, probably from some other unrelated texture used by the editor UI. As soon as you resize the view, garbage will replace it.

I suppose the result of having a render texture that has already been destroyed bound for rendering is undefined, thus you get something (anything) else from the video memory instead.

Btw, no progress on the bug report I sent. HavenĀ“t heard back from Unity on this.

Iā€™m only building iOS builds at the moment and testing has not seen this on the mobile devices, so far only in the editor.

If this is a El Capitan only issue as it seems, will not happen in any other platform / OS. This seems to confirm it. :slight_smile:

I can confirm that this is not limited to El Capitan, I am having the same issue on OS X 10.8.5 using Unity 5.4. My screen doesnā€™t go black but it goes to the default grey background of the scene editor. Fixes itself when I pause and unpause play mode. Havenā€™t encountered it in builds yet but I just started using 5.4 today.

1 Like

Seeing this to. The Game view works for a while, then goes black. If I resize the game view I get graphical garbage. If I close the Game window and open a new one it works for a while but eventually goes black again. Alternating pause and play has no effect. Using multiple monitors so it might be some side effect of that.

Hi akeplinger,

I only use one monitor (laptop mac) and I get the exact same behavior you describe, so I think itā€™s not related to the amount of monitors.

Which OS are you using? Just to get an idea of the severity of this in terms of users affected. The more we are, the faster weĀ“ll draw attention towards this bug.

Im using 10.11.6 El Capitan with 2 monitors on a late2013 27" iMac. Happens at least once a day but usually many more times at what seems to be random times. It goes Grey, not black, and for me I have to close the Game window and re-open to fix. I donā€™t have to re-run Unity.

Yep, mine is also dark grey. Closing the game window does not fix it for me, though.

This has been happening to me for some time with Unity 5.4 betas, and now in the release version. Rebooting Unity fixes it. Sometimes ticking off ā€œMaximize on playā€ helps as well. Using 15" MBP Mid 2015 with AMD M370X and latest El Capitan.

Same here.
If you switch to another tab and then back to the ā€˜Gameā€™ tab it works again.
Quite annoying anyway.

This is happening to me too. If switching tabs doesnā€™t work, I switch layouts, and if that doesnā€™t work I have to restart Unity. Not fun if it happens right in the middle of testing something! :frowning: Iā€™d like to submit a bug report but usually Iā€™m on the train without proper wifi and itā€™s hard for me to remember to send in a report when I get homeā€¦

Just wanted to pop in and give you a few links that are related. We currently have an issuetracker page up for a similar bug, Unity Issue Tracker - Game view disappears after playmode. Iā€™m looking around to see if I can find one that is your exact issue.

Here is also a thread that is going to be updated by our editor team regarding the issuetracker above. http://forum.unity3d.com/threads/blank-game-view.421817/ This issue was also mentioned in that thread, it might be worth monitoring.