{"action":"opened","issue":{"url":"https://api.github.com/repos/BobPalmer/MKS/issues/802","repository_url":"https://api.github.com/repos/BobPalmer/MKS","labels_url":"https://api.github.com/repos/BobPalmer/MKS/issues/802/labels{/name}","comments_url":"https://api.github.com/repos/BobPalmer/MKS/issues/802/comments","events_url":"https://api.github.com/repos/BobPalmer/MKS/issues/802/events","html_url":"https://github.com/BobPalmer/MKS/issues/802","id":134355881,"number":802,"title":"Station Manager GUI ArgumentExeptions and InvalidCastExceptions","user":{"login":"frango9000","id":560329,"avatar_url":"https://avatars.githubusercontent.com/u/560329?v=3","gravatar_id":"","url":"https://api.github.com/users/frango9000","html_url":"https://github.com/frango9000","followers_url":"https://api.github.com/users/frango9000/followers","following_url":"https://api.github.com/users/frango9000/following{/other_user}","gists_url":"https://api.github.com/users/frango9000/gists{/gist_id}","starred_url":"https://api.github.com/users/frango9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frango9000/subscriptions","organizations_url":"https://api.github.com/users/frango9000/orgs","repos_url":"https://api.github.com/users/frango9000/repos","events_url":"https://api.github.com/users/frango9000/events{/privacy}","received_events_url":"https://api.github.com/users/frango9000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-17T18:09:47Z","updated_at":"2016-02-17T18:09:47Z","closed_at":null,"body":"Similar to https://github.com/BobPalmer/MKS/issues/584 \r\nStarted a new issue since the Gui affected is not the same.\r\n\r\nKSP 1.0.5 (New install)\r\n\r\nMods:\r\nUKS 0.33.8\r\nUSI LS 0.3.12\r\nUSI Tools 0.6.2 (included in UKS)\r\nCRP 0.4.9 (included in UKS)\r\nFirespitter plugin 7.1.5 (included in UKS)\r\nMM 2.6.18\r\n\r\nOS: Ubuntu 15.10 64bit\r\n\r\nOn USI \"Station Manager\" GUI clicking \"Parts Tab\" and \"Resources Tab\" I get Exceptions\r\nAlso all resources show \"producing 0\" but as expected some actually are being consumed and other generated.\r\n\r\n![screenshot from 2016-02-17 13-18-57](https://cloud.githubusercontent.com/assets/560329/13119396/2c8068da-d57b-11e5-8647-805c23d32f19.png)\r\n\r\n[KSP.log.txt](https://github.com/BobPalmer/MKS/files/134885/KSP.log.txt)\r\n\r\n>[LOG 13:18:06.684] [Untitled Space Craft]: ground contact! - error: 0.038m\r\n[LOG 13:18:06.684] Unpacking Untitled Space Craft\r\n[LOG 13:18:06.773] [Progress Node Reached]: RecordsSpeed\r\n[EXC 13:18:09.713] ArgumentException: Getting control 0's position in a group with only 0 controls when doing mouseUp\r\nAborting\r\n\tUnityEngine.GUILayoutGroup.GetNext ()\r\n\tUnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type LayoutType)\r\n\tUnityEngine.GUILayout.BeginVertical (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options)\r\n\tUnityEngine.GUILayout.BeginVertical (UnityEngine.GUILayoutOption[] options)\r\n\tKolonyTools.StationView.DrawWindowContents (Int32 windowId)\r\n\tKolonyTools.Window`1[T].PreDrawWindowContents (Int32 windowId)\r\n\tUnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID)\r\n\tUnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)\r\n[EXC 13:18:19.140] ArgumentException: Getting control 0's position in a group with only 0 controls when doing mouseUp\r\nAborting\r\n\tUnityEngine.GUILayoutGroup.GetNext ()\r\n\tUnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type LayoutType)\r\n\tUnityEngine.GUILayout.BeginHorizontal (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options)\r\n\tUnityEngine.GUILayout.BeginHorizontal (UnityEngine.GUILayoutOption[] options)\r\n\tKolonyTools.StationView.DrawResources (System.Collections.Generic.List`1 balance)\r\n\tKolonyTools.StationView.DrawWindowContents (Int32 windowId)\r\n\tKolonyTools.Window`1[T].PreDrawWindowContents (Int32 windowId)\r\n\tUnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID)\r\n\tUnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)\r\n[LOG 13:18:21.025] [AsteroidSpawner]: New object found near Kerbin: Ast. LWW-803!\r\n[EXC 13:18:32.100] InvalidCastException: Cannot cast from source type to destination type.\r\n\tUnityEngine.GUILayout.BeginScrollView (Vector2 scrollPosition, Boolean alwaysShowHorizontal, Boolean alwaysShowVertical, UnityEngine.GUIStyle horizontalScrollbar, UnityEngine.GUIStyle verticalScrollbar, UnityEngine.GUIStyle background, UnityEngine.GUILayoutOption[] options)\r\n\tUnityEngine.GUILayout.BeginScrollView (Vector2 scrollPosition, Boolean alwaysShowHorizontal, Boolean alwaysShowVertical, UnityEngine.GUILayoutOption[] options)\r\n\tKolonyTools.StationView.DrawWindowContents (Int32 windowId)\r\n\tKolonyTools.Window`1[T].PreDrawWindowContents (Int32 windowId)\r\n\tUnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID)\r\n\tUnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)\r\n[EXC 13:18:33.053] ArgumentException: Getting control 0's position in a group with only 0 controls when doing mouseUp\r\nAborting\r\n\tUnityEngine.GUILayoutGroup.GetNext ()\r\n\tUnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type LayoutType)\r\n\tUnityEngine.GUILayout.BeginHorizontal (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options)\r\n\tUnityEngine.GUILayout.BeginHorizontal (UnityEngine.GUILayoutOption[] options)\r\n\tKolonyTools.StationView.DrawResources (System.Collections.Generic.List`1 balance)\r\n\tKolonyTools.StationView.DrawWindowContents (Int32 windowId)\r\n\tKolonyTools.Window`1[T].PreDrawWindowContents (Int32 windowId)\r\n\tUnityEngine.GUILayout+LayoutedWindow.DoWindow (Int32 windowID)\r\n\tUnityEngine.GUI.CallWindowDelegate (UnityEngine.WindowFunction func, Int32 id, UnityEngine.GUISkin _skin, Int32 forceRect, Single width, Single height, UnityEngine.GUIStyle style)\r\n[LOG 13:18:36.824] [AsteroidSpawner]: New object found near Kerbin: Ast. HNG-170!"}}