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

[URGENT!] App under iOS <14.0 crashes on Voice.start() #289

Open
MedRedha opened this issue Jan 27, 2021 · 20 comments
Open

[URGENT!] App under iOS <14.0 crashes on Voice.start() #289

MedRedha opened this issue Jan 27, 2021 · 20 comments

Comments

@MedRedha
Copy link

MedRedha commented Jan 27, 2021

Greetings beautiful people,

I'm having a big issue if someone can help me please 🙏 the package works perfectly under iOS >14.0 but immediately crashes when I try to build on an inferior one (i.e. 13.6). I tried my best to debug it and here's what I'm getting from xCode console :

2021-01-27 14:45:44.620057+0100 LegalDoctrineAlpha[75986:1310434] [aqme] AQME.h:254:IOProcFailure: AQDefaultDevice (1): output stream 0: null buffer 2021-01-27 14:45:44.620305+0100 LegalDoctrineAlpha[75986:1310434] [aqme] AQMEIO_HAL.cpp:1774:IOProc: EXCEPTION thrown (-50): error != 0

and here is a screenshot of the line pointing to it.
image_2021-01-27_145143

image_2021-01-27_145309

@YesSkyscrapers
Copy link

yo, face the same issue...
Did u find any solution?

@MedRedha
Copy link
Author

MedRedha commented Feb 1, 2021

yo, face the same issue...
Did u find any solution?

Not yet bro 😞 I disabled the mic button for iOS <14.0 waiting for a fix or something

@YesSkyscrapers
Copy link

YesSkyscrapers commented Feb 2, 2021

Hey man!
The problem was unexpected for me, cuz it worked perfectly just a week ago...
I almost believed it happened cuz of MacOS's update to Big Sur, but today a little trick was able to fix everything...
I was compiling the release via the command line, when the iPhone XR simulator was selected in xcode...

Снимок экрана 2021-02-02 в 11 19 46

I looked at the simulator's ios version... there was ios 12.0...

Снимок экрана 2021-02-02 в 10 56 32

Then I added the same iPhone but with the latest version of iOS 14.4.
I selected new simulator and built it to check that the bug doesn't reproduce (cuz ios >=14)...

Снимок экрана 2021-02-02 в 11 19 01

After that, I repeated build through the command line.... The bug wasn't reproduced on any of the phones where it was reproduced recently, namely:
5S iOS 12.0
XR iOS 14.3
SE1 iOS 13.7

Idk how it relates, but the bug isn't reproduced now...

@inveon-farukhasanefendioglu

I tried the same steps with @YesSkyscrapers but no luck at all...

Still having a crash same as @MedRedha mentioned under iOS 14.x

Any different workaround or fixes would be perfect. I could not make that function work under iOS 14.x both on emulator and real device.

@safaiyeh
Copy link
Member

Hm is there any documentation referencing a change to these libraries for iOS 14?

@MedRedha
Copy link
Author

Hm is there any documentation referencing a change to these libraries for iOS 14?

Precisely! I checked everywhere and nothing!! There is no reason for the package or for the usage of the speech recognition to crash or bug and that's what is weird 😞

@safaiyeh
Copy link
Member

safaiyeh commented Mar 2, 2021

@MedRedha Could you create a small demo app with the latest version of voice and RN so I could check it out and debug it.

@josemojena
Copy link

josemojena commented Apr 1, 2021

I have the same problem but only if connect the ios earphones, has anyone found a solution?

@safaiyeh
Copy link
Member

safaiyeh commented Apr 2, 2021

I have the same problem but only if connect the ios earphones, has anyone found a solution?

I've seen this reported a few times where earphones messes things up. #294 is one example. Could you make a separate issue for this?

@forresthopkinsa
Copy link

Could be related to this problem

@rodolfobarretoweb
Copy link

rodolfobarretoweb commented Sep 16, 2021

Hey guys.

I was having the same issue reported here and the only thing that fix this problem was putting the code below in the info.plist file as documented in the installation guide.

<key>NSMicrophoneUsageDescription</key>
<string>Description of why you require the use of the microphone</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Description of why you require the use of the speech recognition</string>

@MedRedha
Copy link
Author

Hey guys.

I was having the same issue reported here and the only thing that fix this problem was putting the code below in the info.plist file as documented in the installation guide.


<key>NSMicrophoneUsageDescription</key>

<string>Description of why you require the use of the microphone</string>

<key>NSSpeechRecognitionUsageDescription</key>

<string>Description of why you require the use of the speech recognition</string>

Thanks a lot buddy! I'm gonna try it and check if it fixes the issue for me as well 🙏

@rodolfobarretoweb
Copy link

Hey guys.
I was having the same issue reported here and the only thing that fix this problem was putting the code below in the info.plist file as documented in the installation guide.


<key>NSMicrophoneUsageDescription</key>

<string>Description of why you require the use of the microphone</string>

<key>NSSpeechRecognitionUsageDescription</key>

<string>Description of why you require the use of the speech recognition</string>

Thanks a lot buddy! I'm gonna try it and check if it fixes the issue for me as well 🙏

Let me know if works for you too.

@NguyenHieu1011
Copy link

yo, i have the same issue...
Did u find any solution?

@DeepakM02
Copy link
Contributor

DeepakM02 commented Oct 19, 2021

I have the same problem but only if connect the ios earphones, has anyone found a solution?

Check this PR. It resolves this issue. headset and bluetooth crashing issue

@anujmpec
Copy link

@DeepakM02 link is not working.
I am also facing this issue. Any solution?

@DeepakM02
Copy link
Contributor

Hey @anujmpec You can check this link now.

@Anujmoglix
Copy link

@DeepakM02 please share the link.

@DeepakM02
Copy link
Contributor

@Anujmoglix you can use this
#289 (comment)

@samuelzxu
Copy link

I'm still facing this issue despite using version 3.2.4

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

No branches or pull requests