flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

App crashes with error NSCFString substringWithRange:]: Range {9, 18446744073709551606} out of bounds; string length 21

Open madhav0922 opened this issue 4 years ago • 2 comments

🐛 Bug Report

Only on macOS, As weird as it may sound.. as soon as I pass "Match the following: ", the app crashes with the error NSCFString substringWithRange:]: Range {9, 18446744073709551606} out of bounds; string length 21. However, if we focus, we see string length is also printed by the same error above as 21, and it is well within range. I have tested the words separately ("Match the" , "following", "Match", "the", "following"), removed the colon, everything works fine. But when it is recited together, the app crashes for some strange reason.

Screenshot 2022-01-06 at 7 12 58 PM

Expected behavior

Of course should not crash.

Reproduction steps

Speak "Match the following:" 🤣

Configuration

Version: 3.3.3

Platform:

  • [ ] :iphone: iOS
  • [ ] :robot: Android
  • [x] 💻 : Mac OS Monterey 12.1

madhav0922 avatar Jan 06 '22 13:01 madhav0922

@madhav0922 I believe this was a bug with Apple, but I'll confirm.

dlutton avatar Jan 06 '22 19:01 dlutton

@dlutton Alright, thank you

madhav0922 avatar Jan 19 '22 11:01 madhav0922