Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android segfaults since MeshUniforms generation on the GPU #13038

Open
mockersf opened this issue Apr 19, 2024 · 7 comments · May be fixed by #13323
Open

Android segfaults since MeshUniforms generation on the GPU #13038

mockersf opened this issue Apr 19, 2024 · 7 comments · May be fixed by #13323
Labels
A-Rendering Drawing game state to the screen C-Crash A sudden unexpected crash O-Android Specific to the Android mobile operating system S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Milestone

Comments

@mockersf
Copy link
Member

Bevy version

main since #12773

[Optional] Relevant system information

SystemInfo { os: "Android 11 2201117TI", kernel: "4.19.157-perf-g8cd144836769", cpu: "not available", core_count: "8", memory: "3.6 GiB" }
AdapterInfo { name: "Adreno (TM) 610", vendor: 20803, device: 100728833, device_type: IntegratedGpu, driver: "Qualcomm Technologies Inc. Adreno Vulkan Driver", driver_info: "Driver Build: 5eaa426211, I07ee46fc66, 1633700387\nDate: 10/08/21\nCompiler Version: EV031.32.02.16\nDriver Branch: \n", backend: Vulkan }

What you did

Run the mobile example

What went wrong

it segfaults

04-10 06:42:09.935 F/libc    (24618): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 24730 (Async Compute T), pid 24618 (yengine.example)

@mockersf mockersf added A-Rendering Drawing game state to the screen C-Crash A sudden unexpected crash O-Android Specific to the Android mobile operating system labels Apr 19, 2024
@mockersf mockersf added this to the 0.14 milestone Apr 19, 2024
@superdump
Copy link
Contributor

No backtrace?

@mockersf
Copy link
Member Author

nop, I don't have anything more

@beoboo
Copy link

beoboo commented Apr 24, 2024

@superdump this is the backtrace I have for this issue (running it on a Pixel 4 real device with Android 13):

04-24 11:52:50.268 26430 26430 I yengine.example: Late-enabling -Xcheck:jni
04-24 11:52:50.287 26430 26430 I yengine.example: Using CollectorTypeCC GC.
04-24 11:52:50.313 26430 26430 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10415; state: ENABLED
04-24 11:52:50.345 26430 26430 W System  : ClassLoader referenced unknown path:
04-24 11:52:50.346 26430 26430 D nativeloader: Configuring clns-4 for other apk . target_sdk_version=31, uses_libraries=, library_path=/data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64:/data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/org.bevyengine.example
04-24 11:52:50.368 26430 26430 V GraphicsEnvironment: ANGLE Developer option for 'org.bevyengine.example' set to: 'default'
04-24 11:52:50.368 26430 26430 V GraphicsEnvironment: ANGLE GameManagerService for org.bevyengine.example: false
04-24 11:52:50.368 26430 26430 V GraphicsEnvironment: Updatable production driver is not supported on the device.
04-24 11:52:50.371 26430 26430 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-24 11:52:50.372 26430 26430 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-24 11:52:50.456 26430 26451 I event crates/bevy_diagnostic/src/system_information_diagnostics_plugin.rs:132: SystemInfo { os: "Android 13 Pixel 4a", kernel: "4.14.302-g6ff6ddc33f7d-ab10092322", cpu: "not available", core_count: "8", memory: "5.5 GiB" }
04-24 11:52:50.468 26430 26451 D vulkan  : searching for layers in '/data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64'
04-24 11:52:50.468 26430 26451 D vulkan  : searching for layers in '/data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/base.apk!/lib/arm64-v8a'
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: ===== BEGIN DUMP OF OVERRIDDEN SETTINGS =====
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: ===== END DUMP OF OVERRIDDEN SETTINGS =====
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: QUALCOMM build          : 85da404, I46ff5fc46f
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: Build Date              : 11/30/20
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: Shader Compiler Version : EV031.31.04.01
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: Local Branch            : promo490_3_Google
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: Remote Branch           :
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: Remote Branch           :
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: Reconstruct Branch      :
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: Build Config            : S P 10.0.4 AArch64
04-24 11:52:50.472 26430 26451 I AdrenoVK-0: Driver Path             : /vendor/lib64/hw/vulkan.adreno.so
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: QUALCOMM build                   : 85da404, I46ff5fc46f
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: Build Date                       : 11/30/20
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.31.04.01
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: Local Branch                     : promo490_3_Google
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: Remote Branch                    :
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: Remote Branch                    :
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: Reconstruct Branch               :
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: Build Config                     : S P 10.0.4 AArch64
04-24 11:52:50.477 26430 26451 I AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
04-24 11:52:50.480 26430 26451 I AdrenoGLES-0: PFP: 0x016ee190, ME: 0x00000000
04-24 11:52:50.481 26430 26451 W AdrenoUtils: <ReadGpuID_from_sysfs:197>: Failed to open /sys/class/kgsl/kgsl-3d0/gpu_model
04-24 11:52:50.481 26430 26451 W AdrenoUtils: <ReadGpuID:221>: Failed to read chip ID from gpu_model. Fallback to use the GSL path
04-24 11:52:50.522 26430 26451 I event crates/bevy_render/src/renderer/mod.rs:188: AdapterInfo { name: "Adreno (TM) 618", vendor: 20803, device: 100730880, device_type: IntegratedGpu, driver: "Qualcomm Technologies Inc. Adreno Vulkan Driver", driver_info: "Driver Build: 85da404, I46ff5fc46f, 1606801434\nDate: 11/30/20\nCompiler Version: EV031.31.04.01\nDriver Branch: promo490_3_Google\n", backend: Vulkan }
04-24 11:52:51.260 26430 26451 I OboeAudio: openStreamInternal() OUTPUT -------- OboeVersion1.8.1 --------
04-24 11:52:51.260 26430 26451 D OboeAudio: AAudioLoader():  dlopen(libaaudio.so) returned 0xd934a40d01087e71
04-24 11:52:51.261 26430 26451 I AAudio  : AAudioStreamBuilder_openStream() called ----------------------------------------
04-24 11:52:51.261 26430 26451 I AudioStreamBuilder: rate   =  44100, channels  = 2, channelMask = 0x80000003, format   = 5, sharing = SH, dir = OUTPUT
04-24 11:52:51.261 26430 26451 I AudioStreamBuilder: device =      0, sessionId = -1, perfMode = 10, callback: ON with frames = 0
04-24 11:52:51.261 26430 26451 I AudioStreamBuilder: usage  =      1, contentType = 2, inputPreset = 6, allowedCapturePolicy = 0
04-24 11:52:51.261 26430 26451 I AudioStreamBuilder: privacy sensitive = false, opPackageName = (null), attributionTag = (null)
04-24 11:52:51.261 26430 26451 D AudioStreamBuilder: build() MMAP not used because AAUDIO_PERFORMANCE_MODE_LOW_LATENCY not requested.
04-24 11:52:51.261 26430 26451 D yengine.example: PlayerBase::PlayerBase()
04-24 11:52:51.261 26430 26451 D AudioStreamTrack: open(), request notificationFrames = 0, frameCount = 0
04-24 11:52:51.266 26430 26451 D AAudioStream: setState(s#1) from 0 to 2
04-24 11:52:51.267 26430 26451 I AAudio  : AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#1 ----------------
04-24 11:52:51.267 26430 26451 D OboeAudio: AudioStreamAAudio.open() format=2, sampleRate=44100, capacity = 5304
04-24 11:52:51.267 26430 26451 D OboeAudio: calculateDefaultDelayBeforeCloseMillis() default = 41
04-24 11:52:51.267 26430 26451 D OboeAudio: AudioStreamAAudio.open: AAudioStream_Open() returned AAUDIO_OK = 0
04-24 11:52:51.267 26430 26451 D AAudio  : AAudioStream_requestStart(s#1) called --------------
04-24 11:52:51.267 26430 26451 D AAudioStream: setState(s#1) from 2 to 3
04-24 11:52:51.340 26430 26451 D AAudio  : AAudioStream_requestStart(s#1) returned 0 ---------
04-24 11:52:51.340 26430 26461 D AudioStreamLegacy: onAudioDeviceUpdate(deviceId = 3)
04-24 11:52:51.343 26430 26451 E event crates/bevy_gilrs/src/lib.rs:54: Failed to start Gilrs. Gilrs does not support current platform.
04-24 11:52:51.429 26430 26460 D AAudioStream: setState(s#1) from 3 to 4
04-24 11:52:51.586 26430 26451 W log event: TODO: forward onStart notification to applicationlog.target = "winit::platform_impl::platform"; log.module_path = "winit::platform_impl::platform"; log.file = "/Users/pietroatzeni/.asdf/installs/rust/1.77.1/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/android/mod.rs"; log.line = 276;
04-24 11:52:51.589 26430 26430 D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10415; state: DISABLED
04-24 11:52:51.589 26430 26430 D CompatibilityChangeReporter: Compat change id reported: 37756858; UID 10415; state: ENABLED
04-24 11:52:51.594 26430 26430 D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10415; state: DISABLED
04-24 11:52:51.627 26430 26451 I event crates/bevy_winit/src/system.rs:54: Creating new window "App" (Entity { index: 0, generation: 1 })
04-24 11:52:51.864 26430 26451 E qdgralloc: GetGpuPixelFormat: No map for format: 0x38
04-24 11:52:51.864 26430 26451 E AdrenoUtils: <validate_memory_layout_input_parmas:1923>: Unknown Format 0
04-24 11:52:51.864 26430 26451 E AdrenoUtils: <adreno_init_memory_layout:4634>: Memory Layout input parameter validation failed!
04-24 11:52:51.864 26430 26451 E qdgralloc: GetGpuResourceSizeAndDimensions Graphics metadata init failed
04-24 11:52:51.864 26430 26451 E Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 1
04-24 11:52:51.870 26430 26451 E GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 1
04-24 11:52:51.870 26430 26451 E AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -1), handle=0x0
04-24 11:52:51.870 26430 26451 E qdgralloc: GetGpuPixelFormat: No map for format: 0x38
04-24 11:52:51.870 26430 26451 E AdrenoUtils: <validate_memory_layout_input_parmas:1923>: Unknown Format 0
04-24 11:52:51.870 26430 26451 E AdrenoUtils: <adreno_init_memory_layout:4634>: Memory Layout input parameter validation failed!
04-24 11:52:51.871 26430 26451 E qdgralloc: GetGpuResourceSizeAndDimensions Graphics metadata init failed
04-24 11:52:51.871 26430 26451 E Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 1
04-24 11:52:51.871 26430 26451 E GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 1
04-24 11:52:51.871 26430 26451 E AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -1), handle=0x0
04-24 11:52:51.871 26430 26451 E qdgralloc: GetGpuPixelFormat: No map for format: 0x38
04-24 11:52:51.871 26430 26451 E AdrenoUtils: <validate_memory_layout_input_parmas:1923>: Unknown Format 0
04-24 11:52:51.871 26430 26451 E AdrenoUtils: <adreno_init_memory_layout:4634>: Memory Layout input parameter validation failed!
04-24 11:52:51.871 26430 26451 E qdgralloc: GetGpuResourceSizeAndDimensions Graphics metadata init failed
04-24 11:52:51.871 26430 26451 E Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 1
04-24 11:52:51.871 26430 26451 E GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 1
04-24 11:52:51.871 26430 26451 E AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -1), handle=0x0
04-24 11:52:51.871 26430 26451 E qdgralloc: GetGpuPixelFormat: No map for format: 0x38
04-24 11:52:51.871 26430 26451 E AdrenoUtils: <validate_memory_layout_input_parmas:1923>: Unknown Format 0
04-24 11:52:51.871 26430 26451 E AdrenoUtils: <adreno_init_memory_layout:4634>: Memory Layout input parameter validation failed!
04-24 11:52:51.871 26430 26451 E qdgralloc: GetGpuResourceSizeAndDimensions Graphics metadata init failed
04-24 11:52:51.871 26430 26451 E Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 1
04-24 11:52:51.872 26430 26451 E GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 1
04-24 11:52:51.872 26430 26451 E AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -1), handle=0x0
04-24 11:52:52.941 26430 26454 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 26454 (Async Compute T), pid 26430 (yengine.example)
04-24 11:52:52.984 26468 26468 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
04-24 11:52:52.987 26468 26468 I crash_dump64: performing dump of process 26430 (target tid = 26454)
04-24 11:52:53.279 26430 26451 W log event: TODO: find a way to notify application of content rect changelog.target = "winit::platform_impl::platform"; log.module_path = "winit::platform_impl::platform"; log.file = "/Users/pietroatzeni/.asdf/installs/rust/1.77.1/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/android/mod.rs"; log.line = 229;
04-24 11:52:53.293 26430 26456 E qdgralloc: GetGpuPixelFormat: No map for format: 0x38
04-24 11:52:53.293 26430 26456 E AdrenoUtils: <validate_memory_layout_input_parmas:1923>: Unknown Format 0
04-24 11:52:53.293 26430 26456 E AdrenoUtils: <adreno_init_memory_layout:4634>: Memory Layout input parameter validation failed!
04-24 11:52:53.293 26430 26456 E qdgralloc: GetGpuResourceSizeAndDimensions Graphics metadata init failed
04-24 11:52:53.293 26430 26456 E Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 1
04-24 11:52:53.293 26430 26456 E GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 1
04-24 11:52:53.293 26430 26456 E AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -1), handle=0x0
04-24 11:52:53.294 26430 26456 E qdgralloc: GetGpuPixelFormat: No map for format: 0x38
04-24 11:52:53.294 26430 26456 E AdrenoUtils: <validate_memory_layout_input_parmas:1923>: Unknown Format 0
04-24 11:52:53.294 26430 26456 E AdrenoUtils: <adreno_init_memory_layout:4634>: Memory Layout input parameter validation failed!
04-24 11:52:53.294 26430 26456 E qdgralloc: GetGpuResourceSizeAndDimensions Graphics metadata init failed
04-24 11:52:53.294 26430 26456 E Gralloc4: isSupported(1, 1, 56, 1, ...) failed with 1
04-24 11:52:53.294 26430 26456 E GraphicBufferAllocator: Failed to allocate (4 x 4) layerCount 1 format 56 usage b00: 1
04-24 11:52:53.294 26430 26456 E AHardwareBuffer: GraphicBuffer(w=4, h=4, lc=1) failed (Unknown error -1), handle=0x0
04-24 11:52:53.303 26468 26468 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-24 11:52:53.303 26468 26468 F DEBUG   : Build fingerprint: 'google/sunfish/sunfish:13/TQ3A.230805.001.S1/10786265:user/release-keys'
04-24 11:52:53.303 26468 26468 F DEBUG   : Revision: 'MP1.0'
04-24 11:52:53.303 26468 26468 F DEBUG   : ABI: 'arm64'
04-24 11:52:53.303 26468 26468 F DEBUG   : Timestamp: 2024-04-24 11:52:53.007581115+0200
04-24 11:52:53.303 26468 26468 F DEBUG   : Process uptime: 4s
04-24 11:52:53.303 26468 26468 F DEBUG   : Cmdline: org.bevyengine.example
04-24 11:52:53.303 26468 26468 F DEBUG   : pid: 26430, tid: 26454, name: Async Compute T  >>> org.bevyengine.example <<<
04-24 11:52:53.303 26468 26468 F DEBUG   : uid: 10415
04-24 11:52:53.303 26468 26468 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000008
04-24 11:52:53.303 26468 26468 F DEBUG   : Cause: null pointer dereference
04-24 11:52:53.303 26468 26468 F DEBUG   :     x0  b400007e7a668f90  x1  b400007d4a6657e0  x2  0000000000000001  x3  0000000000000010
04-24 11:52:53.303 26468 26468 F DEBUG   :     x4  b400007e0a76c7b0  x5  0000000000000005  x6  b400007e0a769c90  x7  0000000000000001
04-24 11:52:53.303 26468 26468 F DEBUG   :     x8  0000000000000000  x9  89d1bbb44331a785  x10 0000000000000000  x11 0000000000000050
04-24 11:52:53.303 26468 26468 F DEBUG   :     x12 0000000000000050  x13 b400007e2a634b20  x14 0000007c8b5f9000  x15 0000000000000001
04-24 11:52:53.303 26468 26468 F DEBUG   :     x16 0000000000000b90  x17 0000007ce1782118  x18 0000007c89a14000  x19 b400007daa682c70
04-24 11:52:53.303 26468 26468 F DEBUG   :     x20 0000000000000000  x21 0000007c8b5f1398  x22 3fffffffffffffff  x23 0000000000000003
04-24 11:52:53.303 26468 26468 F DEBUG   :     x24 0000000000000025  x25 b400007d2a706da0  x26 0000000000000004  x27 1fffffffffffffff
04-24 11:52:53.303 26468 26468 F DEBUG   :     x28 0000000000000001  x29 b400007e7a668f90
04-24 11:52:53.303 26468 26468 F DEBUG   :     lr  0000007ce22bafdc  sp  0000007c8b5f1190  pc  0000007ce2116e84  pst 0000000080000000
04-24 11:52:53.303 26468 26468 F DEBUG   : backtrace:
04-24 11:52:53.303 26468 26468 F DEBUG   :       #00 pc 0000000000a7fe84  /vendor/lib64/libllvm-glnext.so (!!!0000!e996c91808ee26a66525968cb74e1e!85da404!+60) (BuildId: 9108f43888fef846224c537a834f2f5c)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #01 pc 0000000000c23fd8  /vendor/lib64/libllvm-glnext.so (!!!0000!5e4fdc544e8fb931f7dc5b11ff9a1d!85da404!+736) (BuildId: 9108f43888fef846224c537a834f2f5c)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #02 pc 0000000000c2483c  /vendor/lib64/libllvm-glnext.so (!!!0000!d7545dc46adf0a11a32e0f672f7e96!85da404!+972) (BuildId: 9108f43888fef846224c537a834f2f5c)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #03 pc 0000000000c3c0ec  /vendor/lib64/libllvm-glnext.so (!!!0000!d49599a40965508ac577c49e7c01e5!85da404!+348) (BuildId: 9108f43888fef846224c537a834f2f5c)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #04 pc 0000000000c3c5fc  /vendor/lib64/libllvm-glnext.so (!!!0000!f250bbeae4787d84d80d43e35a8b6d!85da404!+668) (BuildId: 9108f43888fef846224c537a834f2f5c)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #05 pc 0000000000c48290  /vendor/lib64/libllvm-glnext.so (!!!0000!d4b3104e6a37ce8c57eba970e8b2e1!85da404!+400) (BuildId: 9108f43888fef846224c537a834f2f5c)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #06 pc 0000000000a298a0  /vendor/lib64/libllvm-glnext.so (!!!0000!c03b43b7629d6f1414578265c7e520!85da404!+936) (BuildId: 9108f43888fef846224c537a834f2f5c)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #07 pc 0000000000b0fdc8  /vendor/lib64/libllvm-glnext.so (QGLCCompileToIRShader(void*, QGLC_SRCSHADER*, QGLC_COMPILETOIR_RESULT*)+88) (BuildId: 9108f43888fef846224c537a834f2f5c)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #08 pc 00000000000ae460  /vendor/lib64/hw/vulkan.adreno.so (!!!0000!408a0df45472c0e06e44d798996f89!85da404!+8248) (BuildId: 193dfefaf1d55b1fb7c1edff7bf769a2)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #09 pc 00000000000943f0  /vendor/lib64/hw/vulkan.adreno.so (!!!0000!9edc5309b84ca97e813fe8bc838b43!85da404!+120) (BuildId: 193dfefaf1d55b1fb7c1edff7bf769a2)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #10 pc 000000000006fd24  /vendor/lib64/hw/vulkan.adreno.so (qglinternal::vkCreateComputePipelines(VkDevice_T*, VkPipelineCache_T*, unsigned int, VkComputePipelineCreateInfo const*, VkAllocationCallbacks const*, VkPipeline_T**)+884) (BuildId: 193dfefaf1d55b1fb7c1edff7bf769a2)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #11 pc 000000000385fa6c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (ash::device::Device::create_compute_pipelines::h61e3c33f6e2e080d+204)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #12 pc 0000000003923d5c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (wgpu_hal::vulkan::device::_$LT$impl$u20$wgpu_hal..Device$LT$wgpu_hal..vulkan..Api$GT$$u20$for$u20$wgpu_hal..vulkan..Device$GT$::create_compute_pipeline::hd549dc230b7f4928+452)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #13 pc 000000000352e238  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (wgpu_core::device::resource::Device$LT$A$GT$::create_compute_pipeline::hfb6faa75f292b6eb+3360)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #14 pc 00000000035e3c94  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (wgpu_core::device::global::_$LT$impl$u20$wgpu_core..global..Global$LT$G$GT$$GT$::device_create_compute_pipeline::hb9743832a85021f5+524)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #15 pc 00000000036d43e8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (_$LT$wgpu..backend..wgpu_core..ContextWgpuCore$u20$as$u20$wgpu..context..Context$GT$::device_create_compute_pipeline::h918078763e9c4ed4+620)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #16 pc 00000000036e625c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (_$LT$T$u20$as$u20$wgpu..context..DynContext$GT$::device_create_compute_pipeline::hd57e2e4d858216d7+148)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #17 pc 00000000036ef9cc  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (wgpu::Device::create_compute_pipeline::hed160c327cd07a95+92)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #18 pc 0000000002f4dc90  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (bevy_render::renderer::render_device::RenderDevice::create_compute_pipeline::h4881dd9d1d80ae30+44)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #19 pc 0000000002e7aa3c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (bevy_render::render_resource::pipeline_cache::PipelineCache::start_create_compute_pipeline::_$u7b$$u7b$closure$u7d$$u7d$::h2860f6951e40b572+1400)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #20 pc 0000000002e59080  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (async_executor::Executor::spawn_inner::_$u7b$$u7b$closure$u7d$$u7d$::h17806a092794a0a3+416)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #21 pc 0000000002f7ad7c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (async_task::raw::RawTask$LT$F$C$T$C$S$C$M$GT$::run::_$u7b$$u7b$closure$u7d$$u7d$::h7a262eb2397d60d1+48)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #22 pc 0000000002e9d1e8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (core::ops::function::FnOnce::call_once::h564e6acf00a19162+24)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #23 pc 00000000030f6d2c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (_$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::hbaeffb98b3b1a5fa+24)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #24 pc 0000000002e04f60  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::panicking::try::do_call::h3143c1ddac5c8462+72)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #25 pc 0000000002e0790c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (__rust_try+24)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #26 pc 0000000002e049e0  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::panicking::try::hf8169b9f0db3860a+80)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #27 pc 0000000002e021d8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::panic::catch_unwind::h4c536bdeac0555eb+24)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #28 pc 0000000002f73bb8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (async_task::raw::RawTask$LT$F$C$T$C$S$C$M$GT$::run::hd3c8020a8ee5df41+596)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #29 pc 00000000047ab9d8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (async_task::runnable::Runnable$LT$M$GT$::run::h72142eb9563a4c10+112)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #30 pc 000000000478bc14  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (async_executor::Executor::run::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::haed69411d5ea8ea2+760)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #31 pc 000000000478f6c8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (_$LT$futures_lite..future..Or$LT$F1$C$F2$GT$$u20$as$u20$core..future..future..Future$GT$::poll::h81aef92fc4613d61+140)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #32 pc 000000000478b814  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (async_executor::Executor::run::_$u7b$$u7b$closure$u7d$$u7d$::h55af5317431f18f0+584)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #33 pc 000000000478f308  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (futures_lite::future::block_on::_$u7b$$u7b$closure$u7d$$u7d$::h6f0d8c48e2e3816e+364)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #34 pc 000000000478e8e8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::thread::local::LocalKey$LT$T$GT$::try_with::hd427d5d6bd9063bc+288)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #35 pc 000000000478df4c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::thread::local::LocalKey$LT$T$GT$::with::hf93f95b101dbda11+24)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #36 pc 000000000478f168  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (futures_lite::future::block_on::h205318941edccbe4+116)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #37 pc 00000000047963d8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (bevy_tasks::task_pool::TaskPool::new_internal::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h17ae9cc5aa7cb047+228)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #38 pc 0000000004795648  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::panicking::try::do_call::h416c96ec2aa7bea1+68)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #39 pc 00000000047959d8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (__rust_try+24)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #40 pc 00000000047954cc  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::panicking::try::hb3a77abf1842d3d2+72)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #41 pc 000000000479b080  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::panic::catch_unwind::h0f096767886143b2+4)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #42 pc 00000000047961a0  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (bevy_tasks::task_pool::TaskPool::new_internal::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h41a9ae8c4e995081+332)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #43 pc 000000000478e214  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::thread::local::LocalKey$LT$T$GT$::try_with::h4fc67879b15e52cf+316)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #44 pc 000000000478deb4  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::thread::local::LocalKey$LT$T$GT$::with::hb0fa89f0eb94b2e2+16)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #45 pc 0000000004795fd0  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (bevy_tasks::task_pool::TaskPool::new_internal::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h8e1c1b4d3637f1d5+72)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #46 pc 00000000047a0c0c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::sys_common::backtrace::__rust_begin_short_backtrace::h302ef3cb50fe85a2+8)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #47 pc 00000000047a086c  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::_$u7b$$u7b$closure$u7d$$u7d$::h77665ee889cb2fb7+36)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #48 pc 000000000479d6f0  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (_$LT$core..panic..unwind_safe..AssertUnwindSafe$LT$F$GT$$u20$as$u20$core..ops..function..FnOnce$LT$$LP$$RP$$GT$$GT$::call_once::h96927dc7b9b9481d+36)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #49 pc 0000000004795704  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::panicking::try::do_call::hdecf06ea99a0a01f+68)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #50 pc 00000000047959d8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (__rust_try+24)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #51 pc 0000000004795318  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::panicking::try::h335400d0a61fe2ea+84)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #52 pc 00000000047a06ec  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::thread::Builder::spawn_unchecked_::_$u7b$$u7b$closure$u7d$$u7d$::h13a7d0de68b67a97+408)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #53 pc 0000000004790294  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h7cb9def13f198f80+16)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #54 pc 0000000004936af8  /data/app/~~yUIRbIDgAf1DWS1Sk9rzGQ==/org.bevyengine.example-Qi_q5hU_yKL0FN2Jhi28zA==/lib/arm64/libbevy_mobile_example.so (std::sys::pal::unix::thread::Thread::new::thread_start::h9d781aa31d337b91+24)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #55 pc 00000000000b63b0  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 4e07915368c859b1910c68c84a8de75f)
04-24 11:52:53.303 26468 26468 F DEBUG   :       #56 pc 00000000000530b8  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 4e07915368c859b1910c68c84a8de75f)

Does this help?

@mockersf mockersf changed the title Android 11 segfaults since MeshUniforms generation on the GPU Android segfaults since MeshUniforms generation on the GPU Apr 24, 2024
@mockersf
Copy link
Member Author

thanks! it confirms it's not an android version issue, but a mobile gpu issue. it also confirms it's when dealing with the compute shaders

@eero-lehtinen
Copy link
Contributor

Yeah my Android 11 phone with Mali-G76 MC4 GPU works fine.

@mockersf
Copy link
Member Author

got to love those adreno gpus...

@james7132
Copy link
Member

Does the Limits and Features returned by the device state it has compute shader and storage buffer support? @pcwalton was operating under the assumption that if a device supports one, it should support the other. Perhaps we need to be checking for both, or upstreaming this issue to wgpu if it fails to detect the lack of support for compute shaders on that hardware.

@alice-i-cecile alice-i-cecile added the S-Needs-Review Needs reviewer attention (from anyone!) to move forward label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Crash A sudden unexpected crash O-Android Specific to the Android mobile operating system S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants