Re: unable to change volumes of mixer inputs? (iOS)
Re: unable to change volumes of mixer inputs? (iOS)
- Subject: Re: unable to change volumes of mixer inputs? (iOS)
- From: Bob Sabiston <email@hidden>
- Date: Thu, 10 Jan 2013 13:49:34 -0600
Thanks! How do I find the zip file? I did a search for that bug number at that link, but nothing showed up. Or alternatively, do you remember what view controller you had to remove in the project? I can just repeat the steps on my own version.
Bob
On Jan 10, 2013, at 1:13 PM, Damian Carrillo < email@hidden> wrote: Hi Bob,
I took a look at this and fixed the problem. I attached a zip file with a fixed version of MixerHost project to a bug I filed at bugreport.apple.com. The bug has the Problem ID of 12990482.
I've seen this problem before in my own code and it usually stems from modifying the view hierarchy in a nib file. In this particular case, the MixerHostViewController.xib file had an additional view controller that the root view was associated with.
I discovered the problem by running the sample project, inducing the crash, and then determining which view was incorrectly configured by taking the address of the view mentioned (in your case it was 0x1dd2d680), and calling recursiveDescription on it in the console. That will show the view hierarchy, and in this case it pointed to the exact location of the problem. After that, I opened the xib file, removed the additional view controller, and reconnected the view properly.
Hope this helps,
Damian On Jan 10, 2013, at 12:34 PM, Bob Sabiston < email@hidden> wrote: Hello,
I am still desirous of fixing this bug. Controlling the volumes of separate inputs does not work on iOS for me. The Apple sample code "mixerHost" is available here, but it does not run for me on an iPad.
It crashes due to this error:
2013-01-10 12:28:15.789 MixerHost[19402:907] *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'A view can only be associated with at most one view controller at a time! View <UIView: 0x1dd2d680; frame = (0 0; 320 480); autoresize = W+H; layer = <CALayer: 0x1dd2d6e0>> is associated with <UIViewController: 0x1dd33210>. Clear this association before associating this view with <MixerHostViewController: 0x1f037330>.' *** First throw call stack: (0x3abd32a3 0x334f297f 0x3abd31c5 0x37abbd7b 0x37abbc6b 0x39ad49d1 0x39ad0723 0x3ab5961b 0x37bf4245 0x37bf3ac3 0x37aec025 0x37a7646d 0x3be7d 0x37ab7ad9 0x37ab7663 0x37aaf84b 0x37a57c41 0x37a576d5 0x37a57123 0x36a545a3 0x36a541d3 0x3aba8173 0x3aba8117 0x3aba6f99 0x3ab19ebd 0x3ab19d49 0x37aae485 0x37aab301 0x3bdef 0x35f63b20) libc++abi.dylib: terminate called throwing an exception (lldb) I know this isn't audio-related, but does anyone know what causes this bug? This is the best example for controlling mixer inputs -- it is too bad they have not kept it running. The code uses Interface Builder and a .xib file. I have always programmed my view stuff, so I am not sure how to fix this? I will look into it but just wondering if anyone else recognizes this.
Thanks if anyone knows, Bob
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden