rc.right == m_gfxwindow->getwidth() && rc.bottom == m_gfxwindow->getheight()

using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Memes : MonoBehaviour {
	public int Meme = 0;



	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		GetComponent<Text> ().text = "Memes: "+Meme.ToString ();
	
	}
}

Any Help?
using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class MPS : MonoBehaviour {

	public int MemesPS = 0;
	public Memes Meme;



	// Use this for initialization
	void Start () {

	}
	
	// Update is called once per frame
	void Update () {
		GetComponent<Text> ().text = "MPS: "+MemesPS.ToString ();
		MemesPS + Memes.Meme
	
	}

}

I’m updated Unity to last version and get the same error.
Even in empty project, when I minimize Unity or press alt + tab, I see 2 errors in log:

SUCCEEDED(hr)
rc.right == m_GfxWindow->GetWidth() && rc.bottom == m_GfxWindow->GetHeight()

Looks like it’s a new version bug, maybe Unity devs can make hotfix soon

UPD: I tried run unity as admin and the problem is solved

Just restart unity, the problem will get resolved, Because when u import package some of the things require restart or it could be something like to rearrange the initialization.

That’s annoying. Couldn’t find anything useful about that.

I had the same problem. I was using two screen and it was solved when I turned off one of them.

No Answer Yet :frowning:

I reimported the project and over 2 days there has been no problem.

Just solved by restarting unity…:))
Actually in my case it occurred because of changing color of button through color picker, and got this 2 annoying errors …

succeeded(hr)
rc.right == m_GfxWindow->GetWidth() && rc.bottom == m_GfxWindow->GetHeight()

Welp, at least I know I’m not the only person with that bug. Hopefully they will fix it soon.

Apparently it has something to do with a computer system, because I have found this, because it’s not just Unity.

i got same error in 5.4.2f,is that fixed in 5.5?

Hi all.

  1. Using Unity v5.4.2f2
  2. I came a cross with similar issue during my work on “Space Shooter” project.
  3. Logs:

SUCCEEDED(hr)

(Filename: C:/buildslave/unity/build/Runtime/GfxDevice/d3d11/D3D11Window.cpp Line: 94)

d3d11: swap chain: w=89849434 h=32766 fmt=28
d3d11: failed to create swap chain [0x80070057]
rc.right == m_GfxWindow->GetWidth() && rc.bottom == m_GfxWindow->GetHeight()

(Filename: C:/buildslave/unity/build/Editor/Platform/Windows/EditorWindows.cpp Line: 1372)

  • In order to solve this problem I followed this instructions:
  • Close Unity
  • Open Unity as Administrator

Thanks.