google-ar / arcore-unity-sdk

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

New ARCore can't connect #590

Open synthercat opened 5 years ago

synthercat commented 5 years ago

I tried the just-released version 1.10.0 on my Xiaomi Mi8 phone. I build the demo app and when executed it asked to update my ARCore app on the phone. After that NONE of my ARCore apps run anymore. All I get is the "ARCore encountered a problem connecting. Please start the app again." error

On other funny side of news. I submitted my plug in at the Unity asset store a few days ago waiting to be approved by Unity, RealSunAR (Optimized for ARCore & AR Foundation)... I guess it won't sell much now that you also implemented real sun with this release lol. Since this cat is out of the bag maybe I could implement my ideas to your code. Should I get in contact with any of your coders?

beryxz commented 5 years ago

Same thing for me. It started a few days before 1.10.0 was out. All my ARCore apps (ARCoreTest, AR Elements, and a few others project of mine) stopped working, when opened they ask for camera permission and then black screen and nothing else. I also have a Xioami Mi8 and here is an extract of logcat relative to the problem when trying to open an ARCore enabled app.

8034  8051 E ACameraManager: [Eeee] 374@getCameraIdList available number of camera is 2.
8034  8051 I native  : android_camera.cc:1147 Camera manager initialized successfully with 2 cameras.
8034  8051 I native  : session_create_implementation_shared.cc:1121 CPU Image enable frame delay to compensate delay: true
8034  8051 I native  : create_pursuit_tracker.cc:23 AugmentedRegion downsample mode from Phenotype: true
8034  8051 I native  : planar_target_tracking_manager.h:110 Config of PlanarTargetTrackingManager:
8034  8051 I native  : -pose_refinement_with_detection_interval_ns: 0
8034  8051 I native  : -min_interval_between_detections_ns: 500000000
8034  8051 I native  : -filter_parallax: false
8034  8051 I native  : -filter_result: true
8034  8051 I native  : -multiple_targets: true
8034  8051 I native  : -mini_detection: true
8034  8051 I native  : -tracking_mode: 1
1366  3026 D CompatibilityInfo: mCompatibilityFlags - 0
1366  3026 D CompatibilityInfo: applicationDensity - 440
1366  3026 D CompatibilityInfo: applicationScale - 1.0
8034  8051 I native  : session_create_implementation.cc:241 createImplementationWithFeaturesAndSettings returning OK.
8034  8051 I native  : session_manager.cc:42 ArPresto::Session created.camera direction:0 camera preference:0
8034  8051 E Unity   : Unable to find arcore_instant_preview_unity_plugin
8034  8088 I native  : arpresto_api.cc:133 ArPresto::ArPresto_setCameraTextureName
8034  8088 I native  : session.cc:656 Entering Session::Resume.
8034  8088 I native  : android_camera.cc:540 Reset cleanly got to CLOSED state for camera 0
8034  8088 I CameraManagerGlobal: Connecting to camera service
8034  8088 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 2
8034  8088 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 3
8034  8088 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 4
8034  8088 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 5
8034  8171 W CameraManagerGlobal: ignore the torch status update of camera: 2
8034  8171 W CameraManagerGlobal: ignore the torch status update of camera: 3
8034  8171 W CameraManagerGlobal: ignore the torch status update of camera: 4
8034  8088 I native  : android_sensors.cc:139 Starting thread.
8034  8088 I native  : cameras.cc:599 Selected camera 0 stream 0 as feature extraction stream.
 921 32697 I CameraService: CameraService::connect call (PID -1 "", camera ID 0) for HAL version default and Camera API version 2
1366  5336 I SensorService: check list, getPackageName  unknown_package_pid_8034
 921 32697 I Camera2ClientBase: Camera 0: Opened. Client:  (PID 8034, UID 10305)
 921 32697 I CameraDeviceClient: CameraDeviceClient 0: Opened
8034  8212 I native  : android_sensors.cc:28 Gyro min delay 2.5ms requesting 5ms
 705  1749 I sensors-hal: batch:129, android.sensor.gyroscope_uncalibrated/34, period=200000000, max_latency=0
 705  1749 I sensors-hal: batch:138, android.sensor.gyroscope_uncalibrated/34, period=200000000, max_latency=0 request completed
 921 32697 E CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
 705   705 I sensors-hal: activate:96, android.sensor.gyroscope_uncalibrated/34 en=1
1875  2303 D FlashlightController: TorchCallback: onTorchModeUnavailable
1366  3026 D CompatibilityInfo: mCompatibilityFlags - 0
1366  3026 D CompatibilityInfo: applicationDensity - 440
1366  3026 D CompatibilityInfo: applicationScale - 1.0
1366  3026 D CompatibilityInfo: mCompatibilityFlags - 0
1366  3026 D CompatibilityInfo: applicationDensity - 440
1366  3026 D CompatibilityInfo: applicationScale - 1.0
1366  1493 D CompatibilityInfo: mCompatibilityFlags - 0
1366  1493 D CompatibilityInfo: applicationDensity - 440
1366  1493 D CompatibilityInfo: applicationScale - 1.0
1366  1493 D CompatibilityInfo: mCompatibilityFlags - 0
1366  1493 D CompatibilityInfo: applicationDensity - 440
1366  1493 D CompatibilityInfo: applicationScale - 1.0
 921 32697 I CameraProviderManager: Camera device device@3.3/legacy/0 torch status is now NOT_AVAILABLE
 921 32697 E CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=0
 689  3803 D OisGyroUtils: Enable gyro sensor E
 705   705 I sensors-hal: activate:107, android.sensor.gyroscope_uncalibrated/34 en=1 completed
 705   705 I sensors-hal: batch:129, android.sensor.gyroscope_uncalibrated/34, period=5000000, max_latency=0
 689 14216 E OisGyroUtils: datatype ois_gyro
8034  8051 I Unity   : 6
 689  3803 D OisGyroUtils: Enable gyro sensor X
 705   705 I sensors-hal: batch:138, android.sensor.gyroscope_uncalibrated/34, period=5000000, max_latency=0 request completed
8034  8212 I native  : android_sensors.cc:28 Accel min delay 2.5ms requesting 5ms
 705   705 I sensors-hal: batch:129, android.sensor.accelerometer_uncalibrated/38, period=200000000, max_latency=0
 705   705 I sensors-hal: batch:138, android.sensor.accelerometer_uncalibrated/38, period=200000000, max_latency=0 request completed
 705   705 I sensors-hal: activate:96, android.sensor.accelerometer_uncalibrated/38 en=1
 689 14216 E OisGyroUtils: datatype ois_accel
 705   705 I sensors-hal: activate:107, android.sensor.accelerometer_uncalibrated/38 en=1 completed
 705   705 I sensors-hal: batch:129, android.sensor.accelerometer_uncalibrated/38, period=5000000, max_latency=0
 921   921 W CameraDeviceClient: createSurfaceFromGbp: Camera 0 with consumer usage flag: 256: Forcing asynchronous mode for stream
 921   921 W CameraDeviceClient: createSurfaceFromGbp: Camera 0: Overriding format 0x1 to IMPLEMENTATION_DEFINED
 689  2019 E CamX    : [ERROR][HAL    ] camxhaldevice.cpp:509 CheckValidStreamConfig() Invalid streamStype: 0, format: 34, width: 1440, height: 1080
 921   921 E Camera3-Device: Camera 0: configureStreamsLocked: Set of requested inputs/outputs not supported by HAL
 921   921 E CameraDeviceClient: endConfigure: Camera 0: Unsupported set of inputs/outputs provided
8034  8088 E ACameraDevice: Camera device 0 cannnot support app output configuration: Status(-8): '3: endConfigure:517: Camera 0: Unsupported set of inputs/outputs provided'
8034  8088 E ACameraDevice: Fail to create new session. cannot configure streams
8034  8088 E native  : android_camera.cc:545 Reset: Resetting camera 0 from an ERROR state, best effort clean-up commencing
 705   705 I sensors-hal: batch:138, android.sensor.accelerometer_uncalibrated/38, period=5000000, max_latency=0 request completed
 921   921 I Camera3-Device: disconnect: E
 689  2019 D CamX    : [DEBUG][HAL    ] camxhal3.cpp:766 close() close(): 0xd97e2984

edit: I also tried to reinstall "ARCore By Google" from play store and rebooting the phone. My MIUI version is the latest 10.3 and i'm using Android 9

Zumbalamambo commented 5 years ago

@Beryxz Stuck with the same issue. Any fix?

beryxz commented 5 years ago

No @Zumbalamambo , i didn't find any solution yet. Provide information about your environments so as to ease any help.

Zumbalamambo commented 5 years ago

@Beryxz It is the same environment as yours [Mi8]

FantasyTianyu commented 5 years ago

same issue on Xiaomi 8 and OPPO R17Pro, but Xiaomi MIX2S is OK

korgan00 commented 5 years ago

Same issue here

shaowei1983 commented 5 years ago

me too,same app,run on s8 but mi 8

beryxz commented 5 years ago

I tried downgrading the version of ARCore to 1.9.0 or lower and it worked again. Seems like a bug with 1.10.0

manildayma commented 4 years ago

Stuck with the same issue with arcore v1.15

GiserDu commented 4 years ago

me too, use mi 10, try arcore v1.15,1.16,still failed

justwilliamm commented 3 years ago

My Mi 10t pro is facing the same problem, no ar supporting apps works at all