- Home /
Android Crash on UpdateComputeBuffers in libunity.so
The Problem
I have a bunch of ComputeBuffers and RenderTextures in my 2D game, and up until recently, they were working just fine.
Now, all of a sudden I am seeing crashes after the Start() functions are run to create the ComputeBuffers. The Update() functions are never called, so its something to do with the instantiation, probably delayed a frame as it has to work on the GPU. I tested on Android, Galaxy S6 and Pixel, using release and debug builds.
I believe this is related to some setting I may have accidentally changed, and I cannot figure out what I did.
.
It is crashing on this line in /lib/arm/libunity.so:
GfxDeviceGLES::UpdateComputeResources(ComputeShaderResources const&)+184
.
Here is the relevant ERROR message from the debug build logs:
05-19 13:46:33.382 12588-12618/? A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 12618 (UnityGfxDeviceW), pid 12588 (dgames.blackout)
05-19 13:46:33.443 12712-12712/? A/DEBUG﹕ pid: 12588, tid: 12618, name: UnityGfxDeviceW >>> com.fivesecondgames.blackout <<<
05-19 13:46:33.460 12712-12712/? A/DEBUG﹕ #00 pc 009cb81c /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceGLES::UpdateComputeResources(ComputeShaderResources const&)+184)
05-19 13:46:33.460 12712-12712/? A/DEBUG﹕ #01 pc 009ab3b4 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)+31428)
05-19 13:46:33.460 12712-12712/? A/DEBUG﹕ #02 pc 009abc48 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)+112)
05-19 13:46:33.460 12712-12712/? A/DEBUG﹕ #03 pc 009abbb8 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceWorker::Run()+128)
05-19 13:46:33.461 12712-12712/? A/DEBUG﹕ #04 pc 009a3764 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)+4)
05-19 13:46:33.461 12712-12712/? A/DEBUG﹕ #05 pc 00769c30 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (Thread::RunThreadWrapper(void*)+84)
.
Settings
.
And here is the complete log from start of app till crash:
05-19 13:46:29.815 879-6956/? I/ActivityManager﹕ START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity bnds=[35,252][237,514]} from uid 10047
05-19 13:46:29.838 879-4725/? I/ActivityManager﹕ Start proc 12588:com.fivesecondgames.blackout/u0a173 for activity com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity
05-19 13:46:30.037 12588-12588/? I/Unity﹕ onResume
05-19 13:46:30.084 12588-12604/? D/Unity﹕ SetWindow 0 0xe297e808
05-19 13:46:30.085 12588-12604/? D/Unity﹕ SetWindow 0 0xe297e808
05-19 13:46:30.109 12588-12588/? I/Unity﹕ windowFocusChanged: true
05-19 13:46:30.115 879-922/? I/ActivityManager﹕ Displayed com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity: +285ms
05-19 13:46:30.124 12588-12604/? D/Unity﹕ [VFS] Mount /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/base.apk
05-19 13:46:30.128 12588-12604/? D/Unity﹕ Loading player data from /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/base.apk/assets/bin/Data/data.unity3d
05-19 13:46:30.198 12588-12604/? I/Unity﹕ SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 4, Memory = 3754mb
05-19 13:46:30.198 12588-12604/? I/Unity﹕ SystemInfo ARM big.LITTLE configuration: 2 big (mask: 12), 2 little (mask: 3)
05-19 13:46:30.199 12588-12604/? I/Unity﹕ ApplicationInfo com.fivesecondgames.blackout version 1.0 build 15837c2c-8c67-4c38-8827-583c1d09cd63
05-19 13:46:30.199 12588-12604/? I/Unity﹕ Built from '2018.1/staging' branch, Version '2018.1.0f2 (d4d99f31acba)', Build type 'Development', Scripting Backend 'mono'
05-19 13:46:30.199 12588-12604/? D/Unity﹕ Loading player data from /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/base.apk/assets/bin/Data/data.unity3d
05-19 13:46:30.215 12588-12604/? D/Unity﹕ Failed to install Player data archive: /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/base.apk/assets/bin/Data/data.unity3d!
05-19 13:46:30.215 12588-12604/? D/Unity﹕ [EGL] Attaching window :0xe297e808
05-19 13:46:30.218 12588-12604/? D/Unity﹕ Unable to find library path for 'monobdwgc-2.0'.
05-19 13:46:30.221 12588-12604/? D/Unity﹕ Mono path[0] = '/data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/base.apk/assets/bin/Data/Managed'
05-19 13:46:30.221 12588-12604/? D/Unity﹕ Mono config path = 'assets/bin/Data/Managed/etc'
05-19 13:46:30.221 12588-12604/? D/Unity﹕ PlayerConnection initialized from /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/base.apk/assets/bin/Data (debug = 0)
05-19 13:46:30.221 12588-12604/? D/Unity﹕ PlayerConnection initialized network socket : 0.0.0.0 55379
05-19 13:46:30.221 12588-12604/? D/Unity﹕ PlayerConnection initialized unix socket : Unity-com.fivesecondgames.blackout
05-19 13:46:30.222 12588-12604/? D/Unity﹕ Multi-casting "[IP] 192.168.0.4 [Port] 55379 [Flags] 2 [Guid] 3431760615 [EditorId] 2107415186 [Version] 1048832 [Id] AndroidPlayer(Google_Pixel@192.168.0.4) [Debug] 0" to [225.0.0.222:54997]...
05-19 13:46:30.220 12604-12604/? W/UnityMain﹕ type=1400 audit(0.0:3517): avc: denied { read } for name="stat" dev="proc" ino=4026532357 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc_stat:s0 tclass=file permissive=0
05-19 13:46:30.222 12588-12604/? D/Unity﹕ Started listening to [0.0.0.0:55379]
05-19 13:46:30.298 12588-12604/? D/Unity﹕ InitializeScriptEngine OK (0xed820ee0)
05-19 13:46:30.298 12588-12604/? D/Unity﹕ PlayerConnection already initialized - listening to [0.0.0.0:55379]
05-19 13:46:30.313 12588-12604/? D/Unity﹕ Loading player data from assets/bin/Data/data.unity3d
05-19 13:46:30.317 12588-12604/? D/Unity﹕ PlayerInitEngineNoGraphics OK
05-19 13:46:30.317 12588-12604/? D/Unity﹕ AndroidGraphics::Startup window = 0xe297e808
05-19 13:46:30.317 12588-12604/? D/Unity﹕ [EGL] Attaching window :0xe297e808
05-19 13:46:30.321 12588-12604/? D/Unity﹕ [EGL] Request: ES 3.1+AEP RGB0 000 0/0
05-19 13:46:30.322 12588-12604/? D/Unity﹕ [EGL] Checking ES 3.1 support...
05-19 13:46:30.324 12588-12604/? D/Unity﹕ [EGL] ES 3.1 support detected
05-19 13:46:30.324 12588-12604/? D/Unity﹕ [EGL] Found: ID[1] ES 3.1+AEP RGB16 565 0/0
05-19 13:46:30.324 12588-12604/? D/Unity﹕ GfxDevice: creating device client; threaded=1
05-19 13:46:30.324 12588-12604/? D/Unity﹕ [EGL] Request: ES 3.1+AEP RGB0 000 0/0
05-19 13:46:30.325 12588-12604/? D/Unity﹕ [EGL] Found: ID[1] ES 3.1+AEP RGB16 565 0/0
05-19 13:46:30.325 12588-12604/? D/Unity﹕ [EGL] Request: ES 3.0 RGB16 565 0/0
05-19 13:46:30.326 12588-12604/? D/Unity﹕ [EGL] Found: ID[1] ES 3.0 RGB16 565 0/0
05-19 13:46:30.330 12588-12604/? D/Unity﹕ ANativeWindow: (1080/1920) RequestedResolution: (0/0) RenderingResolution: (0/0) EGLSurface: (1080/1920)
05-19 13:46:30.336 12588-12604/? D/Unity﹕ Renderer: Adreno (TM) 530
05-19 13:46:30.336 12588-12604/? D/Unity﹕ Vendor: Qualcomm
05-19 13:46:30.336 12588-12604/? D/Unity﹕ Version: OpenGL ES 3.2 V@258.0 (GIT@2941438, I916dfac403) (Date:10/03/17)
05-19 13:46:30.336 12588-12604/? D/Unity﹕ GLES: 3
05-19 13:46:30.336 12588-12604/? D/Unity﹕ GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_variables GL_EXT_texture_border_clamp GL_EXT_multisampled_render_to_texture GL_EXT_mul
05-19 13:46:30.336 12588-12604/? D/Unity﹕ tisampled_render_to_texture2 GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EXT_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_marker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_texture GL_EXT_buffer_storage GL_EXT_external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance
05-19 13:46:30.336 12588-12604/? D/Unity﹕ GL_EXT_protected_textures GL_EXT_shader_non_constant_global_initializers GL_QCOM_framebuffer_foveated GL_QCOM_shader_framebuffer_fetch_noncoherent GL_EXT_EGL_image_array GL_NV_shader_noperspective_interpolation
05-19 13:46:30.343 12588-12604/? D/Unity﹕ OPENGL LOG: Creating OpenGL ES 3.2 graphics device ; Context level <OpenGL ES 3.1 AEP> ; Context handle -808474560
05-19 13:46:30.344 12588-12604/? D/Unity﹕ [EGL] Attaching window :0xe297e808
05-19 13:46:30.345 12588-12604/? D/Unity﹕ Requested framebuffer: resolution[1080x1920], rgba[5/6/5/0], depth+stencil[on], samples[1]
05-19 13:46:30.345 12588-12604/? D/Unity﹕ Created framebuffer: resolution[1080x1920], rgba[5/6/5/0], depth+stencil[24/8], samples[0]
05-19 13:46:30.345 12588-12604/? D/Unity﹕ [EGL] Attaching window :0xe297e808
05-19 13:46:30.345 12588-12604/? D/Unity﹕ Initialize engine version: 2018.1.0f2 (d4d99f31acba)
05-19 13:46:30.384 12588-12604/? D/Unity﹕ Begin MonoManager ReloadAssembly
05-19 13:46:30.620 12588-12604/? D/Unity﹕ - Completed reload, in 0.235 seconds
05-19 13:46:30.747 12588-12604/? D/Unity﹕ PlayerInitEngineGraphics OK
05-19 13:46:30.749 12588-12604/? D/Unity﹕ Found 27 native sensors
05-19 13:46:30.754 12588-12604/? D/Unity﹕ Sensor : Accelerometer ( 1) ; 0.004788 / 0.00s ; BMI160 accelerometer / Bosch
05-19 13:46:30.756 12588-12604/? D/Unity﹕ Sensor : Accelerometer ( 1) ; 0.004788 / 0.00s ; BMI160 accelerometer / Bosch
05-19 13:46:30.765 12588-12604/? D/Unity﹕ SetWindow 0 0xe297e808
05-19 13:46:30.765 12588-12604/? D/Unity﹕ [EGL] Attaching window :0xe297e808
05-19 13:46:30.864 12588-12588/? I/Unity﹕ windowFocusChanged: true
05-19 13:46:32.820 12588-12604/? D/Unity﹕ UnloadTime: 4.095000 ms
05-19 13:46:32.834 12588-12604/? D/Unity﹕ UUID: b1dbc0e34a78a55b => c11e79cb129c8d2e71ffd8f934d1e7f2
05-19 13:46:33.028 12588-12604/? D/Unity﹕ Sensor : Accelerometer ( 1) ; 0.004788 / 0.00s ; BMI160 accelerometer / Bosch
05-19 13:46:33.042 12588-12604/? D/Unity﹕ Choreographer available: Enabling VSYNC timing
05-19 13:46:33.382 12588-12618/? A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 12618 (UnityGfxDeviceW), pid 12588 (dgames.blackout)
05-19 13:46:33.443 12712-12712/? A/DEBUG﹕ pid: 12588, tid: 12618, name: UnityGfxDeviceW >>> com.fivesecondgames.blackout <<<
05-19 13:46:33.460 12712-12712/? A/DEBUG﹕ #00 pc 009cb81c /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceGLES::UpdateComputeResources(ComputeShaderResources const&)+184)
05-19 13:46:33.460 12712-12712/? A/DEBUG﹕ #01 pc 009ab3b4 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)+31428)
05-19 13:46:33.460 12712-12712/? A/DEBUG﹕ #02 pc 009abc48 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)+112)
05-19 13:46:33.460 12712-12712/? A/DEBUG﹕ #03 pc 009abbb8 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceWorker::Run()+128)
05-19 13:46:33.461 12712-12712/? A/DEBUG﹕ #04 pc 009a3764 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)+4)
05-19 13:46:33.461 12712-12712/? A/DEBUG﹕ #05 pc 00769c30 /data/app/com.fivesecondgames.blackout-zROeIAc7XeHJdGewXa2C0A==/lib/arm/libunity.so (Thread::RunThreadWrapper(void*)+84)
05-19 13:46:35.059 879-12713/? W/ActivityManager﹕ Force finishing activity com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity
05-19 13:46:35.142 499-1615/? E/SurfaceFlinger﹕ Failed to find layer (SurfaceView - com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity#0) in layer parent (no-parent).
05-19 13:46:35.142 499-531/? E/SurfaceFlinger﹕ Failed to find layer (Background for - SurfaceView - com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity#0) in layer parent (no-parent).
05-19 13:46:35.142 879-1131/? W/InputDispatcher﹕ channel '1c67346 com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
05-19 13:46:35.142 879-1131/? E/InputDispatcher﹕ channel '1c67346 com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
05-19 13:46:35.143 879-4724/? I/WindowManager﹕ WIN DEATH: Window{1c67346 u0 com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity}
05-19 13:46:35.143 879-4724/? W/InputDispatcher﹕ Attempted to unregister already unregistered input channel '1c67346 com.fivesecondgames.blackout/com.unity3d.player.UnityPlayerActivity (server)'
Your answer
Follow this Question
Related Questions
RWTexture2D in Compute Shader on Android? 2 Answers
Sending crash report from a iphone or android app 0 Answers
My mobile game crashes once a certain number of textures have been loaded. What can I do about that? 0 Answers
Mobile shader vs standard shader 0 Answers
My shader works on desktop, but black screen on Android. 0 Answers