- Home /
Facebook Login restarts app on android
Hi! I am developing a game in Unity 4.5.0f6, and recently added FB integration. I downloaded the FB SDK from the asset store, and when I try to call FB.Login() on an android device, the app restarts.
I do get the authentication dialog in the editor without problems. On the android device, the app doesn't crash if not connected to the internet (it just shows "conneciton lost: retry/cancel" dialog in that case). But when I connect to the internet and try to login, the app crashes. Following is the logcat output for the application (I filtered the lines matching "Unity"). The log looks pretty arcane to me, so I would appreciate if anyone could help me. Thanks in advance!
E/NativeActivity(13265): channel '418c58b8 com.acstudios/com.unity3d.player.UnityPlayerNativeActivity (client)' ~ Failed
to receive dispatch signal. status=-11
E/NativeActivity(13265): channel '418c58b8 com.acstudios/com.unity3d.player.UnityPlayerNativeActivity (client)' ~ Failed
to receive dispatch signal. status=-11
E/NativeActivity(13265): channel '418c58b8 com.acstudios/com.unity3d.player.UnityPlayerNativeActivity (client)' ~ Failed
to receive dispatch signal. status=-11
I/ActivityManager( 248): START {cmp=com.acstudios/com.facebook.unity.FBUnityLoginActivity (has extras)} from pid 13265
W/ActivityManager( 248): Activity pause timeout for ActivityRecord{414ec188 com.acstudios/com.unity3d.player.UnityPlaye
rNativeActivity}
D/FBUnitySDK(13265): KeyHash: ZNkBaRIRwKzLsX3PRobkPK7w89U=
E/ActivityManager( 248): 22% 13414/UnityMain: 20% user + 1.7% kernel
E/ActivityManager( 248): 1.7% 13439/UnityWorker: 1.7% user + 0% kernel
W/InputDispatcher( 248): channel '418406b8 com.acstudios/com.unity3d.player.UnityPlayerProxyActivity (server)' ~ Consum
er closed input channel or an error occurred. events=0x8
E/InputDispatcher( 248): channel '418406b8 com.acstudios/com.unity3d.player.UnityPlayerProxyActivity (server)' ~ Channe
l is unrecoverably broken and will be disposed!
W/ActivityManager( 248): Force removing ActivityRecord{4147f208 com.acstudios/com.facebook.unity.FBUnityLoginActivity}:
app died, no saved state
W/InputDispatcher( 248): Attempted to unregister already unregistered input channel '418406b8 com.acstudios/com.unity3d
.player.UnityPlayerProxyActivity (server)'
I/WindowManager( 248): WIN DEATH: Window{418406b8 com.acstudios/com.unity3d.player.UnityPlayerProxyActivity paused=fals
e}
I/WindowManager( 248): WIN DEATH: Window{418c58b8 com.acstudios/com.unity3d.player.UnityPlayerNativeActivity paused=fal
se}
W/ActivityManager( 248): Force removing ActivityRecord{414ec188 com.acstudios/com.unity3d.player.UnityPlayerNativeActiv
ity}: app died, no saved state
I/WindowManager( 248): WINDOW DIED Window{418406b8 com.acstudios/com.unity3d.player.UnityPlayerProxyActivity paused=fal
se}
I/ActivityManager( 248): Start proc com.acstudios for activity com.acstudios/com.unity3d.player.UnityPlayerProxyActivit
y: pid=13820 uid=10070 gids={3003, 1015}
I/ActivityManager( 248): START {flg=0x10000 cmp=com.acstudios/com.unity3d.player.UnityPlayerNativeActivity} from pid 13
820
I/ActivityManager( 248): Displayed com.acstudios/com.unity3d.player.UnityPlayerNativeActivity: +1s708ms (total +3s254ms
)
D/Unity (13820): GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_texture_fo
rmat_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL
_OES_depth24 GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragme
nt_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL
_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_O
ES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control
GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering G
L_QCOM_writeonly_rendering GL_AMD_compressed_3DC_texture GL_EXT_texture_filter_anisotropic GL_ANGLE_framebuffer_multisam
ple GL_ANGLE_framebuffer_blit
W/Unity (13820): The referenced script on this Behaviour is missing!
W/Unity (13820):
W/Unity (13820): (Filename: Line: 1633)
W/Unity (13820):
I/Unity (13820): Using SDK 5.0.3, Build 140124.4c900f79fb0ada4
I/Unity (13820):
I/Unity (13820): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
I/Unity (13820):
W/Unity (13820): Finished loading Facebook dll, but could not find version info
W/Unity (13820):
W/Unity (13820): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
W/Unity (13820):
D/FBUnitySDK(13820): KeyHash: ZNkBaRIRwKzLsX3PRobkPK7w89U=
V/FBUnitySDK(13820): sending to Unity OnInitComplete({"key_hash":"ZNkBaRIRwKzLsX3PRobkPK7w89U=\n"})
I/Unity (13820): Facebook Initialized.
I/Unity (13820):
I/Unity (13820): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
I/Unity (13820):
I/Unity (13820): Yo Init Complete
I/Unity (13820):
I/Unity (13820): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
I/Unity (13820):
W/ActivityManager( 248): Activity pause timeout for ActivityRecord{41928018 com.acstudios/com.unity3d.player.UnityPlaye
rNativeActivity}
E/NativeActivity(13820): channel '41a17b20 com.acstudios/com.unity3d.player.UnityPlayerNativeActivity (client)' ~ Failed
to receive dispatch signal. status=-11
E/NativeActivity(13820): channel '41a17b20 com.acstudios/com.unity3d.player.UnityPlayerNativeActivity (client)' ~ Failed
to receive dispatch signal. status=-11
I/ActivityManager( 248): START {cmp=com.acstudios/com.facebook.unity.FBUnityLoginActivity (has extras)} from pid 13820
W/ActivityManager( 248): Activity pause timeout for ActivityRecord{41928018 com.acstudios/com.unity3d.player.UnityPlaye
rNativeActivity}
D/FBUnitySDK(13820): KeyHash: ZNkBaRIRwKzLsX3PRobkPK7w89U=
W/ActivityManager( 248): Activity idle timeout for ActivityRecord{414711d8 com.acstudios/com.facebook.unity.FBUnityLogi
nActivity}
W/ActivityManager( 248): Activity pause timeout for ActivityRecord{414711d8 com.acstudios/com.facebook.unity.FBUnityLog
inActivity}
I/WindowManager( 248): WIN DEATH: Window{41a17b20 com.acstudios/com.unity3d.player.UnityPlayerNativeActivity paused=fal
se}
W/InputDispatcher( 248): channel '418e6bb8 com.acstudios/com.unity3d.player.UnityPlayerProxyActivity (server)' ~ Consum
er closed input channel or an error occurred. events=0x8
E/InputDispatcher( 248): channel '418e6bb8 com.acstudios/com.unity3d.player.UnityPlayerProxyActivity (server)' ~ Channe
l is unrecoverably broken and will be disposed!
W/ActivityManager( 248): Force removing ActivityRecord{414711d8 com.acstudios/com.facebook.unity.FBUnityLoginActivity}:
app died, no saved state
W/WindowManager( 248): Force-removing child win Window{415172b0 SurfaceView paused=false} from container Window{41a17b2
0 com.acstudios/com.unity3d.player.UnityPlayerNativeActivity paused=false}
W/InputDispatcher( 248): Attempted to unregister already unregistered input channel '418e6bb8 com.acstudios/com.unity3d
.player.UnityPlayerProxyActivity (server)'
I/WindowManager( 248): WIN DEATH: Window{418e6bb8 com.acstudios/com.unity3d.player.UnityPlayerProxyActivity paused=fals
e}
I/WindowManager( 248): WINDOW DIED Window{418e6bb8 com.acstudios/com.unity3d.player.UnityPlayerProxyActivity paused=fal
se}
W/ActivityManager( 248): Force removing ActivityRecord{41928018 com.acstudios/com.unity3d.player.UnityPlayerNativeActiv
ity}: app died, no saved state
I/ActivityManager( 248): Start proc com.acstudios for activity com.acstudios/com.unity3d.player.UnityPlayerProxyActivit
y: pid=14298 uid=10070 gids={3003, 1015}
I/ActivityManager( 248): START {flg=0x10000 cmp=com.acstudios/com.unity3d.player.UnityPlayerNativeActivity} from pid 14
298
I/ActivityManager( 248): Displayed com.acstudios/com.unity3d.player.UnityPlayerNativeActivity: +1s653ms (total +22s759m
s)
D/Unity (14298): GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_texture_fo
rmat_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL
_OES_depth24 GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragme
nt_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL
_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_O
ES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control
GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering G
L_QCOM_writeonly_rendering GL_AMD_compressed_3DC_texture GL_EXT_texture_filter_anisotropic GL_ANGLE_framebuffer_multisam
ple GL_ANGLE_framebuffer_blit
W/Unity (14298): The referenced script on this Behaviour is missing!
W/Unity (14298):
W/Unity (14298): (Filename: Line: 1633)
W/Unity (14298):
^C^C
C:\Users\Rae>
Comment