google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.95k stars 1.22k forks source link

P20 Pro not recognizing surfaces #585

Closed Kinghoff closed 3 years ago

Kinghoff commented 5 years ago

I'm using a Huawei P20 Pro and it's not recognizing any surfaces. I've downloaded the AR Core App from the Play Store and built the example scene in multiple Unity versions. Other apps like the Porsche Mission E Demo don't work either. Is there some kind of workaround or fix in the making? Please let me know soon :)

inio commented 5 years ago

Could you provide your build fingerprint? adb shell getprop ro.build.fingerprint should print it.

Kinghoff commented 5 years ago

This is the output of the command: HUAWEI/CLT-L09/HWCLT:8.1.0/HUAWEICLT-L09/156(C432):user/release-keys

Also it seems to use the middle camera of the P20 Pro with a very low resolution, instead of the upper camera, which appears to be the main one.

Thoeme77 commented 5 years ago

Same problem with the P20 Pro and Unreal Engine 4 binary build (v.4.20.3). Other apps which also don't work are ARuler and IKEA Place. The AR origin is constantly moving/drifting and therefore every AR object as well. I've already tried to use several different versions of AR Core back to v.1.2.180425134, instead of the most recent version in the Google Play Store (v.1.5.180910056). Also the planes don't get detected at all or they are drifting as well.

joensaar commented 5 years ago

I can also confirm that AR Core is working very poorly on Huawei P20 Pro (CLT-L29 8.1.0.156(C432patch02)). I have tried updating Unity and Android SDK tools, even Unity 2018.3 Beta. Tried AR Core 1.4 and most recent 1.5x. Ikea app doesn't work either, but the Measure app does work.

inio commented 5 years ago

@AJoensuu thanks for the report. It's odd that Measure works but Hello AR Java doesn't, as they use exactly the same API.

joensaar commented 5 years ago

@inio It is odd indeed. I did some more tests with just the HelloAR example and it seems that it actually works correctly when launching the app for the first time. After closing the app and re-opening, the (rare) planes it manages to find float all over. It does take pretty steady hands to make even that happen. I discovered that clearing the app cache fixes the issue, but it requires that I do that every time.

inio commented 5 years ago

@AJoensuu Thanks for the additional info, this is very helpful.

Does quitting the HelloAR app fix it if you return to it? (open task switcher, swipe HelloAR panel to either side of the screen).

joensaar commented 5 years ago

@inio Nope quitting does not fix it.

inio commented 5 years ago

@AJoensuu: Just to be clear, is it clearing cache for the app (HelloAR Java) or ARCore itself that fixes the issue?

joensaar commented 5 years ago

@inio Actually I should take back what I said about the cache - I cleared the HelloAR cache. It seems to make a difference, but I can't say with certainty, especially because it didn't help much with Ikea Place. Sometimes it works, sometimes not. This is really confusing. The drifting feels like the camera parameters are off or something, causing incorrect depth calculations since sometimes it generates planes on top of each other.

inio commented 5 years ago

@AJoensuu Most likely what's going on is that something about the device state is causing the timestamps on either camera images or IMU data to be inconsistent with the behavior we saw when calibrating the device.

joensaar commented 5 years ago

@inio That sounds very logical. If thats true, that would point to a P20 Pro software update because rolling back to AR Core 1.4x (Play store app) didn't help? I did recently perform an update to my phone. The tracking behaviour is so unpredictable, that it must has fooled me that clearing the cache helped. Sometimes everything works great, sometimes not at all.

inio commented 5 years ago

@AJoensuu Just for thoroughness, what is your build fingerprint? You can get this by running adb shell getprop ro.build.fingerprint.

joensaar commented 5 years ago

@inio HUAWEI/CLT-L29/HWCLT:8.1.0/HUAWEICLT-L29/156(C432):user/release-keys

pkettu commented 5 years ago

I have the same problem with 'Our World' games AR mode.

adb shell getprop ro.build.fingerprint output: HUAWEI/CLT-L29/HWCLT:8.1.0/HUAWEICLT-L29/156(C432):user/release-keys

inio commented 5 years ago

@pkettu Do you only see this in Our World or do you see it in all ARCore apps?

karlsad commented 5 years ago

I have the same issue, however by turning the Master AI in the camera settings on and off sometimes fix the issue. I have no idea why.

inio commented 5 years ago

Good news: we've been able to reproduce this issue and are investigating. Thank you everyone for the reports.

mrTag commented 5 years ago

I have the same problem and was trying out lots of things to get a workaround so that I can continue developing. I think I finally found something that works for me! For me, the tracking works reliably when I connect my P20 pro to a power source (can be a power bank) before starting an arcore app. But only when I don't use version 1.5 of arcore (I installed the apk of version 1.4.1 and disabled updates in the Play Store). I messed around with the huawei power saving settings in the beginning and that seemed to help, but it wasn't really reliable. But the whole issue seems to be connected to some power saving tech somehow?

My fingerprint, for what it's worth: HUAWEI/CLT-L09/HWCLT:8.1.0/HUAWEICLT-L09/156(C432):user/release-keys

inio commented 5 years ago

@mrTag THANK YOU!!! You just saved us a lot of debugging work by noticing that.

jqjq77 commented 5 years ago

Any good news for this issue ??? my p20 Pro is very hard to find a surface too :<

inio commented 5 years ago

A recent OS update for the Huawei P20 device family has resulted in some devices experiencing poor motion tracking performance. To minimize bad user experiences, we have temporarily disabled access to ARCore and AR-Required apps on the affected devices.

We are evaluating a workaround for this issue in ARCore V1.6, which should be released in the coming weeks. We hope to re-enable all affected devices at that time.

shugosmail commented 5 years ago

I've found a new ARCore version on apkmirror. I tried it and now everything works again! Could you, please, re-enable compatibility for P20 Pro in Google Play? Thank you very much.

joensaar commented 5 years ago

Thank for letting us know @shugosmail !! I've had to explain to clients that ARcore doesn't work on my brand new phone-didn't look good when they asked for me to demo. Thank you ARcore team for fixing this!

inio commented 5 years ago

Today's release of ARCore 1.6 should resolve this issue. Please let us know if it does not.

inio commented 5 years ago

Correction: Access to ARCore has not yet been restored for all P20 devices, so you may be unable to get the update. Over the next few days we will re-enable P20 devices and you should receive the update.

Kinghoff commented 5 years ago

I just downloaded the ARCore 1.6 APK and everything works fine. Thank you!

Thoeme77 commented 5 years ago

I can also confirm that everything is back to normal. I've also used the one from apkmirror since it wasn't unlocked in my region yet.

inio commented 5 years ago

@Thoeme77 There's no need to go to third-party sites to get the APK, we provide them on our releases page.

Thoeme77 commented 5 years ago

@Thoeme77 There's no need to go to third-party sites to get the APK, we provide them on our releases page.

Oh thanks!

antonGritsenko commented 5 years ago

@inio sorry for asking, but do you know any dates when it will be globally available? Sure, I can download APK, but this is not an option in case when you need to use other apps from Google Play, they also blocked at the moment for same reason as ARCore itself.

calmmycode commented 5 years ago

Still does not work on P20 Pro (CLT-L29) with ARCore apk v1.6 from releases section. @inio

NGrigorov commented 5 years ago

I hope @inio you guys manage to solve the P20 problem quickly! ARcore not working for P20 is a really big issue for the people in my position :D we are having to work with version 1.1 and the track is so bad because of the software update on the P20 family there

calmmycode commented 5 years ago

Same here. We have only pixel gen1 and p20 pro for AR Tests. Very big need in fix for p20 pro. The problem exists on CLT-L29 (C636) with firmware 8.1.0.155 (Android 8.1).

joensaar commented 5 years ago

@calmmycode C636 is one of the region codes for the Asian market. It could be that you have a software update available that will make it work. If not, you may have to wait for Huawei to release an update. I'm currently running 8.1.0.161 (C432) = European region.

calmmycode commented 5 years ago

@AJoensuu @inio after update android pie - build 9.0.0.168(C636) - still does not work

calmmycode commented 5 years ago

Any news? ARCore does not work on 8.1.0.155, 8.1.0.158, 9.0.0.168. What we need to do to make it work?

inio commented 5 years ago

@calmmycode

  1. What is the build fingerprint of your device? adb shell getprop ro.build.fingerprint should display it.
  2. Is ARCore available for your device from the Play Store (non-China) or Huawei AppGallery (China)?
  3. Just to confirm, the session starts but you never detect any planes?
nathanb3 commented 5 years ago

@inio I am also experiencing ARcore not working on Huawei P20 Pro. 9.0.0.160

  1. HUAWEI/CLT-L04/HWCLT:9/HUAWEICLT-L04/160C792R1:user/release-keys

  2. ARCore downloaded from play store. Version 1.6.181112096

  3. I try to open the Measure app and it just pops up saysing : Unknown ARcore error (Unavailable-DeviceNotCompatibleException).

calmmycode commented 5 years ago

Hi, @inio Here is some info:

  1. HUAWEI/CLT-L29/HWCLT:9/HUAWEICLT-L29/168C636R1:user/release-keys
  2. Device has all Google Services, but ARCore is not availiable from Google Play. If I instal ARCore manually from downloads section on github, I get error "This device does not support AR"
  3. The session can not start. No camera view. Only black screen and error "This device does not support AR"
maguileracanon commented 5 years ago

Hi @inio As issue #641 was closed. May I ask for advice from the community. I need to choose a device to do research with Google Arcore in China. I was thinking about Huawei as it has more international support and I have no experience with Xiaomi, but after seeing all of the issues I was wondering which devices are more stable in China to develop ARcore apps. Could you please recommend me one? or do you maybe know who can I approach for some advice on this?

calmmycode commented 5 years ago

Much time passed, pls, keep us updated about any info about the issue @inio

NTrixner commented 5 years ago

This doesn't seem to be happening anymore with my P20 Pro, i.e. ARCore seems to work fine again.

calmmycode commented 5 years ago

Hi. Pls, any news on this issue @inio

mandanakhademi commented 5 years ago

it doesn't work on Huawei P20 pro, CLT-L29 Build 9.0.0.159. ARCore version was 1.6181112096. I've tried to use Google measurement app but it displayed unknown arcore error (Unavailable-DeviceNotCompatibleException)

diogoalexsmachado commented 5 years ago

I'm still having this issue... ARCore 1.6 installed and can't use any AR apps under the message "Device not supported"

ilias-uoc commented 5 years ago

I'm having this issue as well. My phone recently got the Android Pie update and I was hoping the update would fix this but it didn't :( I can download ARCore from Google Play but when I use Google Measure I get the Device not compatible exception. My phone's model is CLT-L29. Has ARCore ever worked for this phone?

Degar00 commented 5 years ago

Hi all! I´m currently having the same issue described just up here. I can provide any data you want from my cell if it helps solving it.

My cell: model is CLT-L29 compilation: 9.0.0.195(C43 2E5R1P9) GPU TURBO Ar Core version 1.7.190128066

If you need some log or anything just ask for it. Thx!!

calmmycode commented 5 years ago

Tired of waiting when we get the fix. 1 year passed after this phone was released.

SalvatoreMeschini commented 5 years ago

Same issue here with

Model: CLT-L29 (Huawei P20 Pro) Build number: 9.0.0.195 (C432E5R1P9) GPU TURBO Ar Core: 1.7.190128066

Google Measure shows "Unknown ARCore Error (Unavailable DeviceNotCompatibleException) and AR Ruler shows something like "Failed to create AR session".

I also tried to delete ARcore data/cache but it did not help