Search Unity

Failure to Initialize! Your hardware does not support this application, sorry!

Discussion in 'Daydream' started by dyc081818, Jan 14, 2018.

  1. dyc081818

    dyc081818

    Joined:
    Oct 24, 2017
    Posts:
    3
    Hello

    I need to introduce a unity3d module into my VR project. The unity3d module also depends on the unity VR library. I run this project: "Failure to Initialize! Your hardware does not support this application, sorry!"

    I tried to remove VR dependency in the main project, and the program was normal. If there was a conflict between the Android VR library and the unity VR library, what should I do to solve it? Thank you

    android model: HuaWei honor8, Version: 7.1
    launch logs:
    Code (CSharp):
    1. 01-11 12:36:00.562 5831-5831/? I/art: Late-enabling -Xcheck:jni
    2. 01-11 12:36:00.562 5831-5831/? I/art: Reinit property: dalvik.vm.checkjni= false
    3. 01-11 12:36:00.572 5831-5831/com.gameobject.vr D/ActivityThread: ActivityThread,attachApplication
    4. 01-11 12:36:00.753 5831-5831/com.gameobject.vr I/InstantRun: starting instant run server: is main process
    5. 01-11 12:36:00.754 5831-5831/com.gameobject.vr V/InstantRun: Starting server socket listening for package com.gameobject.vr on android.net.LocalSocketAddress@f5f9bd8
    6. 01-11 12:36:00.754 5831-5831/com.gameobject.vr V/InstantRun: Started server for package com.gameobject.vr
    7. 01-11 12:36:00.776 5831-5831/com.gameobject.vr I/HwCust: Constructor found for class android.app.HwCustActivityImpl
    8. 01-11 12:36:00.776 5831-5831/com.gameobject.vr D/HwCust: Create obj success use class android.app.HwCustActivityImpl
    9. 01-11 12:36:00.779 5831-5831/com.gameobject.vr V/HwPolicyFactory: : success to get AllImpl object and return....
    10. 01-11 12:36:00.781 5831-5831/com.gameobject.vr I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
    11. 01-11 12:36:00.781 5831-5831/com.gameobject.vr D/HwCust: Create obj success use class android.app.HwCustHwWallpaperManagerImpl
    12. 01-11 12:36:00.785 5831-5831/com.gameobject.vr V/HwWidgetFactory: : successes to get AllImpl object and return....
    13. 01-11 12:36:00.787 5831-5831/com.gameobject.vr V/ActivityThread: ActivityThread,callActivityOnCreate
    14. 01-11 12:36:00.801 5831-5831/com.gameobject.vr E/Unity: Unable to find main
    15. 01-11 12:36:00.820 5831-5831/com.gameobject.vr D/HwSensorManager: HwSensorManager version: 1.0.0
    16. 01-11 12:36:00.841 5831-5831/com.gameobject.vr D/CubicBezierInterpolator: CubicBezierInterpolator  mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
    17. 01-11 12:36:00.842 5831-5831/com.gameobject.vr D/CubicBezierInterpolator: CubicBezierInterpolator  mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
    18. 01-11 12:36:00.842 5831-5831/com.gameobject.vr D/CubicBezierInterpolator: CubicBezierInterpolator  mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
    19. 01-11 12:36:00.842 5831-5831/com.gameobject.vr D/CubicBezierInterpolator: CubicBezierInterpolator  mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
    20. 01-11 12:36:00.848 5831-5831/com.gameobject.vr D/CubicBezierInterpolator: CubicBezierInterpolator  mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
    21. 01-11 12:36:00.849 5831-5831/com.gameobject.vr D/CubicBezierInterpolator: CubicBezierInterpolator  mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
    22. 01-11 12:36:00.849 5831-5831/com.gameobject.vr D/CubicBezierInterpolator: CubicBezierInterpolator  mControlPoint1x = 0.23, mControlPoint1y = 0.06, mControlPoint2x = 0.09, mControlPoint2y = 0.97
    23. 01-11 12:36:00.849 5831-5831/com.gameobject.vr D/CubicBezierInterpolator: CubicBezierInterpolator  mControlPoint1x = 0.6, mControlPoint1y = 0.9, mControlPoint2x = 0.8, mControlPoint2y = 1.0
    24. 01-11 12:36:00.857 5831-5831/com.gameobject.vr D/HwRTBlurUtils: check blur style for HwPhoneWindow-, themeResId : 0x010302d7, context : android.view.ContextThemeWrapper@5a66fb4, Nhwext : 0, get Blur : disable with , null
    25. 01-11 12:36:00.866 5831-5831/com.gameobject.vr I/HwPointEventFilter: do not support AFT because of no config
    26. 01-11 12:36:00.881 5831-5831/com.gameobject.vr D/HwRTBlurUtils: check blur style for HwPhoneWindow-, themeResId : 0x7f070004, context : com.gameobject.vr.UnityPlayerActivity@ba7ee9e, Nhwext : 0, get Blur : disable with , null
    27. 01-11 12:36:00.881 5831-5831/com.gameobject.vr D/HwRTBlurUtils: check blur style for HwPhoneWindow-, themeResId : 0x7f070004, context : com.gameobject.vr.UnityPlayerActivity@ba7ee9e, Nhwext : 0, get Blur : disable with , null
    28. 01-11 12:36:00.882 5831-5831/com.gameobject.vr D/ActivityThread: add activity client record, r= ActivityRecord{d68ed7f token=android.os.BinderProxy@487f797 {com.gameobject.vr/com.gameobject.vr.UnityPlayerActivity}} token= android.os.BinderProxy@487f797
    29. 01-11 12:36:00.889 5831-5831/com.gameobject.vr I/HwPointEventFilter: do not support AFT because of no config
    30. 01-11 12:36:00.894 5831-5831/com.gameobject.vr I/ActivityManager_activity: Resuming ActivityRecord{d68ed7f token=android.os.BinderProxy@487f797 {com.gameobject.vr/com.gameobject.vr.UnityPlayerActivity}} with isForward=true,forwardBitChanged=false onlyLocalRequest=false
    31. 01-11 12:36:00.928 5831-5858/com.gameobject.vr I/OpenGLRenderer: Initialized EGL, version 1.4
    32. 01-11 12:36:00.928 5831-5858/com.gameobject.vr D/OpenGLRenderer: Swap behavior 1
    33. 01-11 12:36:00.936 5831-5858/com.gameobject.vr W/linker: /vendor/lib64/libhwuibp.so: unused DT entry: type 0xf arg 0xe3a
    34. 01-11 12:36:00.937 5831-5858/com.gameobject.vr D/OpenGLRenderer: loaded so path=libhwuibp.so handle=0x3a675548d769b4f5
    35. 01-11 12:36:00.940 5831-5858/com.gameobject.vr D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
    36. 01-11 12:36:00.959 5831-5858/com.gameobject.vr D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
    37. 01-11 12:36:00.972 5831-5858/com.gameobject.vr E/OpenGLRenderer: allen debug liyu Key: 240518168576
    38. 01-11 12:36:00.975 5831-5858/com.gameobject.vr E/OpenGLRenderer: allen debug liyu Key: 8864812498944
    39. 01-11 12:36:00.975 5831-5858/com.gameobject.vr D/HwuiUseBinaryProgram: Key: 8864812498944 has not found in mBinaryEntries, Compile it.
    40. 01-11 12:36:00.976 5831-5858/com.gameobject.vr E/OpenGLRenderer: allen debug liyu Key: 8830452760579
    41. 01-11 12:36:00.976 5831-5858/com.gameobject.vr D/HwuiUseBinaryProgram: Key: 8830452760579 has not found in mBinaryEntries, Compile it.
    42. 01-11 12:36:00.991 5831-5858/com.gameobject.vr E/OpenGLRenderer: allen debug liyu Key: 0
    43. 01-11 12:36:01.005 5831-5831/com.gameobject.vr I/ActivityManager_activity: Reporting idle of ActivityRecord{d68ed7f token=android.os.BinderProxy@487f797 {com.gameobject.vr/com.gameobject.vr.UnityPlayerActivity}} finished=false

    The APP displays the dialog: Failure to Initialize! Your hardware does not support this application, sorry! Click OK to exit APP
    Code (CSharp):
    1. 01-11 12:49:50.121 5831-5831/com.gameobject.vr I/hwaps: JNI_OnLoad
    2. 01-11 12:49:50.215 5831-5831/com.gameobject.vr V/AudioManager: playSoundEffect   effectType: 0
    3. 01-11 12:49:50.215 5831-5831/com.gameobject.vr V/AudioManager: querySoundEffectsEnabled...
    4. 01-11 12:49:50.215 5831-5858/com.gameobject.vr E/OpenGLRenderer: allen debug liyu Key: 68719476736
    5. 01-11 12:49:50.307 5831-5858/com.gameobject.vr E/OpenGLRenderer: allen debug liyu Key: 8899177480260
    6. 01-11 12:49:50.307 5831-5858/com.gameobject.vr D/HwuiUseBinaryProgram: Key: 8899177480260 has not found in mBinaryEntries, Compile it.
    7. 01-11 12:49:50.328 5831-5858/com.gameobject.vr E/OpenGLRenderer: allen debug liyu Key: 103084458052
    8. 01-11 12:49:52.575 5831-5831/com.gameobject.vr W/Unity: Not running Google VR from an Activity; Ignoring execution request...
    9. 01-11 12:49:52.577 5831-5831/com.gameobject.vr D/AndroidRuntime: Shutting down VM
    10. 01-11 12:49:52.579 5831-5831/com.gameobject.vr E/AndroidRuntime: FATAL EXCEPTION: main
    11.                                                                  Process: com.gameobject.vr, PID: 5831
    12.                                                                  java.lang.Error: FATAL EXCEPTION [main]
    13.                                                                  Unity version     : 5.6.5f1
    14.                                                                  Device model      : HUAWEI PRA-AL00
    15.                                                                  Device fingerprint: HONOR/PRA-AL00/HWPRA-H:7.0/HONORPRA-AL00/C00B183:user/release-keys
    16.                                                                
    17.                                                                  Caused by: java.lang.RuntimeException: Unable to destroy activity {com.gameobject.vr/com.gameobject.vr.UnityPlayerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Handler.sendMessage(android.os.Message)' on a null object reference
    18.                                                                      at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4398)
    19.                                                                      at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4417)
    20.                                                                      at android.app.ActivityThread.-wrap6(ActivityThread.java)
    21.                                                                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1629)
    22.                                                                      at android.os.Handler.dispatchMessage(Handler.java:105)
    23.                                                                      at android.os.Looper.loop(Looper.java:156)
    24.                                                                      at android.app.ActivityThread.main(ActivityThread.java:6523)
    25.                                                                      at java.lang.reflect.Method.invoke(Native Method)
    26.                                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
    27.                                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
    28.                                                                   Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.os.Handler.sendMessage(android.os.Message)' on a null object reference
    29.                                                                      at android.os.Message.sendToTarget(Message.java:421)
    30.                                                                      at com.unity3d.player.UnityPlayer$c.a(Unknown Source)
    31.                                                                      at com.unity3d.player.UnityPlayer$c.a(Unknown Source)
    32.                                                                      at com.unity3d.player.UnityPlayer.quit(Unknown Source)
    33.                                                                      at com.gameobject.vr.UnityPlayerActivity.onDestroy(UnityPlayerActivity.java:44)
    34.                                                                      at android.app.Activity.performDestroy(Activity.java:7136)
    35.                                                                      at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1158)
    36.                                                                      at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4385)
    37.                                                                      at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4417)
    38.                                                                      at android.app.ActivityThread.-wrap6(ActivityThread.java)
    39.                                                                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1629)
    40.                                                                      at android.os.Handler.dispatchMessage(Handler.java:105)
    41.                                                                      at android.os.Looper.loop(Looper.java:156)
    42.                                                                      at android.app.ActivityThread.main(ActivityThread.java:6523)
    43.                                                                      at java.lang.reflect.Method.invoke(Native Method)
    44.                                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
    45.                                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)

    gradle config:
    Code (CSharp):
    1. apply plugin: 'com.android.application'
    2. // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
    3. buildscript {
    4.     repositories {
    5.         jcenter()
    6.         google()
    7.     }
    8.  
    9.     dependencies {
    10.         classpath 'com.android.tools.build:gradle:3.0.0'
    11.     }
    12. }
    13.  
    14. allprojects {
    15.    repositories {
    16.        jcenter()
    17.        google()
    18.        maven { url "https://jitpack.io" }
    19.       flatDir {
    20.         dirs 'libs'
    21.       }
    22.    }
    23. }
    24.  
    25. dependencies {
    26.     compile fileTree(dir: 'libs', include: ['*.jar'])
    27.     /* Google VR */
    28.     implementation 'com.google.vr:sdk-panowidget:1.101.0'
    29.     implementation 'com.google.vr:sdk-videowidget:1.101.0'
    30. }
    31.  
    32. android {
    33.     compileSdkVersion 25
    34.     buildToolsVersion '26.0.2'
    35.  
    36.     defaultConfig {
    37.         targetSdkVersion 25
    38.         applicationId 'com.gameobject.vr'
    39.     }
    40.  
    41.     lintOptions {
    42.         abortOnError false
    43.     }
    44.  
    45.     aaptOptions {
    46.         noCompress '.unity3d', '.ress', '.resource', '.obb'
    47.     }
    48.  
    49.  
    50.     buildTypes {
    51.         debug {
    52.             jniDebuggable true
    53.         }
    54.         release {
    55.             // Set minifyEnabled to true if you want to run ProGuard on your project
    56.             minifyEnabled false
    57.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'
    58.            
    59.         }
    60.     }
    61.  
    62. }

    Before I think it is Android gvr and unity gvr conflict problem, After I tried removing unity gvr, the project is still not working properly, I continue to try to remove Android gvr, the project is normal,I now doubt the problem between Android gvr and unity,I do not know what to do? thanks for your help
     
  2. dyc081818

    dyc081818

    Joined:
    Oct 24, 2017
    Posts:
    3
  3. jemyrovijent

    jemyrovijent

    Joined:
    Oct 14, 2019
    Posts:
    1