Bug Issue: Cannot duplicate an actor


Pages: 1

RulezTeam

  • Level 3 Stencyler
November 21, 2018, 01:16:41 am
Hi,

I'm on 10082 and when I try to duplicate an actor I have this error :

Code: [Select]
java.lang.RuntimeException: java.lang.ArithmeticException: / by zero
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:74)
at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:54)
at stencyl.sw.app.tasks.OpenResourceTask.done(OpenResourceTask.java:76)
at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
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.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)
Caused by: java.lang.ArithmeticException: / by zero
at stencyl.sw.util.gfx.ImageUtil.readSpriteSheet(ImageUtil.java:517)
at stencyl.sw.data.EditableSprite.loadScaledImages(EditableSprite.java:160)
at stencyl.sw.data.EditableAnimation.imagesMustBeLoaded(EditableAnimation.java:458)
at stencyl.sw.data.EditableAnimation.copyScalesTo(EditableAnimation.java:233)
at stencyl.sw.data.EditableAnimation.copyTo(EditableAnimation.java:188)
at stencyl.sw.data.EditableAnimation.copy(EditableAnimation.java:180)
at stencyl.sw.data.EditableSprite.setTo(EditableSprite.java:111)
at stencyl.sw.data.EditableSprite.copy(EditableSprite.java:122)
at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:735)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:67)
at stencyl.sw.app.tasks.OpenResourceTask.doInBackground(OpenResourceTask.java:20)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


Justin

  • Master Stencyler
  • *
November 29, 2018, 05:27:34 am
What scales do you have enabled in your project? (1x, 2x, 3x, etc?)

Was the actor you were duplicating a newly created actor? Had you saved before attempting to duplicate it?
  • Status changed from New to Need Info
  • Issue Assigned from (none) to Justin
  • Tags added: 3.5 HP


RulezTeam

  • Level 3 Stencyler
November 29, 2018, 12:12:29 pm
Hi Justin,
- 2x scale
- old actor
- yes, the actor was already saved

This is the procedure that I have done. Open the game, open the actor (already created), duplicate the actor just opened, and then I have this error
« Last Edit: November 29, 2018, 12:12:47 pm by RulezTeam »


Justin

  • Master Stencyler
  • *
December 17, 2018, 04:12:25 am
Fixed in b10152.
  • Tags removed: 3.5 HP
  • Status changed from Need Info to Resolved


RulezTeam

  • Level 3 Stencyler
December 17, 2018, 05:33:06 am
Hi Justin,
the b10152 isn't present as private builds download.


Justin

  • Master Stencyler
  • *
December 17, 2018, 07:09:31 am
Sorry about that, I've uploaded it now. It should be available within 10 or 15 minutes.
« Last Edit: December 17, 2018, 07:10:10 am by Justin »


Pages: 1

Details

  • Reported
    November 21, 2018, 01:16:41 am
  • Updated
    December 17, 2018, 07:09:31 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Engine

Tags