-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Crash running iOS/quickstarts/TranslateExample #11
Comments
Thanks! Could you paste the full stack trace? In the screenshot it's getting cut off 🙂 |
Sure:
|
Thanks! Filed internally as b/158400839. (FYI, if you use triple backticks ("```") instead of single backticks, the newlines are preserved:)
|
The underlying issue has been fixed in the ML Kit SDK; the fix will be included in the next release. In the mean time, I think this issue occurs only when the current Locale doesn't have a region. I've only been able to reproduce that in the simulator when when the locale is explicitly set to "English" instead of the system locale – on an actual iPhone the locale always has a region ("US", "UK", …). You might be able to work around the crash by setting the simulator locale to the system locale. |
The fix for this has now been released in the latest version of ML Kit (0.61.0). |
After installing pods, running the Swift translate example project I almost immediately get the following crash, before any user interaction:
2020-06-06 13:58:06.597488+0200 TranslateExample[23887:3153991] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'
Screenshot with stack trace and simulator:
The text was updated successfully, but these errors were encountered: