UniVRM icon indicating copy to clipboard operation
UniVRM copied to clipboard

UniGLTF flashes the export screen and ArguementException & ArgumentNullException

Open byeoon opened this issue 1 year ago • 1 comments

Environments (please complete the following information):

  • UniVRM version: 0.122.0 & 1.0?
  • Unity version: Unity-2022.3.6f1
  • OS: Windows 11

Describe the bug

When I try to export my avi as a glTF file as well, the window decides to have a seizure and spam my console with errors.

  • ConsoleLog
ArgumentException: Getting control 0's position in a group with only 0 controls when doing repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at <4397ca26b8a24183a25a95ffae967e39>:0)
UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <4397ca26b8a24183a25a95ffae967e39>:0)
UnityEngine.GUILayoutUtility.GetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <4397ca26b8a24183a25a95ffae967e39>:0)
UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.EditorGUILayout.EnumPopup (System.String label, System.Enum selected, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.EditorGUILayout.EnumPopup (System.String label, System.Enum selected, UnityEngine.GUILayoutOption[] options) (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UniGLTF.M17N.LanguageGetter.OnGuiSelectLang () (at Assets/UniGLTF/Editor/UniGLTF/ExportDialog/M17N.cs:118)
UniGLTF.ExportDialogBase.BeginGUI () (at Assets/UniGLTF/Editor/UniGLTF/ExportDialog/ExportDialogBase.cs:110)
UniGLTF.ExportDialogBase.OnGUI () (at Assets/UniGLTF/Editor/UniGLTF/ExportDialog/ExportDialogBase.cs:80)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <347e3e2bef8c4deb82c9790c6e198135>:0)
UnityEditor.DockArea.OldOnGUI () (at <347e3e2bef8c4deb82c9790c6e198135>: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 <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <d30253adcd2a48faba9ee2264e211f5a>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <4397ca26b8a24183a25a95ffae967e39>:0)
  • ScreenShot

image Unity_ehkXIc5yTf

  • Reproduction procedure Again I have no idea how to reproduce this.

byeoon avatar Jun 11 '24 00:06 byeoon

TODO:

imgui layout issue.

https://tech.cygames.co.jp/archives/2565/

ousttrue avatar Jun 14 '24 05:06 ousttrue