Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] SDK throws C++ exceptions when playing songs #69

Closed
steveluscher opened this issue Apr 18, 2013 · 3 comments
Closed

[iOS] SDK throws C++ exceptions when playing songs #69

steveluscher opened this issue Apr 18, 2013 · 3 comments

Comments

@steveluscher
Copy link

Steps to reproduce:

  1. Clone the sample app
  2. Go into the Xcode Breakpoint Navigator (⌘6)
  3. Click (+) at the bottom of the Breakpoint Navigator's column to add an "Exception Breakpoint"
  4. From the "Exception" menu choose "C++" and leave everything else as it appears
  5. Run the app and try to play a song.

You'll be dropped into the debugger. Clicking "continue" seven times makes the track play.

  0x35294:  calll  0x161baa                  ; symbol stub for: AudioQueueStart
> 0x35299:  movl   %eax, -16(%ebp)
  0x3529c:  testl  %eax, %eax
  0x3529e:  je     0x3532f                   ; MyEnqueueBuffer + 471 at AudioStreamer.m:386
@steveluscher
Copy link
Author

For those of you who want to break on exceptions in your app without breaking on this (spurious?) Rdio SDK exception, simply change your "All Exceptions on throw" breakpoint to an "All Objective-C Exceptions on throw" one.

@rknLA
Copy link

rknLA commented Feb 26, 2014

This issue came up again on the Google Group.

It looks like the exceptions are getting thrown by some of Apple's Audio Queue Service methods (AudioQueueStart and AudioQueueDispose are the main culprits). The exceptions seem to be occurring in situations where those methods are returning a non-null OSStatus value, which is to say, the methods are returning an error.

I'm not sure yet if it's something we'll be fixing in the near term, since the exceptions appear to be caught properly and do not bubble up or otherwise affect the SDK's functionality.

@dasevilla
Copy link
Contributor

The latest iOS SDK contains many fixes to streaming. If you can still reproduce this issue, please reopen.

http://blog.rdio.com/developers/2015/06/ios-sdk-v302.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants