Stencyl 3.4.0 is now out. Get it now!

Bug Issue: Error when trying to increase rectangular collision size/position beyond bounds


Pages: 1

Irock

  • Master Stencyler
  • *
March 15, 2016, 10:01:27 pm


Code: [Select]
Level:     ERROR
When:      2016-03-15 23:51:40:103
From:      root

Unexpected problem on thread AWT-EventQueue-0: Attempt to mutate in notification

Throwable: java.lang.IllegalStateException: Attempt to mutate in notification
at javax.swing.text.AbstractDocument.writeLock(AbstractDocument.java:1338)
at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:658)
at javax.swing.text.JTextComponent.setText(JTextComponent.java:1669)
at javax.swing.JFormattedTextField$AbstractFormatter.install(JFormattedTextField.java:948)
at javax.swing.text.DefaultFormatter.install(DefaultFormatter.java:125)
at javax.swing.text.InternationalFormatter.install(InternationalFormatter.java:285)
at javax.swing.JFormattedTextField.setFormatter(JFormattedTextField.java:464)
at javax.swing.JFormattedTextField.setValue(JFormattedTextField.java:788)
at javax.swing.JFormattedTextField.setValue(JFormattedTextField.java:501)
at javax.swing.JSpinner$DefaultEditor.stateChanged(JSpinner.java:717)
at javax.swing.JSpinner.fireStateChanged(JSpinner.java:458)
at javax.swing.JSpinner$ModelListener.stateChanged(JSpinner.java:386)
at javax.swing.AbstractSpinnerModel.fireStateChanged(AbstractSpinnerModel.java:119)
at javax.swing.SpinnerNumberModel.setValue(SpinnerNumberModel.java:447)
at javax.swing.JSpinner.setValue(JSpinner.java:354)
at stencyl.sw.editors.tileset.BoxEditor.updateX(BoxEditor.java:228)
at stencyl.sw.editors.tileset.BoxEditor$1.removeUpdate(BoxEditor.java:125)
at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:259)
at javax.swing.text.AbstractDocument.handleRemove(AbstractDocument.java:622)
at javax.swing.text.AbstractDocument.remove(AbstractDocument.java:590)
at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:666)
at javax.swing.text.JTextComponent.setText(JTextComponent.java:1669)
at javax.swing.JFormattedTextField$AbstractFormatter.install(JFormattedTextField.java:948)
at javax.swing.text.DefaultFormatter.install(DefaultFormatter.java:125)
at javax.swing.text.InternationalFormatter.install(InternationalFormatter.java:285)
at javax.swing.JFormattedTextField.setFormatter(JFormattedTextField.java:464)
at javax.swing.JFormattedTextField.setValue(JFormattedTextField.java:788)
at javax.swing.JFormattedTextField.setValue(JFormattedTextField.java:501)
at javax.swing.JSpinner$DefaultEditor.stateChanged(JSpinner.java:717)
at javax.swing.JSpinner.fireStateChanged(JSpinner.java:458)
at javax.swing.JSpinner$ModelListener.stateChanged(JSpinner.java:386)
at javax.swing.AbstractSpinnerModel.fireStateChanged(AbstractSpinnerModel.java:119)
at javax.swing.SpinnerNumberModel.setValue(SpinnerNumberModel.java:447)
at javax.swing.JSpinner.setValue(JSpinner.java:354)
at com.apple.laf.AquaSpinnerUI$ArrowButtonHandler.actionPerformed(AquaSpinnerUI.java:332)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1673)
at java.awt.Component.setVisible(Component.java:1625)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at stencyl.sw.editors.tileset.BoxEditorDialog.<init>(BoxEditorDialog.java:44)
at stencyl.sw.editors.tileset.ShapeChooserPanel$1.actionPerformed(ShapeChooserPanel.java:208)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:157)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.Component.processMouseEvent(Component.java:6535)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6300)
at java.awt.Container.processEvent(Container.java:2236)
at java.awt.Component.dispatchEventImpl(Component.java:4891)
at java.awt.Container.dispatchEventImpl(Container.java:2294)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
at java.awt.Container.dispatchEventImpl(Container.java:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4713)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
« Last Edit: March 15, 2016, 10:02:49 pm by Irock »


Issue updated by captaincomic - March 16, 2016, 04:10:40 am


captaincomic

  • Master Stencyler
  • *
March 16, 2016, 04:53:04 am
Fixed in b9049.

I didn't manage to set maximum allowed values for the input fields dynamically based on the values of the other fields (that's what was causing the error). So it will allow you to enter e.g. width 50%, x-position 60%, but anyway the result will be correct (the box will not go out of bounds).
  • Status changed from New to Resolved


Irock

  • Master Stencyler
  • *
April 10, 2016, 10:51:17 pm


Issue updated by captaincomic - April 11, 2016, 12:06:03 pm
  • Status changed from Resolved to New


Issue updated by rob1221 - March 31, 2017, 11:52:15 am


Issue updated by rob1221 - April 02, 2017, 07:36:21 am
  • Status changed from New to Confirmed


rob1221

  • Master Stencyler
  • *
July 11, 2017, 10:29:10 am
Fixed in b9479.  The x/y will match the entered values, and the width/height will be reduced if needed.
  • Status changed from Confirmed to Resolved
  • Issue Assigned from (none) to rob1221


Pages: 1

Details

  • Reported
    March 15, 2016, 10:01:27 pm
  • Updated
    July 11, 2017, 10:29:10 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.4
  • Fixed in
    (none)
  • Assigned to
    rob1221
  • Category
    Tileset Editor

Tags