Skip to content

Commit

Permalink
build: bump release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ujizin authored Jun 9, 2023
1 parent 5a5048c commit fda9fcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/ujizin/camposer/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ object Config {
const val compileSdk = 33
const val targetSdk = 33
const val minSdk = 21
const val versionCode = 4
const val versionName = "0.2.1"
const val versionCode = 5
const val versionName = "0.2.2"
const val groupId = "io.github.ujizin"
const val artifactId = "camposer"
}
}

8 comments on commit fda9fcd

@IlliaMel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello ) i try using this library to make simple app with camera , but i have such error while using this with sdk 33

E/CameraCaptureSession: Session 0: Exception while stopping repeating:
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The camera device has encountered a serious error
at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:2429)
at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1329)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:579)
at androidx.camera.camera2.internal.SynchronizedCaptureSessionBaseImpl.close(SynchronizedCaptureSessionBaseImpl.java:476)
at androidx.camera.camera2.internal.CaptureSession.release(CaptureSession.java:526)
at androidx.camera.camera2.internal.Camera2CameraImpl.releaseSession(Camera2CameraImpl.java:555)
at androidx.camera.camera2.internal.Camera2CameraImpl.resetCaptureSession(Camera2CameraImpl.java:1328)
at androidx.camera.camera2.internal.Camera2CameraImpl.closeCamera(Camera2CameraImpl.java:468)
at androidx.camera.camera2.internal.Camera2CameraImpl$StateCallback.reopenCameraAfterError(Camera2CameraImpl.java:1826)
at androidx.camera.camera2.internal.Camera2CameraImpl$StateCallback.handleErrorOnOpen(Camera2CameraImpl.java:1778)
at androidx.camera.camera2.internal.Camera2CameraImpl$StateCallback.onError(Camera2CameraImpl.java:1753)
at androidx.camera.camera2.internal.CameraDeviceStateCallbacks$ComboDeviceStateCallback.onError(CameraDeviceStateCallbacks.java:121)
at android.hardware.camera2.impl.CameraDeviceImpl.notifyError(CameraDeviceImpl.java:1809)
at android.hardware.camera2.impl.CameraDeviceImpl.$r8$lambda$KBQCqQRdhVVn7uHI9Xdha6OqnsU(Unknown Source:0)
at android.hardware.camera2.impl.CameraDeviceImpl$$ExternalSyntheticLambda0.accept(Unknown Source:8)
at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:281)
at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:204)
at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$1.run(SequentialExecutor.java:111)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:231)
at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:173)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)

    i create file like this 
    
    
    private fun createImageFile(context: Context): File {
val uuidFile = UUID.randomUUID().toString()
val storageDir = context.getExternalFilesDir(Environment.DIRECTORY_PICTURES)
return File.createTempFile(
    uuidFile,
    ".jpg",
    storageDir
)

}

@ujizin
Copy link
Owner Author

@ujizin ujizin commented on fda9fcd Jun 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The camera device has encountered a serious error

It appears to be an emulator problem: https://stackoverflow.com/q/71415423/11903815

Could you please try testing on SDK 33 without using an emulator?

@IlliaMel
Copy link

@IlliaMel IlliaMel commented on fda9fcd Jun 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fust answer , unfortunately, I don't have such an opportunity

@IlliaMel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The camera device has encountered a serious error

It appears to be an emulator problem: https://stackoverflow.com/q/71415423/11903815

Could you please try testing on SDK 33 without using an emulator?

with sdk 31 same problem

@IlliaMel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The camera device has encountered a serious error

It appears to be an emulator problem: https://stackoverflow.com/q/71415423/11903815

Could you please try testing on SDK 33 without using an emulator?

Can u give some example how u create file for photo ?

@ujizin
Copy link
Owner Author

@ujizin ujizin commented on fda9fcd Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The camera device has encountered a serious error

It appears to be an emulator problem: https://stackoverflow.com/q/71415423/11903815
Could you please try testing on SDK 33 without using an emulator?

Can u give some example how u create file for photo ?

Of course! In the project, there're a few examples in FileDataSource.kt

@ujizin
Copy link
Owner Author

@ujizin ujizin commented on fda9fcd Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fust answer , unfortunately, I don't have such an opportunity

In the emulator, try changing your camera setting from "virtual scene" to "emulated" by following these steps: Device Manager > Edit > Show Advanced Settings > Camera > Back

@IlliaMel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fust answer , unfortunately, I don't have such an opportunity

In the emulator, try changing your camera setting from "virtual scene" to "emulated" by following these steps: Device Manager > Edit > Show Advanced Settings > Camera > Back

i try this , and it dont work , also i try your method on real android 13 , and it dont wotk (

Please sign in to comment.