question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MLKitBarcodeScanner crashing on iOS on NS7

See original GitHub issue

I have "@nativescript/firebase": "^11.0.0"

Then: import { MLKitBarcodeScanner } from '@nativescript/firebase/mlkit/barcodescanning'

And on the scan page: <MLKitBarcodeScanner width="320" height="320" @scanResult="onBarcodeScanningResult"> </MLKitBarcodeScanner>

And it just crashes after page is opened

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

3reactions
timdoegecommented, Nov 10, 2020

I get a crash on iOS running V8 as well while it works with JSC / using

"@nativescript/ios": "6.5.3",

instead.

The stack trace is this

====== Assertion failed ======
Native stack trace:
1          0x10104612c tns::Assert(bool, v8::Isolate*) + 128
2          0x100fa9f7c tns::ArgConverter::Invoke(v8::Local<v8::Context>, objc_class*, v8::Local<v8::Object>, tns::V8Args&, tns::MethodMeta const*, bool) + 100
3          0x101008100 tns::MetadataBuilder::InvokeMethod(v8::Local<v8::Context>, tns::MethodMeta const*, v8::Local<v8::Object>, tns::V8Args&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool) + 88
4          0x10100798c tns::MetadataBuilder::MethodCallback(v8::FunctionCallbackInfo<v8::Value> const&) + 220
5          0x101183e10 v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 536
6          0x1011833dc v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 516
7          0x101182b7c v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) + 224
8          0x101914d8c Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 108
9          0x1018ad6b4 Builtins_InterpreterEntryTrampoline + 244
10         0x1018aaf64 Builtins_JSEntryTrampoline + 164
11         0x1018aac08 Builtins_JSEntry + 168
12         0x105990000 12  ???                                 0x0000000105990000 0x0 + 4388880384
JavaScript stack trace:
at push.../node_modules/@nativescript/firebase/mlkit/mlkit-cameraview.js.TNSMLKitCameraViewDelegateImpl.cameraDidOutputImage (file: node_modules/@nativescript/firebase/mlkit/mlkit-cameraview.ios.js:182:0)

line 182 being

181         if (this.detector.detectInImageCompletion) {
182             this.detector.detectInImageCompletion(this.uiImageToFIRVisionImage(image), function (result, error) {
183                 _this.onSuccessListener(result, error);
184                 onComplete();
185             });
186         }
1reaction
SmailHammourcommented, Jan 5, 2021

@EddyVerbruggen could you please have a look at this? This is really blocking for some of us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS crash based on processEveryNthFrame rate · Issue #1190 ...
On iOS, I can consistently cause my app to crash based on setting ... MLKitBarcodeScanner - iOS crash based on processEveryNthFrame rate # ......
Read more >
nativescript-plugin-firebase - Bountysource
In the terminal I see the firebase ini message, the crash function crashes the app, but it isnt visible in the firebase console....
Read more >
Known issues | ML Kit - Google Developers
For bundled Language ID, the app may crash when upgrading to AGP 7.0. · InputImage constructed by Bitmap with a non zero rotationDegrees...
Read more >
SIGSEGV crash with Firebase MLKit barcode scanner
I recently ran into a problem with my application: a weird crash happens when scanning QR codes coming from a particular website.
Read more >
5+ Ways to Fix Apps Crashing on iPhone - YouTube
iPhone apps keep crashing is a common issue with iPhone users; if you're looking for a permanent solution, you're in the right place...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found