douban / DOUAudioStreamer

A Core Audio based streaming audio player for iOS and macOS
BSD 3-Clause "New" or "Revised" License
2.77k stars 556 forks source link

Crashed: com.douban.audio-streamer.event-loop EXC_BAD_ACCESS 0x0000000005c123d9 #96

Open flagoworld opened 8 years ago

flagoworld commented 8 years ago

Happens seemingly randomly and is frequent enough to be annoying. From what I can tell, audio_file_read buffer may not be the right size under certain circumstances...

Thread : Crashed: com.douban.audio-streamer.event-loop 0 libsystem_platform.dylib 0x206009a0 _platform_memmove + 159 1 MyApp 0xd3acf audio_file_read (DOUAudioPlaybackItem.m:88) 2 AudioToolbox 0x228f3f63 SeekableDataSource::ReadBytes(unsigned short, long long, unsigned long, void, unsigned long) + 230 3 AudioToolbox 0x228e6b67 GetFPosForNextSyncWordDS(DataSource, short&, long long, long long, unsigned long, unsigned long, unsigned long, double, unsigned long) + 526 4 AudioToolbox 0x228e8edb MPEGAudioFile::ScanForPackets(long long, DataSource, bool) + 382 5 AudioToolbox 0x228e7593 MPEGAudioFile::ReadPackets(unsigned char, unsigned long, AudioStreamPacketDescription, long long, unsigned long, void_) + 126 6 AudioToolbox 0x228f05d5 AudioFileReadPackets + 168 7 MyApp 0xc4a77 decoder_dataproc (DOUAudioDecoder.m:313) 8 AudioToolbox 0x228a5c95 AudioConverterChain::DirectCallInputProc(unsigned long, unsigned long, AudioBufferList, AudioStreamPacketDescription const_) + 252 9 AudioToolbox 0x228a5ac9 CodecConverter::CallInputProc(unsigned long&) + 212 10 AudioToolbox 0x228e40ad CodecConverter::DecoderFillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription) + 628 11 AudioToolbox 0x22894153 AudioConverterChain::RenderOutput(CABufferList, unsigned long, unsigned long&, AudioStreamPacketDescription) + 82 12 AudioToolbox 0x22894083 BufferedAudioConverter::FillBuffer(unsigned long&, AudioBufferList&, AudioStreamPacketDescription*) + 342 13 AudioToolbox 0x228a10a7 AudioConverterFillComplexBuffer + 354 14 MyApp 0xc4929 -DOUAudioDecoder decodeOnce 15 MyApp 0xab69b -DOUAudioEventLoop _handleStreamer: 16 MyApp 0xab973 -DOUAudioEventLoop _eventLoop 17 MyApp 0xaba21 event_loop_main (DOUAudioEventLoop.m:544) 18 libsystem_pthread.dylib 0x20606c7f _pthread_body + 138 19 libsystem_pthread.dylib 0x20606bf3 _pthread_start + 110 20 libsystem_pthread.dylib 0x20604a08 thread_start + 8

tsm-soloc commented 8 years ago

Do you repaired this bug? it's also happened in my app,it worked good in background,but if i locked the screen,crashed many seconds later...