Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when Building Example branch #41

Closed
hiroki-o opened this issue Nov 18, 2016 · 2 comments
Closed

Error when Building Example branch #41

hiroki-o opened this issue Nov 18, 2016 · 2 comments

Comments

@hiroki-o
Copy link
Contributor

Original report by philmzo NA (Bitbucket: philmzo, ).


Just ran your example and imported AssetBundle Manager asset from the Asset Store to be sure nothing is missing and when building got:

InvalidOperationException: Operation is not valid due to the current state of the object
System.Collections.Stack.Peek () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections/Stack.cs:321)
UnityEngine.GUILayoutUtility.EndLayoutGroup () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayoutUtility.cs:289)
UnityEngine.GUILayout.EndHorizontal () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:291)
UnityEditor.EditorGUILayout.EndHorizontal () (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6982)
UnityEditor.EditorGUILayout+HorizontalScope.CloseScope () (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:6942)
UnityEngine.GUI+Scope.Dispose () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUIBindings.cs:27)
AssetBundleGraph.AssetBundleGraphEditorWindow.DrawGUIToolBar () (at Assets/AssetBundleGraph/Editor/GUI/AssetBundleGraphEditorWindow.cs:582)
AssetBundleGraph.AssetBundleGraphEditorWindow.OnGUI () (at Assets/AssetBundleGraph/Editor/GUI/AssetBundleGraphEditorWindow.cs:820)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

@hiroki-o
Copy link
Contributor Author

Original comment by Hiroki Omae (Bitbucket: [Hiroki Omae](https://bitbucket.org/Hiroki Omae), ).


This is a known issue due to holding Editor's GUI code for too long. It is an error should be fixed, but from user perspective there is no side effect from this error in using tool and building asset bundle.

In recent tool code (1.1) it still produces similar error such as following.

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type layoutType) (at /Users/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayoutUtility.cs:263)
UnityEditor.EditorGUILayout.BeginHorizontal (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7153)
UnityEditor.EditorGUILayout.BeginHorizontal (UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7133)
UnityEditor.EditorGUILayout+HorizontalScope..ctor (UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7111)
AssetBundleGraph.AssetBundleGraphEditorWindow.OnGUI () (at Assets/AssetBundleGraph/Editor/GUI/AssetBundleGraphEditorWindow.cs:819)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

@hiroki-o
Copy link
Contributor Author

Original comment by Hiroki Omae (Bitbucket: [Hiroki Omae](https://bitbucket.org/Hiroki Omae), ).


I fixed this with a44ed7 . It is also in 1.1

zxsean pushed a commit to zxsean/AssetGraph that referenced this issue May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant