Log in or register to post comments

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

September 8, 2017 - 2:56am #1

Hi all,

I'm trying to get my first Unity+Vuforia app (the getting started example, really) to work on Android. When I try the app in the Unity player on my computer, everything works fine. However, when I deploy to Android (Galaxy S8), I get the 'Made with Unity' splash, then a black screen, and after a few seconds the app crashes.

 

I'm using Unity 2017.2.0b10 with the bundled Vuforia (6.5.17). No idea where to start looking for a fix, but I'm attaching the logcat output that seems relevant in case that's helpful.

Any insight much appreciated!

09-08 12:26:38.273 23612 23628 D Vuforia : Initializing Vuforia...

09-08 12:26:38.273 23612 23628 I System.out: Native library libVuforia.so loaded

09-08 12:26:38.293 23612 23628 I AR      : Vuforia selected rendering API OpenGL ES 3.x

09-08 12:26:38.293 23612 23628 I AR      : Vuforia SDK version 6.5.17

09-08 12:26:38.297  3717  4936 W NetworkIdentity: Active mobile network without subscriber!

09-08 12:26:38.301  3717  3846 W NetworkIdentity: Active mobile network without subscriber!

09-08 12:26:38.308 23612 23692 I System.out: (HTTPLog)-Static: isSBSettingEnabled false

09-08 12:26:38.308 23612 23692 I System.out: (HTTPLog)-Static: isSBSettingEnabled false

09-08 12:26:38.309  3369  3822 D EnterpriseController: netId is 0

09-08 12:26:38.309  3369  3822 D Netd    : getNetworkForDns: using netid 506 for uid 10202

09-08 12:26:38.310  3369  3822 D DnsProxyListener: DNSDBG::dns addrinfo af 0

09-08 12:26:38.314  3717  4950 W NetworkIdentity: Active mobile network without subscriber!

09-08 12:26:38.324 23612 23612 I tango_client_api: TangoErrorType TangoService_setBinder(void*, void*): Passing back the binder on the client end...

09-08 12:26:38.325 23612 23612 I ndk_camera: Starting native camera system initialization.

09-08 12:26:38.329 23612 23612 D ndk_camera: Camera 0 has 83 metadata tags

09-08 12:26:38.329 23612 23612 E ACameraMetadata: getConstEntry: cannot find metadata tag 851980

09-08 12:26:38.329 23612 23612 W ndk_camera: Failed to get metadata tag 851980 for camera 0 with error code -10004

09-08 12:26:38.329 23612 23612 E ACameraMetadata: getConstEntry: cannot find metadata tag 1310721

09-08 12:26:38.329 23612 23612 W ndk_camera: Failed to get metadata tag 1310721 for camera 0 with error code -10004

09-08 12:26:38.329 23612 23612 E ACameraMetadata: getConstEntry: cannot find metadata tag 1638401

09-08 12:26:38.329 23612 23612 W ndk_camera: Failed to get metadata tag 1638401 for camera 0 with error code -10004

09-08 12:26:38.330 23612 23612 D ndk_camera: Camera 1 has 81 metadata tags

09-08 12:26:38.330 23612 23612 E ACameraMetadata: getConstEntry: cannot find metadata tag 851980

09-08 12:26:38.330 23612 23612 W ndk_camera: Failed to get metadata tag 851980 for camera 1 with error code -10004

09-08 12:26:38.331 23612 23612 E ACameraMetadata: getConstEntry: cannot find metadata tag 1310721

09-08 12:26:38.331 23612 23612 W ndk_camera: Failed to get metadata tag 1310721 for camera 1 with error code -10004

09-08 12:26:38.331 23612 23612 E ACameraMetadata: getConstEntry: cannot find metadata tag 1638401

09-08 12:26:38.331 23612 23612 W ndk_camera: Failed to get metadata tag 1638401 for camera 1 with error code -10004

09-08 12:26:38.331 23612 23612 I ndk_camera: Camera system initialized successfully with 2 cameras.

09-08 12:26:38.331 23612 23612 E tango_camera_native: 2 is not a valid camera index.

09-08 12:26:38.331 23612 23612 E tango_camera_native: 3 is not a valid camera index.

09-08 12:26:38.332 23612 23612 F libc    : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x6e756857 in tid 23612 (.hannu.vufotest)

09-08 12:26:38.333  3129  3129 W         : debuggerd: handling request: pid=23612 uid=10202 gid=10202 tid=23612

09-08 12:26:38.350  3331  3331 E audit   : type=1400 audit(1504862798.345:419): avc:  denied  { search } for  pid=23698 comm="debuggerd" name="com.google.tango" dev="dm-1" ino=1246155 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 SEPF_SECMOBILE_7.0_0009 audit_filtered

09-08 12:26:38.350  3331  3331 E audit   : type=1300 audit(1504862798.345:419): arch=40000028 syscall=322 per=8 success=no exit=-13 a0=ffffff9c a1=f5ff32d0 a2=20000 a3=0 items=0 ppid=3129 pid=23698 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="debuggerd" exe="/system/bin/debuggerd" subj=u:r:debuggerd:s0 key=(null)

09-08 12:26:38.351  3331  3331 E audit   : type=1327 audit(1504862798.345:419): proctitle="/system/bin/debuggerd"

09-08 12:26:38.447 23698 23698 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

09-08 12:26:38.448 23698 23698 F DEBUG   : Build fingerprint: 'samsung/dreamltexx/dreamlte:7.0/NRD90M/G950FXXU1AQH3:user/release-keys'

09-08 12:26:38.448 23698 23698 F DEBUG   : Revision: '10'

09-08 12:26:38.448 23698 23698 F DEBUG   : ABI: 'arm'

09-08 12:26:38.449 23698 23698 F DEBUG   : pid: 23612, tid: 23612, name: .hannu.vufotest  >>> com.hannu.vufotest <<<

09-08 12:26:38.449 23698 23698 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6e756857

09-08 12:26:38.449 23698 23698 F DEBUG   :     r0 6e756863  r1 00000001  r2 00000000  r3 0000000b

09-08 12:26:38.449 23698 23698 F DEBUG   :     r4 ff869b2c  r5 6e756863  r6 c27db51c  r7 ff869b2c

09-08 12:26:38.449 23698 23698 F DEBUG   :     r8 00000000  r9 ff869b84  sl 00000000  fp ff869e24

09-08 12:26:38.450 23698 23698 F DEBUG   :     ip ec7861e0  sp ff869ae0  lr ec769807  pc ed5ea644  cpsr 240f1830

09-08 12:26:38.453 23698 23698 F DEBUG   :

09-08 12:26:38.453 23698 23698 F DEBUG   : backtrace:

09-08 12:26:38.454 23698 23698 F DEBUG   :     #00 pc 0000d644  /system/lib/libutils.so (_ZNK7android8String164sizeEv+7)

09-08 12:26:38.454 23698 23698 F DEBUG   :     #01 pc 000003d0  /data/data/com.google.tango/libfiles/armeabi-v7a/libtango_client_api.so (offset 0xa9000)

09-08 12:26:38.942  3354  3539 I AudioFlinger: BUFFER TIMEOUT: remove(4097) from active list on thread 0xf3b033c0

09-08 12:26:38.942  3354  3539 I SoundAlive_Interface: [ -205764864 ][ 48000 ]FlushBuffers()

09-08 12:26:38.942  3354  3539 I SoundAlive_Core: [ -205764864 ][ 48000 ](interface-API)FlushBuffers()

09-08 12:26:38.942  3354  3539 D SoundAlive_Core: [ -205764864 ][ 48000 ](internal-API)ReOpen( ConfigMode : 1 )

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]Init() nch : 2  bitdepth : 0

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]SamplingRateConfig() SamplingRate : 48000

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]OutDevConfig() OutDevConfig : 1

09-08 12:26:38.942  3354  3539 D SoundAlive_Core: [ -205764864 ][ 48000 ](internal-API)Set_Current_Effect_Configuration( ConfigMode : 1 )

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]Set_Preset() : 0

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]Set_User_BWE() 0

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]Set_User_CH() : 0

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]Set_SquareUI() : 4 , 4

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]Set_User_3D() : 0

09-08 12:26:38.942  3354  3539 I SoundAlive_Effect: [ -205764864 ][ 48000 ]Set_User_BE() : 0

09-08 12:26:38.942  3354  3539 I SoundBoosterEffectPlus: SB_reset SoundBooster sessionId(-3)

09-08 12:26:38.942  3354  3539 I SoundBooster8: BuffClear()

09-08 12:26:38.956  3354  3443 I APM_AudioPolicyManager: stopOutput() output 13, stream 3, session 721

09-08 12:26:38.957  3354  3443 I APM_AudioPolicyManager: write_logging() type(2) device(0x2) time(3) volume(7)

09-08 12:26:39.351  3717  4011 D WifiStateMachine: Current network is: "panoulu" , ID is: 0

09-08 12:26:39.351  3717  4011 D WifiStateMachine: Current network is still qualified due to heavy traffic, txSuccessRate=6.700439453125 rxSuccessRate=11.363525390625

09-08 12:26:39.351  3717  4011 D WifiStateMachine: Current network is 5GHz, bail out...

09-08 12:26:39.971  3331  3331 E audit   : type=1400 audit(1504862799.965:420): avc:  denied  { search } for  pid=23698 comm="debuggerd" name="com.google.tango" dev="dm-1" ino=1246155 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 SEPF_SECMOBILE_7.0_0009 audit_filtered

09-08 12:26:39.971  3331  3331 E audit   : type=1300 audit(1504862799.965:420): arch=40000028 syscall=322 per=8 success=no exit=-13 a0=ffffff9c a1=f5ff32d0 a2=20000 a3=0 items=0 ppid=3129 pid=23698 auid=4294967295 uid=1045 gid=1045 euid=1045 suid=1045 fsuid=1045 egid=1045 sgid=1045 fsgid=1045 tty=(none) ses=4294967295 comm="debuggerd" exe="/system/bin/debuggerd" subj=u:r:debuggerd:s0 key=(null)

09-08 12:26:39.971  3331  3331 E audit   : type=1327 audit(1504862799.965:420): proctitle="/system/bin/debuggerd"

09-08 12:26:40.055 23698 23698 E         : ro.debug_level = 0x4f4c

09-08 12:26:40.055 23698 23698 E         : sys.mobilecare.preload = false

09-08 12:26:40.057  3331  3331 E audit   : type=1701 audit(1504862800.053:421): auid=4294967295 uid=10202 gid=10202 ses=4294967295 subj=u:r:untrusted_app:s0:c512,c768 pid=23612 comm=".hannu.vufotest" exe="/system/bin/app_process32" sig=11

09-08 12:26:40.059  3717 23699 W ActivityManager:   Force finishing activity com.hannu.vufotest/com.unity3d.player.UnityPlayerActivity

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

November 3, 2017 - 8:51am #11

There are known issues with trying to use Vuforia with ARCore. Vuforia Fusion will address this in future versions. Refer to the Home page for more information on Fusion: https://developer.vuforia.com/

Thanks,

-Vuforia Support

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

November 2, 2017 - 9:21pm #10

Maybe crashed broke out between ARCore and vuforia.

If don't install ARCore, don't have any problems.

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

October 30, 2017 - 8:50pm #9

Why install ARcore?

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

September 26, 2017 - 7:45pm #8

I'm having the same issue.

Did you find any fix yet? thanks.

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

September 13, 2017 - 5:23am #7

Yes,

I have ARCore installed (but not in this simple Vuforia Test project)

Log attached

AttachmentSize
Plain text icon vuforia_GalaxyS8_log.txt29.65 KB

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

September 13, 2017 - 4:48am #6

Thanks everyone for replying!

Yes, ARCore is installed. The project is just one image target with a cube as the 3D object, really simple stuff.

I've since tried deploying on multiple Android phones of different makes and models, and the app runs on everything but the Galaxy S8. Very weird, but here's hoping future updates will fix the S8 issue!

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

September 12, 2017 - 9:14pm #5

Do you have ARCore installed? 

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

September 12, 2017 - 8:54am #4


Hi DirkH,

Do you see any crash logs in ADB when this happens? If so, could you share them with me please?

Thanks,

-Vuforia Support

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

September 12, 2017 - 8:12am #3

Hi I have the same problem with my Galaxy S8 (Android 7.0) and Unity 2017 .2.09b. Crash after splash screen with a basic scene: one image and one standard cube as a child.

It works in the editor and the webcam and on a Glaxy Note 4 with Android 6.01

Black screen & app crash (Unity 2017.2.0b10 + Vuforia 6.5.17)

September 8, 2017 - 3:06pm #2


Hello hkukka,

Did you load the 6.2.10 samples from our web portal into your project? Or did you set your project up some other way? Have you tried building on iOS?

Thanks,

-Vuforia Support

Log in or register to post comments