Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Debug Error -Abort() Has Been Called  (Read 3898 times)

0 Members and 1 Guest are viewing this topic.

SoundTech

  • Newbie
  • *
  • Posts: 2
    • View Profile
Debug Error -Abort() Has Been Called
« on: July 04, 2017, 03:13:07 am »
I am having an issue when I am trying to make a program for my church that will record the service then autonomously save the file where it needs to be saved. The issue is it revives an error "Debug Error -Abort() Has Been Called" when it is about 90 minutes into the recording. Has anyone else ran into an issue when recording audio for a long period of time?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Debug Error -Abort() Has Been Called
« Reply #1 on: July 04, 2017, 07:47:28 am »
If you run a debugger you should get much more information about the error (at least its exact location).
Laurent Gomila - SFML developer

SoundTech

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Debug Error -Abort() Has Been Called
« Reply #2 on: July 05, 2017, 04:05:44 am »
I just ran the program again and this is the error I get when trying to put the recorded audio into a buffer so I can save it to a file. Thanks for the help.

Quote
An internal OpenAL call failed in SoundBuffer.cpp(265).
Expression:
   alBufferData(m_buffer, format, &m_samples[0], size, sampleRate)
Error description:
   AL_OUT_OF_MEMORY
   There is not enough memory left to execute the command.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Debug Error -Abort() Has Been Called
« Reply #3 on: July 05, 2017, 07:55:26 am »
It's pretty clear. "Out of memory" means that you've reached the maximum size of sound buffer that you can build.

Correct me if I'm wrong, but 90 minutes of uncompressed stereo audio at 44100 Hz takes almost 1 GB, which is huge ;)

SFML may not be the best library for saving big audio files. You'd better find something that can directly encode and write chunks of recorded audio to the target file.
Laurent Gomila - SFML developer