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

Plugin usage causes system crash on Android #44

Open
none100p opened this issue Nov 29, 2024 · 2 comments
Open

Plugin usage causes system crash on Android #44

none100p opened this issue Nov 29, 2024 · 2 comments

Comments

@none100p
Copy link

none100p commented Nov 29, 2024

Plugin version: "1.0.1"

Issued android versions: 12, 13, 14, 15, didn't test anywhere else
targetSdkVersion = 34
minSdkVersion = 26

Providing device logs:
11-29 13:26:19.874 10853 10853 W Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateMap.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
11-29 13:26:19.874 10853 10853 W Common causes for lock verification issues are non-optimized dex code
11-29 13:26:19.874 10853 10853 W and incorrect proguard optimizations.
11-29 13:26:19.874 10853 10853 W Method void androidx.compose.runtime.snapshots.SnapshotStateMap.update(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
11-29 13:26:19.874 10853 10853 W Method boolean androidx.compose.runtime.snapshots.SnapshotStateMap.removeIf$runtime_release(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
11-29 13:26:19.914 4019 4186 D OplusNetworkSlowMgr: checkCidDorecoveryInvalid, mRecoveryConfig is false
11-29 13:26:19.925 10853 10853 D AndroidRuntime: Shutting down VM
11-29 13:26:19.927 10853 10853 E AndroidRuntime: FATAL EXCEPTION: main
11-29 13:26:19.927 10853 10853 E AndroidRuntime: Process: appName,
11-29 13:26:19.927 10853 10853 E AndroidRuntime: java.lang.NoSuchFieldError: No field Companion of type Landroidx/camera/lifecycle/ProcessCameraProvider$Companion; in class Landroidx/camera/lifecycle/ProcessCameraProvider; or its superclasses (declaration of 'androidx.camera.lifecycle.ProcessCameraProvider' appears in /data/app/{AppTag}/base.apk)

App is crashing on attempt to call method

await CapacitorBarcodeScanner.scanBarcode({
hint: 17,
cameraDirection: 1,
})

@abennouna
Copy link

Please see #41

@sake12
Copy link

sake12 commented Dec 3, 2024

The latest version on NPM (1.0.3) doesn't have this fix.

EDIT: Install version 1.0.2 which is good, they messed up NPM releases.
1.0.3 does not have a camera fix.

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

3 participants