You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have further details about this crash: it seems to occur specifically when processEveryNthFrame gets attached to a variable, and that variable is changed. I.e. in Vue, :processEveryNthFrame="testVariable", and then testVariable is mutated.
For what it's worth, when I tried removing setProcessEveryNthFrame from the app entirely, the build ran on Android, but did not detect any barcodes. The exact same codebase on iOS works great.
@DanielDent were you able to find a workaround or resolve the issue? it seems that adding the "setProcessEveryNthFrame" prop improves barcode scanner accuracy but it's still resulting in a crash when the prop is added on android.
@triniwiz apologies but I just tested with a new android build on my side and although I don't get an exception anymore like before, it also seems like adding the property now results in no results returned for the detection event. When I remove the property scanning works but it's not accurate with Code39 barcode types especially.
@triniwiz apologies but I just tested with a new android build on my side and although I don't get an exception anymore like before, it also seems like adding the property now results in no results returned for the detection event. When I remove the property scanning works but it's not accurate with Code39 barcode types especially.
Activity
DanielDent commentedon Oct 12, 2022
I have further details about this crash: it seems to occur specifically when processEveryNthFrame gets attached to a variable, and that variable is changed. I.e. in Vue,
:processEveryNthFrame="testVariable", and then testVariable is mutated.DanielDent commentedon Oct 12, 2022
I am mistaken about my prior comment, this crash seems to still occur even if testVariable is not mutated.
DanielDent commentedon Oct 17, 2022
For what it's worth, when I tried removing setProcessEveryNthFrame from the app entirely, the build ran on Android, but did not detect any barcodes. The exact same codebase on iOS works great.
brooklax commentedon Feb 21, 2023
@DanielDent were you able to find a workaround or resolve the issue? it seems that adding the "setProcessEveryNthFrame" prop improves barcode scanner accuracy but it's still resulting in a crash when the prop is added on android.
We're using:
"@nativescript/mlkit-barcode-scanning": "^1.0.6",
"@nativescript/mlkit-core": "^1.0.6",
"@nativescript/android": "8.4.0",
"@nativescript/ios": "8.4.0",
"nativescript-vue": "^2.9.3",
devlinpadayachee commentedon Feb 21, 2023
Anybody found a workaround?
triniwiz commentedon Feb 21, 2023
Finally got change to fix this so it now works in the latest release, thanks for reporting.
brooklax commentedon Feb 24, 2023
@triniwiz apologies but I just tested with a new android build on my side and although I don't get an exception anymore like before, it also seems like adding the property now results in no results returned for the detection event. When I remove the property scanning works but it's not accurate with Code39 barcode types especially.
<MLKitView
cameraPosition="back"
:detectionType="type || 'all'"
:barcodeFormats="formats"
:processEveryNthFrame="60"
@detection="onScanResult"
:pause="pauseScanner"
:torchOn="torchOn"
/>
brooklax commentedon Feb 24, 2023
Sorry I see this issue is closed, will open a new one
devlinpadayachee commentedon Feb 24, 2023
+1
devlinpadayachee commentedon Feb 27, 2023
Any updates?
triniwiz commentedon Feb 28, 2023
Nothing yet, but I'll look into it soon