Undoing a change to a selected resizable UI element while ShowDevelopmentGui is off will throw errors

For simplicity, I’ll refer to this button image as the “Secondary Visibility Toggle”.

Bug:
Undoing a change to a selected resizable UI element while ShowDevelopmentGui is off will error. It happens 100% of the time.

Steps to reproduce:

  • Select a UI element that can be resized.
  • Change one if its properties.
  • Toggle ShowDevelopmentGui off using the Secondary Visibility Toggle (while keeping the UI element selected).
  • Undo the change. (CTRL+Z)
  • Observe output for error messages.

Video:

2 Likes

I was able to reproduce this bug.

Note that the UI icon color doesn’t turn blue

Full Error

17:39:09.928 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.929 - Stack Begin

17:39:09.929 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.930 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.930 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.931 - Stack End

17:39:09.931 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.931 - Stack Begin

17:39:09.932 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.932 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.932 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.933 - Stack End

17:39:09.933 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.934 - Stack Begin

17:39:09.934 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.934 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.935 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.935 - Stack End

17:39:09.936 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.936 - Stack Begin

17:39:09.937 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.938 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.938 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.938 - Stack End

17:39:09.939 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.939 - Stack Begin

17:39:09.940 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.940 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.941 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.941 - Stack End

17:39:09.941 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.942 - Stack Begin

17:39:09.942 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.943 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.943 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.943 - Stack End

17:39:09.944 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.944 - Stack Begin

17:39:09.945 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.945 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.945 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.946 - Stack End

17:39:09.946 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.946 - Stack Begin

17:39:09.947 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.947 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.947 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.948 - Stack End

17:39:09.948 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.949 - Stack Begin

17:39:09.949 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.949 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.950 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.950 - Stack End

17:39:09.950 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.951 - Stack Begin

17:39:09.951 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.952 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.952 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.952 - Stack End

17:39:09.953 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.953 - Stack Begin

17:39:09.953 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.954 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.954 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.955 - Stack End

17:39:09.955 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.955 - Stack Begin

17:39:09.956 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.956 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.956 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.957 - Stack End

17:39:09.957 - Plugin_-1.UIEditor.Resize:309: attempt to index upvalue ‘m_handleParent’ (a nil value)

17:39:09.957 - Stack Begin

17:39:09.958 - Script ‘Plugin_-1.UIEditor.Resize’, Line 309 - upvalue updateHandlePositionFromExtents

17:39:09.958 - Script ‘Plugin_-1.UIEditor.Resize’, Line 386 - method updatePosition

17:39:09.958 - Script ‘Plugin_-1.UIEditor.main’, Line 325

17:39:09.959 - Stack End