Title: randomUUID generation results in ApplicationNotResponding error from the SDK · Issue #4057 · getsentry/sentry-java · GitHub
Open Graph Title: randomUUID generation results in ApplicationNotResponding error from the SDK · Issue #4057 · getsentry/sentry-java
X Title: randomUUID generation results in ApplicationNotResponding error from the SDK · Issue #4057 · getsentry/sentry-java
Description: Integration sentry-android Build System Gradle AGP Version NA Proguard Disabled Version 7.18.0 Steps to Reproduce Steps to reproduce are unclear. A way to reproduce would be to by drawing a lot of randomness via secureRandom() until it s...
Open Graph Description: Integration sentry-android Build System Gradle AGP Version NA Proguard Disabled Version 7.18.0 Steps to Reproduce Steps to reproduce are unclear. A way to reproduce would be to by drawing a lot of ...
X Description: Integration sentry-android Build System Gradle AGP Version NA Proguard Disabled Version 7.18.0 Steps to Reproduce Steps to reproduce are unclear. A way to reproduce would be to by drawing a lot of ...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/4057
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"randomUUID generation results in ApplicationNotResponding error from the SDK","articleBody":"### Integration\n\nsentry-android\n\n### Build System\n\nGradle\n\n### AGP Version\n\nNA\n\n### Proguard\n\nDisabled\n\n### Version\n\n7.18.0\n\n### Steps to Reproduce\n\n~~Steps to reproduce are unclear.~~\nA way to reproduce would be to by drawing a lot of randomness via `secureRandom()` until it starts blocking. But that might take a while.\n\n### Expected Result\n\nThe SDK is able to generate UUID without blocking the main thread. \n\n### Actual Result\n\nThe Sentry SDK causes an ANR error, here is the stack trace. \n\n```\nio.sentry.android.core.ApplicationNotResponding: ANR\n atsyscall\n atart::ConditionVariable::WaitHoldingLocks(art::Thread*)\n atart::JNI\u003cfalse>::ReleaseByteArrayElements(_JNIEnv*, _jbyteArray*, signed char*, int)\n atdeleted) (offset 2000000) (art_jni_trampoline\n atdeleted) (offset 2000000) (com.android.org.conscrypt.OpenSSLRandom.engineNextBytes\n at com.android.org.conscrypt.NativeCrypto.RAND_bytes\n at com.android.org.conscrypt.OpenSSLRandom.engineNextBytes(OpenSSLRandom.java:46)\n at java.security.SecureRandom.nextBytes(SecureRandom.java:480)\n at java.util.UUID.randomUUID(UUID.java:145)\n at io.sentry.protocol.SentryId.\u003cinit>(SentryId.java:25)\n at io.sentry.protocol.SentryId.\u003cinit>(SentryId.java:20)\n at io.sentry.SentryEvent.\u003cinit>(SentryEvent.java:102)\n at io.sentry.android.timber.SentryTimberTree.captureEvent(SentryTimberTree.kt:262)\n at io.sentry.android.timber.SentryTimberTree.logWithSentry(SentryTimberTree.kt:240)\n at io.sentry.android.timber.SentryTimberTree.e(SentryTimberTree.kt:146)\n at timber.log.Timber$Forest.e(Timber.kt:342)\n at timber.log.Timber.e(Timber.kt)\n at me.getreach.setup.MainActivity$onCreate$3.invokeSuspend(MainActivity.kt:422)\n at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)\n at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:28)\n at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:99)\n at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)\n at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:102)\n at kotlinx.coroutines.EventLoop.processUnconfinedEvent(EventLoop.common.kt:65)\n at kotlinx.coroutines.DispatchedTaskKt.resumeUnconfined(DispatchedTask.kt:241)\n at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:159)\n at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:470)\n at kotlinx.coroutines.CancellableContinuationImpl.cancel(CancellableContinuationImpl.kt:213)\n at kotlinx.coroutines.CancellableContinuationImpl.parentCancelled$kotlinx_coroutines_core(CancellableContinuationImpl.kt:220)\n at kotlinx.coroutines.ChildContinuation.invoke(JobSupport.kt:1447)\n at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1473)\n at kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:796)\n at kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:756)\n at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:672)\n at kotlinx.coroutines.JobSupport.parentCancelled(JobSupport.kt:638)\n at kotlinx.coroutines.ChildHandleNode.invoke(JobSupport.kt:1436)\n at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1473)\n at kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:796)\n at kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:756)\n at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:672)\n at kotlinx.coroutines.JobSupport.parentCancelled(JobSupport.kt:638)\n at kotlinx.coroutines.ChildHandleNode.invoke(JobSupport.kt:1436)\n at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1473)\n at kotlinx.coroutines.JobSupport.tryMakeCompletingSlowPath(JobSupport.kt:901)\n at kotlinx.coroutines.JobSupport.tryMakeCompleting(JobSupport.kt:864)\n at kotlinx.coroutines.JobSupport.cancelMakeCompleting(JobSupport.kt:697)\n at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:668)\n at kotlinx.coroutines.JobSupport.cancelInternal(JobSupport.kt:633)\n at kotlinx.coroutines.JobSupport.cancel(JobSupport.kt:618)\n at kotlinx.coroutines.JobKt__JobKt.cancel(Job.kt:560)\n at kotlinx.coroutines.JobKt.cancel(unavailable:1)\n at kotlinx.coroutines.JobKt__JobKt.cancel$default(Job.kt:559)\n at kotlinx.coroutines.JobKt.cancel$default(unavailable:1)\n at androidx.lifecycle.LifecycleCoroutineScopeImpl.onStateChanged(Lifecycle.kt:430)\n at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.kt:322)\n at androidx.lifecycle.LifecycleRegistry.backwardPass(LifecycleRegistry.kt:273)\n at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.kt:290)\n at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.kt:143)\n at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.kt:126)\n at androidx.lifecycle.ReportFragment$Companion.dispatch$lifecycle_runtime_release(ReportFragment.kt:190)\n at androidx.lifecycle.ReportFragment$LifecycleCallbacks.onActivityPreDestroyed(ReportFragment.kt:146)\n at android.app.Activity.dispatchActivityPreDestroyed(Activity.java:1498)\n at android.app.Activity.performDestroy(Activity.java:8235)\n at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1344)\n at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5094)\n at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5139)\n at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44)\n at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)\n at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)\n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)\n at android.os.Handler.dispatchMessage(Handler.java:106)\n at android.os.Looper.loop(Looper.java:223)\n at android.app.ActivityThread.main(ActivityThread.java:7664)\n at java.lang.reflect.Method.invoke\n at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)\n```\n\nA possible root cause of the error is the kerner running out of entropy: https://stackoverflow.com/questions/19981189/how-does-the-kernel-entropy-pool-work","author":{"url":"https://github.com/rodolfoBee","@type":"Person","name":"rodolfoBee"},"datePublished":"2025-01-16T14:42:24Z","url":"https://github.com/getsentry/sentry-java/issues/4057"}
| 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:d791ac22-6da1-e03c-22ae-e957279d0494 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E01A:2D47A6:6541F4:8808C8:6B04A28A |
| html-safe-nonce | 5316430b16930ce2693a663bbdbdbaca00c18783ecf4a6a7185f033ea08cee83 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDFBOjJENDdBNjo2NTQxRjQ6ODgwOEM4OjZCMDRBMjhBIiwidmlzaXRvcl9pZCI6Ijg1NjU0ODEwMDg1MTcxMjg4NDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 57be37bd54ea9cc9d769ed0f969b3f90912ffdf32767a98626d1a5dfaba3f403 |
| hovercard-subject-tag | issue:2792973080 |
| 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/4057/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a49b0d7b69bbbecff8ee3be0a5777e8cf910b2f6dbca959f53e39376837e11ef/getsentry/sentry-java/issues/4057 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a49b0d7b69bbbecff8ee3be0a5777e8cf910b2f6dbca959f53e39376837e11ef/getsentry/sentry-java/issues/4057 |
| og:image:alt | Integration sentry-android Build System Gradle AGP Version NA Proguard Disabled Version 7.18.0 Steps to Reproduce Steps to reproduce are unclear. A way to reproduce would be to by drawing a lot of ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rodolfoBee |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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