Skip to content
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

Error: [InvalidAccessError] Track has ended at applyConstraints ([native code]::) #131

Open
Preefix opened this issue Mar 21, 2024 · 0 comments

Comments

@Preefix
Copy link

Preefix commented Mar 21, 2024

When the camera is unmounted the following error occurs on the latest iOS Version 17.4:

This is tested with

"@zxing/browser": "0.1.4", and "@zxing/browser": "0.1.3". Everything worked as expected on iOS 16.

Error: [InvalidAccessError] Track has ended at applyConstraints ([native code]::) at __generator (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:120:72) at _.ops.pop (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:43:27) at step (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:18:70) at Promise ([native code]::) at new (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:14:26) at __generator (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:776:107) at _.ops.pop (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:43:27) at step (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:18:70) at Promise ([native code]::) at new (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:14:26) at __generator (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:789:65) at _.ops.pop (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:43:27) at step (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:18:70) at Promise ([native code]::) at new (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:14:26) at scannerControls.current?.stop (webpack://app/src/components/common/XzingBarCodeScanner.tsx:57:39) at loop (webpack://app/node_modules/@zxing/browser/esm/readers/BrowserCodeReader.js:1123:27)

Steps to reproduce the behavior:

Initialize the camera
Unmount the camera (after scanning, or what ever else)
See error
The error should not appear. It happens only on the latest iOS Version. Version 16 works fine.

Smartphone (please complete the following information):

Device: every iPhone with Version 17
OS: iOS17.4
Browser Safari + Chrome
Version latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant