We are using AudioUnit and AUGraph to provide recording feature for millions of users. For a long time, we have been receiving user feedbacks about recording failures. Most of user logs show that AudioOutputUnitStart returns 1852797029 (kAudioCodecIllegalOperationError).It seems that once this error happens, AudioOutputUnitStart will always return this error code unit rebooting device or sometimes rebooting won't do the trick. Does anyone experience this error code or know the possible cause of it
Post
Replies
Boosts
Views
Activity
Hi,
One of our user reports his iPhone(iOS 14.5.1, iPhone12,1) reboot several times while using our app. We are using AudioUnit and Metal APIs in his situation. On his iPhone, I found these panic logs. Will it be a bug of newly released iOS 14.5.1
panic log - https://developer.apple.com/forums/content/attachment/2af54c5a-ce23-4b94-8143-2c1c3e232b8c
When long pressing delete button on system keyboard, UITextView's delegate method textView:shouldChangeTextInRange:replacementText: is only called once for the first charater
Code to reproduce
- (void)viewDidLoad {
[super viewDidLoad];
UITextView *textView = [[UITextView alloc] initWithFrame:self.view.bounds];
textView.delegate = self;
[self.view addSubview:textView];
}
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
{
NSLog(@"%@, %@", NSStringFromSelector(_cmd), NSStringFromRange(range));
return YES;
}
Output on iOS17 beta
Output on iOS16.3.1
Case 1: When a UITextView becomefirstresponder
becomeFirstResponder for the first time after cold launch,it works fine
didReceiveKeyboardWillChangeFrameNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardWillShowNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardDidChangeFrameNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardDidShowNotification {{0, 508}, {390, 336}} 7
but notifications post twice afterwards
didReceiveKeyboardWillChangeFrameNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardWillShowNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardDidChangeFrameNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardDidShowNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardWillChangeFrameNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardWillShowNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardDidChangeFrameNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardDidShowNotification {{0, 508}, {390, 336}} 7
on iOS16,it works fine
2023-06-26 19:49:49.021938+0800 UITextView-demo[11835:1623447] didReceiveKeyboardWillChangeFrameNotification {{0, 508}, {390, 336}} 7
2023-06-26 19:49:49.022007+0800 UITextView-demo[11835:1623447] didReceiveKeyboardWillShowNotification {{0, 508}, {390, 336}} 7
2023-06-26 19:49:49.532870+0800 UITextView-demo[11835:1623447] didReceiveKeyboardDidChangeFrameNotification {{0, 508}, {390, 336}} 7
2023-06-26 19:49:49.535562+0800 UITextView-demo[11835:1623447] didReceiveKeyboardDidShowNotification {{0, 508}, {390, 336}} 7
Case 2: When a view is assigned to UITextView.input
There are two weird behaviors:
notifications post four times
keyboard's height is 0 in the second notification
didReceiveKeyboardWillChangeFrameNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardWillShowNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardDidChangeFrameNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardDidShowNotification {{0, 508}, {390, 336}} 7
didReceiveKeyboardWillChangeFrameNotification {{0, 844}, {390, 0}} 7
didReceiveKeyboardWillShowNotification {{0, 844}, {390, 0}} 7
didReceiveKeyboardDidChangeFrameNotification {{0, 844}, {390, 0}} 7
didReceiveKeyboardDidShowNotification {{0, 844}, {390, 0}} 7
didReceiveKeyboardWillChangeFrameNotification {{0, 644}, {390, 200}} 7
didReceiveKeyboardWillShowNotification {{0, 644}, {390, 200}} 7
didReceiveKeyboardDidChangeFrameNotification {{0, 644}, {390, 200}} 7
didReceiveKeyboardDidShowNotification {{0, 644}, {390, 200}} 7
didReceiveKeyboardWillChangeFrameNotification {{0, 644}, {390, 200}} 7
didReceiveKeyboardWillShowNotification {{0, 644}, {390, 200}} 7
didReceiveKeyboardDidChangeFrameNotification {{0, 644}, {390, 200}} 7
didReceiveKeyboardDidShowNotification {{0, 644}, {390, 200}} 7
on iOS 16 it works fine
2023-06-26 19:41:54.991400+0800 UITextView-demo[11718:1618562] didReceiveKeyboardWillChangeFrameNotification {{0, 644}, {390, 200}} 7
2023-06-26 19:41:54.991513+0800 UITextView-demo[11718:1618562] didReceiveKeyboardWillShowNotification {{0, 644}, {390, 200}} 7
2023-06-26 19:41:54.991705+0800 UITextView-demo[11718:1618562] didReceiveKeyboardDidChangeFrameNotification {{0, 644}, {390, 200}} 7
2023-06-26 19:41:54.991928+0800 UITextView-demo[11718:1618562] didReceiveKeyboardDidShowNotification {{0, 644}, {390, 200}} 7