You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not report parsing ANR error when there are no threads (#3888)
* Ensure android event processors are added even if options configuration block throws
* Changelog
* Do not report parsing ANR error when there are no threads
* Changelog
* Fix tests
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@
10
10
### Fixes
11
11
12
12
- Ensure android initialization process continues even if options configuration block throws an exception ([#3887](https://github.com/getsentry/sentry-java/pull/3887))
13
+
- Do not report parsing ANR error when there are no threads ([#3888](https://github.com/getsentry/sentry-java/pull/3888))
14
+
- This should significantly reduce the number of events with message "Sentry Android SDK failed to parse system thread dump..." reported
Copy file name to clipboardExpand all lines: sentry-android-core/src/test/java/io/sentry/android/core/AnrV2IntegrationTest.kt
+45-5Lines changed: 45 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,8 @@ class AnrV2IntegrationTest {
101
101
reason:Int? = ApplicationExitInfo.REASON_ANR,
102
102
timestamp:Long? = null,
103
103
importance:Int? = null,
104
-
addTrace:Boolean = true
104
+
addTrace:Boolean = true,
105
+
addBadTrace:Boolean = false
105
106
) {
106
107
val builder =ApplicationExitInfoBuilder.newBuilder()
107
108
if (reason !=null) {
@@ -117,8 +118,36 @@ class AnrV2IntegrationTest {
117
118
if (!addTrace) {
118
119
return
119
120
}
120
-
whenever(mock.traceInputStream).thenReturn(
121
-
"""
121
+
if (addBadTrace) {
122
+
whenever(mock.traceInputStream).thenReturn(
123
+
"""
124
+
Subject: Input dispatching timed out (7985007 com.example.app/com.example.app.ui.MainActivity (server) is not responding. Waited 5000ms for FocusEvent(hasFocus=false))
125
+
Here are no Binder-related exception messages available.
126
+
Pid(12233) have D state thread(tid:12236 name:Signal Catcher)
0 commit comments