Comments (6)
Thanks! Could you paste the full stack trace? In the screenshot it's getting cut off 🙂
from mlkit.
Sure:
2020-06-06 15:15:55.644194+0200 TranslateExample[24780:3210858] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23e3cf0e __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff50ba89b2 objc_exception_throw + 48 2 CoreFoundation 0x00007fff23ecfa51 _CFThrowFormattedException + 194 3 CoreFoundation 0x00007fff23eda4a6 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.4 + 38 4 CoreFoundation 0x00007fff23e9b787 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 247 5 CoreFoundation 0x00007fff23e38e11 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49 6 TranslateExample 0x0000000108a50be3 -[MLKConfigFetchHTTPClient requestWithInstallationInfo:] + 615 7 TranslateExample 0x0000000108a5050c -[MLKConfigFetchHTTPClient fetchWithInstallationInfo:logEventContext:completionHandler:] + 152 8 TranslateExample 0x0000000108a55b12 __35-[MLKRemoteConfig fetchAndActivate]_block_invoke_2 + 197 9 TranslateExample 0x0000000108a53123 -[MLKFirebaseInstallationOperation start] + 548 10 Foundation 0x00007fff25924a20 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17 11 Foundation 0x00007fff25924540 __NSOQSchedule_f + 182 12 libdispatch.dylib 0x000000010b6214dc _dispatch_block_async_invoke2 + 83 13 libdispatch.dylib 0x000000010b612e8e _dispatch_client_callout + 8 14 libdispatch.dylib 0x000000010b6157a3 _dispatch_continuation_pop + 552 15 libdispatch.dylib 0x000000010b614bbb _dispatch_async_redirect_invoke + 771 16 libdispatch.dylib 0x000000010b624399 _dispatch_root_queue_drain + 351 17 libdispatch.dylib 0x000000010b624ca6 _dispatch_worker_thread2 + 135 18 libsystem_pthread.dylib 0x00007fff51c089f7 _pthread_wqthread + 220 19 libsystem_pthread.dylib 0x00007fff51c07b77 start_wqthread + 15 ) libc++abi.dylib: terminating with uncaught exception of type NSException
from mlkit.
Maybe better with an image since formatting wasn't so good:
from mlkit.
Thanks! Filed internally as b/158400839.
(FYI, if you use triple backticks ("```") instead of single backticks, the newlines are preserved:)
2020-06-06 15:15:55.644194+0200 TranslateExample[24780:3210858] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23e3cf0e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50ba89b2 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23ecfa51 _CFThrowFormattedException + 194
3 CoreFoundation 0x00007fff23eda4a6 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.4 + 38
4 CoreFoundation 0x00007fff23e9b787 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 247
5 CoreFoundation 0x00007fff23e38e11 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 TranslateExample 0x0000000108a50be3 -[MLKConfigFetchHTTPClient requestWithInstallationInfo:] + 615
7 TranslateExample 0x0000000108a5050c -[MLKConfigFetchHTTPClient fetchWithInstallationInfo:logEventContext:completionHandler:] + 152
8 TranslateExample 0x0000000108a55b12 __35-[MLKRemoteConfig fetchAndActivate]_block_invoke_2 + 197
9 TranslateExample 0x0000000108a53123 -[MLKFirebaseInstallationOperation start] + 548
10 Foundation 0x00007fff25924a20 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17
11 Foundation 0x00007fff25924540 __NSOQSchedule_f + 182
12 libdispatch.dylib 0x000000010b6214dc _dispatch_block_async_invoke2 + 83
13 libdispatch.dylib 0x000000010b612e8e _dispatch_client_callout + 8
14 libdispatch.dylib 0x000000010b6157a3 _dispatch_continuation_pop + 552
15 libdispatch.dylib 0x000000010b614bbb _dispatch_async_redirect_invoke + 771
16 libdispatch.dylib 0x000000010b624399 _dispatch_root_queue_drain + 351
17 libdispatch.dylib 0x000000010b624ca6 _dispatch_worker_thread2 + 135
18 libsystem_pthread.dylib 0x00007fff51c089f7 _pthread_wqthread + 220
19 libsystem_pthread.dylib 0x00007fff51c07b77 start_wqthread + 15
)
libc++abi.dylib: terminating with uncaught exception of type NSException
from mlkit.
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.
from mlkit.
The fix for this has now been released in the latest version of ML Kit (0.61.0).
from mlkit.
Related Issues (20)
- Cannot build iOS vision App HOT 1
- MLKit change logs? HOT 3
- Function isnt taking the path HOT 5
- Requesting pages 50 but able to scan only 10 pages HOT 4
- [Bug report] Failed to create MediaPipe image segmenter HOT 7
- [Feature request] Add a parameter to specify the locale of Document Scanner library HOT 2
- [Bug report] If I try to build iOS examples I get No such module 'MLImage' HOT 2
- [Feature request] Add jetpack compose support HOT 1
- [Feature request] GmsDocumentScanner API using InputImage like other MLKit libraries. HOT 4
- [Bug report] Android : Object tracking and video playback HOT 6
- [Bug report] Vertical Text Recognition on iOS
- [ML Kit Document scanner] Compatibility issue? HOT 3
- [Bug report] Unable to sync and run the `vision-quickstart` examples out of the box
- Text detection with different language..
- com.google.mlkit.common.MlKitException: Internal error has occurred when executing ML Kit tasks HOT 1
- [App Store Blocker] MLKit Dependencies out of Apple Compliance HOT 7
- [Bug report] Android Firebase Remote Model Download Issues HOT 5
- [Bug report] EAN13 code starting with 0 detected as UPC-A HOT 2
- document scanner rotates the image when it recognizes the document HOT 5
- [Feature request] Option to suppress translate logs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlkit.