René's URL Explorer Experiment


Title: SentryFrameMetricsCollector blocks the main thread in HandlerThread.getLooper() when the first activity transaction starts · Issue #6443 · getsentry/sentry-java · GitHub

Open Graph Title: SentryFrameMetricsCollector blocks the main thread in HandlerThread.getLooper() when the first activity transaction starts · Issue #6443 · getsentry/sentry-java

X Title: SentryFrameMetricsCollector blocks the main thread in HandlerThread.getLooper() when the first activity transaction starts · Issue #6443 · getsentry/sentry-java

Description: Integration sentry-android Build System Gradle AGP Version 9.2.1 Proguard Enabled Other Error Monitoring Solution No Version 8.60.0 Steps to Reproduce Use sentry-android 8.60.0 (same code in 8.61.0) with enablePerformanceV2 and enableFra...

Open Graph Description: Integration sentry-android Build System Gradle AGP Version 9.2.1 Proguard Enabled Other Error Monitoring Solution No Version 8.60.0 Steps to Reproduce Use sentry-android 8.60.0 (same code in 8.61.0...

X Description: Integration sentry-android Build System Gradle AGP Version 9.2.1 Proguard Enabled Other Error Monitoring Solution No Version 8.60.0 Steps to Reproduce Use sentry-android 8.60.0 (same code in 8.61.0...

Opengraph URL: https://github.com/getsentry/sentry-java/issues/6443

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SentryFrameMetricsCollector blocks the main thread in HandlerThread.getLooper() when the first activity transaction starts","articleBody":"### Integration\n\nsentry-android\n\n### Build System\n\nGradle\n\n### AGP Version\n\n9.2.1\n\n### Proguard\n\nEnabled\n\n### Other Error Monitoring Solution\n\nNo\n\n### Version\n\n8.60.0\n\n### Steps to Reproduce\n\n1. Use sentry-android 8.60.0 (same code in 8.61.0) with `enablePerformanceV2` and `enableFramesTracking` on (the defaults) and activity tracing on.\n2. Cold start the app on a busy device, for example shortly after boot.\n3. Record a Perfetto trace of the cold start.\n4. Look at the main thread during the launcher activity's onCreate: it sits in `HandlerThread.getLooper()` under `SentryFrameMetricsCollector.startCollection`, called from `SpanFrameMetricsCollector.onSpanStarted` when `ActivityLifecycleIntegration` starts the activity transaction.\n\n### Expected Result\n\nStarting frame collection for the first activity transaction doesn't block the main thread.\n\n### Actual Result\n\n`SentryFrameMetricsCollector.ensureHandlerThreadStarted()` starts the `HandlerThread` and then calls `getLooper()`, which blocks the main thread until the new thread is running. In our trace this took 308 ms during the launcher activity's onCreate. Since #5641 (8.47.0) this wait happens at the first `startCollection()` call instead of during `SentryAndroid.init`, so it moved to `Activity.onCreate` rather than going away.\n\n\u003cimg width=\"1094\" height=\"120\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/3ab4e4dd-ddd7-4fa5-969c-ade311bee979\" />","author":{"url":"https://github.com/ikerfah","@type":"Person","name":"ikerfah"},"datePublished":"2026-11-02T09:57:44Z","url":"https://github.com/getsentry/sentry-java/issues/6443"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e7e00670-8e9d-5f9a-646c-84076e62c491
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAEA6:1C619:339B6E:49726A:6B046DAB
html-safe-nonce9eddb16e0107f9fe2bb10b1bfe6ba0fdbe1d2db336ebcac74d27c4f344c010a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUE2OjFDNjE5OjMzOUI2RTo0OTcyNkE6NkIwNDZEQUIiLCJ2aXNpdG9yX2lkIjoiMzYwMTIyMDc3MjU3Mzc2OTEzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7a8fddec505cbe745095aaf22e65614eb40906bb0fca83ff4681f382f5138f8b
hovercard-subject-tagissue:6160266956
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6443/issue_layout
twitter:imagehttps://opengraph.githubassets.com/17ac6be9d3c24de64992c14b0ef6f884dcfa77f99a76fcf1d199c6b82e3ca4ee/getsentry/sentry-java/issues/6443
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/17ac6be9d3c24de64992c14b0ef6f884dcfa77f99a76fcf1d199c6b82e3ca4ee/getsentry/sentry-java/issues/6443
og:image:altIntegration sentry-android Build System Gradle AGP Version 9.2.1 Proguard Enabled Other Error Monitoring Solution No Version 8.60.0 Steps to Reproduce Use sentry-android 8.60.0 (same code in 8.61.0...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameikerfah
hostnamegithub.com
expected-hostnamegithub.com
Noneae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecfb5f24c6e01d85f70804652a5107e5cac03a161
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/6443#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6443
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6443
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-java
Reloadhttps://github.com/getsentry/sentry-java/issues/6443
Reloadhttps://github.com/getsentry/sentry-java/issues/6443
Reloadhttps://github.com/getsentry/sentry-java/issues/6443
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues266 (266)https://github.com/getsentry/sentry-java/issues
Pull requests57 (57)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
https://github.com/getsentry/sentry-java
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6443
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6443
#6500https://github.com/getsentry/sentry-java/pull/6500
SentryFrameMetricsCollector blocks the main thread in HandlerThread.getLooper() when the first activity transaction startshttps://github.com/getsentry/sentry-java/issues/6443#top
#6500https://github.com/getsentry/sentry-java/pull/6500
https://github.com/romtsn
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
BugIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Bug%22
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
https://github.com/ikerfah
ikerfahhttps://github.com/ikerfah
on Nov 2, 2026https://github.com/getsentry/sentry-java/issues/6443#issue-6160266956
#5641https://github.com/getsentry/sentry-java/pull/5641
https://private-user-images.githubusercontent.com/20401578/692069332-3ab4e4dd-ddd7-4fa5-969c-ade311bee979.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0NTI2MzEsIm5iZiI6MTc5NTQ1MjMzMSwicGF0aCI6Ii8yMDQwMTU3OC82OTIwNjkzMzItM2FiNGU0ZGQtZGRkNy00ZmE1LTk2OWMtYWRlMzExYmVlOTc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIzVDE2NDUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwMTg1Yzk4MDIzNTcyOTM4ZGZlZWZkY2Y3MjJlZjUwMmVjNDg5YTIwOTY0YmM0NzlkNGNmYjNmYTkwNTI0NmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.seMAIAm5RFYxnwciUigqTb9AOXguHawHWdfniJA3XYs
ikerfahhttps://github.com/ikerfah
BugIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Bug%22
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
on Nov 2, 2026https://github.com/getsentry/sentry-java/issues/6443#event-34896226523
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Nov 2, 2026https://github.com/getsentry/sentry-java/issues/6443#issuecomment-6574233415
Linear Codehttps://linear.app
JAVA-821https://linear.app/getsentry/issue/JAVA-821
github-actionshttps://github.com/apps/github-actions
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Nov 2, 2026https://github.com/getsentry/sentry-java/issues/6443#event-34896243465
https://github.com/ikerfah
ikerfahhttps://github.com/ikerfah
on Nov 3, 2026https://github.com/getsentry/sentry-java/issues/6443#issuecomment-6597481789
romtsnhttps://github.com/romtsn
on Nov 6, 2026https://github.com/getsentry/sentry-java/issues/6443#event-35351775718
romtsnhttps://github.com/romtsn
on Nov 6, 2026https://github.com/getsentry/sentry-java/issues/6443#event-35354898090
fix(android): Don't block the main thread on the frame metrics looperhttps://github.com/getsentry/sentry-java/commit/e2cdb56cb6e6d84726b851072c1e7663eb85dfbc
https://docs.github.com/articles/closing-issues-via-commit-messages
e2cdb56https://github.com/getsentry/sentry-java/commit/e2cdb56cb6e6d84726b851072c1e7663eb85dfbc
https://github.com/romtsn
romtsnhttps://github.com/romtsn
on Nov 6, 2026https://github.com/getsentry/sentry-java/issues/6443#issuecomment-6689415337
@ikerfahhttps://github.com/ikerfah
romtsnhttps://github.com/romtsn
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6500https://github.com/getsentry/sentry-java/pull/6500
on Nov 9, 2026https://github.com/getsentry/sentry-java/issues/6443#event-35558035913
mvanhornhttps://github.com/mvanhorn
on Nov 10, 2026https://github.com/getsentry/sentry-java/issues/6443#event-35718502356
fix(android): Don't block the main thread on the frame metrics looper (…https://github.com/mvanhorn/sentry-java/commit/a5d3cf6075246308ce8971a0f5995e0eb7bcb5f9
…https://github.com/getsentry/sentry-java/pull/6500
https://docs.github.com/articles/closing-issues-via-commit-messages
a5d3cf6https://github.com/mvanhorn/sentry-java/commit/a5d3cf6075246308ce8971a0f5995e0eb7bcb5f9
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Nov 11, 2026https://github.com/getsentry/sentry-java/issues/6443#issuecomment-6801921997
GitHub Actionshttps://help.github.com/en/actions
#6500https://github.com/getsentry/sentry-java/pull/6500
8.64.0 releasehttps://github.com/getsentry/sentry-java/releases/tag/8.64.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/6443
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6443
romtsnhttps://github.com/romtsn
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
BugIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Bug%22
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.