google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 403 forks source link

Camera freeze on some devices like Samsung Galaxy A40 #773

Open JacekMSFT opened 3 years ago

JacekMSFT commented 3 years ago

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

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)