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

Getting ANR when starting camera #448

Open
rakshit444 opened this issue Nov 2, 2019 · 0 comments
Open

Getting ANR when starting camera #448

rakshit444 opened this issue Nov 2, 2019 · 0 comments

Comments

@rakshit444
Copy link

"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x72ce1c48 self=0x7d92c5fe00
| sysTid=22882 nice=-10 cgrp=default sched=0/0 handle=0x7e187c69a8
| state=S schedstat=( 7026193089 1921918410 10340 ) utm=500 stm=202 core=0 HZ=100
| stack=0x7fe2d7b000-0x7fe2d7d000 stackSize=8MB
| held mutexes=
#00 pc 000000000007a2ac /system/lib64/libc.so (__ioctl+4)
#1 pc 00000000000276e0 /system/lib64/libc.so (ioctl+132)
#2 pc 00000000000557d4 /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+252)
#3 pc 0000000000056708 /system/lib64/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+688)
#4 pc 00000000000562d0 /system/lib64/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+216)
#5 pc 000000000004ce1c /system/lib64/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+72)
#6 pc 00000000000302ec /system/lib64/libcamera_client.so (android::hardware::BpCameraService::connect(android::spandroid::hardware::ICameraClient const&, int, android::String16 const&, int, int, android::spandroid::hardware::ICamera*)+368)
#7 pc 00000000000467f8 /system/lib64/libcamera_client.so (android::CameraBase<android::Camera, android::CameraTraitsandroid::Camera>::connect(int, android::String16 const&, int, int)+244)
#8 pc 00000000001624a0 /system/lib64/libandroid_runtime.so (???)
#9 pc 00000000005cdc44 /system/framework/arm64/boot-framework.oat (Java_android_hardware_Camera_native_1setup__Ljava_lang_Object_2IILjava_lang_String_2+196)
at android.hardware.Camera.native_setup (Camera.java)
at android.hardware.Camera.cameraInitVersion (Camera.java:635)
at android.hardware.Camera.cameraInitNormal (Camera.java:639)
at android.hardware.Camera. (Camera.java:905)
at android.hardware.Camera.open (Camera.java:478)
at net.one97.scanner.camera.CameraSource.open (CameraSource.java:901)
at net.one97.scanner.camera.CameraSource.createCamera (CameraSource.java:928)
at net.one97.scanner.camera.CameraSource.start (CameraSource.java:478)

  • locked <0x0d46f0c0> (a java.lang.Object)
    at net.one97.scanner.camera.CameraSourcePreview.startIfReady (CameraSourcePreview.java:92)
    at net.one97.scanner.camera.CameraSourcePreview.access$102 (CameraSourcePreview.java:33)
    at net.one97.scanner.camera.CameraSourcePreview.access$200 (CameraSourcePreview.java:33)
    at net.one97.scanner.camera.CameraSourcePreview$SurfaceCallback.surfaceCreated (CameraSourcePreview.java:119)
    at android.view.SurfaceView.updateSurface (SurfaceView.java:710)
    at android.view.SurfaceView$2.onPreDraw (SurfaceView.java:145)
    at android.view.ViewTreeObserver.dispatchOnPreDraw (ViewTreeObserver.java:977)
    at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2427)
    at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1446)
    at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:6954)
    at android.view.Choreographer$CallbackRecord.run (Choreographer.java:925)
    at android.view.Choreographer.doCallbacks (Choreographer.java:737)
    at android.view.Choreographer.doFrame (Choreographer.java:669)
    at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:911)
    at android.os.Handler.handleCallback (Handler.java:790)
    at android.os.Handler.dispatchMessage (Handler.java:99)
    at android.os.Looper.loop (Looper.java:192)
    at android.app.ActivityThread.main (ActivityThread.java:6671)
    at java.lang.reflect.Method.invoke (Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:826)
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