Unable to use Stats window

The stats window is no longer behaving for us. The error message shows up in the console as:

Unable to find style 'small' in skin 'SceneGUISkin' Layout
UnityEngine.Debug:LogWarning(Object)
UnityEngine.GUISkin:GetStyle(String)
UnityEngine.GUIStyle:op_Implicit(String)
UnityEditor.GameViewGUI:GameViewStatsGUI() (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/GameviewGUI.cs:89)
UnityEditor.EditorGUIUtility:RenderGameViewCameras(Rect, Rect, Boolean, Boolean)
UnityEditor.EditorGUIUtility:RenderGameViewCameras(Rect, Rect, Boolean, Boolean)
UnityEditor.GameView:OnGUI() (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/GameView/GameView.cs:192)
System.Reflection.MonoMethod:InternalInvoke(Object, Object[])
System.Reflection.MonoMethod:InternalInvoke(Object, Object[])
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
UnityEditor.HostView:Invoke(String) (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/GUI/DockArea.cs:156)
UnityEditor.DockArea:OnGUI() (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/GUI/DockArea.cs:491)

Has anyone else seen this or know of a fix?

Do you really have the final Unity 2.5.0, and not some beta version?

I’m getting the same error as above when the stats window is displayed and I have a network connection (the extra red text that comes up).

I’m running Unity 2.5.1f (24931) on Windows Vista Ultimate 64bit.

Should I lodge a bug report or is there a simple fix?

I like to confirm the problem as well.

The second the network connection is made, and the red text is shown, the error starts filling up the console pretty quick…

(2.5.1f5 24931)

It looks like a bug,

Can you report it with descriptions on what you where doing, images and reassemble the bug in a small project if possible.

I have this problem also, it’s incredibly easy to re-create.

Create a new project, add a blank game object. Attach the following script to the game object:

function OnGUI()
{
   if(GUILayout.Button("Server"))
   {
       Network.InitializeServer(32,26000);
   }
  
   if(GUILayout.Button("Client"))
   {
      var err : NetworkConnectionError;
      err = Network.Connect("127.0.0.1",26000);

      if(err != NetworkConnectionError.NoError)
      {
          Debug.Log("Error Connecting");
      }
   }
}

Ensure that the player settings are set to ‘run in background’.

Simply compile and test in the editor. Click server. Your editor is now the server. Run your other compiled copy directly and click client.

The client will connect to the server and your servers debug window will start spamming these warnings:

Unable to find style ‘small’ in skin ‘SceneGUISkin’ Layout UnityEngine.Debug:LogWarning(Object)

Unable to find style ‘small’ in skin ‘SceneGUISkin’ repaint UnityEngine.Debug:LogWarning(Object)

Hope that helps.

Hi guys!

I am working on a chat for a multi-player game and I have the same problem, has anybody solved it?

Thank you.

I’m having the same issue too. It’s making it hard to debug/test my game.

Hi abrown28, to debug my game one thing that I do is to check the “Collapse” button in the Console which collapses identical messages down into a single entry. It would be better if we could solve the problem but by the way is easier to debug with it.

Problem still exists in unity 2.6.1f3

Going by the database, I’m not convinced anyone has ever actually reported this bug. Please can you file a report for it (menu: Help > Report A Problem). It should be easy to track down if you can attach a project or clearly describe the circumstances in which it happens.

Error reported

That’s great - thanks!

(Sometimes when several people notice a bug, they all assume that someone else has filed a report, when in fact nobody really has :wink: )

:slight_smile:

I also thought that Its enough to report bugs in forum ^.^ now I know better.