Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Camera freeze on some devices like Samsung Galaxy A40 #773

Open
JacekMSFT opened this issue Feb 1, 2021 · 0 comments
Open

Camera freeze on some devices like Samsung Galaxy A40 #773

JacekMSFT opened this issue Feb 1, 2021 · 0 comments
Labels

Comments

@JacekMSFT
Copy link

JacekMSFT commented Feb 1, 2021

SPECIFIC ISSUE ENCOUNTERED

Hi,
After leaving the app for few minutes, the camera feed is freezing. The app is still responsive but video is not updated from the camera.

I tested latest 1.22 SDK with sample app. I also moved back in history to version 1.18 and was able to confirm the repro. The issue seems to not repro on 1.15 and 1.12, so this might be introduced with Depth API?

VERSIONS USED

  • Unity: 2018.4.28f1
  • ARCore SDK for Unity: v1.22.0
  • Device manufacturer, model, and O/S: Android 9, Samsung Galaxy A40, Mode: SM-A405FN
  • Google Play Services for AR (ARCore): As in sample app, 1.2.122.0.
    Packages:
    versionName=1.22.203220523
    Hidden system packages:
    versionName=0
  • Output of adb shell getprop ro.build.fingerprint:
    samsung/a40eea/a40:9/PPR1.180610.011/A405FNXXU1ASD2:user/release-keys

STEPS TO REPRODUCE THE ISSUE

  1. Build HelloWorld example from SDK
  2. Deploy to device - Samsung Galaxy A40
  3. Leave the phone looking at the desk/floor so it can still have tracking.

Actual:
After 15-20 minutes you will see that camera feed is not coming. Settings button in the sample and object placement still works but video is not updating.

In our app when we have more logic, we see this problem in about 1-4 minutes from the start. In the attached SDK sample, it takes a little longer.

WORKAROUNDS (IF ANY)

Not identified. We tried to detect the problem so we can restart the session/ARCore but BackgroundMaterial.SetTexture(mainTexVar, Frame.CameraImage.Texture); is still running, no error.

ADDITIONAL COMMENTS

I attached sample app with removed SDK to fit 10MB limit (ARCoreTest.zip)

  • There is nothing special in that project. Unity -> New 3D project.
  • Add this "classpath 'com.android.tools.build:gradle:3.6.0'" to mainTemplate.gradle for custom gradle template
  • Graphics still set to Auto. Multithread not enabled. (I tried changing these but it didn't help)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant