DataDog / dd-sdk-android

Datadog SDK for Android (Compatible with Kotlin and Java)
Apache License 2.0
140 stars 56 forks source link

Fatal Exception: java.lang.IllegalStateException Recording currently in progress - missing #endRecording() call? #2078

Open leedawonswing opened 3 weeks ago

leedawonswing commented 3 weeks ago

Describe the bug

Fatal Exception: java.lang.IllegalStateException Recording currently in progress - missing #endRecording() call?

After updating to version 2.10.0, an issue is posted in Firebase Crashlytics.

Reproduction steps

Fatal Exception: java.lang.IllegalStateException Recording currently in progress - missing #endRecording() call? android.graphics.RenderNode.beginRecording (RenderNode.java:446) android.graphics.RenderNode.beginRecording (RenderNode.java:465) androidx.compose.ui.graphics.layer.GraphicsLayerV29.record (GraphicsLayerV29.android.kt:225) androidx.compose.ui.graphics.layer.GraphicsLayer.recordInternal (AndroidGraphicsLayer.android.kt:432) androidx.compose.ui.graphics.layer.GraphicsLayer.record-mL-hObY (AndroidGraphicsLayer.android.kt:425) androidx.compose.ui.platform.GraphicsLayerOwnerLayer.updateDisplayList (GraphicsLayerOwnerLayer.android.kt:237) androidx.compose.ui.platform.AndroidComposeView.dispatchDraw (AndroidComposeView.android.kt:1544) android.view.View.draw (View.java:25180) android.view.View.updateDisplayListIfDirty (View.java:24036) android.view.View.draw (View.java:24907) android.view.ViewGroup.drawChild (ViewGroup.java:4780) android.view.ViewGroup.dispatchDraw (ViewGroup.java:4538) android.view.View.updateDisplayListIfDirty (View.java:24022) android.view.View.draw (View.java:24907) android.view.ViewGroup.drawChild (ViewGroup.java:4780) android.view.ViewGroup.dispatchDraw (ViewGroup.java:4538) androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw (ConstraintLayout.java:1994) android.view.View.updateDisplayListIfDirty (View.java:24022) android.view.View.draw (View.java:24907) android.view.ViewGroup.drawChild (ViewGroup.java:4780) androidx.fragment.app.FragmentContainerView.drawChild (FragmentContainerView.kt:240) android.view.ViewGroup.dispatchDraw (ViewGroup.java:4538) androidx.fragment.app.FragmentContainerView.dispatchDraw (FragmentContainerView.kt:230)

Logcat logs

No response

Expected behavior

No response

Affected SDK versions

2.10.0

Latest working SDK version

2.10.0

Did you confirm if the latest SDK version fixes the bug?

Yes

Kotlin / Java version

No response

Gradle / AGP version

No response

Other dependencies versions

No response

Device Information

No response

Other relevant information

No response

mariusc83 commented 3 weeks ago

Hi @leedawonswing , thank you for taking the time to report it. We will have a look on our end but in the meantime can you please give us more information :

  1. Are you using the Datadog Session Replay feature ?
  2. How often this happens ?
  3. Can you reproduce the issue on your end ? In that case can you try to reproduce it with and without session replay feature and tell us the outcome ? With and without Datadog SDK enabled ? Any particular (custom layout) you are using in your application ?
  4. Any other extra detail that could help us reproducing the issue on our end will be great.

FYI that stacktrace does not contain any datadog line inside so we are wondering if this could not be something outside of Datadog SDK that's causing it ?

Thanks !!

Im-Tae commented 3 weeks ago
  1. yes, we are using the Datadog Session Replay, Rum, Trace.
  2. It happened after uploaded the version. 2.2.0 -> 2.10.0.
  3. It's not being reproduced, so I'll check it out and let you know later