Bug Issue: Cannot open an actor to edit


Pages: 1

martinrv

  • Junior Stencyler
June 25, 2017, 03:50:34 pm
I get an error when trying to edit the actor, here is one of the logs
Level:     ERROR
When:      2017-06-25 17:45:22:467
From:      root

Unexpected problem on thread AWT-EventQueue-0: java.lang.ClassCastException: stencyl.sw.editors.snippet.designer.block.DummyField cannot be cast to javax.swing.JComponent

Throwable: java.lang.RuntimeException: java.lang.ClassCastException: stencyl.sw.editors.snippet.designer.block.DummyField cannot be cast to javax.swing.JComponent
   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:80)
   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.ClassCastException: stencyl.sw.editors.snippet.designer.block.DummyField cannot be cast to javax.swing.JComponent
   at stencyl.sw.editors.snippet.designer.block.Block.addField(Block.java:3173)
   at stencyl.sw.editors.snippet.designer.Definition.addParameterStart(Definition.java:744)
   at stencyl.sw.editors.snippet.designer.Definition.parseForGUIStart(Definition.java:698)
   at stencyl.sw.editors.snippet.designer.palette.Palette.createAndAddElement(Palette.java:521)
   at stencyl.sw.editors.snippet.designer.palette.Palette.createNodes(Palette.java:381)
   at stencyl.sw.editors.snippet.designer.palette.Palette.createSection(Palette.java:289)
   at stencyl.sw.editors.snippet.designer.palette.SubcategoryListing.addButton(SubcategoryListing.java:134)
   at stencyl.sw.editors.snippet.designer.palette.SubcategoryListing.<init>(SubcategoryListing.java:81)
   at stencyl.sw.editors.snippet.designer.palette.SubPaletteContainer.<init>(SubPaletteContainer.java:36)
   at stencyl.sw.editors.snippet.designer.palette.CategoryListing.addButton(CategoryListing.java:94)
   at stencyl.sw.editors.snippet.designer.palette.CategoryListing.<init>(CategoryListing.java:65)
   at stencyl.sw.editors.snippet.designer.palette.PaletteContainer.<init>(PaletteContainer.java:69)
   at stencyl.sw.editors.snippet.designer.SnippetDesigner.<init>(SnippetDesigner.java:346)
   at stencyl.sw.editors.actor.ActorTab.<init>(ActorTab.java:176)
   at stencyl.sw.app.doc.Workspace.fetchEditorForResource(Workspace.java:786)
   at stencyl.sw.app.doc.Workspace.finishOpenResource(Workspace.java:639)
   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:748)


rob1221

  • Master Stencyler
  • *
June 25, 2017, 03:55:02 pm
The error looks like this one that was recently fixed in the private builds.  I don't know when the next public release will be.  Do you have your language set to something other than English?
  • Status changed from New to Need Info


martinrv

  • Junior Stencyler
June 27, 2017, 05:25:21 pm
Yes, it's in Spanish and so is the Mac OS, I changed it back to English and it works, but my kid is 6 years old and his English is at a beginners level  :(
Are there any solutions?


rob1221

  • Master Stencyler
  • *
June 27, 2017, 06:18:10 pm
There aren't any workarounds that I'm aware of.  Since it's a toolset change (which isn't open source like the engine) there isn't code you can edit on your end.
  • Status changed from Need Info to Duplicate


Pages: 1

Details

  • Reported
    June 25, 2017, 03:50:34 pm
  • Updated
    June 27, 2017, 06:18:10 pm

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

Tags