• Editor
  • Is there anyway to allocate more memory?

So I have 130 audio events keyed in in my animation, anything beyond that, the next audios I key in won't play.

So I checked the logs and it says this:

Spine Launcher 4.2.18
Esoteric Software LLC (C) 2013-2024 | http://esotericsoftware.com
Windows 10 Pro amd64 10.0
NVIDIA Corporation, NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2, 4.6.0 NVIDIA 565.90
Starting: Spine 4.2.37 Professional
Spine 4.2.37 Professional

Started.
OpenAL 1.1, Default audio device
ERROR: Audio source could not be created:
[error] OpenAL error: Out of memory (40965)
at com.esotericsoftware.spine.editor.audio.Audio.V(:745)
at s.bQG.
(:28)
at com.esotericsoftware.spine.editor.audio.Audio.
(:363)
at s.lWH.
(:1597)
at s.DUo.
(:65)
at com.esotericsoftware.spine.editor.audio.Audio.I(
:328)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

So I'm guessing is to allocate more memory into spine? But I don't know how to do that. Or is this something else.

Related Discussions
...

To allocate more memory to Spine, you can use the -Xmx command line argument to increase the maximum amount of memory that Spine can use. For example, you can set it to 4GB by using -Xmx4096m. You can do this by modifying the shortcut you use to start Spine. Right-click on the Spine shortcut, select "Properties", and in the "Target" field, add -Xmx4096m at the end. However, since you are using Spine 4.2, which is a 64-bit application, it should already be able to use more memory efficiently. The error you are encountering might be related to the audio system running out of memory, not the general memory allocation for Spine. You might want to check your audio hardware and drivers, as well as ensure that your audio files are in the correct format (PCM, 1 or 2 channels, 16 bits per sample).

The default for the latest launcher (which you have) is equivalent to -Xmx4096m. You can allocate more, eg -Xmx8192m, but as Spinebot mentioned it may be your audio device memory that is hitting the limit.

Can you email us your project and audio files? contact@esotericsoftware.com We've never encountered this limit and it would be interesting to see firsthand. We may be able to improve the situation.

    Nate

    Sure thing. Do I just zip the whole folder and send it?

    • Davide ответили на это сообщение.

      ringoripple

      Yes, just make sure that the audio files are in the folder as well.

      Oh apologies, I just sent the project. The -Xmx8192 didn't work. I also added an additional info in the email but I'll mirror it here as well.

      Additional info:
      The audio that I said that was not working suddenly worked when I closed Spine and opened it again after an hour or so. BUT when I tried to key in new audio events, those didn't work/play any audio. 

      If it helps I have 16gb of ram.

      When you want to replicate the problem, try keying in more audio events and see if it plays a sound.

      8 дней спустя

      We've fixed the problem in 4.2.39. Thanks for reporting!

        Nate

        Wow that was fast! Thank you for the hard work ^_^