Bug Issue: Stencyl freezes when entering a long game attribute / behaviour name


Pages: 1

dtishin

  • Level 1 Stencyler
May 29, 2020, 07:09:16 am
When I'm creating a new game attribute or a new actor behaviour, and enter a long game attribute name (especially if I erase and re-type while entering the name), the engine freezes at some point, which requires shutting down Stencyl from the Task Manager (and any unsaved progress is lost).  If there is a length limit for names of classes, the engine shouldn't allow to violate it.
See a sample screenshot from Stencyl engine console attached: https://drive.google.com/open?id=1LATVBxeArcUFtpsqyGwiufYA18sdtLIf
« Last Edit: May 29, 2020, 07:51:57 am by dtishin »


Issue updated by Justin - June 03, 2020, 02:51:16 am
  • Tags added: swing


Justin

  • Master Stencyler
  • *
June 03, 2020, 03:16:14 am
There's no length limit or anything, at least within reasonable limits (30 or so characters is probably still reasonable, but that might end up hitting some other limits elsewhere down the line). I can type as many characters as I want there and not run into any lag. The logic we're running doesn't seem to be something that should cause any serious delay, either. Perhaps a Swing bug?


dtishin

  • Level 1 Stencyler
June 03, 2020, 12:33:40 pm
What's Swing? I've got a swing in my backyard but that's not it I guess! :)
How do I help you debug this? What should happen if I hit the 30 character limit in the correct scenario? This can be pretty annoying, as the game freezes and any unsaved progress lost.


Justin

  • Master Stencyler
  • *
June 03, 2020, 06:13:36 pm
Swing is the UI framework built in to Java (the window, buttons, text fields, labels, etc, and even design mode and the scene designer, all built on top of Swing). In the correct scenario, nothing happens at all. Nothing slows down and nothing crashes.

Although now that I take another look, you didn't mention any slowdown. You simply said that it freezes at some point. Is there any perceivable lag before that happens, or does it just occur suddenly?
« Last Edit: June 03, 2020, 09:43:52 pm by Justin »


dtishin

  • Level 1 Stencyler
June 04, 2020, 05:59:14 am
I manage to reliably reproduce the bug when I type the name really fast.
At some point Stencyl freezes and the CPU goes crazy.
Please see the GIF here: https://drive.google.com/open?id=1R8dAtP8ASm3YRgy9JD5UvFMZqfMH8p2S


Issue updated by Justin - June 10, 2020, 11:48:54 am
  • Tags added: 4.0.3
  • Tags removed: swing


Justin

  • Master Stencyler
  • *
June 11, 2020, 03:59:34 pm
Fixed in private b10553. Will be available in public release 4.0.3.
  • Issue Assigned from (none) to Justin
  • Status changed from New to Resolved


Pages: 1

Details

  • Reported
    May 29, 2020, 07:09:16 am
  • Updated
    June 11, 2020, 03:59:34 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Engine

Tags