Title: Crash: invalid pthread_t passed to pthread_getcpuclockid when using GSYVideoPlayer (ijk mode) after upgrading to sentry-android-gradle-plugin 5.11.0 · Issue #4745 · getsentry/sentry-java · GitHub
Open Graph Title: Crash: invalid pthread_t passed to pthread_getcpuclockid when using GSYVideoPlayer (ijk mode) after upgrading to sentry-android-gradle-plugin 5.11.0 · Issue #4745 · getsentry/sentry-java
X Title: Crash: invalid pthread_t passed to pthread_getcpuclockid when using GSYVideoPlayer (ijk mode) after upgrading to sentry-android-gradle-plugin 5.11.0 · Issue #4745 · getsentry/sentry-java
Description: Environment self-hosted (https://develop.sentry.dev/self-hosted/) Steps to Reproduce Describe the bug After upgrading to sentry-android-gradle-plugin 5.11.0, our app started crashing when using GSYVideoPlayer (version 11.1.0) in ijk mode...
Open Graph Description: Environment self-hosted (https://develop.sentry.dev/self-hosted/) Steps to Reproduce Describe the bug After upgrading to sentry-android-gradle-plugin 5.11.0, our app started crashing when using GSY...
X Description: Environment self-hosted (https://develop.sentry.dev/self-hosted/) Steps to Reproduce Describe the bug After upgrading to sentry-android-gradle-plugin 5.11.0, our app started crashing when using GSY...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/4745
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash: invalid pthread_t passed to pthread_getcpuclockid when using GSYVideoPlayer (ijk mode) after upgrading to sentry-android-gradle-plugin 5.11.0","articleBody":"### Environment\n\nself-hosted (https://develop.sentry.dev/self-hosted/)\n\n### Steps to Reproduce\n\n### Describe the bug\nAfter upgrading to sentry-android-gradle-plugin 5.11.0, our app started crashing when using GSYVideoPlayer (version 11.1.0) in ijk mode.\n\nThe crash happens inside ART’s sampling profiler thread with the following message:\n```\ninvalid pthread_t 0x6a3e8e4730 passed to pthread_getcpuclockid\nFatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 25681 (Sampling Profil), pid 22954 (com.httest.f1)\nSoftversion: PD2405B_A_15.0.25.40.W10.V000L1\nTime: 2025-09-17 10:22:15\n*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\nBuild fingerprint: 'vivo/PD2405M/PD2405:15/AP3A.240905.015.A1_V000L1/compiler08272107:user/release-keys'\nRevision: '0'\nABI: 'arm64'\nTimestamp: 2025-09-17 10:22:15.434576066+0800\nProcess uptime: 62s\nCmdline: com.httest.f1\npid: 22954, tid: 25681, name: Sampling Profil >>> com.httest.f1 \u003c\u003c\u003c\nuid: 10674\ntagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)\npac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY)\nsignal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------\nAbort message: 'invalid pthread_t 0x6a3e8e4730 passed to pthread_getcpuclockid'\n x0 0000000000000000 x1 0000000000006451 x2 0000000000000006 x3 0000006a83ee4250\n x4 6f1f2f3236336437 x5 6f1f2f3236336437 x6 6f1f2f3236336437 x7 7f7f7f7f7f7f7f7f\n x8 00000000000000f0 x9 0000007013c71878 x10 0000000000000001 x11 0000007013d085d0\n x12 0000000068ca1b56 x13 000000007fffffff x14 00000000091c85be x15 0000056efbafce68\n x16 0000007013d74d58 x17 0000007013d5c000 x18 0000006a30ce0000 x19 00000000000059aa\n x20 0000000000006451 x21 00000000ffffffff x22 b400006b7000e430 x23 0000006a83ee4a80\n x24 b400006b80287370 x25 b400006b200bd6f0 x26 b400006b200bf610 x27 00000000000026ac\n x28 0000000000000000 x29 0000006a83ee42d0\n lr 0000007013cf0948 sp 0000006a83ee4230 pc 0000007013cf0974 pst 0000000000001000\n10 total frames\nbacktrace:\n #00 pc 00000000000a9974 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 592f445e153f1fd45b880b26f0715c0b)\n getsentry/sentry#1 pc 00000000000bc9b4 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_internal_find(long, char const*)+196) (BuildId: 592f445e153f1fd45b880b26f0715c0b)\n getsentry/sentry#2 pc 00000000000bc8c8 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_internal_gettid(long, char const*)+8) (BuildId: 592f445e153f1fd45b880b26f0715c0b)\n getsentry/sentry#3 pc 00000000000bc6b8 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_getcpuclockid+24) (BuildId: 592f445e153f1fd45b880b26f0715c0b)\n getsentry/sentry#4 pc 00000000008bd038 /apex/com.android.art/lib64/libart.so (art::Thread::GetCpuMicroTime() const+40) (BuildId: 16b37ef712c5fee7ceda016b2e3b9c9a)\n getsentry/sentry#5 pc 00000000008df75c /apex/com.android.art/lib64/libart.so (art::GetSample(art::Thread*, void*) (.__uniq.52483287290921479263723184702455367361)+284) (BuildId: 16b37ef712c5fee7ceda016b2e3b9c9a)\n getsentry/sentry#6 pc 00000000008d9f28 /apex/com.android.art/lib64/libart.so (art::ThreadList::ForEach(void (*)(art::Thread*, void*), void*)+56) (BuildId: 16b37ef712c5fee7ceda016b2e3b9c9a)\n getsentry/sentry#7 pc 00000000008df474 /apex/com.android.art/lib64/libart.so (art::Trace::RunSamplingThread(void*)+356) (BuildId: 16b37ef712c5fee7ceda016b2e3b9c9a)\n getsentry/sentry#8 pc 00000000000bc3fc /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+220) (BuildId: 592f445e153f1fd45b880b26f0715c0b)\n getsentry/sentry#9 pc 00000000000ad680 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 592f445e153f1fd45b880b26f0715c0b)\ndumped - all\nhandle_request: return status is fail\nBBinder_init Processname \u003cpre-initialized> \nBBinder_init hasGetProcessName \u003cpre-initialized>\n```\n### To Reproduce\nSteps to reproduce the behavior:\n\nAdd GSYVideoPlayer 11.1.0 to project, configured in ijk mode.\n\nUpgrade sentry-android-gradle-plugin to 5.11.0.\n\nRun app and play a video.\n\nApp crashes within seconds.\n\n### Environment\n\nSentry Android Gradle Plugin: 5.11.0\n\nGSYVideoPlayer: 11.1.0 (ijk mode)\n\nAndroid version: 15 (AP3A.240905.015.A1)\n\nDevice: vivo PD2405B\n\nReproducibility: ~100% when profiling enabled\n\n### Additional context\n\nDisabling profiling (profilesSampleRate = 0.0) avoids the crash.\n\nOlder versions of Sentry SDK did not have this issue.\n\nGSY (ijk mode) spawns multiple native pthreads for FFmpeg; it seems Sentry’s sampling profiler races with thread teardown, passing an invalid pthread_t to pthread_getcpuclockid.\n\n### Workarounds tried\n\nTurning off performance profiling avoids the crash.\n\nReverting to an older Sentry version avoids the crash.\n\n### Request\nPlease confirm whether this is a known issue in the sampling profiler integration with native pthreads (ijkplayer/GSY), and if there’s a fix planned or recommended workaround.\n\n### Expected Result\n\nApp should not crash when profiling is enabled.\n\n### Actual Result\n\nApp crashes within seconds.\n\n### Product Area\n\nOther\n\n### Link\n\n_No response_\n\n### DSN\n\n_No response_\n\n### Version\n\n_No response_","author":{"url":"https://github.com/hurist","@type":"Person","name":"hurist"},"datePublished":"2025-09-17T02:42:13Z","url":"https://github.com/getsentry/sentry-java/issues/4745"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e7622c8d-f0de-5a51-54a3-caa0f59bb10f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B91C:5F1E9:1E2172:286EDD:6B048327 |
| html-safe-nonce | 014b8bf3c590021f063518068e57a136ffba011de02dbe33cf6c31bf43f49052 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTFDOjVGMUU5OjFFMjE3MjoyODZFREQ6NkIwNDgzMjciLCJ2aXNpdG9yX2lkIjoiODE4NjU3NzYyNzg2NDQwMDY3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a8fb2a2be6c098a5d6f281b0df609227b0468ec7f6b614c2eafb14cdc15974f4 |
| hovercard-subject-tag | issue:3443803161 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/4745/issue_layout |
| twitter:image | https://opengraph.githubassets.com/66345fbd03a0d875660710b12cb6b80ef04cc5321625922056015358acda36e9/getsentry/sentry-java/issues/4745 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66345fbd03a0d875660710b12cb6b80ef04cc5321625922056015358acda36e9/getsentry/sentry-java/issues/4745 |
| og:image:alt | Environment self-hosted (https://develop.sentry.dev/self-hosted/) Steps to Reproduce Describe the bug After upgrading to sentry-android-gradle-plugin 5.11.0, our app started crashing when using GSY... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hurist |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width