-
Notifications
You must be signed in to change notification settings - Fork 73
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
Invoking barcode scanner causes application crash on latest NativeScript ios platform (8.1.0) #276
Comments
@bmacdonald Hello, I got the same issue on NS 8.1.0. How do you apply temporary fix for this issue ? |
@tdhman
|
One more tidbit of information about the crash, it looks like it is only occurring on the phones and ipad pro. It does not seem to crash on regular ipads. |
I'm also getting the same crash with NativeScript 8.1 on iPhone X iOS 14.
|
Same issue as #275 I updated all versions meanwhile, but still the same. ✔ Xcode is installed and is configured properly. |
Yeah this is a known problem with NS v8.1. You can try the temporary hack: const scanner = new BarcodeScanner();
if (scanner['_observer']) {
scanner['_observer']['_owner'] = undefined;
scanner['_observer'] = undefined;
}
return scanner.scan(config); |
Yes, thank you @rob4226 , that workaround works. |
This will fix it #278 - the actual instance was undefined and was still getting passed the |
@bradmartin Nice job!! Tried it and it seems to be working well now! |
@EddyVerbruggen any update on this one? |
would be great if this can be merged |
@eikaramba given the activity record of Eddy lately, I doubt anything would change in this repo anytime soon. You need to pull the same plugin from @nstudio namespace - |
Thanks for the tip! |
When the barcode scanner is invoked, the application crashes on ios with the latest nativescript runtime.
NativeScript Info
✔ Component nativescript has 8.1.1 version and is up to date.
✔ Component @nativescript/core has 8.1.1 version and is up to date.
✔ Component @nativescript/ios has 8.1.0 version and is up to date.
Steps
The crash has something to do with the _addVolumeObserver.
Stack
2021-09-10 14:08:28.074065-0400 someapp[844:112105] 58 0x101978e68 tns::Tasks::Drain() + 104
2021-09-10 14:08:28.074274-0400 someapp[844:112105] 59 0x101973088 +[NativeScript start:] + 572
2021-09-10 14:08:28.074308-0400 someapp[844:112105] 60 0x100e877a0 main + 676
2021-09-10 14:08:28.074339-0400 someapp[844:112105] 61 0x186469cf8 + 4
2021-09-10 14:08:28.074359-0400 someapp[844:112105] JavaScript stack trace:
2021-09-10 14:08:28.103018-0400 someapp[844:112105] at _addVolumeObserver (file:///app/vendor.js:146876:32)
Temporary fix:
The text was updated successfully, but these errors were encountered: