1 (edited by pirkka.isomaki 2018-09-18 12:29:56)

Topic: Editor errors when tileset textures size is 2048 pixels or more

If map texture is set to 2048 pixels or more and map gameobject is selected in hierarchy during playmode  i get tons UnityEditor errors and inspector is malformed. See picture.

Unity 2018.2.8f1
OnlineMaps v 2.5.40.1



Warning: Attempting to open > 63 preview scenes, this is not supported, ensure you dispose of preview scenes properly

Attempting to open > 63 preview scenes, this is not supported, ensure you dispose of preview scenes properly
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

InvalidOperationException: Preview scene could not be created

InvalidOperationException: Preview scene could not be created
UnityEditor.PreviewScene..ctor (System.String sceneName) (at C:/buildslave/unity/build/Editor/Mono/Inspector/PreviewRenderUtility.cs:23)
UnityEditor.PreviewRenderUtility..ctor () (at C:/buildslave/unity/build/Editor/Mono/Inspector/PreviewRenderUtility.cs:102)
UnityEditor.MaterialEditor.Init () (at C:/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:1698)
UnityEditor.MaterialEditor.DefaultPreviewGUI (Rect r, UnityEngine.GUIStyle background) (at C:/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:1904)
UnityEditor.MaterialEditor.OnPreviewGUI (Rect r, UnityEngine.GUIStyle background) (at C:/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:1892)
UnityEditor.Editor.OnHeaderIconGUI (Rect iconRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:758)
UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header, Single leftMargin) (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:831)
UnityEditor.MaterialEditor.OnHeaderGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:432)
UnityEditor.Editor.DrawHeader () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:665)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1230)
UnityEditor.InspectorWindow.DrawEditors (UnityEditor.Editor[] editors) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1126)
UnityEditor.InspectorWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:481)
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)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

A PreviewRenderUtility was not clean up properly before assembly reloading which lead to leaking this scene in the Editor. This can be caused by not calling Cleanup() during the OnDisable of an Editor or an EditorWindow.

A PreviewRenderUtility was not clean up properly before assembly reloading which lead to leaking this scene in the Editor. This can be caused by not calling Cleanup() during the OnDisable of an Editor or an EditorWindow.
UnityEditor.PreviewRenderUtility:Finalize()
Post's attachments

Attachment icon EditorErrors.PNG 284.04 kb, 128 downloads since 2018-09-18 

Re: Editor errors when tileset textures size is 2048 pixels or more

Hello.

Thanks for the bug report.
We will try to fix this as soon as possible.

As a workaround until it is fixed, simply deselect the map GameObject before starting the scene.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.