capacitor-community / speech-recognition

MIT License
93 stars 53 forks source link

Capacitor 5 App is getting crashed #82

Open ajayweshape opened 8 months ago

ajayweshape commented 8 months ago

Describe the bug CapacitorCommunitySpeechRecognition/Plugin.swift:83: Fatal error: Unexpectedly found nil while unwrapping an Optional value ERROR MESSAGE: {"errorMessage":"No speech detected","message":"No speech detected"} 2024-03-06 13:44:54.636679-0500 App[26385:6805050] CapacitorCommunitySpeechRecognition/Plugin.swift:83: Fatal error: Unexpectedly found nil while unwrapping an Optional value

To Reproduce After voicerecognition.start app is getting crash

Expected behavior App should not crash

Screenshots

Screenshot 2024-03-06 at 1 46 42 PM

Smartphone (please complete the following information):

khromov commented 8 months ago

The first time I ran this plugin I also had a hard crash on iOS (unfortunately I wasn't able to get a trace because I was running it with npx cap run). But I could not reproduce this issue on further app launches, even though I fully uninstalled the app. Would be great to avoid crashes if possible as you can't guard yourself from them in JS.