Closed jarryji closed 10 years ago
I can't say I've toyed around much with the iPhoneStreamingPlayer
class or the apps in this repo. I brought them up to date so they could build, but that's about it.
There's also very little information here, so could you provide any more information about what was going on when this died? A URL would be awesome or just a series of steps.
I had a look and it appears to happen when you seek past the end of the file. This is possible due to the duration being an estimate (#20). I'll look into fixing the crash however. Seems to happen if you close the file stream while it is parsing.
First thank you for your hard work, and this is the stack trace. (lldb) bt
MP3AudioStream::GeneratePackets(AudioFileStreamContinuation&) + 1256, stop reason = EXC_BAD_ACCESS (code=1, address=0x30000038) frame #0: 0x36912b30 AudioToolbox
MP3AudioStream::GeneratePackets(AudioFileStreamContinuation&) + 1256 frame #1: 0x368f3d20 AudioToolboxAudioFileStreamWrapper::ParseBytes(unsigned long, void const*, unsigned long) + 76 frame #2: 0x368f3aee AudioToolbox
AudioFileStreamParseBytes + 146 frame #3: 0x000f8382 iPhone Streaming Player-[AudioStreamer handleReadFromStream:eventType:] + 1766 at AudioStreamer.m:794 frame #4: 0x000f7c92 iPhone Streaming Player
ASReadStreamCallBack + 42 at AudioStreamer.m:133 frame #5: 0x37357532 CoreFoundation_signalEventSync + 74 frame #6: 0x373574e0 CoreFoundation
_cfstream_solo_signalEventSync + 76 frame #7: 0x37357352 CoreFoundation_CFStreamSignalEvent + 374 frame #8: 0x370cf268 CFNetwork
HTTPReadStream::streamEvent(unsigned long) + 156 frame #9: 0x37357532 CoreFoundation_signalEventSync + 74 frame #10: 0x3735777a CoreFoundation
_cfstream_shared_signalEventSync + 234 frame #11: 0x37396ad2 CoreFoundation__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14 frame #12: 0x3739629e CoreFoundation
CFRunLoopDoSources0 + 214 frame #13: 0x37395044 CoreFoundation`CFRunLoopRun + 652 frame #14: 0x373184a4 CoreFoundationCFRunLoopRunSpecific + 300 frame #15: 0x3731836c CoreFoundation
CFRunLoopRunInMode + 104 frame #16: 0x33ad7438 GraphicsServicesGSEventRunModal + 136 frame #17: 0x310c4cd4 UIKit
UIApplicationMain + 1080 frame #18: 0x000fb9b2 iPhone Streaming Player`main + 30 at main.m:32 (lldb)