Comments (1)
I see the same crash
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.hardware.camera2.CameraCaptureSession.capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraCaptureSession$CaptureCallback, android.os.Handler)' on a null object reference
at com.google.android.cameraview.Camera2.unlockFocus(Camera2.java:606)
at com.google.android.cameraview.Camera2$6.onCaptureCompleted(Camera2.java:591)
at java.lang.reflect.Method.invoke(Native Method)
at android.hardware.camera2.dispatch.InvokeDispatcher.dispatch(InvokeDispatcher.java:39)
at android.hardware.camera2.dispatch.HandlerDispatcher$1.run(HandlerDispatcher.java:65)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)```
from cameraview.
Related Issues (20)
- how to store a click photos in gallery
- FLASH_TORCH sticks until FLASH_OFF is used
- camera preview showing black ,Please look my code below to solve. HOT 2
- java.lang.NullPointerException@android.hardware.camera2.CameraCaptureSession.capture HOT 6
- Black preveiw for front facing camera
- Why fall back to Camera1
- rotate
- CameraView shows green color when turn the screen OFF and turn ON in Redmi note 5 only HOT 2
- NPE while setting the aspect ratio HOT 1
- How to install BurstMode in this ?
- when add android:configChanges="orientation|keyboardHidden|screenSize" toCameraActivity Screen Rotation show Black Screen HOT 1
- Caused by: java.lang.RuntimeException: Fail to connect to camera service HOT 2
- TakePicture flash problem
- Pinch to zoom with Google Android Calendar
- android.view.TextureView.onSizeChanged (TextureView.java:367)
- Exit Interface always returns 0 for Google pixel with Google camera
- OPPO R17 Redmi 8A Android 9 crash
- Demo app crashes when trying to switch camera front facing camera
- Camera
- Security Policy violation Binary Artifacts HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cameraview.