Search Unity

Script Debugging locks device

Discussion in 'UGUI & TextMesh Pro' started by mweldon, Nov 3, 2014.

  1. mweldon

    mweldon

    Joined:
    Apr 19, 2010
    Posts:
    109
    We are unable to run on Android or iOS with the Script Debugging flag set. We even tried the "widgets" scene from the beta UI demo project and got the same result. It looks like the game runs a couple frames then freezes. It runs just fine if we don't enable script debugging, but it will still freeze as soon as we try to attach a profiler to the running device.

    Here is the log output for Android with Script Debugging turned on:
    11-03 14:26:57.391: I/ActivityManager(429): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.disney.uitest/com.unity3d.player.UnityPlayerNativeActivity} from pid 27213
    11-03 14:26:57.481: D/dalvikvm(429): GC_FOR_ALLOC freed 842K, 42% free 17574K/29944K, paused 69ms, total 71ms
    11-03 14:26:57.541: I/ActivityManager(429): Start proc com.disney.uitest for activity com.disney.uitest/com.unity3d.player.UnityPlayerNativeActivity: pid=3289 uid=10091 gids={50091, 3003, 1015, 1028}
    11-03 14:26:57.561: D/dalvikvm(3289): Late-enabling CheckJNI
    11-03 14:26:57.631: D/dalvikvm(3289): Trying to load lib /data/app-lib/com.disney.uitest-2/libmain.so 0x421b4e60
    11-03 14:26:57.631: D/dalvikvm(3289): Added shared lib /data/app-lib/com.disney.uitest-2/libmain.so 0x421b4e60
    11-03 14:26:57.641: I/Unity(3289): gles_mode = 0 (integer)
    11-03 14:26:57.641: I/Unity(3289): splash_mode = 0 (integer)
    11-03 14:26:57.641: I/Unity(3289): hide_status_bar = True (bool)
    11-03 14:26:57.641: I/Unity(3289): useObb = False (bool)
    11-03 14:26:57.641: I/Unity(3289): development_player = True (bool)
    11-03 14:26:57.691: D/Unity(3289): surfaces: attach glview
    11-03 14:26:57.721: I/Unity(3289): onResume
    11-03 14:26:57.771: D/Unity(3289): [EGL] Attaching window 0x41864968
    11-03 14:26:57.861: I/ActivityManager(429): Displayed com.disney.uitest/com.unity3d.player.UnityPlayerNativeActivity: +341ms
    11-03 14:26:57.891: I/Unity(3289): windowFocusChanged: true
    11-03 14:26:57.891: D/Unity(3289): SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 4, Memory = 974mb
    11-03 14:26:58.541: D/Unity(3289): [SHA1] dbdf2bcbbd005bc74816f41e2dec0106d98c830b 16302558 bytes ~ lib/armeabi-v7a/libunity.so
    11-03 14:26:58.541: D/Unity(3289): Mono path[0] = '/data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed'
    11-03 14:26:58.541: D/Unity(3289): Mono config path = 'assets/bin/Data/Managed'
    11-03 14:26:58.541: D/Unity(3289): PlayerConnection initialized from /data/app/com.disney.uitest-2.apk/assets/bin/Data (debug = 0)
    11-03 14:26:58.541: D/Unity(3289): PlayerConnection initialized network socket : 0.0.0.0 55441
    11-03 14:26:58.541: D/Unity(3289): PlayerConnection initialized unix socket : Unity-com.disney.uitest
    11-03 14:26:58.541: D/Unity(3289): Multi-casting "[IP] 10.217.160.120 [Port] 55441 [Flags] 3 [Guid] 3569897596 [EditorId] 2555798317 [Version] 1048832 [Id] AndroidPlayer(asus_Nexus_7@10.217.160.120) [Debug] 1" to [225.0.0.222:54997]...
    11-03 14:26:58.541: D/Unity(3289): Waiting for connection from host on [10.217.160.120:55441]...
    11-03 14:26:58.791: D/Unity(3289): PlayerConnection accepted from [10.217.160.210] handle:0x38
    11-03 14:26:58.841: D/Unity(3289): Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y,address=0.0.0.0:56596
    11-03 14:26:58.991: D/Unity(3289): InitializeMonoFromMain OK (59af4ee0)
    11-03 14:26:58.991: D/Unity(3289): PlayerConnection already initialized - listening to [10.217.160.120:55441]
    11-03 14:26:59.011: D/Unity(3289): PlayerInitEngineNoGraphics OK
    11-03 14:26:59.021: D/libEGL(3289): loaded /system/lib/egl/libEGL_tegra.so
    11-03 14:26:59.031: D/libEGL(3289): loaded /system/lib/egl/libGLESv1_CM_tegra.so
    11-03 14:26:59.041: D/libEGL(3289): loaded /system/lib/egl/libGLESv2_tegra.so
    11-03 14:26:59.051: D/Unity(3289): [EGL] Request: ES2 RGB24 888 24/8
    11-03 14:26:59.051: D/Unity(3289): [EGL] Selected: ES2 RGB24 888 16NLZ/8
    11-03 14:26:59.091: D/Unity(3289): Renderer: NVIDIA Tegra 3
    11-03 14:26:59.091: D/Unity(3289): Vendor: NVIDIA Corporation
    11-03 14:26:59.091: D/Unity(3289): Version: OpenGL ES 2.0 14.01003
    11-03 14:26:59.091: D/Unity(3289): 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_
    11-03 14:26:59.091: D/Unity(3289): coverage_sample GL_EXT_occlusion_query_boolean GL_NV_timer_query
    11-03 14:26:59.091: D/Unity(3289): Creating OpenGLES2.0 graphics device
    11-03 14:26:59.091: D/Unity(3289): InitializeGfxDevice OK
    11-03 14:26:59.091: D/Unity(3289): Initialize engine version: 4.6.0b21 (bee422ec5c5c)
    11-03 14:26:59.101: D/dalvikvm(6968): GC_CONCURRENT freed 842K, 10% free 10315K/11432K, paused 3ms+7ms, total 59ms
    11-03 14:26:59.131: W/libc(3289): pthread_create sched_setscheduler call failed: Operation not permitted
    11-03 14:26:59.131: D/Unity(3289): Begin MonoManager ReloadAssembly
    11-03 14:26:59.151: D/Unity(3289): Platform assembly: /data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed/UnityEngine.dll (this message is harmless)
    11-03 14:26:59.151: D/Unity(3289): Loading /data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed/UnityEngine.dll into Unity Child Domain
    11-03 14:26:59.221: D/Unity(3289): Platform assembly: /data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed/Assembly-CSharp.dll (this message is harmless)
    11-03 14:26:59.221: D/Unity(3289): Loading /data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed/Assembly-CSharp.dll into Unity Child Domain
    11-03 14:26:59.231: D/Unity(3289): Platform assembly: /data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed/UnityEngine.UI.dll (this message is harmless)
    11-03 14:26:59.231: D/Unity(3289): Loading /data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed/UnityEngine.UI.dll into Unity Child Domain
    11-03 14:26:59.261: D/Unity(3289): - Completed reload, in 0.137 seconds
    11-03 14:26:59.281: D/Unity(3289): PlayerInitEngineGraphics OK
    11-03 14:26:59.281: D/Unity(3289): Found 16 native sensors
    11-03 14:26:59.331: D/Unity(3289): Sensor : Accelerometer ( 1) ; 0.039227 / 0.00s ; MPL Accelerometer / Invensense
    11-03 14:26:59.371: D/Unity(3289): Sensor : Accelerometer ( 1) ; 0.039227 / 0.00s ; MPL Accelerometer / Invensense
    11-03 14:26:59.881: D/Unity(3289): Platform assembly: /data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed/System.Core.dll (this message is harmless)
    11-03 14:27:00.241: D/Unity(3289): Platform assembly: /data/app/com.disney.uitest-2.apk/assets/bin/Data/Managed/System.dll (this message is harmless)
    11-03 14:27:00.681: W/SensorService(429): sensor 00000002 already enabled in connection 0x63e90700 (ignoring)
    11-03 14:27:00.771: D/Unity(3289): Sensor : Accelerometer ( 1) ; 0.039227 / 0.00s ; MPL Accelerometer / Invensense
    11-03 14:27:01.021: I/Unity(3289): setScreenSize: -1x-1 (1280x736 / 1280x736)
    11-03 14:27:01.021: I/Unity(3289): setScreenSize: keeping layout size 1280x736