Ошибка гуи
Ошибка гуи
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced (type: 7). ( не мой, и открыть я его не могу). Последствия: элементы, которые берутся из списка из другого скрипта располагаются не по заданым х,у-ам а в левом верхнем углу экрана. ЧО за ошибка? чО она значит? с чем может быть связана? как решить
Последний раз редактировалось Zaic 09 авг 2013, 16:30, всего редактировалось 1 раз.
-
Zaic - Старожил
- Сообщения: 758
- Зарегистрирован: 18 июл 2013, 23:13
- Откуда: Отсюда
- Skype: У меня нет скайпа
-
- Сайт
Re: Ошибка гуи
seaman 09 авг 2013, 16:08
Вам предупреждение. Пишите нормально — либо по русски либо по английски.
- seaman
- Адепт
- Сообщения: 8351
- Зарегистрирован: 24 янв 2011, 12:32
- Откуда: Самара
Re: Ошибка гуи
Zaic 09 авг 2013, 16:45
Всё, исправил! вы уж извените меня неблагодарного, я просто с мобилы сижу. Чтоб одно сообщение напирать на 2-х языках, мне мадо сначала написать сначала на одном языке, потом выйти с оперы, в настройках мобилы поменять яз. Ввода, зайти снова в оперу, на сайте дописать сообщение на другом языке, потом опять выйти и поменять язык, и опять войти.
-
Zaic - Старожил
- Сообщения: 758
- Зарегистрирован: 18 июл 2013, 23:13
- Откуда: Отсюда
- Skype: У меня нет скайпа
-
- Сайт
Re: Ошибка гуи
seaman 09 авг 2013, 20:40
Ну, сорри. Но иначе читать Ваши сообщения невозможно.
Скорее всего не соответствуют
GUILayout.BeginArea/BeginHorizontal/BeginScrollView/BeginVertical
и
GUILayout.EndArea/EndHorizontal/EndScrollView/EndVertical
«Скобка» не закрыта
- seaman
- Адепт
- Сообщения: 8351
- Зарегистрирован: 24 янв 2011, 12:32
- Откуда: Самара
Re: Ошибка гуи
Zaic 09 авг 2013, 21:29
Ха! действительно, забыл энд ариа допитать. (а ведь раз 10 проверял скрипт, и всё время мне казалось что эта часть дописана!)
-
Zaic - Старожил
- Сообщения: 758
- Зарегистрирован: 18 июл 2013, 23:13
- Откуда: Отсюда
- Skype: У меня нет скайпа
-
- Сайт
Вернуться в Почемучка
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 27
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
void OnGUI() { GUI.BeginGroup(new Rect(Screen.width / 2 - 200, Screen.height / 2 - 100, 400, 300)); if (window == 1) { Screen.lockCursor = false; Cursor.visible = true; if (GUI.Button(new Rect(20, 0, 380, 50), "Играть")) { window = 2; } if (GUI.Button(new Rect(20, 50, 380, 50), "Настройки")) { window = 3; } if (GUI.Button(new Rect(20, 100, 380, 50), "Об Игре")) { window = 4; } if (GUI.Button(new Rect(20, 150, 380, 50), "Выход")) { window = 5; } } if (window == 2) { GUI.Label(new Rect(50, 10, 180, 30), "Выберите миссию"); if (GUI.Button(new Rect(20, 30, 300, 40), "Спасательная операция")) { Debug.Log("Уровень 1 загружен"); one.SetActive(true); gameObject.SetActive(false); } if (GUI.Button(new Rect(20, 160, 180, 30), "Назад")) { window = 1; } } if (window == 3) { GUI.Label(new Rect(150, 0, 300, 20), "Настройки Игры"); if (GUI.Button(new Rect(20, 30, 380, 40), "Игра")) { } if (GUI.Button(new Rect(20, 70, 380, 40), "Аудио")) { window = 3; } if (GUI.Button(new Rect(20, 110, 380, 40), "Видео")) { } if (GUI.Button(new Rect(20, 180, 380, 40), "Назад")) { window = 1; } } if (window == 4) { GUI.Label(new Rect(150, 0, 300, 30), "Об Игре"); GUI.Label(new Rect(100, 30, 300, 50), "Создатель"); if (GUI.Button(new Rect(90, 90, 180, 30), "Назад")) { window = 1; } } if (window == 5) { GUI.Label(new Rect(50, 10, 180, 30), "Вы уже выходите?"); if (GUI.Button(new Rect(10, 40, 180, 30), "Да")) { Application.Quit(); } if (GUI.Button(new Rect(10, 80, 180, 30), "Нет")) { window = 1; } } GUI.EndGroup(); |
During pawn generation the UI disappears and brings me to this screen. I’ve looked at the log and I see this coming up over and over. I think it might be related to the UI disappearance:
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Exception filling window for RimWorld.Page_ConfigureStartingPawns: System.ArgumentNullException: Argument cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[Verse.Pawn,RimWorld.PortraitsCache+CachedPortrait].TryGetValue (Verse.Pawn key, RimWorld.CachedPortrait& value) [0x00000] in <filename unknown>:0
at RimWorld.PortraitsCache.Get (Verse.Pawn pawn, Vector2 size, Vector3 cameraOffset, Single cameraZoom) [0x00000] in <filename unknown>:0
at RimWorld.Page_ConfigureStartingPawns.DrawPawnList (Rect rect) [0x00000] in <filename unknown>:0
at RimWorld.Page_ConfigureStartingPawns.DoWindowContents (Rect rect) [0x00000] in <filename unknown>:0
at Verse.Window+<WindowOnGUI>c__AnonStorey0.<>m__0 (Int32 x) [0x00000] in <filename unknown>:0
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
(Filename: Line: 490)
Log file below:
https://gist.github.com/d666783d40bcc0285fbe365be402bb64
Any suggestions would be appreciated!
[attachment deleted by admin: too old]
Got the same problem. I even disabled Prepare Carefully but it did not help.
Can’t imagine what causes the problem.
Exception filling window for RimWorld.Page_ConfigureStartingPawns: System.ArgumentNullException: Argument cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2[Verse.Pawn,RimWorld.PortraitsCache+CachedPortrait].TryGetValue (Verse.Pawn key, RimWorld.CachedPortrait& value) [0x00000] in <filename unknown>:0
at RimWorld.PortraitsCache.Get (Verse.Pawn pawn, Vector2 size, Vector3 cameraOffset, Single cameraZoom) [0x00000] in <filename unknown>:0
at RimWorld.Page_ConfigureStartingPawns.DrawPawnList (Rect rect) [0x00000] in <filename unknown>:0
at RimWorld.Page_ConfigureStartingPawns.DoWindowContents (Rect rect) [0x00000] in <filename unknown>:0
at Verse.Window+<WindowOnGUI>c__AnonStorey0.<>m__0 (Int32 x) [0x00000] in <filename unknown>:0
Verse.Log:Error(String)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
I managed to somehow get into the game by turning off Alien races mods. Maybe it’ll help.
By the way, I found one other conflict in your mod list which is unrelated to this issue I suppose. Hospitality and Refugee Stats are not compatible as far as I know.
These logs aren’t very helpful, in identifying which mod is to blame, but an interaction between PC and Alien Races does seem the likely culprit.
Note to modders;
This error occurs when an exception is thrown in between GUI.BeginGroup() and GUI.EndGroup() calls. If there’s a possibility of an exception being thrown in such a block, you should always try to use a try/catch block, and call GUI.EndGroup() in the finally clause.
e.g., instead of;
GUI.BeginGroup( rect );
// some potentially failing code
GUI.EndGroup( rect );
use
GUI.BeginGroup( rect);
try {
// some potentially failing code
} catch ( Exception e ) {
// log and/or resolve the problem
} finally {
GUI.EndGroup();
}
-
- Ludeon Forums
- RimWorld
- Mods
- Help (Moderator: Evul)
- GUI Error: You are pushing more GUIClips than you are popping. Make sure they ar
Hi, I’m getting the 2 following errors after adding points to a Road Spline( like 100 points using a script), this worked before, but now it’s throwing an error and I can’t use the Gena Spline editor
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
TypeLoadException: Could not load type of field ‘GeNa.Core.GeNaMultiTerrainOperation:m_heightmapBrushTransform’ (42) due to: Could not resolve type with token 010000f3 from typeref (expected class ‘UnityEngine.Experimental.TerrainAPI.BrushTransform’ in assembly ‘UnityEngine.TerrainModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’) assembly:UnityEngine.TerrainModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null type:UnityEngine.Experimental.TerrainAPI.BrushTransform member:(null)
GeNa.Core.TerrainTools.GenerateTerrainEntity (GeNa.Core.TerrainModifier terrainModifier, GeNa.Core.GeNaSpline spline) (at <1b632962445c4862806dd1c14c8ef30d>:0)
GeNa.Core.GeNaClearDetailsExtension.Visualize () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaClearDetailsExtension.cs:84)
GeNa.Core.GeNaClearDetailsExtension.OnSceneGUI () (at Assets/Procedural Worlds/GeNa/Scripts/Runtime/Extensions/GeNaClearDetailsExtension.cs:63)
GeNa.Core.GeNaSplineExtension.SceneGUI () (at <1b632962445c4862806dd1c14c8ef30d>:0)
GeNa.Core.GeNaSpline.OnSceneGUI () (at <1b632962445c4862806dd1c14c8ef30d>:0)
GeNa.Core.SplineEditor.OnSceneGUI () (at Assets/Procedural Worlds/GeNa/Scripts/Editor/SplineEditor.cs:156)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <31c0f51ac5a24a22ba784db24f4ba023>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <31c0f51ac5a24a22ba784db24f4ba023>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <31c0f51ac5a24a22ba784db24f4ba023>:0)
UnityEditor.SceneView.CallOnSceneGUI () (at <0cde216a590a4d6fbc3d7db7ac203c5d>:0)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at <0cde216a590a4d6fbc3d7db7ac203c5d>:0)
UnityEditor.SceneView.DoOnGUI () (at <0cde216a590a4d6fbc3d7db7ac203c5d>:0)
UnityEditor.SceneView.OnSceneGUI () (at <0cde216a590a4d6fbc3d7db7ac203c5d>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <66054a7773f64b399021c1a3f19995a3>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <66054a7773f64b399021c1a3f19995a3>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <4c1b5f56ab12481abc458fdd69da0f26>:0)
Solution, update your software!
I’m just following the tutorial, 17. Enemies and Battle AI
This happens when I add check status node
Unity seems to choke and the errors just keeps coming until I remove the node.
NullReferenceException: Object reference not set to an instance of an object
ORKFramework.BaseLanguageData.GetName () (at :0)
ORKFramework.BaseLanguageSettings`1[T].GetNames (System.Boolean addIndex) (at :0)
ORKFramework.ORK.GetNames (ORKFramework.ORKDataType type, System.Boolean addIndex) (at :0)
ORKFramework.ORK.GetTypedNames (ORKFramework.ORKDataType type, System.Boolean addIndex) (at :0)
ORKFramework.Editor.ORKEditor.Popup (System.String name, System.Int32& index, ORKFramework.ORKDataType type, System.String helpText, System.String helpInfo, ORKFramework.ORKEditorInfoAttribute editorInfo, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Value (System.Object& value, System.Reflection.FieldInfo fieldInfo, System.Type type, ORKFramework.AttributeHelper attributes, System.String[] text, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Field (System.Reflection.FieldInfo fieldInfo, ORKFramework.AttributeHelper attributes, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Automate (System.Reflection.FieldInfo fieldInfo, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor, System.Boolean ignoreHide, ORKFramework.AttributeHelper attributes) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Automate (ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Value (System.Object& value, System.Reflection.FieldInfo fieldInfo, System.Type type, ORKFramework.AttributeHelper attributes, System.String[] text, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Field (System.Reflection.FieldInfo fieldInfo, ORKFramework.AttributeHelper attributes, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Automate (System.Reflection.FieldInfo fieldInfo, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor, System.Boolean ignoreHide, ORKFramework.AttributeHelper attributes) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Automate (ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Value (System.Object& value, System.Reflection.FieldInfo fieldInfo, System.Type type, ORKFramework.AttributeHelper attributes, System.String[] text, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Field (System.Reflection.FieldInfo fieldInfo, ORKFramework.AttributeHelper attributes, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Automate (System.Reflection.FieldInfo fieldInfo, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor, System.Boolean ignoreHide, ORKFramework.AttributeHelper attributes) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Automate (ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Value (System.Object& value, System.Reflection.FieldInfo fieldInfo, System.Type type, ORKFramework.AttributeHelper attributes, System.String[] text, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Value (System.Object& value, System.Reflection.FieldInfo fieldInfo, System.Type type, ORKFramework.AttributeHelper attributes, System.String[] text, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Field (System.Reflection.FieldInfo fieldInfo, ORKFramework.AttributeHelper attributes, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Automate (System.Reflection.FieldInfo fieldInfo, ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor, System.Boolean ignoreHide, ORKFramework.AttributeHelper attributes) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.EditorAutomation.Automate (ORKFramework.IBaseData instance, ORKFramework.Editor.BaseEditor baseEditor) (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.BattleAIsTab.ShowSettings () (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.BattleAIsTab.ShowTab () (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.ORKEditorSection.ShowTab () (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
ORKFramework.Editor.ORKEditorWindow.OnGUI () (at <73a445f35f4b4bbf85a07b4452ee6a64>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <6ca5a1eeed924aafabbbb98281c05418>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <6ca5a1eeed924aafabbbb98281c05418>:0)
UnityEditor.DockArea.OldOnGUI () (at <6ca5a1eeed924aafabbbb98281c05418>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at :0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
Post edited by HAJFAJV on July 2021