Mosy
1
I am making a game using the Google maintained Google Play Game Services plugin, the Tapjoy maintained Tapjoy plugin, and Prime[31]'s AdMob plugin. The game is mostly bug free, unless for what ever reason you don’t have an internet connection. In which case it crashes during initiation. I got the log from the crash, and the only problem that I can see is that TapjoyPlugin isn’t happy with GetTapPoints() being called if it didn’t give he connectSuccess signal, fair enough if it wasn’t called by TapjoyPlugin only upon connectSuccess. I also turned off the GameObjects with these functions on them and still got the crashing so I don’t think that is the problem. I am including the log incase someone can see something that I am missing.
01-23 23:14:21.006: I/ActivityManager(532): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.############.###/com.unity3d.player.UnityPlayerNativeActivity bnds=[173,34][290,151] (has extras)} from uid 10012 on display 0
01-23 23:14:21.052: I/ActivityManager(532): Start proc com.############.### for activity com.############.###/com.unity3d.player.UnityPlayerNativeActivity: pid=20622 uid=10079 gids={50079, 9997, 3003, 1028, 1015} abi=armeabi-v7a
01-23 23:14:21.550: I/ActivityManager(532): Displayed com.############.###/com.unity3d.player.UnityPlayerNativeActivity: +535ms
01-23 23:14:21.726: D/libEGL(20622): loaded /system/lib/egl/libEGL_tegra.so
01-23 23:14:21.744: D/libEGL(20622): loaded /system/lib/egl/libGLESv1_CM_tegra.so
01-23 23:14:21.782: D/libEGL(20622): loaded /system/lib/egl/libGLESv2_tegra.so
01-23 23:14:21.826: D/Unity(20622): GL_OES_rgb8_rgba8 GL_OES_EGL_sync GL_OES_fbo_render_mipmap GL_NV_depth_nonlinear GL_NV_draw_path GL_NV_texture_npot_2D_mipmap GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_vertex_half_float GL_OES_mapbuffer GL_NV_draw_buffers GL_NV_multiview_draw_buffers GL_EXT_Cg_shader GL_EXT_packed_float GL_OES_texture_half_float GL_EXT_texture_array GL_OES_compressed_ETC1_RGB8_texture GL_EXT_texture_compression_latc GL_NV_texture_compression_latc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_NV_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_NV_get_tex_image GL_NV_read_buffer GL_NV_shader_framebuffer_fetch GL_NV_copy_image GL_NV_fbo_color_attachments GL_EXT_bgra GL_EXT_texture_format_BGRA8888 GL_EXT_unpack_subimage GL_NV_pack_subimage GL_NV_texture_compression_s3tc_update GL_NV_read_depth GL_NV_read_stencil GL_NV_uniform_buffer_object GL_EXT_robustness GL_OES_standard_derivatives GL_NV_EGL_stream_consumer_external GL_NV_3dvision_settings GL_EXT_debug_marker GL_EXT_debug_label GL_NV_
01-23 23:14:21.826: D/Unity(20622): coverage_sample GL_EXT_occlusion_query_boolean GL_NV_timer_query
01-23 23:14:21.859: I/Unity(20622): Default GameObject Tag: Player already registered
01-23 23:14:21.859: I/Unity(20622):
01-23 23:14:21.859: I/Unity(20622): (Filename: Line: 67)
01-23 23:14:21.868: W/libc(20622): pthread_create sched_setscheduler call failed: Operation not permitted
01-23 23:14:24.523: D/TaskPersister(532): removeObsoleteFile: deleting file=40_task.xml
01-23 23:14:24.937: I/Unity(20622): C#: Loading TapjoyPlugin
01-23 23:14:24.937: I/Unity(20622):
01-23 23:14:24.937: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.076: I/Unity(20622): Calling TapjoyLogin()
01-23 23:14:25.076: I/Unity(20622):
01-23 23:14:25.076: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.080: I/Unity(20622): Calling TapjoyPlugin.SetCallbackHandler()
01-23 23:14:25.080: I/Unity(20622):
01-23 23:14:25.080: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.080: I/Unity(20622): Creating Dictionary connectFlags
01-23 23:14:25.080: I/Unity(20622):
01-23 23:14:25.080: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.082: I/Unity(20622): Calling UnityEngine.AndroidJNI.AttachCurrentThread()
01-23 23:14:25.082: I/Unity(20622):
01-23 23:14:25.082: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.083: I/Unity(20622): Adding enableLogginAndroid to connectFlags Dictionary
01-23 23:14:25.083: I/Unity(20622):
01-23 23:14:25.083: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.084: I/Unity(20622): Adding disable_persistent_ids to connectFlags Dictionary
01-23 23:14:25.084: I/Unity(20622):
01-23 23:14:25.084: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.085: I/Unity(20622): Calling TapjoyPlugin.EnableLogging()
01-23 23:14:25.085: I/Unity(20622):
01-23 23:14:25.085: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.089: I/TapjoyLog(20622): enableLogging: true
01-23 23:14:25.090: I/Unity(20622): Calling TapjoyPlugin.RequestTapjoyConnect()
01-23 23:14:25.090: I/Unity(20622):
01-23 23:14:25.090: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.149: I/Unity(20622): Calling TapjoyPlugin.GetTapPoints()
01-23 23:14:25.149: I/Unity(20622):
01-23 23:14:25.149: I/Unity(20622): (Filename: ./artifacts/AndroidManagedGenerated/UnityEngineDebug.cpp Line: 49)
01-23 23:14:25.165: E/TapjoyConnect(20622): ----------------------------------------
01-23 23:14:25.165: E/TapjoyConnect(20622): ERROR -- call requestTapjoyConnect and make sure to receive the Tapjoy connectSuccess response from the TapjoyConnectNotifier before calling any other Tapjoy methods
01-23 23:14:25.165: E/TapjoyConnect(20622): ----------------------------------------
01-23 23:14:25.169: I/TapjoyLog(20622): enableLogging: true
01-23 23:14:25.170: I/TapjoyConnect(20622): Metadata successfully loaded
01-23 23:14:25.170: W/ResourceType(20622): No package identifier when getting value for resource number 0x00000000
01-23 23:14:25.170: I/TapjoyConnect(20622): Initializing Threatmetrix: 2.5-16
01-23 23:14:25.195: W/SensorService(532): sensor 00000002 already enabled in connection 0x5f3815b0 (ignoring)
01-23 23:14:25.255: I/TapjoyConnect(20622): deviceID: null
01-23 23:14:25.255: E/TapjoyConnect(20622): Device id is null.
01-23 23:14:25.255: I/TapjoyConnect(20622): ANDROID SDK VERSION: 21
01-23 23:14:25.255: I/TapjoyConnect(20622): TRYING TO GET SERIAL OF 2.3+ DEVICE...
01-23 23:14:25.258: I/TapjoyConnect(20622): serial: ################
01-23 23:14:25.267: E/class com.threatmetrix.TrustDefenderMobile.URLConnection(20622): Failed to retrieve URI
01-23 23:14:25.267: W/com.threatmetrix.TrustDefenderMobile.HttpRunner(20622): failed to retrieve from h.online-metrix.net
01-23 23:14:25.282: I/TapjoyConnect(20622): deviceID: ################
01-23 23:14:25.282: I/TapjoyConnect(20622): sha2_udid: ################################################################
01-23 23:14:25.282: I/TapjoyConnect(20622): Connect Flags:
01-23 23:14:25.282: I/TapjoyConnect(20622): --------------------
01-23 23:14:25.283: I/TapjoyConnect(20622): key: enable_logging, value: true
01-23 23:14:25.283: I/TapjoyConnect(20622): key: disable_persistent_ids, value: true
01-23 23:14:25.283: I/TapjoyConnect(20622): key: TJC_EVENT_SERVICE_URL, value: https%3A%2F%2Fevents.tapjoy.com%2F
01-23 23:14:25.283: I/TapjoyConnect(20622): key: TJC_SERVICE_URL, value: https%3A%2F%2Fws.tapjoyads.com%2F
01-23 23:14:25.283: I/TapjoyConnect(20622): hostURL: [https://ws.tapjoyads.com/]
01-23 23:14:25.284: I/TapjoyConnect(20622): redirectDomain: [ws.tapjoyads.com]
01-23 23:14:25.284: I/TapjoyConnect(20622): --------------------
01-23 23:14:25.287: I/TapjoyGpsHelper(20622): Looking for Google Play Services...
01-23 23:14:25.287: I/TapjoyGpsHelper(20622): Google Play Services found, fetching advertisingID...
01-23 23:14:25.288: I/TapjoyGpsHelper(20622): Device's Google Play Services version: 6599430
01-23 23:14:25.288: I/TapjoyGpsHelper(20622): Packaged Google Play Services version: 6587000
01-23 23:14:25.343: I/TapjoyGpsHelper(20622): Found advertising ID: ####################################
01-23 23:14:25.343: I/TapjoyGpsHelper(20622): Is ad tracking enabled: false
01-23 23:14:25.344: I/TapjoyConnect(20622): Disabling persistent IDs. Do this only if you are not using Tapjoy to manage currency.
01-23 23:14:25.344: I/TapjoyConnect(20622): starting connect call...
01-23 23:14:25.367: I/WindowState(532): WIN DEATH: Window{11e73c08 u0 com.############.###/com.unity3d.player.UnityPlayerNativeActivity}
01-23 23:14:25.368: W/WindowManager(532): Force-removing child win Window{2684879e u0 SurfaceView} from container Window{11e73c08 u0 com.############.###/com.unity3d.player.UnityPlayerNativeActivity}
01-23 23:14:25.377: W/WindowManager(532): Failed looking up window
01-23 23:14:25.377: W/WindowManager(532): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@9ef2fa1 does not exist
01-23 23:14:25.377: W/WindowManager(532): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8412)
01-23 23:14:25.377: W/WindowManager(532): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8403)
01-23 23:14:25.377: W/WindowManager(532): at com.android.server.wm.WindowState$DeathRecipient.binderDied(WindowState.java:1113)
01-23 23:14:25.377: W/WindowManager(532): at android.os.BinderProxy.sendDeathNotice(Binder.java:551)
01-23 23:14:25.377: I/WindowState(532): WIN DEATH: null
01-23 23:14:25.459: I/Zygote(142): Process 20622 exited due to signal (11)
01-23 23:14:25.589: I/ActivityManager(532): Process com.############.### (pid 20622) has died
01-23 23:14:25.589: W/ActivityManager(532): Force removing ActivityRecord{3a16144a u0 com.############.###/com.unity3d.player.UnityPlayerNativeActivity t44}: app died, no saved state
01-23 23:14:25.627: I/OpenGLRenderer(6410): Initialized EGL, version 1.4
01-23 23:14:25.653: W/InputMethodManagerService(532): Got RemoteException sending setActive(false) notification to pid 20622 uid 10079
01-23 23:14:25.691: V/RenderScript(6410): 0x609994a8 Launching thread(s), CPUs 4
01-23 23:14:26.230: W/OpenGLRenderer(6410): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
01-23 23:14:26.231: W/OpenGLRenderer(6410): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
01-23 23:14:29.521: I/PowerManagerService(532): Going to sleep due to power button (uid 1000)...
01-23 23:14:29.527: I/PowerManagerService(532): Sleeping (uid 1000)...
01-23 23:14:29.532: I/MPL-storeload(532): mpl state size = 5584
01-23 23:14:29.533: E/MPL-storeload(532): calData from inv_save_mpl_states, size=2
01-23 23:14:29.533: I/MPL-storeload(532): cal data size to write = 5584
01-23 23:14:29.534: I/MPL-storeload(532): Bytes written = 5584
01-23 23:14:29.600: E/native(532): do suspend true
01-23 23:14:29.601: E/audio_a2dp_hw(136): adev_set_parameters: ERROR: set param called even when stream out is null
01-23 23:14:29.609: D/PhoneStatusBar(1844): disable: < expand ICONS* alerts SYSTEM_INFO* back home recent clock search >
01-23 23:14:29.620: D/BluetoothAdapter(1844): 475331542: getState() : mService = null. Returning STATE_OFF
01-23 23:14:29.620: D/BluetoothAdapter(1844): 475331542: getState() : mService = null. Returning STATE_OFF
01-23 23:14:29.627: D/BluetoothAdapter(1844): 475331542: getState() : mService = null. Returning STATE_OFF
01-23 23:14:29.627: D/BluetoothAdapter(1844): 475331542: getState() : mService = null. Returning STATE_OFF
01-23 23:14:29.737: D/PhoneStatusBar(1844): disable: < expand ICONS alerts SYSTEM_INFO back HOME* RECENT* clock SEARCH* >
01-23 23:14:30.131: D/SurfaceFlinger(130): Set power mode=0, type=0 flinger=0x41659550
01-23 23:14:30.131: D/hwcomposer(130): hwc_blank: display 0: blank
01-23 23:14:30.131: D/hwcomposer(130): hwc_blank_display: display 0: [0 -> 1]
01-23 23:14:30.131: D/hwcomposer(130): hwc_blank_display: releasing buffer 0x30
01-23 23:14:30.131: D/hwcomposer(130): dc_blank: display 0, [0 -> 1]
01-23 23:14:30.132: I/DisplayManagerService(532): Display device changed: DisplayDeviceInfo{"Built-in Screen": 800 x 1280, 60.000004 fps, supportedRefreshRates [60.000004], density 213, 213.0 x 213.0 dpi, appVsyncOff 0, presDeadline 17666666, touch INTERNAL, rotation 0, type BUILT_IN, state OFF, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
I think the program is halting as it tries to establish a connection.
You need to wrap this in something to prevent errors and timeouts. I could be wrong, of course, but it seems to be trending on UA at the moment 