Bug Issue: Cannot create new action custom blocks


Pages: 1

Luyren

  • Master Stencyler
  • *
July 30, 2020, 07:12:01 am
b10593, running on Windows

I cannot create an action custom block (Return Type: None), I get an out of bounds exception. Happens in both normal and global custom blocks. Setting a return type creates the block just fine.

To reproduce:
1- Create a new game
2- Create an actor behavior
3- Try to create a custom block with return type set to "None"

The error will pop-up, and the creation of the custom block will be cancelled.

This is what shows in the "Details" button of the error prompt.
Code: [Select]
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
at stencyl.sw.editors.snippet.designer.block.Block.resetBlock(Block.java:1603)
at stencyl.sw.editors.snippet.designer.EditArea.loadBYOB(EditArea.java:2845)
at stencyl.sw.editors.snippet.designer.EditArea.showBYOBDialog(EditArea.java:2805)
at stencyl.sw.editors.snippet.designer.Definition$2.actionPerformed(Definition.java:603)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
« Last Edit: July 31, 2020, 06:26:37 pm by Luyren »


New attachment added by Luyren - July 30, 2020, 07:12:28 am


Justin

  • Master Stencyler
  • *
August 01, 2020, 12:21:42 am
Fixed in private build 10600 and public release 4.0.3.
  • Issue Assigned from (none) to Justin
  • Status changed from New to Resolved
  • Tags added: regression, 4.0.3


Luyren

  • Master Stencyler
  • *
August 01, 2020, 06:29:43 am
Fix confirmed in b10601. Thanks!


Chris24XD

  • Junior Stencyler
Today at 08:27:36 am
l didn't had that problem at 4.0.2.
How did you got this problem?


Pages: 1

Details

  • Reported
    July 30, 2020, 07:12:01 am
  • Updated
    Today at 08:27:36 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Design Mode Blocks

Tags


Attachments

* log-2020-07-30.zip (74.29 kB - downloaded 3 times.)