• Bugs
  • Spine crashing.

Related Discussions
...

After the update from 2.1.18 to 2.1.20 spine keeps crashing when duplicating skeletons. Tried this with multiple projects and the same thing is happening.

Edit: Spine also crashes when I switch between projects. :bang:

I see the crash logs but I'm not able to get it to happen for me. I implemented a fix anyway, can you try with 2.2.21? It will be available in 20 minutes.

Using 2.2.21
I don't know about any of that but I tried to find out how to make it crash.
I opened a bunch of different projects (some were saved from years ago and some were recent ones).
I opened them one after another and duplicated their skeletons. no crash.

But here's a thing: I normally get 50-60 fps.
After doing the above for like 5 or 6 projects (some with hefty skeletons and lots of animations), I tried playing some animations.
Even after switching to/opening projects without duplicated skeletons, my framerate is down to 10-12fps and it takes forever to register clicks or switch between Animate and Setup mode.

Closing and opening Spine again brings my performance back.

Could it be that duplicating skeletons is leaking something and it's causing less powerful machines to crash? (can you even leak stuff in Java?)

I don't have a super machine though, but it is a desktop system.
Running Windows 8.1, a Core 2 Duo from 2009, 8GB ram, and a recent low-mid-range AMD GPU.

Is there anything in the log when it's slow?

Sure, Java can have a memory/resource leak. A portion of Spine is C/C++ and can even allocate (and leak) memory like C when it needs to.

I'm not seeing a slowdown even after opening and duplicating skeletons in a number of projects. Not sure what is going on, but I'll see if Shiu can reproduce it on his machines. For now I'll release 2.1.22 since it finally gives Mac users mouse cursors, which can really help with resizing views!

I wonder if it had anything to do with my old (pre-FFD) skeletons having crazy numbers of attachments, bones and animations.
It took me a while to kill my framerate duplicating the sample skeletons that come with Spine.

Will check the logs in a bit. Internet's going nuts.

Problem seems to be solved in update 2.1.22. No crashes so far. 🙂

Edit : It crashed once again but did not crash when duplicating or swapping between projects. And also the new version is really slow.Just switching between attachments is making the software sluggish. I've reverted back to 2.1.18 for now.

Multiple Skeletons on one project:
Does it make sense that I'm at 15fps when my Animations View is on, but 60 when my Animations View is off?

It also takes a perceptible full second to switch between Animate Mode and Setup Mode.


It seems to be related to the previously reported observation:

Slowdown isn't present when the Animation View is closed, but the slowdown caused when Animation View is open is worsened by duplicating skeletons in previously open projects, even after you open a project with only one unduplicated skeleton.


Is it the new "font rendering subsystem"? The more panels/views I open, the slower it gets. Significantly. Goes from 60 down to 20 if I open enough text-y panels.

Sorry about that guys, there was a leak with the font rendering. Building 2.1.23 now with a fix.