tomthecarrot / arcore-for-all

Google ARCore (dev preview 1) for "unsupported" Android devices
GNU General Public License v3.0
1.04k stars 145 forks source link

Blank Camera on Nexus 6 #20

Open phillipcutter opened 6 years ago

phillipcutter commented 6 years ago

When building the APK and running it on my Nexus 6 through Android Studio, it says "Tango Core has stopped". When I tap outside of that box, the app seems to run fine however the box where the camera should be is blank. What's interesting is that there aren't any crashes in the logs (as far as I can tell).

System specs: Device: Motorola Nexus 6 OS Version: 7.1.1 Stock Android

Video (Sorry for Dropbox link)

Logcat

By the way, thanks for sharing your work and having dedication to get it to work on more devices.

Edit: I installed the modified ARCore Service APK instead of Google's and it produced the same output (logs).

khursani8 commented 6 years ago

@mrfleap Are you using http://tomthecarrot.com/projects/arcore-for-all/arcore-preview-modified.apk for arcore-preview? I stop getting "Tango Core has stopped" after using this apk

tomthecarrot commented 6 years ago

Thank you for your kind words and logging! I am noticing a pattern with some devices: the Tango library refuses to check the Vulkan layer search path. I'm not too familiar with Vulkan, but it looks like an essential shared object isn't being loaded.

ApplicationLoaders: ignored Vulkan layer search path /data/app/com.google.tango-2/lib/arm:/system/fake-libs:/data/app/com.google.tango-2/base.apk!/lib/armeabi-v7a for namespace 0xab52d090

7 #13 #18 have the same issue.

tomthecarrot commented 6 years ago

@khursani8 great news! Is ARCore working on your device now?

phillipcutter commented 6 years ago

@khursani8 I was updating the post with the results as you commented, it seems it yields the same results on my device and still has the "Tango Core has stopped" prompt.

khursani8 commented 6 years ago

@tomthecarrot no, just that the error "Tango Core has stopped" not pop up anymore

tomthecarrot commented 6 years ago

@khursani8 Interesting. Do you have a log? Which device are you using?

At least it doesn't crash anymore. That's a good start :P

tomthecarrot commented 6 years ago

@mrfleap Thanks for the info. Your device seems to be running without a certain shared object that it needs. It's evident in the other issues I referenced above. If we can find a pattern for this Vulkan search path issue, it likely will help isolate the issue so we can develop another modification.

khursani8 commented 6 years ago

@tomthecarrot here is my log using Nexus 5 photo_2017-09-01_11-56-46

logcat.txt

tomthecarrot commented 6 years ago

@khursani8 Weird. I'm seeing the same type of Vulkan search path log in your device's output, but it doesn't crash the service like it does for @mrfleap: ApplicationLoaders: ignored Vulkan layer search path /mnt/asec/com.google.tango-1/lib/arm for namespace 0xb2a62090

Additionally, there are Unity errors that indicate missing libraries. Does the regular, unmodified Google ARCore sample app work (with the modified service I built)?

phillipcutter commented 6 years ago

If it helps here is the "Phone status" screen on my device:

device-2017-08-31-210242

tomthecarrot commented 6 years ago

@mrfleap Oh, I thought this was a Nexus 5. Can you confirm the issue title?

phillipcutter commented 6 years ago

Oh dang, sorry I get these confused. This is a Nexus 6. Sorry.

tomthecarrot commented 6 years ago

@mrfleap No worries. Thanks for confirming. The differences in device behavior make more sense now ;)

khursani8 commented 6 years ago

@tomthecarrot want me to create a new issue for Nexus 5?

tomthecarrot commented 6 years ago

@khursani8 That would be great. Thank you!

Thaina commented 6 years ago

I use Nexus 6 too and wish I can heard a good news sometimes

mudassirzulfiqar commented 6 years ago

got errors on nexus 6

09-06 02:09:44.458 11754-11825/? I/Adreno: QUALCOMM build : a5b4970, If5818605d9 Build Date : 10/12/16 OpenGL ES Shader Compiler Version: XE031.09.00.04 Local Branch : N24D Remote Branch : Remote Branch : Reconstruct Branch : 09-06 02:09:44.477 11754-11825/? I/OpenGLRenderer: Initialized EGL, version 1.4 09-06 02:09:44.477 11754-11825/? D/OpenGLRenderer: Swap behavior 1 09-06 02:09:46.049 11754-11761/? I/art: Ignoring second debugger -- accepting and dropping 09-06 02:09:47.354 11754-11754/? E/SupportedDevices: Device calibration unavailable. Just kidding! ;) 09-06 02:09:47.364 11754-11754/? I/TangoClientLibLoader: Pure Java path, not loading libtango_client_api.so at all. 09-06 02:09:47.375 11754-11754/? D/ApplicationLoaders: ignored Vulkan layer search path /data/app/com.google.tango-2/lib/arm:/system/fake-libs:/data/app/com.google.tango-2/base.apk!/lib/armeabi-v7a for namespace 0x9e45a090 09-06 02:09:47.387 11754-11754/? I/ndk_camera: Starting native camera system initialization. 09-06 02:09:47.389 11754-11754/? D/ndk_camera: Camera 0 has 82 metadata tags 09-06 02:09:47.389 11754-11754/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 1310721 09-06 02:09:47.389 11754-11754/? W/ndk_camera: Failed to get metadata tag 1310721 for camera 0 with error code -10004 09-06 02:09:47.389 11754-11754/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 851977 09-06 02:09:47.389 11754-11754/? W/ndk_camera: Failed to get metadata tag 851977 for camera 0 with error code -10004 09-06 02:09:47.389 11754-11754/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 1638401 09-06 02:09:47.389 11754-11754/? W/ndk_camera: Failed to get metadata tag 1638401 for camera 0 with error code -10004 09-06 02:09:47.390 11754-11754/? D/ndk_camera: Camera 1 has 81 metadata tags 09-06 02:09:47.390 11754-11754/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 1310721 09-06 02:09:47.390 11754-11754/? W/ndk_camera: Failed to get metadata tag 1310721 for camera 1 with error code -10004 09-06 02:09:47.390 11754-11754/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 851977 09-06 02:09:47.390 11754-11754/? W/ndk_camera: Failed to get metadata tag 851977 for camera 1 with error code -10004 09-06 02:09:47.390 11754-11754/? E/ACameraMetadata: getConstEntry: cannot find metadata tag 1638401 09-06 02:09:47.390 11754-11754/? W/ndk_camera: Failed to get metadata tag 1638401 for camera 1 with error code -10004 09-06 02:09:47.390 11754-11754/? I/ndk_camera: Camera system initialized successfully with 2 cameras. 09-06 02:09:47.390 11754-11754/? W/tango_camera_native_jni: Camera system initilized. 09-06 02:09:47.390 11754-11754/? E/tango_camera_native: 2 is not a valid camera index. 09-06 02:09:47.390 11754-11754/? E/tango_camera_native: 3 is not a valid camera index. 09-06 02:09:47.395 11754-11754/? I/tango_camera_native_jni: Attaching texture_window 0xa41b3808 09-06 02:09:47.396 11754-11754/? D/TangoVhs: about to bind as vhs 09-06 02:09:47.409 11754-11754/? D/TangoVhs: finished bind as vhs 09-06 02:09:48.278 11754-11754/? I/Choreographer: Skipped 50 frames! The application may be doing too much work on its main thread.