Unity-Technologies / AssetBundles-Browser

Editor tool for viewing and debugging asset bundle contents before and after builds
Other
2.2k stars 528 forks source link

Alert error after build assetbundle #89

Open Guxin233 opened 6 years ago

Guxin233 commented 6 years ago

Console alert an error after build assetbundle. I can find the new created assetbundle file in target folder, but whats the error means? It looks like GUI problem, and I cant find "C:/buildslave/unity/" path in my computer. I work on Windows10(bit64) Unity2017.3.0f3(bit64).

InvalidOperationException: Operation is not valid due to the current state of the object System.Collections.Stack.Pop () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections/Stack.cs:329) UnityEngine.GUILayoutUtility.EndLayoutGroup () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayoutUtility.cs:323) UnityEngine.GUILayout.EndScrollView (Boolean handleScrollWheel) (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:455) UnityEditor.EditorGUILayout.EndScrollView () (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:8075) UnityEngine.AssetBundles.AssetBundleBuildTab.OnGUI (Rect pos) (at Assets/AssetBundleBrowser/UnityEngine.AssetBundles/Editor/AssetBundleBrowser/AssetBundleBuildTab.cs:260) UnityEngine.AssetBundles.AssetBundleBrowserMain.OnGUI () (at Assets/AssetBundleBrowser/UnityEngine.AssetBundles/Editor/AssetBundleBrowser/AssetBundleBrowserMain.cs:113) 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) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. 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:232) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295) UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288) UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255) 1

alffanclub commented 6 years ago

Thanks for posting this. We'll investigate.

geniikw commented 6 years ago

I had same issue. I could bypass by deleting 145, 260 line in AssetBundleBuildTab.cs It's EditorGUILayout.BeginScrollView and ENdScrollView. unity3d editor version is 5.6.x