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

Camera doesn't display preview frame in Google Play Service when use GPS to do matter provisioning. #134

Open
M201370367 opened this issue May 29, 2023 · 6 comments

Comments

@M201370367
Copy link

Has anyone met the issue: camera doesn't display preview frame in Google Play Service when use GPS to do matter provisioning?
GPS version: 23.17.60
phone : pixel 4a Android 13
image
log:
java.lang.IllegalArgumentException: No supported surface combination is found for camera device - Id : 0. May be attempting to bind too many use cases. Existing surfaces: [AttachedSurfaceInfo{surfaceConfig=SurfaceConfig{configType=PRIV, configSize=PREVIEW}, imageFormat=34, size=720x480, dynamicRange=DynamicRange@fed9bcc{format=FORMAT_SDR, bitDepth=8}, targetFrameRate=null}, AttachedSurfaceInfo{surfaceConfig=SurfaceConfig{configType=YUV, configSize=VGA}, imageFormat=35, size=640x480, dynamicRange=DynamicRange@fed9bcc{format=FORMAT_SDR, bitDepth=8}, targetFrameRate=null}] New configs: [m.ano@982e5e2, m.amr@d92ed73]
image

@jonsmirl
Copy link

I have same issue on Samsung tablet, when my Pixel phone works fine.

@pierredelisle
Copy link
Contributor

@jonsmirl
Copy link

samsung.zip
Go to the end of it.

05-30 10:19:06.253 18425 18425 I SurfaceView@a1cd525: Changes: creating=false format=false size=false visible=false alpha=false hint=false mUseAlpha=false visible=false left=false top=true
05-30 10:19:06.253 18425 18425 I SurfaceView@a1cd525: 169661733 Cur surface: Surface(name=null)/@0xb05af20
05-30 10:19:06.254 18425 18425 I SurfaceView@a1cd525: applyTransactionOnVriDraw: vri = ViewRootImpl@732c2fd[SetupDeviceActivity] fRS = false t = 0xb4000075c70a3000 android.view.SurfaceView.performSurfaceTransaction:959 android.view.SurfaceView.updateSurface:1105 android.view.SurfaceView.lambda$new$0$android-view-SurfaceView:200 
05-30 10:19:06.254 18425 18489 W CaptureSession: Opening session with fail OPENING
05-30 10:19:06.254 18425 18489 W CaptureSession: java.lang.NullPointerException
05-30 10:19:06.254 18425 18489 W CaptureSession: 	at m.bgm.g(:com.google.android.gms.optional_home@[email protected] (100400-0):0)
05-30 10:19:06.254 18425 18489 W CaptureSession: 	at m.xz.c(:com.google.android.gms.optional_home@[email protected] (100400-0):25)
05-30 10:19:06.254 18425 18489 W CaptureSession: 	at m.xs.a(:com.google.android.gms.optional_home@[email protected] (100400-0):0)
05-30 10:19:06.254 18425 18489 W CaptureSession: 	at m.aql.run(:com.google.android.gms.optional_home@[email protected] (100400-0):5)
05-30 10:19:06.254 18425 18489 W CaptureSession: 	at m.aqh.run(:com.google.android.gms.optional_home@[email protected] (100400-0):5)
05-30 10:19:06.254 18425 18489 W CaptureSession: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
05-30 10:19:06.254 18425 18489 W CaptureSession: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
05-30 10:19:06.254 18425 18489 W CaptureSession: 	at java.lang.Thread.run(Thread.java:1012)

That is logcat fom Google Home. This is something wrong in GPS. Camera won't work in either sample app or Google Home on my Samsung tablet. I think the Matter GPS code is asking for camera resolutions not supported by the camera.

@tcarmelveilleux
Copy link

@jonsmirl @M201370367 Could both of you tell us if a reboot of the device fixes the issue at least temporarily. That is, whether right after a fresh boot, the QR code camera works.

We are trying to determine if there may be an issue related to unreleased camera resources.

@jonsmirl
Copy link

No change on a reboot

@pierredelisle
Copy link
Contributor

Issue has been filed at Google with the GPS team. Will report here as soon as I hear back.

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

No branches or pull requests

4 participants