muhku / FreeStreamer

A low-memory footprint streaming audio player for iOS and OS X
http://muhku.github.io/FreeStreamer/
Other
2.1k stars 437 forks source link

SIGSEGV crash #443

Open xlDon opened 5 years ago

xlDon commented 5 years ago

here is the messages.

astreamer::Audio_Queue::enqueueBuffer() (audio_queue.cpp:486)

astreamer::Audio_Queue::enqueueBuffer() (audio_queue.cpp:486) astreamer::Audio_Queue::handleAudioPackets(unsigned int, unsigned int, void const, AudioStreamPacketDescription) (audio_queue.cpp:363) astreamer::Audio_Stream::decodeSinglePacket(CFRunLoopTimer, void) (audiostream.cpp:1723) CoreFoundation | CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 28 CoreFoundation | __CFRunLoopDoTimer + 864 CoreFoundation | CFRunLoopDoTimers + 248 CoreFoundation | _CFRunLoopRun + 1880 CoreFoundation | CFRunLoopRunSpecific + 436 CoreFoundation | CFRunLoopRun + 80 astreamer::Audio_Stream::decodeLoop(void*) (audio_stream.cpp:1779) libsystem_pthread.dylib | pthread_body + 128 libsystem_pthread.dylib | _pthread_start + 48

MillionsOfWaves commented 8 months ago

Have you solved it yet?

rob-dodson commented 8 months ago

In audio_queue.cpp line 486, in function void Audio_Queue::enqueueBuffer(), I am testing this fix:

replace: while (m_bufferInUse[m_fillBufferIndex]) { with: while (m_bufferInUse != nil && m_bufferInUse[m_fillBufferIndex]) {

MillionsOfWaves commented 8 months ago

In audio_queue.cpp line 486, in function void Audio_Queue::enqueueBuffer(), I am testing this fix:

replace: while (m_bufferInUse[m_fillBufferIndex]) { with: while (m_bufferInUse != nil && m_bufferInUse[m_fillBufferIndex]) {

Hey brother, can you reproduce this issue during development

gratefulHeart commented 5 months ago

In audio_queue.cpp line 486, in function void Audio_Queue::enqueueBuffer(), I am testing this fix:

replace: while (m_bufferInUse[m_fillBufferIndex]) { with: while (m_bufferInUse != nil && m_bufferInUse[m_fillBufferIndex]) {

it seem like does not work for me