google-ar / arcore-android-sdk

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

[device support] Huawei Nova 3 is not supported #646

Closed louisongbh closed 3 years ago

louisongbh commented 5 years ago

I am facing a "This device does not support AR" when I am running the HelloSceneForm sample based on the tutorial at https://developers.google.com/ar/develop/java/quickstart.

My device info : Model : Huawei Nova 3 Android : 8.1.0 API : 27 AR Core Version : 1.5.180910096 (Downloaded from Google Play Store)
Device fingerprint : HUAWEI/PAR-LX9/HWPAR:8.1.0/HUAWEIPAR-LX9/112(C636):user/release-keys

Checked from https://developers.google.com/ar/discover/supported-devices that Huawei Nova 3 is supported. Therefore, I am wondering is there any configurations that I have setup wrongly?

Few lines from logs

11-03 11:06:47.614 21542-21542/com.google.ar.sceneform.samples.hellosceneform E/aks: Invalid Camera Type: -1
11-03 11:06:47.625 21542-21542/com.google.ar.sceneform.samples.hellosceneform E/native: session_create_implementation_shared.cc:677 Device is not supported.
11-03 11:06:47.625 21542-21542/com.google.ar.sceneform.samples.hellosceneform V/third_party/redwood/base/jni_common/jni_helper.cc: ~JniHelper: did not need to detach thread. (Called from line 632.)
11-03 11:06:47.625 21542-21542/com.google.ar.sceneform.samples.hellosceneform E/native: session_create_implementation.cc:82 Failed to create calibration provider.
11-03 11:06:47.625 21542-21542/com.google.ar.sceneform.samples.hellosceneform W/native: session_create_implementation.cc:83 ArSession_createWithSettingsImplementation_private returning ArStatusErrorSpace::AR_UNAVAILABLE_DEVICE_NOT_COMPATIBLE: .
11-03 11:06:47.625 21542-21542/com.google.ar.sceneform.samples.hellosceneform V/third_party/redwood/base/jni_common/jni_helper.cc: JniHelper: about to attach thread. (Called from line 62.)
    JniHelper: thread already attached. (Called from line 62.)
    ~JniHelper: did not need to detach thread. (Called from line 62.)
11-03 11:06:47.628 21542-21542/com.google.ar.sceneform.samples.hellosceneform E/StandardArFragment: Error: This device does not support AR
    com.google.ar.core.exceptions.UnavailableDeviceNotCompatibleException'

Hope to see this is being rectified. Thanks.

inio commented 5 years ago

Sorry about missing this for so long. There should be a log message printed a few lines earlier from the ARCore process (not your app) that mentions "device_profile_HWPAR_accelerometer". Would it be possible to get that line?

louisongbh commented 5 years ago

It's alright. I could not find any logcat messages that states "device_profile_HWPAR_accelerometer"

Here is a more detailed view of my logcat messages:

12-08 08:16:47.203 24742-24742/? I/zygote64: Late-enabling -Xcheck:jni
12-08 08:16:47.217 24742-24742/? I/zygote64: Reinit property: dalvik.vm.checkjni= false
12-08 08:16:47.231 24742-24742/? D/ActivityThread: Attach thread to application
12-08 08:16:47.264 24742-24742/com.google.ar.sceneform.samples.hellosceneform D/HwFLClassLoader: get used feature list :/feature/used-list failed!
    USE_FEATURE_LIST had not init! 
12-08 08:16:47.360 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/InstantRun: starting instant run server: is main process
12-08 08:16:47.363 24742-24742/com.google.ar.sceneform.samples.hellosceneform E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
12-08 08:16:47.364 24742-24742/com.google.ar.sceneform.samples.hellosceneform E/Minikin: Could not get cmap table size!
12-08 08:16:47.369 24742-24742/com.google.ar.sceneform.samples.hellosceneform V/ActivityThread: Skipping new config:{1.0 502mcc16mnc [en_GB,zh_CN_#Hans] ldltr sw360dp w360dp h709dp 480dpi nrml long hdr port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 2218) nonFullScreen=0 suim:1 s.12}, config:{1.0 502mcc16mnc [en_GB,zh_CN_#Hans] ldltr sw360dp w360dp h709dp 480dpi nrml long hdr port finger -keyb/v/h -nav/h appBounds=Rect(0, 0 - 1080, 2218) nonFullScreen=0 suim:1 s.12} for app:com.google.ar.sceneform.samples.hellosceneform
12-08 08:16:47.401 24742-24742/com.google.ar.sceneform.samples.hellosceneform V/HwPolicyFactory: : success to get AllImpl object and return....
12-08 08:16:47.406 24742-24742/com.google.ar.sceneform.samples.hellosceneform V/HwWidgetFactory: : successes to get AllImpl object and return....
12-08 08:16:47.407 24742-24742/com.google.ar.sceneform.samples.hellosceneform V/ActivityThread: callActivityOnCreate
12-08 08:16:47.453 24742-24742/com.google.ar.sceneform.samples.hellosceneform D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f0c0103, context : com.google.ar.sceneform.samples.hellosceneform.HelloSceneformActivity@90828fb, Nhwext : 0, get Blur : disable with , null
    check blur style for HwPhoneWindow, themeResId : 0x7f0c0103, context : com.google.ar.sceneform.samples.hellosceneform.HelloSceneformActivity@90828fb, Nhwext : 0, get Blur : disable with , null
12-08 08:16:47.468 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/libEGL: [eglGetProcAddress] QCOM code detected: glStartTilingQCOM ... Returning NULL
    [eglGetProcAddress] QCOM code detected: glEndTilingQCOM ... Returning NULL
12-08 08:16:47.474 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
12-08 08:16:47.479 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/Filament: FEngine (64 bits) created at 0x7acc400000
12-08 08:16:47.510 24742-24786/com.google.ar.sceneform.samples.hellosceneform D/HwGalleryCacheManagerImpl: mIsEffect:false
12-08 08:16:47.526 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/Utils: Utils_isSuperResolutionSupport [load libai_client.success]
12-08 08:16:47.542 24742-24742/com.google.ar.sceneform.samples.hellosceneform D/ActivityThread: add activity client record, r= ActivityRecord{1010c60 token=android.os.BinderProxy@cb68a2c {com.google.ar.sceneform.samples.hellosceneform/com.google.ar.sceneform.samples.hellosceneform.HelloSceneformActivity}} token= android.os.BinderProxy@cb68a2c
12-08 08:16:47.558 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/third_party/arcore/ar/core/android/sdk/session_create.cc: Entering ArSession_create
12-08 08:16:47.561 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/third_party/arcore/ar/core/android/sdk/session_create.cc: ARCore Version: APK version code: 181112096
12-08 08:16:47.571 24742-24742/com.google.ar.sceneform.samples.hellosceneform D/HwFLClassLoader: USE_FEATURE_LIST had not init! 
12-08 08:16:47.579 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/native: commandlineflags.cc:939 Ignoring RegisterValidateFunction() for flag pointer 0x7aca0a1938: no flag found at that address
12-08 08:16:47.579 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/native: version_check.cc:23 ARCore Version: APK version:1.6.181112096
    version_check.cc:24 ARCore Version: emulated SDK version:1.5.180815000
12-08 08:16:47.579 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/third_party/arcore/ar/core/android/sdk/session_create.cc: ARCore Version: SDK build name: 1.5
    Dynamite load ok.
12-08 08:16:47.589 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/native: commandlineflags.cc:939 Ignoring RegisterValidateFunction() for flag pointer 0x7ac9fdb740: no flag found at that address
12-08 08:16:47.591 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/native: session_create_implementation.cc:49 Entering ArSession_createWithSettingsImplementation_private. ARCore SDK version: [1.5.180815000].
12-08 08:16:47.598 24742-24789/com.google.ar.sceneform.samples.hellosceneform V/third_party/redwood/base/jni_common/jni_helper.cc: JniHelper: attached thread. (Called from line 189.)
12-08 08:16:47.601 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/CameraManagerGlobal: Connecting to camera service
12-08 08:16:47.604 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/CameraManagerGlobal: do not need hide aux camera, device number: 0
    do not need hide aux camera, device number: 1
12-08 08:16:47.604 24742-24760/com.google.ar.sceneform.samples.hellosceneform I/CameraManagerGlobal: do not need hide aux camera, device number: 2
12-08 08:16:47.605 24742-24742/com.google.ar.sceneform.samples.hellosceneform E/ARCore-SpecialFingerprintBuilder: Invalid Camera Type: -1
12-08 08:16:47.618 24742-24742/com.google.ar.sceneform.samples.hellosceneform E/native: session_create_implementation_shared.cc:773 Unable to obtain device profile from the content provider: generic::not_found: Device is not supported.
12-08 08:16:47.619 24742-24742/com.google.ar.sceneform.samples.hellosceneform E/native: session_create_implementation.cc:112 Failed to create calibration provider.
12-08 08:16:47.619 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/native: session_create_implementation.cc:113 ArSession_createWithSettingsImplementation_private returning ArStatusErrorSpace::AR_UNAVAILABLE_DEVICE_NOT_COMPATIBLE: .
12-08 08:16:47.619 24742-24789/com.google.ar.sceneform.samples.hellosceneform V/third_party/redwood/base/jni_common/jni_helper.cc: ~JniHelper: about to detach thread. (Called from line 189.)
    ~JniHelper: detached thread. (Called from line 189.)
12-08 08:16:47.622 24742-24742/com.google.ar.sceneform.samples.hellosceneform E/StandardArFragment: Error: This device does not support AR
    com.google.ar.core.exceptions.UnavailableDeviceNotCompatibleException
        at com.google.ar.core.P.b(Unknown Source:2)
        at com.google.ar.core.Session.throwExceptionFromArStatus(Unknown Source:14)
        at com.google.ar.core.Session.nativeCreateSession(Native Method)
        at com.google.ar.core.Session.<init>(Unknown Source:21)
        at com.google.ar.sceneform.ux.BaseArFragment.initializeSession(BaseArFragment.java:329)
        at com.google.ar.sceneform.ux.BaseArFragment.onResume(BaseArFragment.java:297)
        at android.support.v4.app.Fragment.performResume(Fragment.java:2390)
        at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1474)
        at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1759)
        at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1827)
        at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3244)
        at android.support.v4.app.FragmentManagerImpl.dispatchResume(FragmentManager.java:3212)
        at android.support.v4.app.FragmentController.dispatchResume(FragmentController.java:217)
        at android.support.v4.app.FragmentActivity.onResumeFragments(FragmentActivity.java:509)
        at android.support.v4.app.FragmentActivity.onPostResume(FragmentActivity.java:498)
        at android.support.v7.app.AppCompatActivity.onPostResume(AppCompatActivity.java:171)
        at android.app.Activity.performResume(Activity.java:7473)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4125)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4198)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3320)
        at android.app.ActivityThread.-wrap12(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1901)
        at android.os.Handler.dispatchMessage(Handler.java:109)
        at android.os.Looper.loop(Looper.java:166)
        at android.app.ActivityThread.main(ActivityThread.java:7430)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
12-08 08:16:47.638 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/HwSecImmHelper: mSecurityInputMethodService is null
12-08 08:16:47.643 24742-24742/com.google.ar.sceneform.samples.hellosceneform I/hwaps: HwAps: JNI_OnLoad
12-08 08:16:47.645 24742-24742/com.google.ar.sceneform.samples.hellosceneform D/OpenGLRenderer:   HWUI Binary is  enabled
12-08 08:16:47.646 24742-24790/com.google.ar.sceneform.samples.hellosceneform D/OpenGLRenderer: HWUI GL Pipeline
12-08 08:16:47.714 24742-24790/com.google.ar.sceneform.samples.hellosceneform I/OpenGLRenderer: Initialized EGL, version 1.4
12-08 08:16:47.714 24742-24790/com.google.ar.sceneform.samples.hellosceneform D/OpenGLRenderer: Swap behavior 2
12-08 08:16:47.718 24742-24790/com.google.ar.sceneform.samples.hellosceneform D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
12-08 08:16:47.754 24742-24790/com.google.ar.sceneform.samples.hellosceneform D/OpenGLRenderer:   HWUI Binary is  enabled
12-08 08:16:47.765 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/ViewRootImpl[Toast]: EGLdebug relayoutWindow Surface isSurface(name=null)  (appName =com.google.ar.sceneform.samples.hellosceneform) ( mSurfaceControllerIsValid =false) (mNativeObject  =0)/@0x4258fb7,viewVisibility is0
12-08 08:16:47.773 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/ViewRootImpl[Toast]: EGLdebug relayoutWindow Surface isSurface(name=null)  (appName =com.google.ar.sceneform.samples.hellosceneform) ( mSurfaceControllerIsValid =true) (mNativeObject  =7ac8857000)/@0x4258fb7,relayoutResult is7
12-08 08:16:47.774 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/ViewRootImpl[Toast]: EGLdebug Surface isSurface(name=null)  (appName =com.google.ar.sceneform.samples.hellosceneform) ( mSurfaceControllerIsValid =true) (mNativeObject  =7ac8857000)/@0x4258fb7
12-08 08:16:47.777 24742-24790/com.google.ar.sceneform.samples.hellosceneform D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
12-08 08:16:47.777 24742-24790/com.google.ar.sceneform.samples.hellosceneform D/OpenGLRenderer:   HWUI Binary is  enabled
12-08 08:16:47.778 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/InputMethodManager: startInputReason = 1
12-08 08:16:47.811 24742-24790/com.google.ar.sceneform.samples.hellosceneform W/libEGL: EGLNativeWindowType 0x7ac89ff010 disconnect failed
12-08 08:16:47.811 24742-24790/com.google.ar.sceneform.samples.hellosceneform D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
12-08 08:16:47.837 24742-24790/com.google.ar.sceneform.samples.hellosceneform D/OpenGLRenderer:   HWUI Binary is  enabled
12-08 08:16:47.837 24742-24742/com.google.ar.sceneform.samples.hellosceneform W/InputMethodManager: startInputReason = 5
12-08 08:16:47.989 24742-24747/com.google.ar.sceneform.samples.hellosceneform I/zygote64: Do partial code cache collection, code=30KB, data=28KB
12-08 08:16:47.990 24742-24747/com.google.ar.sceneform.samples.hellosceneform I/zygote64: After code cache collection, code=30KB, data=28KB
    Increasing code cache capacity to 128KB
12-08 08:16:48.880 24742-24747/com.google.ar.sceneform.samples.hellosceneform I/zygote64: Do partial code cache collection, code=56KB, data=58KB
    After code cache collection, code=56KB, data=58KB
    Increasing code cache capacity to 256KB
12-08 08:16:48.881 24742-24747/com.google.ar.sceneform.samples.hellosceneform I/zygote64: Compiler allocated 6MB to compile void android.view.ViewRootImpl.performTraversals()
12-08 08:16:49.960 24742-24747/com.google.ar.sceneform.samples.hellosceneform I/zygote64: Do full code cache collection, code=125KB, data=99KB
12-08 08:16:49.961 24742-24747/com.google.ar.sceneform.samples.hellosceneform I/zygote64: After code cache collection, code=101KB, data=72KB
12-08 08:16:51.150 24742-24790/com.google.ar.sceneform.samples.hellosceneform W/libEGL: EGLNativeWindowType 0x7ac8857010 disconnect failed
12-08 08:16:52.038 24742-24747/com.google.ar.sceneform.samples.hellosceneform I/zygote64: Do partial code cache collection, code=124KB, data=89KB
    After code cache collection, code=124KB, data=89KB
    Increasing code cache capacity to 512KB
inio commented 5 years ago

Sorry, should have read your original log more closely. Invalid Camera Type: -1 on a Huawei device tells me everything I need to know.

We'll look into this.

louisongbh commented 5 years ago

Hi, wish to know is this issue is being solved yet. Appreciate it for your help. Really hope that I am able to develop AR applications on my current available devices

devbridie commented 3 years ago

The Nova 3 should be supported now-- if you're still encountering problems, feel free to open up a new issue.