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

[libGLES_mali.so] crash #1825

Open
Yauheni777 opened this issue Oct 3, 2024 · 2 comments
Open

[libGLES_mali.so] crash #1825

Yauheni777 opened this issue Oct 3, 2024 · 2 comments
Labels
Bug Something isn't working Platform: Android Sync: Jira apply to auto-create a Jira shadow ticket

Comments

@Yauheni777
Copy link

Yauheni777 commented Oct 3, 2024

Hello!

Input data:

We installed sentry as a unity package: https://github.com/getsentry/sentry-unity/releases/tag/2.1.15
On server Sentry SaaS (sentry.io)
SDK version - 2.1.15
Installed via git url
Unity version 2022.3.35f1
Problem reproduces only in 14 android google pixel devices:

We couldn't reproduce the problem manually, we only know that the problem is in sentry. We released 2 absolutely identical versions, one with sentry removed, the other without. In the version with sentry we get a gles crash:
Image

This is what crash looks like on google play console:

[libGLES_mali.so] hal::halp::device_faults_handler_internal::record_internal(hal::device_fault_type, unsigned long, short, hal::device_fault_mem_access_type, unsigned long, unsigned long, short, unsigned short)
 
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 27037 >>> net.supertreat.solitaire <<<
 
backtrace:
  #00  pc 0x0000000000070548  /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+24)
  #01  pc 0x0000000001864abc  /vendor/lib64/egl/libGLES_mali.so (hal::halp::device_faults_handler_internal::record_internal(hal::device_fault_type, unsigned long, short, hal::device_fault_mem_access_type, unsigned long, unsigned long, short, unsigned short)+60)
  #02  pc 0x0000000001864c3c  /vendor/lib64/egl/libGLES_mali.so (hal::halp::device_faults_handler_internal::record(short, hal::device_fault_type, unsigned int)+60)
  #03  pc 0x00000000018a9f94  /vendor/lib64/egl/libGLES_mali.so (hal::halp::signal_fence_cb(void*, bool)+100)
  #04  pc 0x00000000018fd48c  /vendor/lib64/egl/libGLES_mali.so (basep_cpu_queue_process+396)
  #05  pc 0x00000000018fb9d0  /vendor/lib64/egl/libGLES_mali.so (basep_process_command_queues+192)
  #06  pc 0x00000000018f9bdc  /vendor/lib64/egl/libGLES_mali.so (basep_event_thread+236)
  #07  pc 0x000000000006efbc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
  #08  pc 0x0000000000060d60  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

This is what crash looks like on sentry
Image
Image
Image
Image
Image

It is possible that the crash may be related to the fact that the Sentry SDK uses Android View, which in turn is used with GLES: https://github.com/getsentry/sentry-java/blob/main/sentry-android-core/src/main/java/io/sentry/android/core/ViewHierarchyEventProcessor.java

This crash is a critical issue for us

┆Issue is synchronized with this Jira Improvement by Unito

@bitsandfoxes
Copy link
Contributor

Hey @Yauheni777, so sorry to see you run into issues. We'll do whatever we can to get this resolved as fast as possible.
Are you able to reproduce this issue in any way, shape or form? Can you disabled the Android Native Support? Just so we can eliminate where this is originating from?

@bruno-garcia
Copy link
Member

bruno-garcia commented Oct 31, 2024

Looking online for crashes on libGLES_mali.so I spotted this on the Flutter repo:

flutter/flutter#117950 (comment) from 2023:

this issue is not actionable without a code sample or repro instructions, and the device. In general, crash logs from a crash reporting service are not sufficient for the team to be able to solve a problem. This is especially true when the crash is in the device driver. Since this issue has been open for a few months without any repro instructions, I'm going to go ahead and close it.

And this is from Unity from May 2024:

Testing confirms this issue only exists on Pixel 6 devices using the Mali r46 driver which is reported to be buggy. Later updates using the Mali r47 driver fixes the issue and ARM has indicated this is being discussed with the OEM (https://community.arm.com/support-forums/f/graphics-gaming-and-vr-forum/56325/mali-g78-google-pixel-6-vulkan-crash-in-cmarp_backend_thread).

Doesn't seem to be much we (Sentry) can do about this from looking online, it's not caused by Sentry directly.
We could ignore these errors but I feel having no visibility is even worse than something that we can't do anything about

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Platform: Android Sync: Jira apply to auto-create a Jira shadow ticket
Projects
Status: Todo
Status: No status
Development

No branches or pull requests

4 participants